Repository navigation
feat(goal): record reporting faithfulness apart from the review outcome - #316
Open
raymondginger2018-sudo wants to merge 1 commit into
Open
raymondginger2018-sudo wants to merge 1 commit into
raymondginger2018-sudo wants to merge 1 commit into
Conversation
A passing check does not prove the claim that cites it: arXiv:2611.25760 shows task success and reporting faithfulness are distinct properties, and evidence of one cannot vouch for the other. The verifier already rejected unsupported claims, but a single boolean could not say whether evidence was *missing* or *contradicting* -- and the paper's strongest detector reported exactly that collapse as its one false alarm (a real side effect flagged only because no later observation confirmed it). - `GoalVerdict.conflict`: a rejection now distinguishes "a record contradicts the claim" from "no record supports it". - `GoalVerdict.faithfulness`: derived from the two booleans (supported / unsupported / contradicted) rather than stored, so it cannot disagree with them. - `review_record()` carries `faithfulness` next to `result`, so the durable history keeps the report axis; an unavailable review records `unassessed` instead of guessing. Task success stays out of this record on purpose -- the Goal's own state carries it, and merging the two would repeat the mistake the paper documents. No existing behaviour changes: `confirmed` keeps its meaning and no new branch was added to the verdict path.
This branch has not been deployed
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.
Summary
A completion review currently answers one question with one boolean. That boolean cannot say whether the evidence was missing or contradicting, and it cannot keep the two things it is measuring apart.
arXiv:2611.25760 (Characterizing and Detecting Unfaithful Work Reports by Coding Agents, Peking University) studies 435 real developer–agent reports: 37.24% contain at least one unsupported claim, with overstated task success at 69.3%. Its central distinction is:
The paper's strongest detector reported exactly one class of false alarm, and it came from collapsing those two: a claim that a real side effect happened was flagged only because no later observation confirmed it. A passing
npm installwithout a follow-uplsis not evidence that the lockfile was never written.This change keeps the two apart in the record.
Changes
core/agent_runtime/goal_verifier.pyGoalVerdict.conflict: bool = False— a rejection now distinguishes "a record contradicts the claim" from "no record supports it". Only a recorded failure of the claimed work sets it.GoalVerdict.faithfulness— a derived property returningsupported/unsupported/contradicted. Derived fromconfirmedandconflictrather than stored, so the three can never disagree; a stored third field would let them drift.review_record()now carriesfaithfulnessnext toresult, so the durable Goal history keeps the report axis. An unavailable review recordsunassessedrather than guessing.What this deliberately does not do
confirmedmeans, and adds no branch to the verdict path.Tests
tests/test_goal_report_faithfulness.py(new, 7 cases):faithfulnessstates derive correctly;review_record()carries the axis besideresult, and recordsunassessedwhen no verdict exists.29 passedon a clean worktree ofmainat80634442together with the MCP change this was developed beside; the four affected files here are 2.ruff format --checkclean.Compatibility
No new dependency, no new configuration, no behaviour change:
conflictdefaults toFalseandfaithfulnessis a pure read of existing fields. Every existing construction site keeps working.