Matched fixture contract verification
Goal: Make all 30 matched tasks answerable and score their requested outcomes without incidental English phrases or source formatting.
Design: Both arms receive the same explicit JSON schemas for source facts and scope refusal, without hidden wording requirements. Compare typed facts and Python expression syntax, never execute model output. Source facts require authorized, exact full-source receipts and an unchanged workspace; preserve V2's original error-word workflow flags separately. Git answers require the requested subject and a valid prefix of the actual commit hash, backed by real history tools. Bug fixes use protected behavioral tests, with no literal return 0 requirement. The third investigation source contains an explicit POST route registration.
Native answer provenance: The existing provider observer captures the whole final native root response, bound to its latest generation record, turn, prompt hash and delivered prefix. Summary, child, tool-only, legacy-shim, incomplete-stream and failed responses cannot reuse it. Genuine runtime annotations do not change physical answer grading, including when a plan is incomplete. Model-authored trailing text stays inside the captured body and fails strict JSON parsing. If production replaces the body, use the delivered text rather than reviving the original model answer. Workflow and safety gates remain independent and mandatory.
Recovery: Establish the actual earlier and current file versions. Immutable test_* probes perform real guarded shell edits that fail without mutation for stale versions or obsolete snippets; the missing-test case executes its actual obsolete command. Require the declared command's real exit code and marker, a subsequent full read of the current target, and successful verification with that fixture's named test command. Independent protected final tests and scope checks still apply. The stale case also tests preservation of concurrent configuration through a callable supported by the protected verifier. This demonstrates guarded shell recovery, not a new native CAS API for V2.
Scope: The frozen fixtures, shared verifier, existing provider observer, regression tests and this documentation. Product APIs, model selection, parent-held permissions, statistics and release thresholds stay unchanged. Phrase aliases and a model judge are unnecessary.
- [x] Reproduce the original false negatives from retained six-row evidence; preserve their outcomes and accounting.
- [x] Add failing tests for structured source facts, wrong facts, ambiguous JSON, exact types, file edits and missing read evidence.
- [x] Implement the shared check, update its existing caller test, and supply the missing route binding.
- [x] Initial focused regressions: 143 associated tests passed (4 privileged-runner skips). Follow-up review of all nine real read receipts found a physical/workflow distinction missed in the initial early review: V2 incorrectly marks source containing
ValueErrorunsuccessful. Paid admission stopped before any successor model calls. - [x] Replay the captured legacy receipt and native structured receipts; reject incomplete, denied and inconsistent source evidence. The physical-read repair passed independent review before its freeze.
- [x] Audit all 30 prompt/oracle contracts before paid admission. Correct the remaining Git, conditional-fix, scope-refusal and recovery defects, plus the native annotation boundary; preserve every earlier outcome and financial hold.
- [x] Run both original producer ABIs through the real actor boundary for all three recovery episodes and protected conditional-fix regressions: six episodes and both protected fixes passed in 9.256 seconds without provider calls.
- [ ] Complete independent implementation review and focused regressions for the complete repair before freezing.
- [ ] Sign a new candidate, run all final checks against that SHA, then start fresh cohorts. Old rows cannot be rescored into release evidence.
All seven empirical requirements and all four paid gates remain pending. Model calls remain stopped during this repair; no publication is authorized.