Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

20.6 KB
Raw Blame

Saved binding evidence and recovery

This step of the completion checklist moves saved-binding validation and Codex parent repair onto eager native evidence. A partial, unreadable, changing or ambiguous source keeps the original session id, transcript and ownership with a visible identityHold. The next discovery pass retries that same live binding without waiting for an optional engine worker. Daemon readiness and sibling sessions remain independent.

Former-code evidence

8cd510844e4e152d28d6486e65b5572508a86a07 records the healthy binding golden in its own commit, before implementation. It was recorded from then-main 9eafacf3b and replayed unchanged after integrating main c7d460b1d (#1132). The artifact contains fourteen observations: seven each under pinned Linux and macOS platforms. It covers saved rows, path admission, moved/profile homes, Stop capture and terminal registration. The fixture fixes the clock, uses UTC and /tmp, and forbids host subprocesses. Neither that artifact nor older golden artifacts are re-recorded for this change. Three older unit fixtures gain the complete native cwd field their healthy Codex header was missing; the parser contract is unchanged.

Boundary

engines/transcriptBindings.ts owns saved path/header admission and parent repair. kit/nativeFiles.ts retains a fresh bounded descriptor, header and directory proof for one operation. Native path resolution and first-record parsing are shared with existing descriptor evidence. The resolver observes aliases component by component; a matching spelling alone never establishes directory membership. Reads use the opened file identity, owner, type and stable complete header. Ordinary body appends after a completed read remain valid. Exhausted read, candidate, directory or time budgets hold the decision.

A registry load stages all rows. Its explicit root scopes share present, absent and alias ancestry within that operation only. Each row retains its own file/header proof; one row's failure does not hold its siblings. Final row proofs, then root scopes and the fresh catalog proof, run before any row is indexed. A failed root scope restores every affected staged binding. There is no cross-operation root cache. Parent repair must examine the complete declared walk pool, including candidates excluded by metadata; the existing dotted-directory exclusion remains part of that declared lookup contract.

The initial independent primitive review found three defects, corrected with regressions: missing announced files needed a retained parent-owner check; parent repair needed physical membership checks after following links; and a dangling leaf alias could borrow its original parent's authority. The last is an explicit safety correction to an existing unsafe corner, not a healthy golden change. A genuinely absent leaf is distinguished from an existing dangling alias.

Registry.revalidateBinding retries a held saved binding without rebuilding the registry or restarting the daemon. Successful registration or proven binding release clears its transient hold. Discovery contains registration/read failures, announces changed reasons, and does not archive, unbind or save unavailable evidence.

The composed review found three further defects. Held rows could enter attachment; recovery could retain an inline parser of the old path; and cleanup after releasing the session index lost its agent key. Discovery and interpretation now defer held bindings, delayed reads lose authority when a hold arrives, and recovery rebuilds both unchanged and repaired paths without replaying saved history as a new turn. Agent-scoped input and scopes use the retained agent id during cleanup.

Review also found a concurrent-write hazard. Revalidation now stages its candidate without changing the live row or indices. Inside the registry write lock it compares the exact durable baseline, re-verifies native evidence and commits before publishing. A peer's newer binding is preserved. A complete discovery batch may commit there; an incomplete batch or failed write holds the retry. Two independent Registry instances cover same-path recovery, release and parent repair against a peer write.

Validation plan and progress

The required plan is typecheck; architecture; core/services and harnessd per-file 100% statements/branches; touched binding, registry, path/header and native golden specs; composed resume coverage run alone; private engine-home, machine and chaos lanes; and the available private tmux fixture rows. Automatic ready-PR CI supplies the full Linux default suite. Mutation checks run only in a separate disposable worktree after their unchanged baseline passes. Runtime measurements run alone, interleaving former and candidate processes on the same fixtures and Node toolchain.

Development checks have passed 102 focused tests, including unchanged binding and session-store goldens. The new private e2e proves that an incomplete saved Codex header retains its binding and visible hold while readiness and a Claude sibling work, then recovers in place and takes a turn without another daemon restart. The e2e fixture initially read a transcript path from a public frame which correctly does not expose it; it now reads only its disposable daemon's private registry. An initial registry unit run was invalidated by macOS sandbox rejection of uptime; the authorized rerun isolated one incomplete healthy header fixture, now corrected. Final exact-source receipts and review are recorded in PR #1133 before landing.

The initial full validation receipt 20261010T021955.961388Z-42225 passed types, 274 focused tests in 14 files, architecture, core/services (1,960 tests, 100%), harnessd (265 tests, 100%; one existing skip), 35 private engine-home/machine/chaos cases and 57 private tmux cases. Fifteen installed-vendor tmux cases are explicitly excluded because those tools are not installed in the fixture. After the composed review corrections, core/services passed 1,977 tests in 163 files at 100% statements, branches, functions and lines (27 seconds, October 10 02:40 UTC); typecheck passed. The current e2e case additionally appends a valid turn under the incomplete header, asserts no held-session turn is emitted, and runs with workers and explicit inline mode. Final affected lanes and composed resume are rerun after these changes.

Matched runtime cost

The raw measurements compare main c7d460b1d and this implementation, using Node 22.23.2 on macOS x64. Three interleaved fresh-process repetitions of 937e9e6d4 ran alone 04:08:13–04:09:34 UTC (36 processes). Each process measured five complete operations after fixture setup. The registry workloads completed all 12,030 row decisions; native descriptor workloads produced the expected unique bindings or ambiguity holds in all 90 calls. No held result was counted as a successful binding.

Whole operation Former median latency ms Candidate median latency ms Former/candidate process CPU ms Former/candidate peak RSS MiB
One saved row, one home 42.46 44.36 18.50 / 22.99 95.26 / 94.07
200 saved rows, one home 83.07 96.19 275.07 / 361.36 195.11 / 131.97
200 saved rows, 63 homes 168.87 131.08 667.31 / 538.08 142.89 / 132.12
Native descriptor, one file 516.32 517.63 135.69 / 138.57 107.00 / 104.49
Native descriptor, duplicate handles 521.47 514.99 140.80 / 139.69 106.90 / 104.10
Native descriptor, competing files 516.94 518.96 142.02 / 139.93 108.25 / 110.04

Latency covers a complete load or native lookup, including final proofs. CPU is the median for a process's five operations; peak RSS is the median of process peaks. The single-home batch pays for complete file/header evidence; sharing roots within the operation reduces the former many-home traversal cost. These samples are cost evidence for the specified workloads, not a host-independent performance gate. The later first-Cancel and ordinary-Stop corrections affect neither measured import/call path; these measurements do not cover active cancellation latency.

Eager Cancel cost

The additional Cancel workload and raw results compare complete eager core Cancel calls on main c7d460b1d and reviewed c061a7697. Three interleaved fresh-process repetitions ran alone at 04:34:20–04:34:29 UTC, using the same Node 22.23.2/macOS x64 toolchain. Each of the 24 processes measures 100 calls. Every call starts with a distinct user record appended to the private transcript and an open real Claude parser; all 2,400 calls close it and issue exactly one stubbed interrupt, with no interpretation hold. First-Cancel samples use a fresh attachment controller; retained samples keep 100 successive cancellation boundaries. Histories start at 79 bytes or approximately 16 MiB. File setup and prompt ingestion are outside each latency and CPU interval. No daemon, terminal, worker or actual signal participates; this measures core control overhead, not terminal delivery or recovery replay.

History / control ledger Former / candidate median ms Candidate p95 ms Former / candidate CPU ms per 100 calls Former / candidate peak RSS MiB
Small / first 0.0024 / 0.0719 0.1326 0.95 / 9.17 89.43 / 93.09
Large / first 0.0022 / 0.0688 0.1434 2.25 / 13.27 123.48 / 123.98
Small / retained 0.0022 / 0.1189 0.2146 0.84 / 13.47 88.62 / 90.38
Large / retained 0.0020 / 0.1068 0.2537 2.17 / 21.62 120.27 / 122.27

Latency percentiles combine the 300 calls per source/workload. CPU and peak RSS are medians of three processes; RSS includes module loading and private fixture setup. The bounded file witnesses add measurable work (about 0.07–0.12 ms median here) without reading the whole transcript. These measurements establish cost for these workloads; they are not a performance guarantee on another filesystem or host. Run the script from the repository root with CANCEL_COST_CLI selecting the source CLI tree, TZ=UTC TMPDIR=/tmp, and the selected Node toolchain's tsx loader.

Remaining scope and timing

This does not complete native identity as a group. Registration/hook admission still uses its former entry boundary: its strict replacement must retain pending prompt deliveries and commit admission before crediting them. The draft strict registration was kept out of this change so a newly held file cannot become an unhandled HTTP error or lost hook. Remaining Stop/resume/checkpoint consumers, saved-home selection, Hermes optional home promotion, Cursor pending discovery visibility, launch facts, durable lifecycle intent and the other named completion groups remain open.

Recovery control review corrections

The independent composed review found that replacing interpretation could lose a Cancel or apply it to a later turn. Core now retains ordered cancellation boundaries for the conversation, including the first ordinary Cancel before any outage, successful replacement, another reset, repaired path, and worker reconstruction. A new explicit Cancel can supersede a rewritten file; an automatic retry cannot move the old decision to a later file position. Each boundary records the regular file's device/inode and a digest of at most 1 KiB at the beginning and boundary. This samples those bytes; it is not a digest of the entire preceding transcript. Replay also checks its actual opened descriptor. Incomplete or changed evidence keeps interpretation held with a reason.

The replacement is staged behind a core control handle. Parser, runtime profile and watcher installation complete before the registry clears its interpretation hold. Every await is fenced by a copied binding/evidence revision and the session lifetime. Clearing a hold without authority cannot release the watcher's pending bytes. Cancellation remains eager, never waits on a worker, and cancelled history does not produce a completion recap. New prompts after the recorded boundary remain open.

A successful ordinary native Stop is retained too, without replacing its live parser or delaying its completion. The first later reconstruction cannot discard that completion and reopen its still-open disk history. Uncorrelated Stop is deliberately retained as an explicit hold. An empty parser or an older completed turn does not establish which turn a delayed Stop belongs to. Existing positive stale Claude timestamps remain usable; otherwise a subsequent explicit Cancel resolves the hold. Exact per-engine Stop correlation remains in completion group 4. Legacy readers that cannot replay ordered file boundaries hold that interpretation rather than apply the cancellation to a guessed turn. Durable control intent across daemon restart remains part of the lifecycle completion work.

The final legacy interaction review identified two additional regressions and their composed tests. An ordinary database Cancel after a retained Stop stays on its eager native control path; lack of a file cutoff holds only a future reconstruction. A held legacy Stop snapshots the known turn state from the existing core normalizer maps, including an inactive control ledger whose next turn has since opened. A real Copilot normalizer remains open through both held-Stop/recovery sequences. No parser or service is loaded to obtain that eager state.

The former core HTTP hook-admission golden was recorded separately from main c7d460b1d in d331c49a4; its twenty Linux/macOS observations and artifact are unchanged. Additional actual-composition regressions cover both inline parsing and the real worker request/transport/reconstruction path. At 04:23 UTC, 230 affected core tests passed at 100% coverage for the changed attachment, replacement-control and turn-hook modules. Independent review approved production head 4a05df81a and the assertion-only successor c061a7697 against main c7d460b1d with no remaining blockers in this PR's scope. Forty deliberately broken safeguards failed assertions after an unchanged baseline. The final composition mutant exposed a TypeError in the e2e assertion rather than a valid assertion failure; the corrected test now polls the expected held reason directly, and its baseline/mutant is rerun. The two interrupted preliminary validation batches are not counted as complete. PR #1133 records the final required full gates, private lanes, composed resume and all 41 mutation outcomes before merge.

The task resumed October 9 at 22:25:51 UTC. This step's golden was committed October 10 at 01:39:46 UTC, while the preceding independent adoption validation finished. Implementation and preliminary review corrections followed the #1132 merge at 01:43:24. Validation, independent review/CI waiting and merge time are recorded separately in the PR and final receipts. Publication remains zero; no release is authorized.

Final validation and test race corrections

Receipt 20261010T043754.267016Z-78890 tested clean reviewed 43db408c1 at 04:37:54–04:45:57 UTC. Types passed in 4.6 seconds; core/services passed 2,089 tests in 165 files at 100% statements, branches, functions and lines (30.5 seconds), and harnessd passed 265 tests plus one existing skip at 100% (29.5 seconds). The private engine-home/machine/chaos lane passed in 442.2 seconds, and the private tmux lane passed 57 cases in 108.4 seconds, with fifteen unavailable installed-vendor cases explicitly excluded.

The receipt is overall failed, because one of 967 focused tests observed a valid native-enumeration hold before reaching its expected durable-owner fence. The corrected registry test retries fresh reads for at most three seconds and still requires that exact ownership error, followed by unchanged live and durable rows. Automatic Linux run 38024635620 separately exposed an existing tmux fixture race: redirecting its output creates an empty file before printf writes the expected literal arguments. That test now waits for complete expected contents, retaining the same literal argv/environment/cwd assertions. Neither correction changes production. All affected checks run again; unchanged production coverage and private end-to-end evidence remain attributable to 43db408c1 rather than being described as a new full passing suite.

The first forty mutation variants each failed assertions after their unchanged baseline. The final core Cancel-wiring variant passed its corrected unchanged e2e baseline and then failed an assertion on c061a7697. Only the six variants whose registry test changed need another baseline/mutation pass. The independent reviewer approved the production, assertion correction and cost documentation at exact heads; the final test-only delta also requires review. Composed resume runs alone. Final receipts, exact-head review, CI and merge accounting are recorded in PR #1133.

The corrected single-worker focused command passed all 969 tests in 26 files (one skipped file) on d3c607e68, receipt 20261010T045306.949449Z-89491, in 75.1 seconds. The prior delta command accidentally dropped its worker-limit flag; its failed concurrent run is not counted as passing. Types were reused from the same-source receipt. Linux run 38025366227 then found a composed test racing a file replacement against the detached tail read started by recovery. The test now explicitly drains that read and proves the cancelled state before replacing the file and restarting the worker. Its exact boundary-error, visible hold and later explicit-Cancel assertions remain unchanged. Only tests and this report change; affected composed tests and their mutation variants run again.

Receipt 20261010T045933.778026Z-20994 passed types, 70 composed control/worker checks and all 17 large-transcript resume cases on clean 7691335b4. Its serial resume check is failed (508 passed, two failed): fixture home adoption exhausted its real 250 ms journal deadline during fsync, before the intended count/authority assertions. The ownership/count fixture now pins the monotonic clock; production limits are unchanged. The separate journal deadline regressions still advance that clock and passed alongside all four affected ownership/count cases (seven selected cases total). Serial resume runs again. Automatic Linux run 38025771424 passed all head checks, including ci/required, for 7691335b4; the final test-only clock correction receives its own review and automatic CI.

Final gate receipts

The final source-specific evidence is complete on 06d2ff7c8 (production unchanged since 4a05df81a). Receipt 20261010T050314.141907Z-44077 passed types and the full serial resume/native-pool/journal composition: 551 tests in eleven files, at 100% statements, branches, functions and lines. The earlier valid production evidence is retained: 2,089 core/services tests and 265 harnessd tests at 100%, 36 private engine-home/machine/chaos cases, 57 private tmux cases, 969 focused/architecture/golden checks, 70 composed control/worker checks and seventeen large-history resume cases. The receipt/source distinctions above remain part of this evidence; interrupted or failed batches are not relabelled green.

All 41 deliberately broken variants have assertion-failure evidence following their unchanged baselines. The nineteen variants affected by the registry/control fixture changes were rerun alone on 06d2ff7c8 and passed that requirement; unaffected variants reuse the production-identical 4a05df81a run and the corrected c061a7697 private Cancel-wiring run. The disposable worktree restored every mutated file.

The independent reviewer approved exact head 06d2ff7c830a8c521b6771bd6aba3e3fc579f4bd against c7d460b1d8018ed56126c662702fd44db886d07d. All automatic head checks, including ci/required, passed in run 38026193103. Main then advanced with #1134, which adds the separate Memories Store package and its report. Integration has no CLI code conflict or shared module change. Existing local evidence remains valid for unchanged CLI behavior; the combined head receives independent review and a fresh automatic CI run before merge. No extra full local suite is required solely for that integration.

Accounting (UTC; overlapping windows are not added): golden creation started 01:39:46; implementation and review corrections ran from the preceding merge at 01:43:24 through the last production commit at 04:24:14. Validation started 02:19 and the final affected mutation pass completed by 05:09. Test-only corrections ended 05:03:11. Independent review and CI waiting overlapped that validation; the combined head's final review/CI and actual merge receipt are recorded in PR #1133 and the following progress entry. Publication remains zero.