# Agent-hub 0.12.4 verification

Implementation and candidate verification for issues #106 through #110, performed on 2026-10-02. The release pilot ran on runtime and runner source `ae8f8f5`; one more four-arm repeat ran on `3555ed5`, after the later review fixes. The released source differs from `3555ed5` in the facts for files under a named directory (no live task named a directory), a behaviour-preserving refactor in `tasks.ts` and `native.ts` (the latter changes the runner hash, so that repeat cannot be re-graded by the released runner), the fact event type, the ledger, tests and docs. Production application is verified separately after publication.

## Runtime checks

- Recovery: a real published 0.12.3 package (protocol 12) was recovered into the candidate (protocol 13) with `scripts/smoke-recovery-09-10.ts` at `ae8f8f5`, its queued envelope ids preserved (operation `975034f1-b2c0-4aba-9ba9-611ef1ce5daa`). The control protocol did not change after it.
- Context paths: in every turn-free attempt and in the setup-only calibration, both native readbacks verified before the first task. Claude Code 2.1.287 wrote the hook's additional context as a transcript row matched by tool use id and offer id; Codex 0.159.3 returned the steered fact as a user message item of the running turn.
- Facts reached the owners and were read back: 17 offers in the three pilot attempts, 37,936 bytes, all acknowledged; 5 more (all acknowledged) in the repeat on `3555ed5`. No attempt lost a context path while the agents worked.
- Isolation: no attempt ran a Codex hook or a Claude hook other than the hub's facts hook. Every Codex started only the hub's MCP server: its wrapper turns off the user's plugins, apps, sub-agents and turn-end notifier and disables each MCP server of the user's configuration by name. In the repeat on `3555ed5` Claude's transcript shows the fixture instructions it received through `--append-system-prompt-file`.

## Native CooperBench release pilot

Feasibility only (#110, T9): one pair (`pallets_click_task:2068`, features 1 and 6), three repeats of the four v2 arms and three repeats of the #106 ablation, graded by the official tests. No adoption claim is made; advisory stays the default.

- Official source commit: `63b9d44d9f39a02fccf5bf0052db48a917a011fd`.
- Codex CLI 0.159.3, `gpt-6.1-sol`, medium effort; Claude Code 2.1.287, `claude-opus-5-5`, medium effort.
- Each feature-work arm has a 300-second wall limit; setup and denied hidden-file probes are unscored. The arm order is a Williams design, a different row per repeat.
- The official evaluator runs on the recorded image digest, with empty-base-fail and combined-oracle-pass controls; every control passed.

Seconds to both tasks done (active time in parentheses), and the official grade:

| Repeat | Solo Codex | Solo Claude | Advisory | Turn-free | Grading |
|---|---|---|---|---|---|
| 0 (`ae8f8f5`) | 174.6 (183.9) | 43.6 (49.6) | 176.3 (189.3) | 161.3 (172.2) | 4/4 passed both features |
| 1 (`ae8f8f5`) | 189.1 (198.3) | 54.3 (59.9) | 153.2 (165.9) | 168.8 (178.7) | 4/4 passed |
| 2 (`ae8f8f5`) | 170.6 (179.3) | 39.9 (45.1) | 173.3 (186.9) | 151.8 (161.1) | 3/4 passed; Solo Claude unavailable |
| 3 (`3555ed5`) | 154.9 (164.1) | 39.2 (45.1) | 153.6 (167.4) | 147.2 (156.5) | 4/4 passed |

Repeat 2's Solo Claude attempt completed, but its grade is unavailable: Claude Code wrote its last answer and a turn-duration row about 0.1 s after the attempt's transcript hash was taken, so the integrity check reported "transcript changed since the attempt". Attempts now record the transcript's length with its hash and read that prefix only (`3555ed5`; repeat 3 graded under it). The teardown starts five seconds after the hub sees both tasks done and every peer idle, which a final answer still being written can outlast; that answer is then not counted, and the agent's settlement is unknown. The pilot's prepared runner hashes pin the earlier check, so repeat 2 is not re-graded, and its prepared hashes were not rewritten.

Coordination over the three pilot repeats (ledger medians over valid attempts; whole-attempt usage per agent; counters of different providers are never added):

| Measure | Advisory | Turn-free |
|---|---|---|
| Both done, median s | 173.3 | 161.3 |
| Settlement (all agents stopped), median s | 181.7 | 167.0 |
| Codex turns / token-usage growth / tokens, median | 2 / 21 / 835,130 | 1 / 13 / 494,408 |
| Claude assistant messages / tokens, median | 8 / 213,333 | 8 / 211,666 |
| Codex `hub_send` calls, total | 10 | 0 |
| Codex turns after its done, total | 3 | 0 |
| Claude messages reaching Codex after its done, total | 6 | 0 |
| Stale notices dropped (#106), total | 3 | 0 |
| Integration requests / unresolved, total | 0 / 0 | 3 / 0 |
| Turn-free treatment received (silent cohort) | - | 3 of 3 |

Every turn-free attempt took one integration request and confirmed it; none was unresolved. Each advisory post-done turn was started by a late reply from Claude. Repeat 3, on `3555ed5`, matches the pattern: turn-free one integration request and no post-done turn; advisory one post-done turn after two late replies.

#106 ablation (advisory with and without stale-notice dropping, three repeats each, all graded and passed both features):

| Measure | Dropping on | Dropping off |
|---|---|---|
| Both done, median s | 153.1 | 158.6 |
| Stale notices dropped, total | 3 | 0 |
| Codex turns after its done, total | 3 | 3 |
| What started them | a late reply | a late reply with the stale notice |
| Codex tokens, median | 737,127 | 864,458 |

The drop removed the stale notice from every post-done turn, but in this pair the turn still happened because a late reply arrived with it. In the turn-free arm neither occurred in the pilot (no late reply, no post-done turn).

Contribution heuristic: three attempts (one turn-free, one advisory, one ablation) flagged one changed fragment each as absent from the final tree; all three passed the official grading. The heuristic cannot tell a rewrite from a loss, and a passing grade shows only that the features' tests pass. No identifier was flagged. Shell commands' writes are not attributed (each attempt lists them under coverage).

This is a one-pair shared-workspace sample with three repeats per arm: time differences of this size are within its noise, and no performance, resource or causal claim is made. Native session counters include setup probes only where the ledger says so; prompts, conversations, transcripts, private inputs, gold solutions and `ledger.json` (which holds code fragments and local paths) stay outside version control.

## Automated gate and review

`scripts/check.sh` on the released source: 689 tests passed, 0 failed, 3,506 expectations across 65 files; typecheck, bundle freshness, npm package contents and process ownership passed; `check: OK`. Linux and macOS CI passed on the final head. Five earlier heads' macOS runs failed, all on timing: the end-to-end test's steer window at `ae8f8f5` (its fake now leaves a wider one), a large-directory test's 5 s timeout at `3555ed5` (given a longer one), and two known flaky tests, a permission test whose 200 ms permission timeout a slow runner outlasts (`03122f9`, `c822f5c`, `12071c4`) and a sidecar test's 5 s timeout (`c822f5c`).

Independent host Claude Code OCR delegation reviews (read-only reviewers with the OCR rule groups, `REVIEW.md` and the `AGENTS.md` invariants) covered the runtime and benchmark changes in seven rounds, each on the exact head, and this document as well. Every Critical and Important finding was fixed and re-reviewed; the last code round found none. Changes between `ae8f8f5` and `3555ed5` were checked by tests and the repeat on `3555ed5`; later runtime changes by tests only, not by a second full pilot.

What the rounds changed, in brief:

- Settlement is recorded when it happens and never undone by a later turn (only reopening the task clears it); a paused or channel-offline peer is not taken as stopped; a finished cohort is never lifted at teardown.
- The integration target covers the named paths and what each member wrote with an edit tool the hub saw (Claude's Edit, MultiEdit and Write; Codex's patches) between its hand-over and its settlement (never what it only read, and a shell command's writes only under the named paths); an unresolved outcome closes its revision.
- Facts never read `.git` or denylisted paths; a diff matching a PII pattern is not shown; integration-request facts and refused steers never count as unread; a file under a named directory that the peer never saw is named without a diff, never compared with HEAD (one round's HEAD comparison could have shown, after a PII window, what was written during it, and was reverted).
- Benchmark validity gates are shared by the grader and the ledger: capability failures while the agents work exclude an attempt, teardown does not, and Codex and Claude run with hook and MCP isolation; a wrapper in each fixture turns off Codex's plugins, apps, sub-agents and turn-end notifier and disables the MCP servers of the user's configuration (Codex still reads the user's global `AGENTS.md` and can use the user's Codex skills, the same in every arm).

Known limits of 0.12.4 (minor findings of the last code round, accepted, to be filed as a follow-up):

- Seen files under a named directory beyond the 200 kept are named under the "no longer tracked" notice, whose stated reason is the 64-file touched limit; that notice is spent when an offer is built, not when it is read back, and a new session does not hear it again.
- A file under a named directory that is rewritten with identical bytes is named as changed to a member that never saw it until git refreshes its index; during an integration this can cost one more request, or, after the third request, record the outcome as unresolved.
- An offer that only names directory files reports zero files in its fact event.
