R13
What to build¶
Assessment rejects stale paired comparison evidence from a different run with matching descriptive identities.
Source and evidence¶
Repository scientific/architectural review, snapshot 86c8517, item R13.
Classification: confirmed defect; high severity.
_compatible_comparison_document() checks descriptive report identities, not
the actual report contents that produced the comparison. Two distinct runs can
share those identities while producing opposite results. The confidence rule
therefore accepts a stale comparison and can pass a currently regressed candidate.
Assessment artifact digests are calculated after this decision; they do not
establish that the supplied comparison derives from the supplied reports.
The retained Assessment linkage probe runs the same
candidate twice under the same candidate and dataset identities. A stateful
candidate produces paired intervals [1, 1] and [-1, -1] against a constant
baseline. The report bytes differ. Assessing the second run with its own comparison
fails the 0.5 improvement gate, while using the first run's comparison passes it.
Both comparison documents come from actual paired evaluations and resampling;
the probe does not forge a comparison record.
Acceptance criteria¶
- [ ] The retained same-identity +1/-1 run fixture cannot pass the second run using the first run's comparison.
- [ ] Both source-report content digests are carried and verified before confidence policy evaluation.
- [ ] Valid matched evidence round trips and passes/fails as before; missing or legacy unbound evidence is unavailable for confidence claims.
- [ ] Tampering, changed timestamps/content and mismatched baseline/candidate digests have safe deterministic diagnostics.
- [ ] Preserve Consumer-owned meaning, payload-free evidence, disabled optional-import isolation, safe diagnostics and the non-relaxable Safety Floor.
- [ ] Run the narrowest observable contract, then applicable committed Make gates. Record every command and outcome; update specifications/compatibility evidence for changed public or wire contracts. Run native Collector verification for changed Collector assets and build for packaging changes.
Design guidance¶
Add immutable content binding alongside descriptive compatibility. Version the comparison envelope and define legacy-read behavior without granting unbound evidence a verified status. Canonical hashing must use the same report publication bytes.
Keep prefactoring narrow and verifiable in this slice. Reuse established owners and structural interfaces; introduce a pattern only when it clarifies a real responsibility or variation point. Do not add consumer vocabulary or private payloads to platform code or evidence. Mocked/local results must not claim hosted, production, accelerator or release qualification.
Blocked by¶
None (can start immediately). Shared-area coordination is useful, but no other review fix is a genuine prerequisite for this slice.
Verification scope¶
Convert the described counterexample or investigation oracle into an observable test at the lowest suitable public boundary. Prefer bounded operation-count or deterministic interleaving evidence to flaky timing assertions; timing guarantees need a declared tolerance and independently owned cleanup. This ticket authorizes remediation/research, not publication or deployment.