Repository navigation
Review: nobody to review it means the operator, not any agent - #627
Merged
Merged
Conversation
…m the run The question the bench could not answer -- does a model choose the tool by itself -- measured with chat turns through `pasclaw serve` on the relay, against a copy of this repository. The decisions came from fresh subagents that saw only the model's request: system prompt, tool list, conversation. They were told nothing about code_outline or the measurement. A control arm ran the same three tasks on main's binary, which has no code_outline. - "Who may give the verdict?": grep by concept, then targeted reads, in both arms. Symbol mode needs a name the model did not have yet. - "Change the orient budget from 4096 to 6144": grep the literal value, in both arms. - "One line on each unit under src/pkg/kb": code_outline, picked unprompted, as the first move. After the fix below it took 2 calls against the control's 3: 50,546 request bytes against 86,473, and 980 result bytes against 11,960. Fixed from the run: - The symbol parameter's example was TaskReviewers, the run's first answer, and the first trial read it off the schema (discarded and rerun). The description is generic now, and a test keeps real names out of the schema. - A Pascal unit whose header comment follows "unit X;" (3 of 4 in src/pkg/kb) had no purpose line, and the model read each header to fill the gap. The summary reader now steps over a unit/program/library/ package line. Both fixes revert-checked. make test passes on FPC 3.2.2; bench-codenav is unchanged (34/34). bench/codenav/README.md has the run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KYD1zZPD7GuM8pF1btwi2U
TaskReviewers documents an empty list as "no agent can give the verdict; it waits for the operator", and Needs you shows such a task as the operator's call. But VerdictTask checked the list only when it was non-empty, so an empty list let through any agent other than the submitter and the owner. Concretely, when a lead (no parent) submits its own task on a board with no review.by, its own worker could accept it. The store now fails closed: an agent's verdict needs a non-empty reviewer list that names it, and the operator can always give one. The refusal says no agent reviews the work and the verdict is in Needs you. Only two callers exist -- the desktop route (operator) and the task tool (agents, passing TaskReviewers) -- so nothing legitimate relied on the old reading. Found during the code_outline live run, where two separate model stand-ins reading the code flagged it independently. Tests: team_review_tests TestNobodyToReview (the lead's own work: the worker refused through the task tool and the store, the task still in review, the operator's verdict lands). Two team_board_tests that passed an empty list for an agent now pass the real reviewer, and assert that the verdict landed. Revert-checked: the old condition and the old message each fail the new test. make test passes on FPC 3.2.2; the team-board replays are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KYD1zZPD7GuM8pF1btwi2U
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Two commits: the fix you asked for, and the code_outline live-run follow-up, which was pushed just after #626 merged and so isn't in main yet.
1. Nobody to review it means the operator, not any agent
TaskReviewersdocuments an empty reviewer list as "no agent can give the verdict; it waits for the operator", and Needs you shows such a task as the operator's call. ButVerdictTaskchecked the list only when it was non-empty, so an empty list let through any agent other than the submitter and the owner.Concretely: when a lead (an agent with no parent) submits its own task on a board without
review.by, the lead's own worker could accept it.The fix: the store now fails closed. An agent's verdict needs a non-empty reviewer list that names it, and the operator can always give one. The refusal says no agent reviews the work and the verdict is in Needs you.
Callers: only two exist, the desktop route (operator) and the
tasktool (agents, passingTaskReviewers), so nothing legitimate relied on the old reading.It was found during the code_outline live run, where two separate model stand-ins reading the code flagged it independently.
Tests
team_review_testsTestNobodyToReviewcovers the lead's own work:tasktool and directly in the store;team_board_testsgave an agent verdict with an empty list. They now pass the real reviewer and assert the verdict landed, since one of them would otherwise have kept passing for the wrong reason.docs/teams.mdexplains the "nobody to review it" case.2. code_outline, run live (follow-up to #626)
Does a model choose
code_outlineby itself? This was measured with chat turns throughpasclaw serveon the relay, against a copy of this repo. The model's decisions came from fresh subagents that saw only its request (system prompt, tool list, conversation) and were told nothing about the tool or the measurement. A control arm ran the same tasks on main's binary, which has nocode_outline.Two fixes came out of the run:
symbolparameter's example gave the answer away. It wasTaskReviewers, the run's first answer, and the first trial read it off the schema; that trial was discarded and rerun. The description is generic now, and a test keeps real names out of the schema.src/pkg/kbunits put their header comment afterunit X;, so the outline gave them no purpose line, and the model spent a call reading each header. The summary reader now steps over a Pascalunit/program/library/packageline, which is what got the run down to 2 calls.Both fixes were revert-checked. The full write-up is in
bench/codenav/README.md.Verification
make testpasses on FPC 3.2.2.make bench-codenavis unchanged (34/34).Generated by Claude Code