Skip to content

fix(runtime): record Jev verdicts as evidence instead of failing the run (RR3) - #117

Merged
lg2m merged 1 commit into
mainfrom
fix/rr3-jev-verdict-outcome
Sep 22, 2026
Merged

lg2m merged 1 commit into
mainfrom
fix/rr3-jev-verdict-outcome

Conversation

@lg2m

@lg2m lg2m commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

RR3 of docs/plans/run-reliability.md; audit finding R05. Based on main (#107, #108, #116 merged).

Behaviour

Six RunFailureKind::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 / 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:

  • RED still redirects the run while CheckpointContext::repair() has an attempt left (unchanged: two attempts).
  • Once both are spent, later RED verdicts stay on record (CheckpointReviewed events; [JEV RED …] marker on retained tool results) and the run completes with the candidate.
  • An unobtainable review (timeout, malformed reply, oversized task/evidence) is recorded as Unavailable and the run continues.
  • The 32-request limit and cost admission remain run failures — those are harness bounds, not disagreements.

No protocol change: CheckpointReviewed already carries the outcome; headless prints it on stderr as before.

Verification

  • New a_final_candidate_rejected_twice_completes_with_the_verdicts_on_record: three InsufficientEvidence verdicts, run Completed, third candidate stands.
  • checkpoint_request_and_repair_limits_stop_repeated_tool_loops now asserts 32 durable Contradicted verdicts and no "correction attempts" failure for an endless RED tool loop (the request limit still ends it).
  • Timeout and oversized-bound tests updated to assert completion.
  • cargo test --workspace --exclude xtask green (qq-core 688, qq 169, qq-tui 266); clippy -D warnings and fmt clean. (xtask's workspace_version_is_not_behind_the_newest_release_tag fails locally on every branch incl. main: v0.1.2 is tagged while Cargo.toml says 0.1.1 — pre-existing.)

Docs

architecture.md § Jev assessment bounds updated; ledger entry.

…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.
@lg2m
lg2m merged commit 876ec32 into main Sep 22, 2026
4 checks passed
@lg2m
lg2m deleted the fix/rr3-jev-verdict-outcome branch September 22, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant