Repository navigation
fix(runtime): record Jev verdicts as evidence instead of failing the run (RR3) - #117
Merged
Merged
Conversation
…run (RR3) Six policy exits in the run loop turned a reviewer's opinion into a failed run: two RED verdicts exhausting the correction allowance (final and tool phases), a reviewer Unavailable verdict (timeout or malformed reply, both phases), and the two cases where the task or evidence exceeded the exact review bound. Nine real runs on 2026-09-19/20 ended this way with a finished answer already in the transcript, and the operator turned the reviewer off. A verdict is now evidence, not the outcome. RED still redirects the run while CheckpointContext::repair() has an attempt left; once both are spent the verdicts stay on record (CheckpointReviewed events and the [JEV RED] marker on retained tool results) and the run completes with the candidate. An unobtainable review is recorded as Unavailable and the run continues. The 32-request limit and cost admission remain run failures because they are harness bounds, not disagreements. Tests: a_final_candidate_rejected_twice_completes_with_the_verdicts_on_record (three InsufficientEvidence verdicts, Completed, third candidate stands); the repeated-RED loop case asserts 32 durable Contradicted verdicts and no "correction attempts" failure; the timeout and oversized-bound tests now assert completion.
This was referenced Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RR3 of
docs/plans/run-reliability.md; audit finding R05. Based onmain(#107, #108, #116 merged).Behaviour
Six
RunFailureKind::Policyexits in the run loop turned a reviewer's opinion into a failed run: two RED verdicts exhausting the correction allowance (final and tool phases), a reviewerUnavailableverdict (timeout / malformed reply, both phases), and the two "exceeded the exact review bound" cases. Nine real runs on 2026-09-19/20 ended this way with a finished answer already in the transcript; the operator turned Jev off.Now a verdict is evidence, not the outcome:
CheckpointContext::repair()has an attempt left (unchanged: two attempts).CheckpointReviewedevents;[JEV RED …]marker on retained tool results) and the run completes with the candidate.Unavailableand the run continues.No protocol change:
CheckpointReviewedalready carries the outcome; headless prints it on stderr as before.Verification
a_final_candidate_rejected_twice_completes_with_the_verdicts_on_record: threeInsufficientEvidenceverdicts, runCompleted, third candidate stands.checkpoint_request_and_repair_limits_stop_repeated_tool_loopsnow asserts 32 durableContradictedverdicts and no "correction attempts" failure for an endless RED tool loop (the request limit still ends it).cargo test --workspace --exclude xtaskgreen (qq-core 688, qq 169, qq-tui 266); clippy-D warningsand fmt clean. (xtask'sworkspace_version_is_not_behind_the_newest_release_tagfails locally on every branch incl.main:v0.1.2is tagged while Cargo.toml says 0.1.1 — pre-existing.)Docs
architecture.md§ Jev assessment bounds updated; ledger entry.