Skip to content

chore(control-skill): record the finding-prover call count in the review feature's drive - #16676

Merged
kyle-sexton merged 2 commits into
mainfrom
chore/16387-review-feature-prover-budget
Nov 17, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
chore/16387-review-feature-prover-budget

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #16387

Summary

A pr-verify capture of /review:fanout now publishes how many review:finding-prover agents the driven session dispatched, which run 3 of #16387 needs.

Fix

The review feature's ## Drive (.claude/skills/control-claude-code-plugins/features/review/README.md) ends with Budget: finding_prover_agent_calls_count | logs, preceded by one sentence that defines the count: tool_use blocks in the driven session's logs stream-json whose name is Agent and whose input.subagent_type is review:finding-prover.

No code computes the count: drive records a budget's value as the driving model measures it from the named source (control-skill.md "Drive steps"), so the number is the model's count under that written rule. report.public.json keeps budgets (drive evidence.md), so the number reaches the capture artifact when the public report passes the Mask post-check. The Budget line sits in the whole review module's Drive section, so parts other than fanout record it too, normally as 0.

Verification

  • check-map.sh on the control skill: no findings.
  • check-map.test.sh: 87 cases, 0 failed.
  • Not verified: that this repository's Mask resolves inside a capture, which the public report needs.

Related

Remaining

  • The capture key is out of credit, so every recent capture records blocked; rotating or funding it is the owner's action.
  • Run 3: after this merges, a real plugins/review/skills/*/SKILL.md change (one that leaves docs/conventions/review.yaml alone) must trigger a capture; the count is then read from report.public.json budgets in the capture artifact.
  • Run 2 (reproduce_findings: require) cannot be set from a pull request head; a window on main is the owner's decision.
  • Run 1 (/architecture:improve-layout candidates) has no guaranteed text channel in the artifact.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 16, 2026 19:44
…iew feature's drive

Add a Budget line to the review feature's Drive so a pr-verify capture of
/review:fanout reports, in report.public.json budgets, how many Agent tool
calls with subagent_type review:finding-prover the driven session made. A
prose sentence above it defines the count, since drive records a budget's
value as the driving model measures it from the named source.

Refs: #16387

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 00:49
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T00:50:55.331813Z 7c7976e Draft marked ready
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7c7976ed90aa5e0aea371773ca56095294540525: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16676

No security issues found.

Scope: I read the whole change to the one file in the diff, .claude/skills/control-claude-code-plugins/features/review/README.md. It matches the trusted path glob **/.claude/**, so it got the extra scrutiny that path requires.

What changed: The review feature's ## Drive section gains two things:

  • a sentence that defines finding_prover_agent_calls_count as the number of tool_use blocks in the driven session's logs stream-json where name is Agent and input.subagent_type is review:finding-prover;
  • the line Budget: finding_prover_agent_calls_count | logs.

What I checked:

  • Instruction surface: The change adds a measurement rule and removes, narrows or softens no existing instruction. The instruction-surface lens therefore does not apply, and I did not need the protected-class register.
  • Trust controls: The change touches none: not the trusted-trigger check, token scope, kill switch, merge holds, the signer or resolve-config, or any action under .github/actions/. It widens nothing.
  • Data exposure: The new budget value is an integer count that the driving model takes from the session log. Publishing it in report.public.json budgets, after the Mask post-check, exposes no token, secret or session content. The count only says how many prover agents ran.
  • Untrusted-text path: The drive already read the logs source. The new line only asks the model to count one kind of block in it, so no new untrusted input reaches a credentialed lane.
  • Plugin manifests: No plugin.json or marketplace.json changed.
  • PR context: It contains no embedded directives aimed at the review lane.

Spend (not a finding, not a hold): None beyond what the drive already spends. Run 3 of #16387 will use a pr-verify capture, which spends prepaid API credit.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 7c7976ed90aa5e0aea371773ca56095294540525: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16676

Scope. One file changed: .claude/skills/control-claude-code-plugins/features/review/README.md. It adds a sentence defining finding_prover_agent_calls_count, followed by Budget: finding_prover_agent_calls_count | logs. I read the whole change. This is a trusted path (**/.claude/**), so I also read what it depends on.

What I checked

  • Budget line format. It follows the contract in control-skill.md:
    • The line ends the ## Drive section.
    • It is not a list item.
    • The measure name uses only letters, digits and _, and ends in count, so it carries its unit.
    • No threshold is written in the feature file.
  • The logs source. It is a valid ## Capture kind (control-skill.md#L38). The control skill names it as the kind an unattended run uses.
  • The count rule. It matches how the agent is dispatched. findings-normalization.md#L82 says the proof stage dispatches one review:finding-prover agent per row, and line 103 says it does so from the main thread. Each dispatch therefore appears as an Agent tool_use block in the session's logs stream-json.
  • No regression for other parts. Other parts of the review module also record the budget and will normally report 0. The PR description acknowledges this.

Not verified. The check-map.sh and check-map.test.sh results and the Mask behavior in the PR description are the author's claims. I had no shell, so I did not run them.

Closing issue. None. The PR only refers to #16387 (Refs:) and closes no issue, so there are no acceptance criteria to check.

Prior findings. None. This is the first review of this PR, not a blocking-only review.

Embedded text. None found in the PR context.

Spend. None. The change adds one budget measurement to an existing drive. It starts no new runs and no billed resource.

No findings.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit dee36cd Nov 17, 2026
80 checks passed
@kyle-sexton
kyle-sexton deleted the chore/16387-review-feature-prover-budget branch November 17, 2026 01:06
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant