Repository navigation
fix(update): avoid recopying admitted rollback images - #186510
Conversation
Carry the cleanup-owned generation image into the same rollback capture while retaining source-generation, integrity, publication and rollback checks. Add bounded capture work-count and paired-performance workloads; end-to-end performance qualification is pending.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR reuses admitted SQLite rollback images and generation receipts while avoiding unnecessary backup-discovery imports. Example: Capture rollback state for the benchmark’s 16 MiB SQLite fixture.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR removes measurable redundant capture work, and no introduced correctness defect was found. The current performance results clear the earlier numerical hold. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe updater’s database-backup worker turns discovered database families into verified recovery files and generation records that later govern rollback admission. flowchart TD
A[Update coordinator] --> B[Database inventory and admission]
B --> C[Generation observation]
C --> D[Owned private SQLite image]
D --> E[Snapshot verification and publication]
C --> F[Fresh source family comparison]
E --> G[Recovery files and rollback receipt]
F --> G
Technical reviewBest possible solution: Carry admitted images and committed-generation facts through the existing capture owners while retaining source-write refusal, integrity checks, cleanup, and published-driver compatibility. Do we have a high-confidence way to reproduce the issue? Current-main source shows separate generation, snapshot, and after-generation acquisitions, and the matched baseline measurements demonstrate their redundant private-image reads; no target code was executed during this review. Is this the best way to solve the issue? The change uses the existing generation, snapshot, and cleanup owners and removes the replaced acquisition work. The required invariant remains that captured bytes are verified and later source writes cannot gain automatic rollback authority; no smaller complete source repair was identified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3633441b152b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +265, Tests +1054, Other +194. Total +1513 across 43 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 29, 2026, 9:05 AM ET / 13:05 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Reuse the exact config/test-lines-baseline.txt policy already landed in 1e13102 (#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR #186510.
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
Exact-head performance proof — 8bc1a73PASS under every original numerical gate: zero failures, zero historical exceptions used. Two independent audits checked all raw samples, the unchanged rules, source identities and cleanup receipts. This is bounded fixture qualification, not a live database, device-I/O or Control UI measurement.
AggregatesEach entry is baseline → candidate. Wall/CPU entries show min / median / p95=max, in milliseconds; empirical p95 is the maximum of five samples. RSS shows min / median / max, in KiB, and is process-lifetime
Repeated wall medians are 12.5–22.5% lower across the eight cells; repeated CPU medians are 2.8–13.7% lower. Candidate/baseline maximum-RSS ratios range from 0.561732 to 0.686025. First-capture wall-median ratios are 0.069069–0.110738 on Node and 0.481918–0.526764 on Bun. Every count cell has exactly one-third fewer scoped private-image JavaScript read bytes; every 16 MiB logical-read gate passes. The JavaScript source/private counters exclude native SQLite/copy reads. Linux logical-read bytes are the delta of /proc/self/io rchar; this includes process logical reads and is not physical device I/O. The separate control-copy probe reported All 192 raw sample rowsOriginal execution order is preserved. Times below are seconds, CPU split into user/system seconds; read counters are bytes except fsReadops, the delta of process.resourceUsage().fsRead (not a read-syscall count).
|
Baseline-Refresh: 2ddcbe5449fbd647dd319f7a8e182a9fbaf27dec
Historical qualification record through fc91798This is the unchanged historical suffix of the PR body published at fc91798. Current source, pending gates and qualification are in the PR body; historical present-tense wording below remains attached to its original revision. All failed verdicts, samples, tables and original acceptance rules are retained. Prepared-inventory correction at 8bc1a73The production coordinator already prepares supplemental database paths, including an authoritative empty list. The shared worker collector nevertheless imported backup discovery before checking that list. A separate two-child, nonqualifying CPU diagnostic and complete caller/owner inspection identified the unused import graph. The correction moves discovery import into the nullish-list branch, preserving realpath/alias ordering and absent-list discovery. Header-zero schema classification now imports the same At signed test-only 8bc correction proof: PASS under every original numerical gate; zero failures or exceptions. All 14 cases per runtime passed (28 executions), covering prepared/absent discovery, worker/retained imports, Windows aliases and local schema. Canonical build joined exit 0 in 442.156 seconds. Exact-head P0–P3 AutoReview and independent owner review were scoped-clean. All 96 children (80 timing/16 count) joined; two independent audits agree on all 192 rows. Eleven artifact hashes, 46 source witnesses, final source/cleanup and native release verified. All aggregates and raw samples retain exact measurements and provenance. Across the eight bounded fixture cells, repeated wall medians are 12.5–22.5% lower and repeated CPU medians 2.8–13.7% lower. Candidate/baseline maximum-RSS ratios are 0.561732–0.686025. Every 16 MiB logical-read gate passes; scoped private-image JavaScript read bytes are exactly one-third lower in every count cell. This is fixture qualification, not a live database, physical-device-I/O or Control UI latency claim. Auto-merge is off; no deployment, Gateway restart or Bun promotion. Cad CI 40832241717 passed 48 jobs/27 skips, including all three live PostgreSQL shards and original maintenance-owner baseline. Historical package runs cad 40832304660 and f533 40834084688 passed construction/integrity/installation and published-driver upgrades, but failed the entry budget. 8bc Package Acceptance 40843029272 likewise passed construction/integrity/installation and failed the enforced 47,500-entry release budget: 47,552 entries/583.3 MiB, including 9,767 dist entries; controlled f533 has 47,549/583.2 MiB and 9,764 dist entries. Baseline excess is 49; candidate adds three. This is bucket/count attribution, not a complete path inventory, a fully inherited failure, or a waiver. Named follow-up: trim installed/dist entries before release; no limit increase. The failed optional package workflow is not an independent required PR merge gate. The 8bc published-driver lane passed one actual published 2026.10.8 to candidate 8bc update: finished, readiness HTTP 200, running version verified, exit 0, no failures/timeouts and cleanup joined. This is functional upgrade proof, not timing qualification. Subsequent test-only commits preserve runtime/package inputs; this execution remains bound to 8bc. Test-fixture follow-through at fc917988bc CI 40842847836, testing merge f4 CI 40846942011 ended with 46 passed jobs, 27 skipped and two failures: the Bun commands shard and dependent CI gate. Mock ratchets and all three live PostgreSQL shards passed. The Bun shard failed the directory-link privacy case at scratch staging-token acquisition ( Signed First fc harness run: 235 passed/six failed/one skipped. Checkout fixtures inherited Git ancestry (two failures); four archive-verification paths were 533–564 bytes, beyond pinned Bun's 512-byte SQLite VFS limit. The directory-link case passed. A second harness stopped before tests: native Corrected exact-fc functional proof passed: 17 files, 241 passes/zero failures/one Windows-only MAX_PATH skip; one command joined exit 0 in 159.305s. Observed two fork workers, non-isolated config, project/plan concurrency one; seven artifact hashes, 55 source witnesses and source removal/join verified. The 4-CPU/16-GiB host differs from CI's 8-CPU/32-GiB host; no exact scheduler/contender or timing claim. Matrix/build/package proof remains 8bc. Fresh fc CI/security and exact-head ClawSweeper remain required. Import rework and historical a85 proofFirst capture imported the broad backup-command module only to encode an archive path. a85 relocates the byte-identical helper to the existing archive-path policy owner, migrates callers and removes the old export. Classification uses the physical-store owner; PostgreSQL capture loads after PostgreSQL admission. Image custody, generation authority, integrity, rollback and pre-swap preparation stay unchanged. One instrumented 9811/a85 pair per runtime isolates archive-import cost: Node 2,703.322 ms/+107,136 KiB RSS → 0.545 ms/no observed increase; Bun 208.795 ms/+40,336 KiB → 0.135 ms/no observed increase. These diagnostic samples do not qualify performance. Classification was already cheap; no separate saving is attributed to it.
Historical cad integrated qualificationThe four actual merge conflicts are resolved. Main stopped-source image classification, original PostgreSQL maintenance-owner custody, input-aware space admission and whitespace-preserving archive paths remain intact. The exact main test-line budget is unchanged. Package/dependency inputs match f533 on both measured variants. Independent owner review and exact-cad one-pass P0–P3 AutoReview are scoped-clean. These are source reviews, not performance or live PostgreSQL proof. Exact-cad affected proof passed all 46 selected cases on each runtime (92 actual executions) in 9m47.223s. All ten raw JSON reports and canonical-parser-verified counts/digests were captured and independently checked. The canonical build joined with exit 0 in 383.699 seconds (6m23.699s). Final source verification passed; all 11 validation commands joined, unjoined=false, and the detached validation source was removed. The complete matched f533/cad matrix executed all 80 timing and 16 count children in the declared order, producing 192 first/repeated-capture rows. Frozen sources, committed harness Historical f533/cad bounded qualification: FAILED. All RSS gates and all 16 MiB logical-read reduction gates pass. Six repeated-capture Node metrics exceed the unchanged rule or their specifically accepted historical bounds:
One additional Node/off/2 MiB repeated CPU-p95 ordinary-rule miss fits both of that cell's historical accepted bounds. It does not waive the six failures above. Five-sample p95 is the maximum; no sample was discarded and no new exception is accepted. The older d318/d70 declarations and FAILED measurements remain unchanged historical evidence. Historical cad focused proof covers path policy and whitespace create/verify/restore, stopped WAL images, reader-empty WAL without reacquisition, retained-image failure/cleanup and complete/cancel worker lifecycle. The real PostgreSQL original-baseline case subsequently passed in cad CI, and both published-driver upgrade lanes passed as reported above. A separate two-process Node diagnostic completed and informed the current import correction; its timings do not qualify performance. All six measured cad failures remain unchanged. Named follow-ups: remove the remaining eager snapshot-barrel classification import in Maintainer acceptance of the disclosed historical tradeoffOn 2026-10-28, the maintainer explicitly accepted the corrected-harness matrix's measured tradeoff for the 23.698–24.990% reduction in 16 MiB logical reads. This accepts these disclosed outcomes, not unspecified new or worse regressions:
The five CPU p95 misses, both ≥20% stops, and the original matrix remain FAILED under the original numerical rule. Acceptance is an explicit owner tradeoff decision, not a rewritten measurement or a generic waiver. The original thresholds and all samples remain below. Final performance qualification below remains FAILED. Hosted CI and the published-driver compatibility lanes now pass, with the separate package-count failures attributed below. No merge, deployment, Gateway restart, new/worse regression acceptance or additional source change follows merely from this historical decision. Final-head qualification rule, declared before measurementThe single final matrix compares frozen base The original numerical gates remain reported unchanged. An original-rule CPU-p95 failure is accepted only in one of the five named repeated-capture cells above, and only if both its ratio and positive absolute increase are no worse than that cell's historical raw values; the displayed rounded values are not extra tolerance. The disclosed Node/off/2 MiB first-capture RSS median is likewise bounded by its historical ratio and +36,224 KiB increase, separately from the unchanged maximum-across-samples RSS gate. All other original gated metrics must remain within 5%; a new or worse failure, including a new/worse 20% stop, blocks qualification. Each 16 MiB runtime/mode cell must retain at least a 10% median logical-read reduction. This is a bounded owner-accepted tradeoff, not a change to the historical FAILED verdicts. The isolated run requires at least 16 minutes remaining after preparation. Its whole-work deadline is the earlier of start + 30 minutes and the native returned expiry minus four minutes; each 120-second child shares that deadline. Incomplete work does not qualify. Controller and fixture temporary roots are separate; artifact capture and native release must settle. This plan permitted required CI and one exact-head ClawSweeper re-review, with auto-merge off. Package Acceptance run 40707223528 separately checked the exact candidate through the published driver; terminal results and the remaining RSS hold are recorded below. Historical d70 matrix — bounded qualification FAILEDRules were published at 2026-10-28 14:36:16 UTC, before the first child at 14:55:52.213 (body SHA-256
The CPU p95 samples are 53.673+35.758 ms user+system versus 90.802+16.011; they are each variant's maximum-total-CPU sample, not paired causal deltas. Median falls 86.014 → 76.391 ms. Five-sample p95 is a maximum, not a confidence interval; no sample was removed.
All final timing samples, in pair order (baseline → candidate)Wall and CPU values are milliseconds; RSS is KiB; rchar is bytes. Wall values below are rounded to six decimal places for display; exact raw output is hash-bound below. The separate count processes are excluded from all timing statistics.
All final separate count observations (baseline → candidate bytes)
Raw output: 113,885 bytes, SHA-256 Historical d70/9811 CI and package proof
Historical CI/package results do not qualify a85. No deployment, restart or Bun promotion is included. Historical correctness follow-throughHistorical source:
Joined/released lifecycle output SHA-256 9811 ClawSweeper review: zero actionable code findings, before a85. It does not qualify this revision. Auto-merge stays off. Diagnostic and oracle correctionEight diagnostic children sampled four failed cells on Node24.22.1/Bun191755. Their tmpfs fixtures differed from the original ext-family run, so timings cannot qualify performance or explain its filesystem tails. The original oracle allocated ~32.05 MiB from two whole-file verification reads after a 16 MiB capture, plus an initial whole-file hash. Lifetime RSS includes setup/verification; this does not explain every failure. Harness-only Entry imports stay outside timing; cold lazy imports remain inside. No prewarming, forced GC, deadline change or sample exclusion. Both original and corrected matrices remain FAILED. Corrected-harness matrix: FAILED; two hard stopsCorrected run: d318 base, All 80 timing +16 count children joined, yielding 192 rows. Load ranges: 0.76–3.04 /1.02–1.92 /0.46–1.05. Original cold-import endpoints/deadlines/rules remained unchanged.
Five CPU-p95 gates fail; wall, CPU medians and gated maxRSS pass. First Node/off/2MiB RSS median: 686,160 → 722,384 KiB (1.052792), then ungated. At 16 MiB, rchar drops 23.698–24.990%; scoped reads: 50,405,376 → 33,603,584B (2 MiB: 6,316,032 → 4,210,688B). JS counts exclude native/physical I/O. p95 is the maximum of five. CPU components describe each variant's maximum-total sample, not paired causal deltas. Failures are unexplained, not dismissed as noise or GC.
After Independent audit verified all192rows, order, source/runtime/filesystem and five misses. SHA-256: stdout All corrected-harness timing samples, pair order 1–5 (milliseconds; RSS KiB)
Corrected-harness metric ratios and separate count samples
Original paired result: unqualifiedOriginal run: Linux x64, Node24.22.1/Bun191755; 4CPUs/16,555,134,976B RAM, ext-family magic0xef53. Auto/off control: 16MiB logical reads drop23.7–23.8% first/25.0% repeated; scoped JS reads50,405,376 →33,603,584B, excluding native/physical I/O. Ratios:candidate/base. Five-sample p95 is the maximum; RSS is lifetime high-water, not staging-space usage.
Failed metrics: Node auto/16 MiB first-capture p95 wall 1.1170 and CPU 1.1128; Node off/2 MiB repeated CPU p95 1.1543; Bun auto/2 MiB first-capture wall p95 1.0827 and median CPU 1.0866; Bun auto/16 MiB repeated lifetime maxRSS 1.0589. These remain unexplained; they are not dismissed as noise. All uninstrumented timing samples (pair order 1–5; milliseconds, RSS KiB)Each row lists baseline → candidate arrays. The median is the third sorted value; min/max and empirical p95 remain derivable without excluding any observation.
Earlier filtered/full-file durations are not paired evidence. This matched workload reduces reads and fails the original rule. Predeclared performance acceptanceWorkload: the committed For every runtime × mode × size cell, run five serial ABAB process pairs. Each process reports its first capture and one repeated capture separately; these are process/owner temperatures, not a claim that OS caches are cold. Report all samples, median, empirical five-sample p95, min/max, host load, CPU, RSS, filesystem, and the separate control-copy method. Keep count-instrumented samples separate from timing samples. Acceptance:
A failed rule blocks readiness. Repeated timing does not erase a failed sample, and no timeout increase or integrity bypass qualifies a result. Reproduction shape (run once for each source root, engine, mode, size, and pair): node --import ./scripts/tsx.mjs scripts/perf/update-doctor-generation-measure.ts baseline backup-capture 1 "$BASE_ROOT" auto 16 timing
node --import ./scripts/tsx.mjs scripts/perf/update-doctor-generation-measure.ts candidate backup-capture 1 "$CANDIDATE_ROOT" auto 16 timing |
Current integrated-head performance proof — 77d72c2FAILED under the original numerical gates. Two independent audits found one unaccepted failure: Node/auto/2 MiB repeated-capture wall p95 is 256.39112000000025 → 373.2836660000003 ms (+116.892546 ms, +45.59%; ratio 1.455914955). Candidate timing pair 1 sets the maximum. No historical exception covers wall time; zero exceptions were used. Every other original numerical gate passes, which does not override this failure. Merge remains held; no rerun, threshold change or current-head ClawSweeper request follows from this result.
This is bounded fixture evidence, not live database, physical-device I/O or Control UI timing. The unchanged acceptance rules and historical failures remain linked in the PR body. AggregatesEach entry is baseline → candidate. Wall/CPU entries show min / median / p95=max, in milliseconds; empirical p95 is the maximum of five samples. RSS shows min / median / max, in KiB, and is process-lifetime
The sole failed wall-p95 cell is shown above and in all five raw timing pairs below. Candidate pair 1 began at 2026-10-29T11:28:51.504Z; its repeated sample records wall 0.3732836660000003 s, user CPU 0.045992 s, system CPU 0.027853 s and load 3.85/2.55/1.65. These counters do not identify the wait owner; attribution is pending. The failed sample remains part of the verdict. Every count cell has exactly one-third fewer scoped private-image JavaScript read bytes; every 16 MiB logical-read gate passes. The JavaScript source/private counters exclude native SQLite/copy reads. Linux logical-read bytes are the delta of /proc/self/io rchar; this includes process logical reads and is not physical device I/O. The separate control-copy probe reported All 192 raw sample rowsOriginal execution order is preserved. Times below are seconds, CPU split into user/system seconds; read counters are bytes except fsReadops, the delta of process.resourceUsage().fsRead (not a read-syscall count).
|
Current generation-receipt performance proof — a2c0c53PASS under every original numerical gate, with zero exceptions. Two independent raw-data audits agree. This is fresh qualification of the generation-receipt correction; the earlier 77 wall-p95 failure and capped diagnostic remain FAILED. No sample was removed or retried and no threshold changed. Current CI/security and exact-head ClawSweeper remain separate landing gates; auto-merge is off.
This is bounded fixture evidence. First-capture timing covers the timed owner call, including lazy imports; it is not whole-process startup or live Control UI/3.8 GB database timing. These results do not identify the cause of the historical 77 wait outlier. Original acceptance and historical failures remain linked in the PR body. AggregatesEach entry is baseline → candidate. Wall/CPU entries show min / median / p95=max, in milliseconds; empirical p95 is the maximum of five samples. RSS shows min / median / max, in KiB, and is process-lifetime
Repeated-capture wall medians are 0.609548–0.73686× baseline across the eight cells. Every original wall/CPU/RSS gate and every 16 MiB logical-read reduction gate passes without invoking an exception. Every count cell records exactly two-thirds fewer scoped private-image JavaScript read bytes: 6,316,032→2,105,344 for 2 MiB and 50,405,376→16,801,792 for 16 MiB. The JavaScript source/private counters exclude native SQLite/copy reads. Linux logical-read bytes are the delta of /proc/self/io rchar; this includes process logical reads and is not physical device I/O. The separate control-copy probe reported All 192 raw sample rowsOriginal execution order is preserved. Times below are seconds, CPU split into user/system seconds; read counters are bytes except fsReadops, the delta of process.resourceUsage().fsRead (not a read-syscall count).
|
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
Exact a2c published-driver upgrade: PASSThe compatibility move in the current ClawSweeper review is fulfilled: one canonical published
Host: Linux ext4, 4 CPU / 16 GiB, Node 24.22.1; repository-pinned Bun All 16 controller commands joined. Exact 19 cell exit receipts, each exit 0, signal null and process tree terminated: Reproduction uses the existing canonical owner: bash scripts/e2e/published-driver-update-docker.sh candidate.tgz artifact-dir 2026.10.8Candidate produced by Both audits verified 81 immutable artifacts, 31 source witnesses, exact package/serving identity, all receipts, state assertions, strict joins and concrete cleanup. No timeout, unjoined child, truncation or capture error. Inner archive: 196,725 bytes, SHA-256 The first setup attempt remains FAILED with zero workload commands: native transport attested the candidate tree through a synthetic carrier, but the controller initially assumed the original commit object was present. Preserved failure archive SHA-256: Exact-head CI and required security status passed. This fulfills the existing exact-head ClawSweeper compatibility move; unchanged source does not need another rating-refresh request. Native hosted gate conversion passed on exact a2c; final merge verification remains pending. Auto-merge is off. Synthetic compatibility proof for the exercised settings and data; no arbitrary configuration-object equality, new performance result, or live production/Control UI timing claim. No deployment, Gateway restart or Bun promotion. Historical failures and the optional release package-budget follow-up (baseline +49 entries over the limit, candidate +3) remain unchanged. |
|
Merged via squash.
|
* fix(update): avoid recopying admitted rollback images Carry the cleanup-owned generation image into the same rollback capture while retaining source-generation, integrity, publication and rollback checks. Add bounded capture work-count and paired-performance workloads; end-to-end performance qualification is pending. * test(perf): bound rollback capture verification buffers * test(update): verify retained rollback image lifecycle * fix(update): satisfy retained-image static checks * test(update): bind retained-image hold to test lifetime * test(update): retain failed backup fixture evidence * test(update): separate cache and retained-image fixtures * test(update): preserve paired fixture failure causes * chore(test): reuse upstream regression budget Reuse the exact config/test-lines-baseline.txt policy already landed in 69b5f8d (openclaw#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR openclaw#186510. * perf(update): avoid unrelated backup capture imports Keep archive path encoding in its canonical policy owner and load PostgreSQL capture only after engine admission. Preserve the updater pre-swap preparation contract and retained-image custody. This removes unnecessary cold import work; memory and latency qualification remain pending. * fix(update): reconcile image reuse with current capture owners * test(update): expose unused prepared-inventory imports * test(update): preserve schema import failure diagnostics * fix(update): avoid discovery imports for prepared state inventories * test(update): document isolated inventory mock boundaries * test(backup): isolate archive command scratch roots * fix: refresh the reviewed correction baseline Baseline-Refresh: 2ddcbe5449fbd647dd319f7a8e182a9fbaf27dec * test(backup): retain isolated fixtures through cleanup * fix(update): reuse verified generation receipts after capture Co-authored-by: Vincent Koc <[email protected]>
What this fixes
Update rollback capture acquired a private SQLite image to establish its generation, disposed it, then acquired the same database again for the recovery snapshot. It also loaded unrelated backup discovery in workers even when the coordinator supplied the complete path list.
The generation owner now carries one cleanup-owned image per admitted family into the snapshot owner, which verifies its identity before consuming it. Prepared supplemental paths, including an explicit empty list, bypass discovery; absent paths retain canonical discovery. Header-zero classification imports the same classifier from its physical-store owner. Ordinary generation readers still dispose their image. Inventory/engine admission, integrity and foreign-key checks, generation authority, later-write rollback refusal and space admission remain intact. No schema, configuration or persistent-cache change.
Current candidate and qualification
Candidate
a2c0c5322a7c6e3eabd8039a5796a2b83ea3beb7, treee81d883ee6cf9c252d49d0e43923e38149e71be8; frozen matched baseline5598c3d76bcb28cacaf864724d52ccb4c8ccdd26. Fresh focused tests passed 284 executions and canonical build passed; the unchanged full performance matrix PASSED all original gates with zero exceptions. Current exact-head CI/security passed, and audited published-driver upgrade proof fulfills the existing current-head ClawSweeper compatibility move. Native hosted gate conversion and final merge verification passed; merged as 6c672d42f2de. Auto-merge is off.The after-capture generation check discarded the successful initial physical observation and acquired another private image even when the live SQLite family was unchanged. The generation owner now emits an immutable same-path receipt containing the committed generation and physical fingerprint. The after-check freshly reads the complete database family, admits every present member as a regular file, checks identities and sizes around the observation, and brackets a verified 96-byte WAL-index header. An exact physical match reuses the recorded committed generation. A stable mismatch takes the original full observation/classification path; observation errors retain the existing warning and refusal of automatic rollback authority. Empty-WAL equivalence remains unchanged. PostgreSQL still performs both remote fingerprints.
This is a fresh source correction, not a waiver of the 77 failure below. The receipt carries no private image or cached digest, and does not bypass inspection or retention callbacks. Snapshot custody, fsync, integrity, cleanup, inventories, physical serialization, schema and configuration remain unchanged.
Source proof is separate: the complete 77-versus-5598 branch review remains historical; the exact signed 77-to-a2c delta received an additional complete-context P0–P3 review with zero findings and final source verification. Its report SHA-256 is
7b3f7d0a37cd2927df094689847b79bff2cfbc1ac9ec4bf41419a361baf54899, status SHA-256b5c2b2526da04e108a0b0a00e3395c95f13cd1ce05aa00df39c3779358c9069c. Independent owner review is also clean. This is not a fresh full-branch review or runtime proof.Fresh exact-head proof passed 142 assertions on Node and 142 on Bun across the five full focused files, with zero failures/skips/todos. The commands joined exit 0 in 335,041 ms and 255,152 ms. Canonical build joined exit 0 in 396,436 ms. The complete checkpoint SHA-256
efad46d51b859d1e74077c93042c6e5107e9ac0385642915bfd7ec545a21f5adbinds all 108 source witnesses, runtime/resource pins, both report digests/counts, final source verification/removal and strict joins. Two independent final archive audits verified all 11 immutable artifacts, 108 witnesses and 192 ordered raw rows; the same 80 timing plus 16 count children against 5598 all joined, cleanup passed and every original numerical gate passed with zero exceptions; no passed historical command group was mechanically repeated. The 30-minute matrix cap includes preparation and requires 16 minutes before children. Samples, child limits and all numerical gates remain unchanged.The attempted syscall diagnostic of 77 remains FAILED: its first baseline process exceeded the fixed 8 MiB trace cap after 3,035 ms. It produced no complete capture windows or candidate timing, so it supports no wait attribution. Its immutable archive SHA-256 is
b929ecb9a2e00f46e1570a8628d7e0a2b0f6837830dba734bde8f00c3ff373aa; the owned lease was released. No trace-cap increase or diagnostic retry was used.Current branch versus 5598: production +560/−295 (net +265), tests/support +1678/−624 (net +1054), benchmark +195/−1 (net +194). The latest receipt correction alone adds production +116/−23 (net +93) and tests +229/−19 (net +210). The production growth owns fresh family admission, receipt revalidation and shared physical serialization; it introduces no persistent cache or parallel capture flow.
Current performance result: PASS
Both independent audits passed every original numerical gate with zero exceptions. Repeated-capture wall medians were 0.609548–0.73686× baseline across the eight cells. Scoped private-image JavaScript read bytes fell by exactly two-thirds in every count cell: 6,316,032→2,105,344 at 2 MiB and 50,405,376→16,801,792 at 16 MiB. These counters exclude native SQLite/copy reads; they are not device I/O or live database timing.
All 16 aggregate cells and 192 raw sample rows, exact source/runtime/harness bindings and complete capture receipts preserve the full current proof. The original 77 wall-p95 failure below and failed diagnostic are unchanged. Current exact-head CI/security passed; the compatibility proof below fulfills the existing current-head ClawSweeper move. Native hosted gate conversion and final merge verification passed; merged as 6c672d42f2de. Auto-merge stays off.
Current published-driver upgrade: PASS
Two independent audits passed the canonical published
2026.10.8→ exact-a2c upgrade cell. The full canonical package's nonempty build ID matched the live serving build ID; version equality alone was insufficient. Exercised port/token settings, durable session ID and complete message content, successful update/restart history, readiness HTTP 200 and required incognito removal passed. The harness's old-sidecar byte-equality assertion passed; a separate raw sidecar blob was not retained. All 19 cell commands and 16 controller commands joined; concrete container/volume absence, source/dependency restoration and cleanup were verified, then the owned lease was released.Exact identities, exit-receipt inventory, fixture assertions and immutable archive hashes document the result. The first setup attempt remains FAILED with zero workload commands because the native capsule contained the attested tree's synthetic carrier, not the original commit object. The corrected controller used the existing bounded exact-a2c object fetch and canonical Docker hydration, without product changes, relabeling or timeout changes. This proof fulfills the existing exact-head ClawSweeper compatibility move. Current exact-head CI/security passed; native hosted gate conversion and final merge verification passed; merged as 6c672d42f2de.
Historical 77 source and qualification
Candidate
77d72c2eb2741d11f9a7545460e2dd7b5d43a756, treeddd1aba5befb485b8170f9a5f86428374dedca69; frozen matched baseline5598c3d76bcb28cacaf864724d52ccb4c8ccdd26. Focused tests passed 385 executions and canonical build passed; the full matched performance matrix FAILED one original wall-p95 gate. Historical77 required CI passed; current-candidate CI/security and ClawSweeper remain separate gates. Merge remains held; auto-merge is off.Live GitHub conflicts required a signed native integration of frozen main 5598 into published fc91798. The two textual resolutions preserve main's test bodies and change only the archive-path helper import owner. Main replaced the former global scratch fixture hook with callback-owned fixtures that retain inputs when cleanup cannot join. A separate signed test fixup migrates all six affected command suites to that canonical owner, removes the unused reset helper, and keeps mock/environment restoration inside the owned callback. The backup/atomic helper loads after tar-mock registration. Assertions, production locking, retries and concurrency are unchanged.
Main also changed transitive SQLite-header and lease-heartbeat inputs. Earlier 8bc/f533 performance proof is historical; it cannot qualify this integrated candidate. Both new variants use 5598 dependency inputs and the identical committed workload SHA-256
9b4b39452c72ca46598c71b4f560c094c63cbc0682c468fac45d2d1800aaf2eb.Exact-head focused proof now has 385 passing executions, one expected Windows-only MAX_PATH skip on Linux and 106 deliberately filtered assertions. The latest attempt reuses 353 completed passes and runs only the final 32-case Bun integrated-fixture group, which joined exit 0 in 76,884 ms. Node and Bun both passed the retained-reader cleanup case. Canonical build joined exit 0 in 405,440 ms (6m45.440s); the unchanged eight-cell matrix completed 80 timing plus 16 separate count children, producing 192 first/repeated rows. All children joined and capture/cleanup passed; numerical qualification FAILED. The original 17-file proof observed two fork workers on 4 CPU/16 GiB; it does not identify the original CI contender or scheduler.
Both controller failures remain FAILED. The first rejected two case names generated from the execution directory; the producer's two exact %j recipes were normalized for identity comparison, with raw reports unchanged. The continuation hit the original 15-minute focused wall deadline, which included the review pause, and terminated its then-incomplete final Bun group after 29,973 ms. This was not an assertion failure or a completed test pass.
A separately reviewed remaining-only operational admission governed that final group: completed children consumed 529,217 ms, and the interrupted child's start through the failure receipt adds a conservative 30,330 ms, totaling 559,547 ms. This separate admission caps cumulative executed child time across all attempts, including the interrupted attempt, at 900,000 ms. It admitted 340,453 ms remaining, and the successful final group consumed 76,884 ms, for a conservative cumulative total of 636,431 ms. Only the incomplete Bun group was run, retaining its original 300,000 ms child cap; passed groups were reused from immutable raw evidence. The original validation deadline (11:39:40.745 UTC), global deadline (12:16:11 UTC) and native expiry (12:20:11 UTC on 2026-10-29) remain fixed. The failed wall-deadline result is not relabeled successful. No product/performance threshold, sample count or matrix limit changes.
77 source review: independent owner/fixture review and the complete two-pass branch P0–P3 review are scoped-clean, with final source verification and zero findings. The complete validation checkpoint passed all 102 source witnesses, runtime/resource pins, seven report digests/counts, strict joins and final source verification/removal. Two independent final archive audits verified all 18 immutable artifacts, 96 child joins and 192 rows. The numerical verdict is FAILED; execution/capture success does not satisfy performance acceptance. The task lease is released. Landing of 77 remained blocked, and no ClawSweeper request for that head was sent.
Historical 77 performance result: FAILED
Node/auto/2 MiB repeated-capture wall p95 is 0.25639112000000025 → 0.3732836660000003 seconds: +116.892546 ms, +45.59% (1.455914955×). Candidate timing pair 1 sets the maximum. This breaches the original 5% wall gate and 20% stop; no historical wall exception exists. All other original numerical gates pass; zero exceptions were used. No sample was discarded or rerun, and no threshold changed. The cause of that elapsed-time outlier remains unattributed.
All 16 aggregate cells and 192 raw rows, source/runtime/harness bindings and complete capture receipts preserve the failed result. The 385 focused passes, canonical build and source/cleanup proof remain valid but do not override the performance hold.
Historical 77 scope and evidence provenance
Against frozen 5598: production +455/−283 (net +172); tests/support +1466/−622 (net +844); benchmark +195/−1 (net +194). Positive production growth owns retained-image custody, cleanup and prepared discovery rather than a second capture flow. The latest fixture-owner fixup is test-only: +549/−517 (net +32), production zero.
The earlier runtime revision 8bc1a73 against f533, passed all original performance gates with zero exceptions, 28 focused executions and canonical build. Its complete aggregate and raw sample proof remains bound to those revisions. Published 2026.10.8 to 8bc functional upgrade passed, including readiness HTTP 200 and verified running version; that is not current-candidate or timing proof.
The optional 8bc Package Acceptance workflow remains FAILED on its enforced 47,500-entry release budget: candidate 47,552 versus controlled f533 47,549. The baseline is 49 over; the candidate adds three. This is not fully inherited, waived or a raised limit. Named follow-up: trim installed/dist entries before release. The package/upgrade runs were not repeated for this integrated candidate; their results remain bound to 8bc.
Historical proof, failed matrices, CI failures and harness corrections are preserved byte-for-byte in the linked record. Historical d70/cad performance failures retain their original verdicts; the test-only ratchet correction, scratch collision and both failed fixture harnesses remain disclosed there. Follow-ups also remain: the eager admission snapshot-barrel import in
src/infra/update-database-engine-admission.tsand inherited unused exports.No live database was copied or changed for this proof. Bounded fixture results do not establish Control UI latency, physical-device I/O or live 3.8 GB database timings. No deployment, Gateway restart or Bun promotion.
Acceptance frozen before the new measurements
The following original workload and numerical rules apply unchanged to frozen 5598 versus a2c0c53. The historical exception ceilings below are carried forward without expansion; no new or worse regression is accepted. Current-candidate measurements are complete and PASSED all original gates with zero exceptions; the historical 77 matrix remains FAILED on its original wall-p95 gate.
Predeclared performance acceptance
Workload: the committed
backup-capturemode inscripts/perf/update-doctor-generation-measure.ts, invoking the real in-process rollback-capture owner on freshly created SQLite fixtures. Compare the frozen base and candidate in separate remote worktrees on one lease, with the same frozen dependencies, Node 24.22.1 and repository-pinned Bun, and native auto/off modes. Use allocated 2 MiB and 16 MiB payloads. Fixture setup, entry-module imports, copy-control probe, and a real clock-age wait stay outside capture timing; first-capture timing includes lazy owner imports and source-loader compilation.For every runtime × mode × size cell, run five serial ABAB process pairs. Each process reports its first capture and one repeated capture separately; these are process/owner temperatures, not a claim that OS caches are cold. Report all samples, median, empirical five-sample p95, min/max, host load, CPU, RSS, filesystem, and the separate control-copy method. Keep count-instrumented samples separate from timing samples.
Acceptance:
/proc/self/iorchar delta) falls by at least 10% in every runtime/mode cell.A failed rule blocks readiness. Repeated timing does not erase a failed sample, and no timeout increase or integrity bypass qualifies a result.
Reproduction shape (run once for each source root, engine, mode, size, and pair):
Existing bounded historical exceptions
The original numerical gates remain reported unchanged. An original-rule CPU-p95 failure is accepted only in one of the five named repeated-capture cells above, and only if both its ratio and positive absolute increase are no worse than that cell's historical raw values; the displayed rounded values are not extra tolerance. The disclosed Node/off/2 MiB first-capture RSS median is likewise bounded by its historical ratio and +36,224 KiB increase, separately from the unchanged maximum-across-samples RSS gate. All other original gated metrics must remain within 5%; a new or worse failure, including a new/worse 20% stop, blocks qualification. Each 16 MiB runtime/mode cell must retain at least a 10% median logical-read reduction. This is a bounded owner-accepted tradeoff, not a change to the historical FAILED verdicts.
The historical RSS-median disclosure is separate from the unchanged maximum-across-samples RSS gate. The new matrix must retain at least 16 minutes after preparation; it shares the earlier of its 30-minute deadline, the global run deadline and native expiry minus four minutes. Each child remains capped at 120 seconds. Incomplete work, failed joins or incomplete artifact capture cannot qualify.