R11 - Overlap of the code and security reviews
Purpose: How much the code review and the security review of one
pull request overlap, what each catches that the other misses, and
which review lanes follow from that. Measured over every reviewed pull
request of campaigns I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40: 34 pull requests and
93 posted reviews, from 2026-11-08 to 2026-11-29. The code was read at
each finding’s head commit. The base is main at 97fdeb34 and the
train of I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 at 7c6a7f2c. Issue I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md., parent I816I816 (closed): Harness experiments: review lanes, cheaper models, and a campaign efficiency baselineTracks a set of experiments on the agent harness.. The data and the
scripts are on the kept branch data/818-review-findings.
Requirements: none. This note is about the agent harness, not the
product. Its recommendations change .claude/agents/ and
docs/agents/, which a maintainer decision covers, and leave every
SEC* control unchanged.
Summary
Section titled “Summary”- Overlap. On the 25 pull requests with both reviews, the two
reviewers posted 347 findings, and 54 pairs are the same defect. Of
the acted-on findings (rated
must-fixorfold, then fixed or deferred), the code reviewer had 107 and the security reviewer 122, and 44 are shared: 185 defects seen. - Must-fix defects. 25 defects of
must-fixweight on those pull requests, and one more on a pull request with only a code review. Both reviewers found 13. The code reviewer alone found 7, five of them specs or documents the change left behind, and the security reviewer alone 5, all fail-closed, audit or control defects. Of the 13 shared, both ratedmust-fixin 3. - What both missed. A capture-recapture estimate puts the defects
of
must-fixweight at about 28, so 2 or 3 were missed, and the acted-on ones at about 290, so about 100 were missed. The second figure is weak. The defects known to have passed both reviews are flaky tests that CI found later, 3 of them. - Where code findings come from. The
code-reviewskill’s fork ran in each of the 37 code reviewer agents’ transcripts and returned a result every time. 59 to 82% of the posted code findings, and 17 of its 20must-fixfindings, are at a location the fork also reported. - Cost. A security review cost a median of 648k input-equivalent tokens and 12 minutes per pull request, and a code review 308k and 6 minutes, its fork included.
- Lanes. The data splits into specs and evidence, boundaries and fail-closed, correctness and concurrency, and tests. Rules and links are a fifth, mechanical one. A synthesis step merges the duplicates and settles the rating.
Method
Section titled “Method”- Reviews. The pull requests come from the ledgers in
.scratch/campaign/<n>/and the train PR lists.gh apiread every review and review comment of each pull request. A review is a code review or a security review by its first line (Code review, round <k>,Security review, round <k>).bin/list_reviews.pylists 93: 54 code reviews and 39 security reviews. The 54 include the code rounds 3 and 4 of PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory., which were posted as comments on the pull request, not as reviews, and I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10’s findings in numbered lists count as findings. R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding. counts the same 54 code and 39 security reviews. R10-campaign-efficiencyR10-campaign-efficiency: Campaign efficiencyWhere the dollars, tokens and minutes of a campaign go, why campaign I792 cost about twice as much per pull request as I720, why three of I792's five waves picked two issues, and which harness changes would cut cost o… counts 41 security reviews, as it counts PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet.’s security round 3, posted twice, twice, and it adds PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.F12by hand, so it also counts 6 codemust-fixfindings in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2. The code reviewer ran on Opus 5.5. The security reviewer ran on Fable 5.1 in I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10 and I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, on Fable 5.2 in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40. PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s round 2 security review names Opus 5.5, but its transcript shows Fable 5.2. - Findings.
bin/parse_findings.pycut each review into findings by their header,F<k> · <rating> · <file:line>for code andF<k> · <severity> · <rating> · <file:line>for security, and the numbered lists of I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10. Each finding has its pull request, round, head, reviewer, number, rating, severity and location. Numbering slips were fixed by hand: PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions.’s round 2 restarted atF1and becameF11andF12, and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s untitled round 3F1becameF6(bin/join.py). - Annotation. One line per finding in
annot.txtgives its class, its outcome and its fix commit, read from the next review’s “Earlier findings” lines, the fix commits and the deferred issues. The classes arefail-closed,guest-input,audit,sec-control,correctness,concurrency,flaky-test,test-gap,spec-drift,evidence,prose,ruleanddesign. They are grouped as security (the first four), correctness (the next three), test, docs (spec-drift,evidence,prose) and other. The outcomes are fixed, deferred (an issue or a later round took it), left (no one acted) and disputed. A finding is valid when it was fixed or deferred, and acted on when it is ratedmust-fixorfoldand valid. - Duplicates. A code finding and a security finding are a pair when they name the same
defect at the same code location, so that one fix resolves both. A
finding about a related defect next to it isn’t a pair: PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it. code
F3and securityF6both read the stale-notice check insockets.go, but one asks for a check of each notice’s owner and generation and the other for a bound on staleHeldnotices, so either fix alone leaves the other open, PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… codeF1and securityF1two different spec gaps, and PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet. codeF18and securityF11the same file for different reasons. Pairs are within one pull request, across rounds. The rule is a judgment, and the table under “Matched pairs” lists every pair for checking. - Left out. Some security findings are left out of every count, table and file here, as the task asked.
- Capture-recapture. The Lincoln-Petersen estimate and Chapman’s
form,
(n1+1)(n2+1)/(m+1) - 1, over the two reviewers as two samples (bin/stats.py). In the rows by class group, a shared defect counts under the code finding’s class on both sides, as “Who found what” counts a pair, and every other finding under its own class. - Head checks. For each entry of the reference list,
bin/build_ref.pychecks that the head exists, the cited file exists at that head, and the fix commit changes that file or one beside it. Eachmust-fixentry and each later-found entry was also read at its head with `git show :` and `git grep`, and the `hand` field of the entry records what the code shows. Where the review's text and the code disagreed, the entry follows the code. - Later-found defects. Bug and flaky-test issues opened during or
after the campaigns, and fix commits on
mainand the trains, read back to the commit that added the defect (git log -S,git blameat the fix’s parent, and GitHub’sclosedByPullRequestsReferences). - Transcripts.
bin/transcripts.pyreads everycode-reviewerandsecurity-reviewersubagent under~/.claude/projects/for this repository whose description names one of the 34 pull requests: 37 code reviewers, 27 security reviewers, and the 37 forks of thecode-reviewskill (the reviewer’sgeneral-purposechildren). Cost is in input-equivalent tokens as R03-fix-rounds-compactionR03-fix-rounds-compaction: Fix rounds and compactionWhen a wave lead should resume a builder for review findings and when it should start a fresh one, and what Claude Code's compaction and prompt cache settings do for builders, reviewers and leads. counts it: theusageof each call, deduplicated by message ID, with a cache write at 1.25 (2 for one hour), a cache read at 0.05 (0.025 on Fable), and output at 5. Minutes are the first to the last time stamp of each turn, summed over a reviewer’s turns. Prices in dollars, and how Fable’s token compares with Opus’s, are the question of R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding.. - Source of a code finding.
bin/source.pytakes a posted code finding as the fork’s when a fork finding of the same pull request names the same file within 10 lines (the lower bound), or the same file at any line (the upper bound). Themust-fixfindings were matched by reading both texts.
Results
Section titled “Results”Findings
Section titled “Findings”| Campaign | Code drop / fold / must-fix |
Security drop / fold / must-fix |
|---|---|---|
| I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10 | 11 / 22 / 4 | 0 / 5 / 0 |
| I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30 | 14 / 24 / 2 | 0 / 20 / 0 |
| I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 | 31 / 32 / 6 | 8 / 38 / 1 |
| I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 | 46 / 49 / 8 | 15 / 58 / 8 |
| Total | 102 / 127 / 20 | 23 / 121 / 9 |
All 29 must-fix findings were fixed in the same pull request. Of the
fold findings, the code reviewer’s were fixed 98 times, deferred 17
and left 11, and one is disputed. The security reviewer’s were fixed
87 times, deferred 26 and left 8.
PR608PR608 (merged): docs(spec): explain the testmanagerd failure in the guest instructions, not on the hostSettles how the testmanagerd failure of an xcodebuild test in the guest is explained (B20 decision 1A, #20), as the maintainer's triage on #224 directed: no host parsing., PR612PR612 (merged): feat(wb): refuse a git directory that holds a link resolving outside itThe project resolver refuses a project whose git directory holds a symbolic link that resolves outside it, as the decision of 2026-10-26 on #388 says., PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions., PR625PR625 (merged): fix(swift): wb-vmd-layer gets a layer slot of its ownThe VM daemon that builds the Claude Code layer of an image used to share its slot with the daemon that installs macOS, so the daemon couldn't tell the two apart and a layer build would have taken the provisioning…, PR725PR725 (merged): test(swift): wait for wb-hostd's close before the hand-off send failsTwo wb-vmd tests check that a hand-off send to a wb-hostd that is gone is refused., PR726PR726 (merged): test(guestlink): wait through CONNECTING before the drop in TestDialerRefusesSecondCallOne of the fifteen flaky CI runs in the week of 2026-10-26 came from a test of the guest link's dialer that has no issue of its own., PR801PR801 (merged): docs: list the V1 limits on a user docs pageThe user documentation gets a page of V1 limits, linked from the front page and the sidebar., PR802PR802 (merged): docs(spikes): X33-restore-downgrade result, noThe spike installed old macOS restore images in a VM to see whether a compromised download helper could put an outdated guest OS under the image floor. and PR810PR810 (merged): feat(swift): run ProvisioningCheck in wb-vmd's start pathThe build VM's wb-vmd now really starts a VM with the macOS provisioning options, the step that creates the guest admin user and turns on remote login for the image build's one SSH session. had
only a code review. PR612PR612 (merged): feat(wb): refuse a git directory that holds a link resolving outside itThe project resolver refuses a project whose git directory holds a symbolic link that resolves outside it, as the decision of 2026-10-26 on #388 says. adds the checks of
SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another. for git links in internal/project, which the
security reviewer’s trigger in docs/agents/orchestration.md (“A
wave”, step 4) doesn’t name. Its code review found the alternates and
includes gap (deferred) and the Windows junction gap (I617I617 (open): Project resolution on Windows: junctions inside .git pass the link walkFound in the code review of #612 (#388), finding 5.).
Matched pairs
Section titled “Matched pairs”54 pairs on the 25 pull requests with both reviews. In the table, cF1=s1
is code F1 and security F1, then the class, then the code rating
and the security rating (M must-fix, f fold, d drop).
By class group, the pairs are security 24, docs 13, correctness 11,
test 5 and other 1. By rating, 32 pairs are fold on both sides, 10
are fold against must-fix, 7 drop against fold, 3 must-fix on
both sides and 2 drop on both. PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… has none: its spec-drift
findings name different gaps. PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM. code F10 and security F9
describe the same drop of an honest wb-proxyd’s late records, but
ask for different fixes, and security F9 was left as it was after
the fix of code F10, so by the rule they aren’t a pair.
Who found what
Section titled “Who found what”Acted-on findings on the 25 pull requests with both reviews, by class. “Both” counts a pair once.
| Class | Code only | Security only | Both |
|---|---|---|---|
fail-closed |
7 | 18 | 10 |
guest-input |
0 | 1 | 0 |
audit |
7 | 11 | 7 |
sec-control |
1 | 10 | 3 |
correctness |
6 | 0 | 5 |
concurrency |
3 | 3 | 4 |
flaky-test |
3 | 0 | 0 |
test-gap |
6 | 19 | 5 |
spec-drift |
16 | 9 | 8 |
evidence |
6 | 4 | 1 |
prose |
4 | 1 | 1 |
rule |
4 | 1 | 0 |
design |
0 | 1 | 0 |
Most boundary defects and test gaps came from the security reviewer, which found 40 boundary defects and 19 test gaps the code reviewer didn’t. Plain correctness, flaky tests and drift between documents came more often from the code reviewer. Neither has a class to itself in concurrency.
Must-fix defects
Section titled “Must-fix defects”One row per defect. c r1 F1 M is code round 1 F1 rated must-fix.
Each row’s defect was read at its head (see Method). Paths drop the
packages/wraithbox-go/internal/ and docs/ prefixes.
On the 25 pull requests with both reviews (all rows but PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions.):
- Both reviewers found 13. Only the code reviewer found 7: PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions.
F11, PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet.F1andF2, PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…F1, PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.F12, PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream.F2and PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM.F9. Five of the 7 are specs, test cases or evidence a change left behind. PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream.F2is a plain correctness bug and PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM.F9a flaky test. Only the security reviewer found 5: PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy.F1, PR814PR814 (merged): feat(download): wb-download, its entries, confinement, fetches and recordsThis adds wb-download, the one program that fetches what an image build needs from the internet: Apple's restore image catalog and a restore image, or the Claude Code channel file and a release.F1, PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream.F1, PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it.F9and PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM.F1. Each is a boundary that fails open, or an audit record that is lost or charged to the wrong process. - The code reviewer found 20 and the security reviewer 18. Chapman’s
estimate is
21 × 19 / 14 - 1 = 27.5against 25 seen, so 2 or 3 missed by both. - Ratings disagree. Of the 13 found by both, both rated
must-fixin 3 (PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM., PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it., PR808PR808 (merged): feat(proxyd): bound stream writes and close upstream on a stream's endThe egress proxy now limits how long each write to a stream it took over from the network process may take.F1). The code reviewer ratedmust-fixand the security reviewerfoldin 9, and the reverse in 1 (PR798PR798 (merged): fix(netd): decide a late write or send on the clock, not ctx.Err()A record write to the host or a send to the proxy that takes longer than its 100 ms bound must count as failed, so the DNS answer it backs is refused.)..claude/agents/security-reviewer.mdmakes a weakenedSEC*control or a check that fails open alwaysmust-fix. It doesn’t name a lost or misattributed audit record. The security reviewer rated three such defectsfold: PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’sSenderGoneorder, PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards.’s end before its note, and PR808PR808 (merged): feat(proxyd): bound stream writes and close upstream on a stream's endThe egress proxy now limits how long each write to a stream it took over from the network process may take.’s unlockedSendWhileOpen. Each would lose an audit record or charge it to the wrong process. The rule this note proposes adds lost audit records, and would rate these threemust-fix. - PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions.
F11, PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.F12and PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it.F9were found in round 2 or later, on the fix commit of an earlier round. PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it.F9is a regression from1467db8f, the pull request’s fix of round 1.
What both reviewers missed
Section titled “What both reviewers missed”Capture-recapture over the acted-on findings on the 25 pull requests:
| Group | Code | Security | Shared | Seen | Chapman |
|---|---|---|---|---|---|
| All | 107 | 122 | 44 | 185 | 294 |
| security | 35 | 60 | 20 | 75 | 104 |
| correctness | 21 | 12 | 9 | 24 | 28 |
| test | 11 | 24 | 5 | 30 | 49 |
| docs | 36 | 24 | 10 | 50 | 83 |
| other | 4 | 2 | 0 | 6 | 14 |
Lincoln-Petersen gives 297 for all. The groups sum to 278. How far to trust it:
- The samples aren’t independent. Both reviewers read the same diff, the same pull request body and the same issue, and the lead’s prompt names the same risks to both. Defects that a diff shows are found by both more often than chance, which biases the estimate low.
- Defects aren’t equally easy to find. A model with equal catch rates undercounts when some defects are much harder, again biasing low.
- The population is open. Many
foldfindings are hardening, and no fixed list of them exists to be found. Forfoldfindings the estimate says how much more the same two reviewers would suggest, not how many defects remain.
So the must-fix estimate, 2 or 3 missed out of about 28, is a floor
on a well-defined set. The acted-on estimate, about 100 missed, is
a rough size only. The correctness group, with 9 shared of 24,
is the best covered, and test and docs the least.
Later-found defects
Section titled “Later-found defects”Defects that passed both reviews and were found later are below, each read at its head and traced to the pull request that added it:
All three are timing assumptions in darwin tests. PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s second one
came from a fold round that no reviewer read before CI. Two more are
open and not traced: I797I797 (closed): wb-netd: TestAnswerBlocked/report_blocked refused after 1 s instead of 100 ms on CI (flaky)TestAnswerBlocked/report_blocked (packages/wraithbox-go/internal/netd/hostlink/order_darwin_test.go:236) failed once on train/792 at 4e66afcfa132e52e76b5277ff4cd000299d82fb7, job Go (xcode-27) of run 46187520268: (TestAnswerBlocked, possibly from PR794PR794 (merged): fix(netd): send the hand-off refusals to the event channelwb-netd's hand-off sender and its control channel now send every refusal and socket end they record to the VM's event channel, not only to the daemon log.)
and I815I815 (closed): wb-hostd: TestC11StoppedUnexpectedly reads the log before the stop is loggedTestC11StoppedUnexpectedly (packages/wraithbox-go/internal/hostd/vm/vm_test.go:554) failed on train/792 at 0f9b2314, job Go (windows-2025) of run 46213043888: (TestC11StoppedUnexpectedly on Windows, possibly from
PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM.). I634I634 (closed): Flaky: TestShellOpenHeld reads kills = [] on LinuxTwo intermittent failures in the CI of train/622 (campaign #622), in code the train doesn't change:, I632I632 (closed): Flaky: TestStreamPolicy reads stream-refused count 0 on WindowsTestStreamPolicy in internal/netd/stack failed once on windows-2025 in the train CI of campaign #622:, I742I742 (closed): datadisk: TestProcessShimKilled can fail under load with child.pid holds ""Seen in the round 2 code review of #740 (#541)., I781I781 (closed): WraithBoxVMDTests: swiftpm-testing-helper exited with signal 11 once in a local mise run ciSeen once in a local mise run ci on a macOS 27 (Darwin 27.2) host while building #731 (PR #779), which changes only a Go test. and I731I731 (closed): wb-netd TestChildServes: the test's handoff() closes its copy of the passed socket at once (flaky on macOS 27)Fix the test helper that breaks S04-12-descriptor-passing's keep rule (#754, PR #758). trace to code no reviewed pull
request of these campaigns added.
Deferred findings that later pull requests fixed show what the reviews
handed on: PR628PR628 (merged): feat(proxyd): a fresh hand-off socket and ActivePeriodStart clear a VM's statewb-proxyd keeps its own checked copy of each VM's DNS names, a count of the wildcard names it accepted, and the VM's policy. code F2 and security F1 (I630I630 (closed): wb-proxyd: a wildcard report in flight across ActivePeriodStart undercounts the second layer in wb-hostdFound in the review of #628 (#573): code review F2 and security review F1., PR795PR795 (merged): fix(proxyd): write a wildcard name again when a period starts during its writewb-proxyd now counts a new wildcard name only when no new active period started while it was telling wb-hostd about that name.), PR733PR733 (merged): test(netd): decide TestAnswerFails slow cases with a synctest clockA test that checks the address pool refuses a name when the proxy or host answers too slowly sometimes passed the answer through on a busy CI machine.’s
pair (I736I736 (closed): wb-netd: Pool.within misses a call that returns after the deadline before the timer firesPool.within (packages/wraithbox-go/internal/netd/synth/pool.go:390) decides whether an accounting write or a name report was late by reading ctx.Err() after the call returns., PR798PR798 (merged): fix(netd): decide a late write or send on the clock, not ctx.Err()A record write to the host or a send to the proxy that takes longer than its 100 ms bound must count as failed, so the DNS answer it backs is refused.), PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards. security F1 (I730I730 (closed): wb-netd's hand-off refusals never reach the audit log (Sender has no Events)Builds S07-20-handoff-sockets, "Audit", for wb-netd (#754, PR #758)., PR794PR794 (merged): fix(netd): send the hand-off refusals to the event channelwb-netd's hand-off sender and its control channel now send every refusal and socket end they record to the VM's event channel, not only to the daemon log.), PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s pair on
F3 (I741I741 (closed): Audit event holds: one VM's budget can hold the shared wb-proxyd channel for every VMFollow-up from the reviews of #740 (#541): code review F3, security review F1., PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM.), PR638PR638 (merged): fix(go): keep a passed socket open until its receiver holds itThe intermittent invalid argument failures in the proxy's hand-off tests come from macOS, not from the proxy's replacement path.’s findings (I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633., then PR727PR727 (merged): fix(hostd): keep a passed hand-off socket until wb-proxyd holds itOn macOS, a socket that one process passes to another and closes at once can arrive dead: the kernel's cleanup of sockets in flight flushes it, and the receiver reads an empty record., PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy. and
PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…), PR625PR625 (merged): fix(swift): wb-vmd-layer gets a layer slot of its ownThe VM daemon that builds the Claude Code layer of an image used to share its slot with the daemon that installs macOS, so the daemon couldn't tell the two apart and a layer build would have taken the provisioning… code F1 (I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1., PR810PR810 (merged): feat(swift): run ProvisioningCheck in wb-vmd's start pathThe build VM's wb-vmd now really starts a VM with the macOS provisioning options, the step that creates the guest admin user and turns on remote login for the image build's one SSH session.) and PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it. security F3 (I536I536 (closed): wb-proxyd: bound writes to a stream's socket (stream-write-timeout) and close upstream when it endsBuilds S07-20-handoff-sockets, "Stream bounds", on wb-proxyd's side (#754, PR #758).,
PR808PR808 (merged): feat(proxyd): bound stream writes and close upstream on a stream's endThe egress proxy now limits how long each write to a stream it took over from the network process may take.).
PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s rebase left a commit in the middle of its stack that didn’t
build. The code reviewer’s round 3 F6 found it and rated it drop.
Where the code findings come from
Section titled “Where the code findings come from”The code-review skill ran in every one of the 37 code reviewer
transcripts, as medium <worktree> origin/<base>...HEAD. Of those,
8 ran in the background and their result came later. All 37
forks ended with a JSON list of findings (253 in all, 3 to 10 per run).
None failed by the rules of .claude/agents/code-reviewer.md, step 2.
| Posted code findings | From the fork, same file within 10 lines | From the fork, same file | Own steps (lower bound) |
|---|---|---|---|
must-fix (20) |
14 | 18 | 2 |
fold (127) |
75 | 104 | 23 |
drop (102) |
59 | 82 | 20 |
| All (249) | 148 (59%) | 204 (82%) | 45 (18%) |
Read by hand, 17 of the 20 must-fix findings are in the fork’s list,
some at another line of the same defect (PR813PR813 (merged): feat(guestroot): add wb-guestroot, the guest end of the admin pathThe guest now has a second daemon of its own, wb-guestroot, that gives the host a root login shell on a terminal. F1 at shell.go:589,
PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM. F1 at margin.go:71). The 3 that came from the reviewer’s own
steps are PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions. F11 (round 2, a spec read against the spike), PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…
F1 (a rule list the spec lost) and PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM. F9 (a flaky test the
reviewer ran). Of the 253 fork findings, 120 match a posted finding
within 10 lines. The reviewer drops or merges about half of what the
fork reports.
Cost and time
Section titled “Cost and time”| Reviewer | Model | Agents | Turns | Cost | Of it, the fork | Minutes |
|---|---|---|---|---|---|---|
| Code | Opus 5.5 | 37 | 56 | 13.87M | 4.73M | 217 |
| Security | Fable 5.2 | 22 | 33 | 16.29M | 277 | |
| Security | Fable 5.1 | 5 | 7 | 1.87M | 39 |
Cost is in input-equivalent tokens of the reviewer’s own model. PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s round 2 security review names Opus 5.5 in its attribution lines, but its transcript (“Security re-review PR 747 rebase”) ran on Fable 5.2, so its cost is in the Fable 5.2 row.
- Per pull request, a code review cost a median of 308k (148k to 992k) and took 5.7 minutes. A security review cost a median of 648k (288k to 2.21M) and took 12.0 minutes.
- A first round took a median of 4.6 minutes for code and 9.9 for security. A later round took 1.7 and 2.4.
- Per acted-on finding, the code reviewer spent 103k (135 findings
on all 34 pull requests) and the security reviewer 149k (122). Per
must-fix-weight defect it found, whatever it rated it, the code reviewer spent 660k (21) and the security reviewer 1.01M (18). Permust-fixfinding it rated, 694k (20) and 2.02M (9). - The fork is 34% of the cost of the code reviews.
Proposed review lanes
Section titled “Proposed review lanes”Each lane is one reviewer with one question. In this design the lanes read the same shared context: the diff, the pull request body, the issue’s trusted text, the specs the issue names, and the list of earlier findings. The counts are entries of the reference list below that fall in the lane.
-
Mechanical parts. The Rules lane is a check script in large part. In the Specs lane, a search for each rule name, process name and test name the diff adds or renames, across
docs/, would have pointed at PR739PR739 (merged): feat(netd): drop DNS queries over the rate at once, not heldA DNS query over the VM's query rate is now dropped at once, with no answer, instead of being held for 4 seconds like the other refusals.’s list, PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.F12and PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy.F1. In the Tests lane, listing the new checks and parsers, and running the new tests with-race -count=5, is mechanical. Deciding whether a test waits for the right event is not. -
Judgment lanes. Boundaries and Correctness need the model’s reading. In Boundaries, the security reviewer alone found 5
must-fixdefects and the code reviewer alone 1 (PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet.F2, a process the spec left without rules). In Correctness, the code reviewer alone found PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream.F2and PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM.F9. -
Synthesis. One step reads every lane’s findings and:
- merges duplicates by the rule above, and keeps both lanes’ names on the merged finding;
- sets one rating where the two differ. This note proposes the
higher of the two, which settles 10 of the 13 shared
must-fixdefects, and the maintainer hasn’t adopted that rule. A lower rating isn’t a wrong one: cutting the findings down to what matters is part of a reviewer’s job; - applies the proposed rule that a check that fails open or loses
an audit record is
must-fix. Of the 9 shared defects the security reviewer ratedfold, it covers PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.F1, PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards.F1and PR808PR808 (merged): feat(proxyd): bound stream writes and close upstream on a stream's endThe egress proxy now limits how long each write to a stream it took over from the network process may take.F2, and it covers PR798PR798 (merged): fix(netd): decide a late write or send on the clock, not ctx.Err()A record write to the host or a send to the proxy that takes longer than its 100 ms bound must count as failed, so the DNS answer it backs is refused. the other way; - re-reads each
must-fixfinding at the head and drops one the code doesn’t show; - numbers the findings
F<k>across rounds, and writes one review with one verdict.
It doesn’t read code beyond what the findings cite. A smaller model may do it. That is the question of R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding..
-
Fold rounds. PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s second later-found test came from a fold round. The lane that covers a fold’s class re-reads the fold commit before the merge.
Reference list
Section titled “Reference list”reference.json on the data branch has one entry per defect: every
must-fix defect, every fold finding that was applied, and the
later-found defects. A pair is one entry, filed under the higher
rating, and its ratings field records each reviewer’s own rating, so
a scorecard can report a difference in either direction without
treating the higher one as right. Each
entry has the pull request, the head where the defect is present, the
class, the rating, file:line, a one-sentence description, the fix
commit, who found it, the mechanical checks, and, for the must-fix
and later-found entries, the hand note of what the code shows.
| Kind | security | correctness | test | docs | other | All |
|---|---|---|---|---|---|---|
must-fix |
11 | 6 | 0 | 9 | 0 | 26 |
applied fold |
50 | 12 | 29 | 54 | 7 | 152 |
| Later-found | 0 | 3 | 0 | 0 | 0 | 3 |
| All | 61 | 21 | 29 | 63 | 7 | 181 |
Every entry’s head exists and its file exists at the head. For 177
entries, the fix changes the file or one beside it. For the other 4,
the fix is elsewhere: PR735PR735 (merged): fix(proxyd): refuse a GitLab project id with an empty segmentThe proxy reads the repository a GitLab API write names from the project id in its path, which spells each / as %2F. code F2’s location was corrected by hand,
and the fixes of PR813PR813 (merged): feat(guestroot): add wb-guestroot, the guest end of the admin pathThe guest now has a second daemon of its own, wb-guestroot, that gives the host a root login shell on a terminal. code F6, PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream. code F6 and PR806PR806 (merged): feat(netd): ActivePeriodStart clears a running wb-netd's wildcard debitsThe network daemon used to keep the names it had charged to a VM's wildcard budget until it restarted, because nothing could tell a running daemon that a new active period began. security
F1 change the caller or the source instead.
Seeded-defect candidates
Section titled “Seeded-defect candidates”A design only, and none of the recipes has been run. Each candidate puts one real defect in front of the reviewers, so the defect is known to be real and the right finding is known. A lane set or a reviewer prompt is measured by how many it finds and how it rates them. A later spike builds each seeded tree, runs the checklist below, and only then scores a seed.
A seed has to be clean, with nothing else in the tree or its history
that gives it away. Besides the code, a fix commit adds tests that fail
once the defect is back, and it changes C* test cases, spec lines and
comments so that they describe the fixed behavior. A seed that undoes
only the code leaves those in the diff the reviewer reads. The recipes
come from reading each fix commit in full (git show <fix>, and
review-findings/bin/fixdiff.py on the data branch, which lists the
files, the test functions and the changed lines of a commit, with
seedbase.py beside it for the “Diff from” column). Reading can miss a
leak. The checklist searches for one too. Each candidate takes one
of two forms:
- At the fix commit, with a full recipe. The recipe undoes the code and everything else the fix added for that defect, listed under the table. It leaves in place what the fix commit changed for the other findings of the same round.
- At the reviewed head, with no recipe. Where the fix is tangled with the fixes of other findings in the same commit, the candidate uses the head the finding was made at, where the defect is present as reviewed. Of these, seeds 3, 6 and 7 are on pull requests of the replay set (PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory., PR808PR808 (merged): feat(proxyd): bound stream writes and close upstream on a stream's endThe egress proxy now limits how long each write to a stream it took over from the network process may take., PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream.), and add only the seed’s lane to that replay’s score.
The presence of each defect at its head was checked by reading the code:
p.receiver.Stopping has no match at 1dd01357, boundedConn has no
CloseWrite at 5de12735, the upgrade of proxyd/http1/respond.go
registers the open-stream check only for a WebSocket at 08e77a6e,
checkStatus has no match at 924df9ee, status in
guestroot/shell.go sends SigHup and SigKill after the reap at
1c5a08cf, S04-04-vm-processesS04-04-vm-processes: Per-VM ProcessesOne wb-vmd for each VM, the wb-vmd-layer entry of the Claude Code layer build, the wb-vmd-recipe entry of a named image's recipe, and wb-diskfmt, which formats a VM's new data disk. names no xcode.img at 4cf5f1de, and
handoffWith closes a right after the send at 68c4f856.
Answer key. A seed’s key is the reference entries of its pull
request that are present and not yet fixed at the seed’s commit, plus
the findings.json entries with outcome deferred whose head is an
ancestor of the seed’s commit. At a fix commit the seed’s own entry comes on
top. review-findings/bin/seedkey.py lists them, and the “Key” column
gives the counts as reference entries plus deferred defects, with a
duplicate pair of deferred findings counted once. A finding
outside the key goes to the maintainer to judge, and isn’t counted as a
false alarm by default.
The recipes, beyond the code change in the table:
- In the doc comment of
Within, restore the sentences on the order of the two reads to their text at the fix’s parent, which says the timectxallows is read once before the call, and the time the call took onnow. The fix’s text says the start is read first, so that any time between the two reads counts toward late, which names the defect. The sentence on actxwithout a deadline stays, with theErrNoDeadlinecode and tests of another finding. No test inwithin_test.godepends on the order of the reads. - Restore the three comments the fix rewrote to their text at the
fix’s parent: the comment on
endinsocket.go, the doc ofisEnded, and the comment oncase sock.isEnded()instream.go. Each says thatisEndedwaits fordone.TestHandshakeFailed, changed in the same commit, tests another finding and stays. - (none, at the head)
- Restore the doc of
guestWriteRuleto “names the rule of a failed write to the guest.”, remove the “stack timeout” case and thestackTimeouttype fromhandoff_darwin_test.go, and restore theTestGuestWriteFailsline of C11-host-daemonsC11-host-daemons: Host Daemons, Audit, and DisksThe test cases for the host daemons' own checks: wb-vmd's device set and slots, the image build bundle, supervision, the accounting and event channels, the daemon log pipes, the audit writer, free space, and the data… to its text at the fix’s parent, without ”, the stack’s own timeout error included”. The sentence the fix added to S07-05-stream-hand-offS07-05-stream-hand-off: Stream Hand-offHow wb-netd hands each stream to wb-proxyd, and the checks that keep a compromised wb-netd from widening what a stream may reach. on resets stays: it fixes another reference entry, PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy. codeF1with securityF4. - Remove
TestStopEndCanceledfromvmend_test.go, which fails with the seed, and restore the doc ofwaitEndto its text at the fix’s parent, which says only that a cancel gives up the wait. The fix’s text says the wait stays. - to 9. (none, at the head)
- Nothing: the fix’s other changes, to S07-03-dnsS07-03-dns: DNSHow wb-netd answers the guest's DNS queries: synthetic addresses, the name form, negative answers and the wildcard budget., S07-04-dns-refusalsS07-04-dns-refusals: DNS RefusalsHow wb-netd refuses a name: approval events, the hold before each refusal, quiet refusals, and the answer that is the same for every reason.,
C01-network-and-dnsC01-network-and-dns: Network and DNSThe test cases for the guest's network path: the link endpoint, addressing, and the DNS gateway with its hold, quiet refusals, and negative answers.,
resolver.goandserve.go, close other findings of the round and don’t mention the S07-02-packet-pathS07-02-packet-path: Packet PathHow wb-netd carries the guest's frames: the packet transport, the stack, the link filter, its caps, addressing, the MTU and connections. list. - and 12. (none, at the head)
Seed 10 is the only fix-commit seed whose recipe is its code change
alone. Seeds 1, 2, 4 and 5 need the comment, test and test-plan changes
above. Seed 11 is at PR628PR628 (merged): feat(proxyd): a fresh hand-off socket and ActivePeriodStart clear a VM's statewb-proxyd keeps its own checked copy of each VM's DNS names, a count of the wildcard names it accepted, and the VM's policy.’s own head and not at the fix commit,
8b3eae36 in PR638PR638 (merged): fix(go): keep a passed socket open until its receiver holds itThe intermittent invalid argument failures in the proxy's hand-off tests come from macOS, not from the proxy's replacement path., where the comment the fix added names the I633I633 (closed): TestFreshStartClears fails intermittently: fdchan send EINVAL on the train's fresh hand-offTestFreshStartClears (internal/proxyd/handoff/fresh_darwin_test.go), added by #628 for #573, fails intermittently with fdchan: send: invalid argument:
cause.
At its fix commit 4a37832d, seed 6 would have to remove CloseWrite,
errNoHalfClose, TestCloseWriteForwarded, TestC02StreamHalfClose
and the doc sentence on half-close, and restore conn: proxy in
stream/harness_test.go, without which TestC02RawRelay fails. The
same commit turns newBoundedConn into BoundWrites for that change
and for the record step of another finding, so the reviewed head is the
smaller risk. Seed 9’s fix commit also adds the RuleWaitFailed rule,
TestStartFailedGivesBack, a comment in wb-guestroot/main.go and two
S15-05-admin-pathS15-05-admin-path: The Admin PathHow the person at the host's terminal gets a root shell in their own guest, on a path that no agent, session, or guest process can start or reach. edits for other findings, and seeds 3, 7, 8 and 12
are in commits of 13, 11, 15 and 9 files that fix a round each.
Building a seeded tree. Each seeded tree is one commit on its “Diff
from” commit, with a neutral message and the pull request body of its
first head, so that no commit message in the history names the fix.
The reviewer gets the issue text up to the head as a file, with no
access to the repository on GitHub (“Replay set”). A
fix commit’s own message names its defect, for example e63754c5’s
“keep a canceled end’s wait”.
Checklist. Before a replay scores a seed, it checks that:
- the history from “Diff from” to the seeded tree holds only the one seeded commit;
- every comment in the issue file predates the head;
- the diff the reviewers see is exactly the diff from “Diff from” to the seeded tree;
- the seeded tree builds;
- the defect is back: for a fix-commit seed, the test the recipe removes fails on the seeded tree before the recipe removes it. For a seed with no such test, a run reproduces the scenario the review describes. For seeds 1, 2 and 10, whose recipes don’t remove a test, the check is a read of the seeded code against the review’s scenario, recorded with the seed, and the maintainer reads a sample of those records;
- the touched package’s tests pass once the recipe is complete, seed 11 aside, which fails only some of the time on macOS, as the original did, and is scored by whether a reviewer names the timing assumption, not by a failing run;
- a search of the seeded diff and history for the fix’s own terms, its rule names, test names and the words of its commit message, finds none of them, outside code the seed doesn’t touch.
The darwin tests need a VM.
Candidates 4, 7 and 8 test whether a lane set keeps what only the security reviewer found, 10 and 12 what only the code reviewer found, and 11 a defect neither found.
Replay set
Section titled “Replay set”A replay runs a new lane set on a pull request’s first head and compares its findings with the reference list.
A reviewer normally reads the issue its pull request closes. That
issue now holds comments from after the head, which name the real pull
request and its fixes. A replayed reviewer gets instead the issue’s
body and its comments up to the time of the head, as a file, with no
gh and no web access to the repository on GitHub. Before a replay
scores, it checks that every comment in that file predates the head.
This holds for every replayed head, seeded or not.
Each changes Go code under packages/wraithbox-go, and has both
reviews and its fixes on the record. Left out: PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… (a stack whose middle commit
didn’t build, and Swift that needs macOS to run), PR803PR803 (merged): fix(guestd): hold back two guestsock conformance checks and record T22A guest-side operation on one guest macOS version stopped the guest's kernel, and two in-guest conformance checks are held back until the cause is narrowed down. (some of its
security findings are left out), and the spec-only pull requests of
I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10 and I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, which replay the Specs lane only. Those, PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions., PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions.
and PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet. among them, are the replay cases for spec drift, most of
which the code reviewer caught alone (PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions. code F11, PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions.’s, and
PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet. code F1).
Limits
Section titled “Limits”- Classes, outcomes and duplicate pairs are one reader’s judgment.
The data branch has the
annot.txtline of every finding counted here. - Some security findings are left out, so the security counts are lower than the reviews show.
- The source of a code finding is a location match. The strict and
loose bounds differ by 23 points. The
must-fixfindings were also matched by reading, the others weren’t. - Cost is in each model’s input-equivalent tokens. A Fable token and an Opus token don’t cost the same. The reviewers’ costs compare only after the prices of R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding..
- A reviewer resumed for a later round shares one transcript, so a round’s minutes are those of its turn. The turns weren’t matched to the posted reviews one by one, and their counts differ by a few: 56 code turns against 54 code reviews, and 40 security turns against 39.
- Later-found defects are those already found. The first campaign ended about three weeks ago and the last one today, and most of their code has no production caller yet.
- No measurement here needed a VM or the maintainer’s Mac.
Recommendations
Section titled “Recommendations”- Add the security reviewer to more pull requests.
docs/agents/orchestration.md, “A wave”, step 4: add pull requests that change aSEC*check anywhere, the audit and event paths ofwb-hostd(internal/hostd/events,internal/hostd/audit), andinternal/project. PR612PR612 (merged): feat(wb): refuse a git directory that holds a link resolving outside itThe project resolver refuses a project whose git directory holds a symbolic link that resolves outside it, as the decision of 2026-10-26 on #388 says. had none. The 5 security-onlymust-fixdefects say what such a review catches. - Settle ratings in one place. Today the lead reads two reviews
that rate the same defect apart 10 times in 13. Add a synthesis step
to
docs/agents/orchestration.md, step 5, and to.claude/agents/wave-lead.md: merge duplicates, set one rating (this note proposes the higher, a rule the maintainer hasn’t adopted, and the scorecard reports differences in both directions), and apply “a check that fails open or loses an audit record ismust-fix” to both reviewers’ findings. Repeat that rule in.claude/agents/code-reviewer.md’smust-fixlist. - Give each reviewer its lane. Tell the security reviewer that the
code reviewer covers spec and document drift, and the code reviewer
that the security reviewer covers boundaries
(
.claude/agents/code-reviewer.md,.claude/agents/security-reviewer.md). Both still report what they see. The aim is fewer of the 54 duplicate pairs, and the replay set checks that none of the 12 one-sidedmust-fixdefects is lost. - Add a mechanical Specs pass. A script lists the rule names,
process names and test names a diff adds or renames, and greps
docs/for each. The code reviewer reads its output. This needs a spike first, against the replay set. - Re-read fold commits.
docs/agents/orchestration.md, step 5: the commit of a fold round gets the same check as that of a fix round. PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s second flaky test came from one. - Run new darwin tests repeatedly.
.claude/agents/code-reviewer.md, step 5: run each test the diff adds with-count=5on darwin. The later-found defects above are all timing assumptions in new tests. - Keep the
code-reviewfork. It supplied 17 of the 20must-fixcode findings for a third of the cost, and never failed here. - Measure lanes before adopting them. Run the replay set and the seeded candidates against today’s two reviewers and against the lanes, and compare finds, ratings and cost. The scorecard reports rating differences in both directions and doesn’t count the lower rating as wrong.
Status: Measured 2026-11-29 over 34 pull requests and 93 reviews of I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (2026-11-08 to 2026-11-29). 54 duplicate pairs, 13 of 25 must-fix defects found by both reviewers, 7 by code only and 5 by security only. Recommends review lanes and a synthesis step, to be measured on a replay set and seeded defects first. The seed recipes haven’t been run yet