Back to blog

InvarLock 0.17.0: Plan the Comparison, Explain the Result

Check judge-evaluation precision before collection, explore exact-match sensitivity, and rehearse reassessment while preserving earlier evidence.

8 min readInvarLock Team
A fan of possible paths is measured against a narrow opening before any path is chosen.

A useful comparison starts with an answerable question and ends with a result someone can explain.

Before collecting more evaluation results, a team needs to know whether its plan can answer the review question. After the comparison, it needs to explain a borderline result and preserve what was originally assessed if new evidence arrives.

InvarLock 0.17 adds a precision planner, a sensitivity helper and worked reassessment examples for those stages, alongside the existing evaluation, verification and reporting workflow.

At a glance — v0.17 release snapshot

  • Judge preflight checks whether a planned evaluation can meet its precision requirement before collection.
  • Exact-match sensitivity explores how many hypothetical answer changes could alter a verdict.
  • Reassessment and correction examples keep the earlier evidence and its verification receipt intact.
  • Score-contribution guidance and clearer diagnostics help explain results and delivery problems.
  • The same evaluate → verify → report workflow carries the comparison through review.

Check precision before collecting judge ratings

Suppose a team wants the uncertainty interval around a judge-scored comparison to be no wider than 0.32. How many independent cases should it plan? Tightening that requirement to 0.18 changes the answer considerably.

With ratings from 0 to 1, alpha 0.05 and a comparison-family size of four, the released planner requires 397 independent units to guarantee the first width and 1,254 for the second. In this example, each case is its own independent unit. These are planning calculations, not measured judge performance.

Diagram
A v0.17 planning example requires 397 independent units to guarantee a paired-effect interval width at most 0.32, and 1,254 units for a width at most 0.18, using a 0-to-1 rating scale, alpha 0.05 and comparison-family size four.

Plan the number of independent cases

Width at most 0.32: 397 units
The smallest unit count that guarantees this paired-effect interval width under the example settings.
Width at most 0.18: 1,254 units
The stricter width requirement needs more independent units. Here each case is its own unit.

v0.17 planning calculation: ratings 0–1, alpha 0.05, comparison-family size four. Assumes complete independent units. Repeated ratings within a unit do not add units; this does not predict a pass or judge accuracy.

What to notice The bars compare the smallest unit counts that guarantee each width under these settings. All planned trials must complete, and the declared units must be independent. Repeated ratings within a unit do not add independent units.

Run preflight on the prepared judge request before collecting ratings:

invarlock evaluate judge-request.yaml --preflight --json

The forecast distinguishes three answers:

Table 1: Check precision before collecting judge ratings. Data table with columns: Planning result, What it tells the team
Planning resultWhat it tells the team
within_limitEvery possible score outcome meets the declared width requirement.
unattainableNo score outcome can meet that requirement with the planned units.
not_guaranteedThe forecast cannot guarantee the width; this can also occur at a rounding boundary.

The separate minimum-unit requirement still applies. Meeting the width requirement does not predict a passing comparison or establish judge accuracy. Preflight makes no provider calls; the judge preflight reference explains the inputs and limits.

See how four hypothetical answer changes affect a verdict

Two models can have the same accuracy while differing on individual cases. The released sensitivity example uses 100 synthetic pairs: both sides score 75%, with three baseline-only successes and three candidate-only successes. Its paired 95% interval is −5.41 to +5.41 percentage points, which clears a −10 pp lower-bound requirement.

The Python helper asks how many candidate outcomes would have to flip to change that verdict while keeping the baseline, policy and record count fixed. It rules out one, two and three changes, then finds a four-change example. Turning four shared successes into candidate failures lowers candidate accuracy to 71%. The interval's lower bound moves to −10.59 pp, below the same requirement.

Diagram
The original synthetic comparison passes with a paired 95% interval of minus 5.41 to plus 5.41 percentage points. After four hypothetical candidate flips, the interval becomes minus 10.59 to plus 2.52 percentage points and would fail the fixed minus 10 pp lower-bound requirement.

Four hypothetical flips cross the same policy boundary

Original: 75% correct, policy pass
Candidate and baseline both score 75% on 100 synthetic pairs. Paired 95% interval: −5.41 to +5.41 pp; the lower bound clears −10 pp.
After four flips: 71%, would fail
Four shared successes become candidate failures. Interval: −10.59 to +2.52 pp; the lower bound misses the same requirement.
Exact minimum: four changes
The helper rules out one, two and three changes under the fixed baseline, policy and record count.

Actual v0.17 documentation-example output using synthetic outcomes. Hypothetical edits do not modify the original evidence or official verdict and do not estimate rerun risk.

What to notice Actual output of the v0.17 documentation example, using synthetic outcomes. Four is the exact minimum under this fixed edit model. The hypothetical calculation does not change the original evidence or its official verdict.

This gives a reviewer a concrete explanation of the boundary. It is not a probability that a future rerun will fail. The decision semantics guide contains the small Python example and its supported native exact-match scope.

The search is bounded. If it stops before finding and establishing a minimum, it reports a lower bound rather than claiming an exact answer. It can also establish that no flip is possible under the fixed edit model. A separate score-contribution recipe helps inspect additive score changes while preserving the declared unit weights.

Preserve the earlier assessment when evidence changes

New observations and a correction to old observations need different explanations. The hosted-service guide includes offline examples of both:

Table 2: Preserve the earlier assessment when evidence changes. Data table with columns: Situation, What the example preserves, What the reviewer learns
SituationWhat the example preservesWhat the reviewer learns
Later observations regressAssessment A and its receipt stay unchanged; B has its own evidence and receipt.The later window fails the same policy. That does not erase A's historical pass or explain what caused the change.
An earlier import mapped answers incorrectlyThe original assessment, source export, correction record and verified replacement remain available.The earlier pass relied on a mapping error. The two dependent decisions in the supplied example graph need review.

Scroll horizontally to see every column.

Both examples use 32 synthetic cases and make no service calls. They rehearse the handoff and review history; they are not a fresh service-quality study. Preserving an erroneous assessment does not justify continued reliance on it, and the example does not automatically revoke approvals or discover unknown consumers.

See the report a reviewer receives

The report explains the recorded policy result, puts baseline and candidate scores beside the uncertainty interval, and shows the requirements that determined the verdict. The excerpt below uses the v0.17.0 renderer on the same retained Ministral 3 8B quantization comparison shown in the v0.16 announcement.

Diagram
Actual v0.17.0 report showing exact-match accuracy of 44.75% for the baseline and 45.25% for the candidate over 400 paired cases, a paired 95% interval of minus 1.12 to plus 2.119 percentage points, an explanation of how to read it, and five passed decision checks.

Read the result in the v0.17 report

179 → 181 matched answers
Ministral 3 8B baseline and quantized candidate: 44.75% → 45.25% accuracy on 400 paired cases, a +0.5 pp change.
Paired 95% interval: −1.12 to +2.119 pp
The report explains how to read the interval and the −2 pp lower-bound requirement. The interval includes zero, so it does not demonstrate improvement.
All five requirements pass
The lower bound, record count, interval width and both accuracy floors meet the recorded policy.

Actual v0.17.0 report rendering of the original saved comparison, with no model rerun. These display improvements arrived during v0.16.x. Rendering does not provide independent recipient acceptance or deployment approval.

What to notice Rendered with v0.17.0 from the original saved comparison; no model was rerun. The lower bound clears the agreed −2 pp requirement, but the interval includes zero, so this does not demonstrate improved accuracy. A policy pass is not deployment approval.

Compared with that original v0.16.0 view, the report adds matched-answer counts, a clearer explanation of the policy outcome, and guidance for reading the interval and its calculation. It also keeps a consistent light appearance. These display improvements arrived during v0.16.x and remain in v0.17. The new sensitivity helper and score-contribution recipe produce separate analyses; they are not panels in this report.

Upgrade and check your workflow

Install the release with Python 3.12 or newer:

python -m pip install "invarlock==0.17.0"

Later patch releases: v0.17.1–v0.17.3 raised dependency security floors, corrected answer-availability handling in captured comparisons, and added client review packages. v0.17.4 adds strict Ed25519 signature checks, higher-precision target-loss calculation, a final file-inventory check before publication, and enhanced client review handoffs. The command above preserves the v0.17.0 setup. For new work, follow the maintained runtime setup guide.

Use the matching CPU quickstart to verify retained evidence and produce a report without running a model. Optional dependencies use the same distribution's diagnostics, vision-text and judge extras.

The release also improves failure explanations and optional numerical diagnostics. Diagnostics now cap the intermediate covariance allocation at 128 MiB by default; this is not a total process-memory limit. Wide inputs can use the smaller-Gram method. Diagnostics remain advisory and do not determine the policy verdict. The release record includes dependency and security updates.

What this release still leaves to review

Use preflight to check whether the planned evidence can answer the question, sensitivity to explain a fixed result, and reassessment when observations change. The assumptions belong to each method: complete independent units for planning, a fixed edit model for sensitivity, and an explicit history for corrections. Review judge accuracy and workload relevance separately when they matter to the decision.

Sources

More in Release

Explore nearby related posts.