Skip to content

feat(roadmap): the verifier reads the repository and repairs a plan twice - #3710

Merged
dan-petty merged 2 commits into
mainfrom
feat/3039-verifier-reads-repo-two-rounds
Nov 6, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/3039-verifier-reads-repo-two-rounds

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The verification pass of the stage job now runs as an agent with the read-only tools of the planner, so it can check paths, premises and verify commands against the tree. A finding of any return type, now with task_order and verify_form, sends the plan back to the planner for up to two repair rounds, and the comment lists every finding of each round. The request fits the window of the task verification and leaves room for the tools. The eval runs the same agent and reports the recall of the blocker and major defects against the floor of 90 percent.

Closes #3039

Change: openspec/changes/archive/2026-11-06-3039-verifier-reads-repo-two-rounds/
Elapsed: 4.95s

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Measure of criterion 2: not run, so this pull request stays a draft.

  • The limit for this work is one run of at most 3 M input tokens with the configured verification model. The dry run (uv run devops roadmap eval verify --dry-run) lists 44 agent runs and gives no token count.
  • Lower bound: the first request of each case alone holds 430,276 tokens for the 42 cases that can run (largest case 52,912). Each tool call after it sends all earlier messages again.
  • Sample: one case on this code, 2396-the-q4-0-ollama-16gib-tier, a case with a small request, with the configured verification model. It made 27 model requests and 18 tool calls, and used 578,119 input tokens and 16,121 output tokens in 345 s. The 3 M limit allows a mean of about 68,000 input tokens for each case.
  • The sample is one case, so the total is an estimate: 44 x 578,119 is about 25 M input tokens and about 4 hours. That is more than the limit, so the set did not run.
  • The recall of the blocker and major defects on this code is not measured, so criterion 2 is not met until a person allows the run. tasks.md holds this as a pending item.
  • The score before the change is not measured too. A report that another session stored (20261105T203919Z.json under .data/roadmap_eval/verify/ of the main checkout) gives claude-sonnet-5-5 65 of 172 blocker and major defects (38%), with 2 failed cases. I did not run it and I did not confirm the commit it ran on, so it is no "before" score of this change. It does show how far the floor of 90% can be.
  • Recommendation: lower the request budget of a review run first (CONST_ROADMAP_STAGE_MAX_REQUESTS is 250), or allow one run with a token cap. A job can pay for three such reviews on one plan.

Findings of the two reviewers. I verified each one against the code. All 16 hold, and I fixed each at its cause. None is wrong.

Finding Result
The request limit ignores the reply share of the hook Fixed. The limit is tool_stop(window) less the reserve, counted as the hook counts it and with the instructions. A test holds that a full request at window 65536 gets the nine tools
Findings of an earlier round are lost Fixed. The comment lists each finding of each round. The planner gets each open finding of the round. Only the last review decides plan/needs-fix, because it judges the last plan
A quote from a tool read cannot gate Fixed. A quote may come from a tool answer of the run. A placeholder still needs a quote in the request, because a placeholder in another file is no defect of the plan
The verifier takes the window of stage Fixed in the job and in the eval. The spec says the window of the task verification
The eval gives read_spec no OpenSpec Fixed, with a test
Criterion 2 has no measure (two findings) Open, see above. The Pending a person bullet stays because the run needs a spend above the limit
--model drops the rest of the task Fixed, with a test
_stopped and the "plan run" texts (two findings) Fixed. A verification run has its own message, and the comment names the planner and the review
The refine judge shares the prompt Fixed. The tool rules are in roadmap_stage_verify_tools.md, which only an agent run loads. JUDGE_OPEN_TYPES leaves out task_order and verify_form, because a proposal has no task groups. The roadmap-refine spec states this
The main spec of the open finding, the dry run spec, the tuicr bullet and the line in design.md Fixed
The old path with no tools Removed from plan_stage and evaluate_cases. The plain verify stays for the refine judge

Other points.

Tests: this is a feature, so the new tests came first and each fails on the base. No fail-to-pass run applies.

Full CI: flock .../ci.lock uv run devops ci on dd13e15e (rebased on be8d18ad): 22 of 25 checks pass, including lint, typecheck, docs, openspec, security and test-tree. Three fail, and none comes from this change.

@dan-petty
dan-petty force-pushed the feat/3039-verifier-reads-repo-two-rounds branch from dd13e15 to 5895d8e Compare November 6, 2026 01:01
@dan-petty

Copy link
Copy Markdown
Owner Author

Rebased on 6a88012f. The oauthlib upgrade of #3709 is in main now, so audit passes again (uv run devops ci audit exits 0). All 23 checks of this pull request pass on 5895d8e6.

The pull request stays a draft. The recall of the blocker and major defects is not measured (see the first comment), and criterion 2 of #3039 is not met until a person allows the run of about 25 M input tokens.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 01:18
@dan-petty
dan-petty merged commit c1191e2 into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the feat/3039-verifier-reads-repo-two-rounds branch November 6, 2026 01:18
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.64.0](v0.63.2...v0.64.0)
(2026-11-06)


### Features

* **roadmap:** let the step guard allow a recorded test removal
([#3715](#3715))
([f025406](f025406))
* **roadmap:** require the eval replay for a stage check change
([#3716](#3716))
([76e8301](76e8301))
* **roadmap:** restart a suspended job on a comment of a person
([#3699](#3699))
([be8d18a](be8d18a))
* **roadmap:** the verifier reads the repository and repairs a plan
twice ([#3710](#3710))
([c1191e2](c1191e2))
* **service:** chart the Service and filter the CLI dashboard by job
([#3704](#3704))
([fecc6fb](fecc6fb))


### Bug Fixes

* **deps:** upgrade oauthlib to fix GHSA-3jp2-3mrg-2vxc
([#3709](#3709))
([6a88012](6a88012)),
closes [#3705](#3705)
* **k8s:** hold the copy source until the destination ends
([#3712](#3712))
([c7c5556](c7c5556)),
closes [#3695](#3695)
* **k8s:** the gateway stops using the 16 GiB tier
([#3697](#3697))
([842effc](842effc))
* **roadmap:** keep angle-bracket text of a code span in refine
([#3711](#3711))
([396962e](396962e))
* **roadmap:** P1 items pass the planned limit
([#3698](#3698))
([63589f0](63589f0)),
closes [#3692](#3692)
* **roadmap:** refine blocks an item with an open dependency
([#3696](#3696))
([89fbb08](89fbb08))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): an independent verifier refutes a plan before the draft pull request opens

1 participant