Review Effort: Tiers by Area, Adapting to Findings
Goal: Astra's reasoning effort is chosen per pass from the reviewer pin, deeper where code is risky and while a chain is still finding serious bugs, cheaper on quiet chains and low-risk areas, with overall spend about flat. Decided with the operator on 2026-11-23.
Why
Today every pass runs at one effort, the model_reasoning_effort = "medium" in ~/.codex/config.toml. The operator wants review to spend effort where it pays: more on kernel and boot, less on long quiet chains. The ledger (.claude/overnight/reviews/manifest.jsonl, 473 round passes over 44 sections since the four-pass schedule began on 2026-11-11) shaped the design:
- Late rounds still find P1s: rounds 26 and later returned a P1 in 32 of 87 passes (37%), more than twice the rate of rounds 1-3 (21 of 122, 17%). The figure is confounded, since only a few long-running sections ever reach round 26, so it supports keeping depth available late, not a claim that late rounds are more productive. A step-down by round number alone would drop depth exactly where bugs are still being found, so a P1 lifts effort back up. (Corrected 2026-11-23: an earlier draft, and the numbers first reported to the operator, called the two rates about the same.)
- Most spend is on our own tooling:
00-infrastructureaverages 12.9 rounds per section (max 67),08-graphics-ui8.4. Kernel and boot have two sections under the current schedule, so the kernel setting starts from the operator's judgment, not data.
Approaches considered
| Approach | Trade-off | Outcome |
|---|---|---|
| A. Fixed by round number (medium for rounds 1-3, low from round 4, risky paths medium) | simplest; ignores that late rounds still find P1s | not chosen |
| B. Fixed tiers by area | puts depth where risk is; still steps down blindly | not chosen |
| C. Tiers by area, effort follows findings | cheap on quiet chains, full depth while P1s appear; a little dispatcher logic | chosen by the operator |
The schedule
Changed the day it landed (answers.md Q54): standard stays at medium after round 3 instead of dropping to low, so the saving on quiet chains in the goal above is given up. No receipt before this section records an effort, so the late-round figures do not show what low would miss.
Every tier runs plan, performance and completion at medium, per the operator's sketch.
| Tier | Paths (a section takes the highest tier any changed file falls in) | Rounds 1-3 | Round 4 onward | After a round with a P1 |
|---|---|---|---|---|
deep |
src/kernel/ (drivers and the gfx engine live here), include/kernel/, src/boot/ |
high | medium | next round high |
risky |
src/desktop/, include/ (outside include/kernel/), src/libc/, src/libs/, src/installer/, user/, src/apps/, Makefile, scripts/build.sh |
medium | medium | medium |
standard |
everything else (scripts/, .claude/, todo/, docs/, gh-pages/, src/shell/) |
medium | medium | next round medium |
- A P1 lifts only the next round. A round with no P1 returns the chain to its round-4 level.
- A
reconciliationpass takes the same level a round would take at that point in the chain. - My call: from round 4, a P1 lifts the next round only. Stepping down after two quiet rounds, as first sketched under C, would keep the deep tier at high through long runs of P2s, which costs more than the operator's "kernel high for the first 3 rounds" intends.
- My call:
include/outsideinclude/kernel/isrisky, because those headers are the ABI user and kernel code share.user/,src/apps/, the top-levelMakefileandscripts/build.shareriskytoo, because the planned review-depth-per-path section already names them among the paths where a missed bug costs most (below). The control-plane scripts staystandard: they are where the long chains run, and their chains were long because of what the reviewer was chasing, not because effort was too low (see Related fix).
How it is built
- The pin owns effort.
.conclave/reviewers.tomlgains a[schedule.effort]table holding the three tiers above: paths, the round 1-3 level, the round-4 level, the level after a P1, and the level for the other passes.review_pin.pyvalidates it (levels from the companion's own list:none, minimal, low, medium, high, xhigh) and gains an--effortquery that answers from the section's manifest history: the rounds since the section started, and the worst finding of the last round. - The dispatcher passes it, Claude never does. The level is chosen only after the review range is settled (the base checks run first and still refuse an unknown base); when the level cannot be read the pass runs with no
--effortand the transcript says why.scripts/codex-dispatch.shasksreview_pin.py --effortand hands the level to the companion. The command Claude types is unchanged, socodex_model_flag_block.pykeeps refusing an effort flag typed by Claude. CLAUDE.md anddocs/infrastructure/codex-invocation-policy.mdchange from "effort is the operator's Codex setting" to "effort is the operator's pin; the dispatcher applies it; the Codex config value is the fallback when the pin has no effort table". - A receipt records its effort and tier when the dispatcher applied a pinned level. Those two fields are absent on a fallback (the level could not be read, an override companion that does not declare
--effort, a grandfathered section, or a pin with no effort table), which then ran at the Codex config's effort. A plan receipt carries theschedulemarker whenever the pin has the table, applied or not. - The companion is vendored and patched. OpenAI's Codex plugin (v1.0.4, Apache-2.0) has no
--effortonadversarial-review, although itstaskcommand and the app-server'sturn/startboth take one. A pinned copy goes into the repo with a small patch that accepts--effortonadversarial-reviewonly and forwards it torunAppServerTurn; the nativereviewcommand refuses it, sincereview/startcannot apply it.codex-dispatch.shalready honoursCODEX_COMPANION_PATH, and its default moves to the vendored copy. The import gets rows insrc/libs/PROVENANCE.mdandCREDITS.md, a Claude read and an Astra pass, the same as any imported code. - Upstream. A pull request on OpenAI's plugin repository adds
--efforttoadversarial-review(operator approved). The vendored copy is not dropped when one merges:PATCHES.mdlists other fixes that change what a review sees (a worktree whose name ends in a space, untracked files with odd names, a FIFO in the checkout, a mid-turn app-server exit), so the effort patch alone is retired then, and the stock plugin replaces the copy only when its regressions pass against it. - Sections in flight keep their rules. The new dispatcher marks each plan receipt
schedule: effort; a section whose earliest plan receipt has no marker runs every pass, of every kind, at the Codex config value to the end, so a section the run plans before this lands keeps the old rules too. That includes the section that builds this change, so the first live check is the next section started after it ships.
Fit with the other planned review changes
Checked 2026-11-23 against every open review section in the automation-hardening TODO:
- Review depth per path planned its own
deep_pathslist. The pin keeps ONE path classification: that section's deep set is every tier abovestandardin[schedule.effort], and its item is reworded to say so. Its pinned threat model for host tooling is the same work as this design's Related fix, so that fix is delivered there, not here. - Receipts written atomically removes the tolerant manifest reader. Two parser call sites in
review_pin.pyread the manifest with the unreadable-line rule,newest_receiptsandsection_chain, so that change has to move both. - A repeated finding dispatches a redesign pass adds a pass kind. Any kind other than
roundandreconciliationtakes thepasseslevel and does not move the chain. - Lens yield is measured and Review attempts are bound end to end read and bind the same receipts; the
effortandtierfields sit beside theirs.
Measuring it
Two weeks after the first section starts on the new schedule (review date 2026-12-07), one ledger query compares rounds per section and late-round P1 rate against the 2026-11-23 baseline above, split by tier and effort. Its receipts are the first that record an effort, so they are the baseline for any later proposal to lower one. This is one filed item, not a dashboard.
Related fix, delivered by review depth per path
Tooling chains run long because the reviewer chases contrived bypasses of heuristic gates: the section-commit gate test wiring ran 22 rounds on them. Every pass on host tooling quotes a pinned threat model. That is a prompt change, not an effort change, and the review-depth-per-path section already owns it.
Non-goals
- No per-lens effort and no change of model: Astra stays the only reviewer.
- No change to
blocking,pass_capor the lenses. - No effort choice by Claude at any point.