Skip to content

Review: nobody to review it means the operator, not any agent - #627

Merged
FMXExpress merged 2 commits into
mainfrom
claude/pasclaw-desktop-plan-uapzcp
Nov 5, 2026
Merged

FMXExpress merged 2 commits into
mainfrom
claude/pasclaw-desktop-plan-uapzcp

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

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

TaskReviewers documents 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. 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 (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 task tool (agents, passing TaskReviewers), 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

  • New: team_review_tests TestNobodyToReview covers the lead's own work:
    • the worker's verdict is refused, both through the task tool and directly in the store;
    • the task stays in review;
    • the operator's verdict lands.
  • Updated: two team_board_tests gave 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.
  • Revert-checked: restoring the old condition, or the old message, fails the new test.
  • Docs: docs/teams.md explains the "nobody to review it" case.

2. code_outline, run live (follow-up to #626)

Does a model choose code_outline by itself? This was measured with chat turns through pasclaw serve on 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 no code_outline.

task with code_outline without picked?
"who may give the verdict? file, function, rule" 3 calls 3 calls no: concept grep, then targeted reads
"change the orient budget from 4096 to 6144" 6 calls 6 calls no: grep the literal value
"one line on each unit under src/pkg/kb" 2 calls, 50,546 request bytes, 980 result bytes 3 calls, 86,473, 11,960 yes, first move

Two fixes came out of the run:

  • The symbol parameter's example gave the answer away. It was TaskReviewers, 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.
  • Units with a late header comment had no summary. Three of the four src/pkg/kb units put their header comment after unit 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 Pascal unit/program/library/package line, 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 test passes on FPC 3.2.2.
  • make bench-codenav is unchanged (34/34).
  • The team-board replays are unchanged.
  • Not compiled with Delphi (dcc64 is not available in this environment).

Generated by Claude Code

…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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T07:37:37.673834Z 37d00d1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

2 participants