Skip to content

perf(sessions): archive without waiting for worktree cleanup - #164938

Merged
steipete merged 2 commits into
mainfrom
steipete/perf-micro-archive-no-inline-worktree-removal-20260919
Oct 4, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/perf-micro-archive-no-inline-worktree-removal-20260919

Conversation

@steipete

@steipete steipete commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Archiving a session waits for snapshotting, Git removal, and contention on the worktree creation lease before returning to the user.

User Impact

Archive commits and publishes session state, responds, then wakes background cleanup. Unarchive before cleanup keeps the checkout; unarchive during cleanup waits for its finalized snapshot and restores it. Conversation state, dirty files, worktree bindings, and snapshot retention remain intact. No configuration or schema migration is required.

Why This Change Was Made

Existing archivedAt metadata marks retirement. The maintenance owner from #164758 handles immediate notification, coalesced follow-up sweeps, periodic cleanup, and shutdown. The synchronous archive cleanup path is removed. Worker settlement follows #164824: structured registry predicates, live lease admission at transaction and commit, native receipts, and retention of uncertain outcomes.

Registered removal holds its session and per-checkout custody. Worker-backed disk reservations account for concurrent writes across processes, so unrelated creation can proceed when space permits. Creation and restore retain borrowed Git sources, and nested restore retains both creation and mutation leases. Once deletion is admitted, terminal snapshot settlement survives caller cancellation. Failed reservation releases retry at later admission or maintenance.

Production source is +1,670/-784, net +886 lines. Growth preserves three contracts when cleanup and creation overlap: cross-process disk admission, borrowed Git-source lifetime, and lossless finalization after deletion. Superseded inline cleanup and duplicate temporary source leases are removed. The requested filter (git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*') is +1,718/-802, net +916, including tooling and the shared test fixture.

Evidence

Compiled-Gateway proof on an isolated Linux rig (8 CPUs, Node 26.8.1), with 5,000 durable sessions, 50 real Git worktrees, and 150 archive calls per variant. One persistent GatewayClient WebSocket connection, three rounds, no archive warmup or excluded samples. Timing ends at the actual response.

Base: 33bf4664a0e9d4d84dfa797296e6b6c5b464d6e2. Measured candidate tree: 423dae8ff688da54d8fed4cfb0d9ebd581be9926.

Metric Inline baseline Background candidate
p50 686.829 ms 32.660 ms
p95 730.073 ms 40.489 ms
p99 787.246 ms 53.902 ms
Maximum 1,283.040 ms 82.467 ms
Checkouts present at response 0/150 150/150
Peak Gateway RSS 1,405.5 MiB 1,389.5 MiB

P99 fell 93.2% (14.61×). Every candidate response was below 100 ms. All 150 automatic removals and dirty-file restores passed. Both isolated Gateways stopped. An earlier baseline run measured 1,200.674 ms p99; the table uses the faster baseline rerun, which corrected the memory sampler to follow the Gateway runtime instead of the CLI launcher. RSS is the Gateway process's kernel high-water mark, including worker threads and excluding child processes; the observed difference is -16.0 MiB (-1.1%). These are synthetic measurements on a shared host, not live deployment evidence.

Runtime builds passed for baseline and candidate using nice -n 10 ionice -c3 node --import ./scripts/tsx.mjs scripts/build-all.mts sourcePerformance (1m10.0s and 1m23.3s). The driver was node --import ./scripts/tsx.mjs .rig/final-archive-real-gateway.mjs, with task-local TMPDIR and loopback port 19542.

Initial validation used blacksmith-testbox / openclaw-check, lease tbx_01m43fzfnrbwczs25fhb45q4kk (run). The source capsule verifies the exact candidate tree and 69 paths. Initial passing coverage totals 552 tests across 43 files, with one platform skip, after three test-only corrections: scope the worker-admission SQL observer to the checkout's mutation lease, supply the independent disk-admission callback in the upstream snapshot-receipt fixture, and await the asynchronous claim/release in a capacity regression. The focused corrected archive case passed in 36.20s; the 29-file worktree/core run passed 462 tests in 477.69s. The negative control restores a native registry guard inside worker grants and fails the corrected assertion as intended.

Independent P0–P2 review is complete. Its one fixture-caller finding is fixed, and follow-up review of all three test corrections is clean. Initial published head: 36217d714a7d5910a0d5e234e6696f2748d2bac7 (tree b6fa1c3f46df83725a37fd3e2e26f931aa419c4b); only those three test files differ from the measured candidate. All required changed-file checks completed: production types, all core test-type groups, script types, three export scans, core/script lint, formatting, and repository guards. The final exact-source run exited 0 in 309.846 runner seconds. The canonical plan resumed at the failed test-type and lint boundaries after the fixture corrections; preceding checks remained valid. The lease is stopped. No local tests, types, builds, or lane classification ran on the constrained Mac. Native macOS/Windows performance measurements and production deployment are outside this Linux rig proof. Final current-head CI results are recorded below.

Final focused command Wall time
pnpm test src/agents/worktrees/capacity.worker.test.ts --maxWorkers=1 17.67 s
pnpm test src/gateway/server.sessions.archive-worktree-lifecycle.test.ts --maxWorkers=1 75.38 s
pnpm test src/agents/worktrees/service.capacity.test.ts -t "reconciles a missing owned checkout" --maxWorkers=1 17.33 s
pnpm test test/scripts/eager-import-closure.test.ts -t "PR wrapper inventory" --maxWorkers=1 3.92 s

These timings describe selected coverage counted above. Testbox results refer to wrapper command exits; stopping the lease can mark its linked Actions run cancelled.

CI repair

The first PR CI run (37207389554) found a type-import cycle and three stale test fixtures. The capacity helper now uses its own disk-admission type, CLI tests retain required behavior without enumerating every internal callback, and project-authority tests use the real async lease lifecycle over synthetic storage. The dispatch fixture now supplies prepared placement observations required by a pre-existing runtime contract. Four obsolete mock-export baseline entries were removed; no exceptions were added.

Repair validation uses blacksmith-testbox / openclaw-check, lease tbx_01m43kndgd96s06v4v8s9e7eye (run). pnpm check:architecture passed with zero runtime or Madge cycles. Focused runs passed CLI 14, capacity/owner 24, project authority 15, and dispatch demand 2 tests. CLI, authority, and dispatch add 31 tests across 3 files beyond the initial coverage. Independent review of the final five-file repair is clean at P0–P2.

Additional focused command Wall time
pnpm test src/cli/worktrees-cli.test.ts --maxWorkers=1 21.02 s
pnpm test src/projects/project-registry.authority.test.ts --maxWorkers=1 15.66 s
pnpm test src/gateway/server-methods/sessions.dispatch.demand.test.ts --maxWorkers=1 34.35 s

The capacity change is type-only: esbuild 0.28.2 emits byte-identical JavaScript before and after (SHA-256 89c3f657c000a9c16f57b36237587e6bf269deaca4e4a00dd096550aa549dc77). These CI repairs preserve the measured runtime. Final head: abb347af656fbc1d2cf8a0ea5950c76367f322d8; repair tree: bcd5dd399220aa22477ca513ad14288b26f49f71 (72 intended PR paths). The canonical command node scripts/check-changed.mjs --timed -- src/agents/worktrees/capacity.ts src/cli/worktrees-cli.test.ts src/projects/project-registry.authority.test.ts src/gateway/server-methods/sessions.dispatch.demand.test.ts config/test-mock-exports-baseline.txt passed every selected check, including production types, all 27 core test-type groups, three export scans, lint, formatting, and repository guards. The final command (including the authority test rerun) exited 0 in 1,450.981 command seconds / 1,454.976 runner seconds. Across the initial and repair proof, 583 focused tests in 46 files passed, with one platform skip.

The repair lease is stopped. Current-head CI run 37210713549 completed successfully on abb347af656fbc1d2cf8a0ea5950c76367f322d8: 80 successful jobs, 21 skipped, 14,784 summed job-execution seconds. The final PR check rollup is 104 passed, 48 skipped, zero failures or pending checks; openclaw/ci-gate is successful. A transient dependency-review status resolved on the same head to “No dependency changes require review,” without a workflow rerun. No merge or auto-merge command was issued.

Commit and publish archive state before waking the existing background
maintenance owner after the response. Preserve early and in-flight
unarchive, source custody, and snapshot finalization after deletion.

Separate registered removal from creation with per-checkout leases and
worker-backed disk admission. Keep byte debt until native work settles,
retry failed releases, and retain borrowed Git sources through creation
and restoration. Refresh queued restore facts under its held leases.

Compiled-Gateway measurements use 5,000 sessions, 50 real worktrees,
and 150 archive calls per variant. Archive p99 meets the 100 ms target,
and all 150 dirty worktrees restore after automatic cleanup. Full
before/after measurements and revision-bound proof are in the PR.
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL labels Oct 4, 2026
@steipete
steipete marked this pull request as ready for review October 4, 2026 13:55
@steipete
steipete enabled auto-merge (squash) October 4, 2026 13:56
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 10:56 AM ET / 14:56 UTC (Revision 2).

ClawSweeper review

What this changes

Session archiving responds after committing and publishing its state, then schedules background checkout cleanup while preserving restoration and concurrent disk admission.

Merge readiness

✅ Ready for maintainer review

The prior CLI finding is fixed, and no remaining actionable correctness defect was found. Current main still performs inline archive cleanup, so this PR remains useful. Recorded runtime proof supports the improvement; pending CI remains an ordinary landing gate.

Likely related people: steipete (high confidence, verified prior worktree and cleanup contributions).

Priority: P2
Reviewed head: abb347af656fbc1d2cf8a0ea5950c76367f322d8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong recorded runtime evidence supports a coherent implementation, and the prior actionable finding is resolved.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied isolated Linux compiled-Gateway run exercises archive RPC responses followed by real Git cleanup and dirty-file restoration, directly covering the changed Gateway and maintenance owners. Revision-bound follow-up repairs preserve the measured runtime. Existing-state compatibility is supported by unchanged session/snapshot formats and additive reservations in the existing scoped lease table.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The supplied isolated Linux compiled-Gateway run exercises archive RPC responses followed by real Git cleanup and dirty-file restoration, directly covering the changed Gateway and maintenance owners. Revision-bound follow-up repairs preserve the measured runtime. Existing-state compatibility is supported by unchanged session/snapshot formats and additive reservations in the existing scoped lease table.
Evidence reviewed 9 items Pinned introduction and repository identity: The origin identifies openclaw/openclaw. Review used the supplied merge-base-to-head introduction, separately from base drift; the supplied test merge is stale and was not used to infer removal of main behavior.
Prior finding resolved: The revision-pinned repair replaces the offline GC exact-object assertion with objectContaining, preserves required guard and policy assertions, and adds a text-output assertion. The captured body reports 14 CLI tests passing and architecture validation passing with zero cycles.
Change remains necessary on main: Fetched main retains synchronizeSessionWorktreeArchive and an awaited afterCommit cleanup transition. The merged background-GC and worker-settlement predecessors provide foundations but do not implement this PR's response-before-cleanup behavior.
Findings None None.
Security None None.

How this fits together

The Gateway stores session archive requests and publishes their results to clients. Managed-worktree maintenance then snapshots and removes retired Git checkouts, retaining the information needed to restore saved work.

flowchart TD
  A[Archive request] --> B[Authorize and commit session state]
  B --> C[Publish state and respond]
  C --> D[Background maintenance]
  D --> E[Check session and checkout custody]
  E --> F[Snapshot and remove checkout]
  F --> G[Retained restore snapshot]
  G --> H[Unarchive and restore]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +886, Tests +1199, Docs +2, Other -2. Total +2085 across 72 files.

View PR surface stats
Area Files Added Removed Net
Source 40 1670 784 +886
Tests 27 1398 199 +1199
Docs 2 8 6 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 3 14 16 -2
Total 72 3090 1005 +2085

Review metrics

Metric Value Why it matters
Archive response latency Recorded p99: 787.246 ms → 53.902 ms across 150 calls per variant The measurement ends at the actual Gateway response and includes successful subsequent removal and dirty-file restoration.
Production versus test growth Production +886 net; tests and support +1,199 net Production growth has a stated justification in concurrent disk admission, source custody, and post-deletion settlement.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/agents/worktrees/run-lease.ts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Keep one background maintenance owner for retired checkouts, with durable archive state, lossless snapshots, and session-scoped restore fencing.

Do we have a high-confidence way to reproduce the issue?

Yes—the supplied compiled-Gateway workload measures the archive delay, and current-main source confirms the inline cleanup path. This read-only review did not rerun it.

Is this the best way to solve the issue?

Yes—the change uses the existing maintenance owner and removes synchronous archive cleanup while retaining checkout, source, and restore custody.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e785c56d8207.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The supplied isolated Linux compiled-Gateway run exercises archive RPC responses followed by real Git cleanup and dirty-file restoration, directly covering the changed Gateway and maintenance owners. Revision-bound follow-up repairs preserve the measured runtime. Existing-state compatibility is supported by unchanged session/snapshot formats and additive reservations in the existing scoped lease table.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This improves session archive latency without evidence of an urgent user-facing outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The supplied isolated Linux compiled-Gateway run exercises archive RPC responses followed by real Git cleanup and dirty-file restoration, directly covering the changed Gateway and maintenance owners. Revision-bound follow-up repairs preserve the measured runtime. Existing-state compatibility is supported by unchanged session/snapshot formats and additive reservations in the existing scoped lease table.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied isolated Linux compiled-Gateway run exercises archive RPC responses followed by real Git cleanup and dirty-file restoration, directly covering the changed Gateway and maintenance owners. Revision-bound follow-up repairs preserve the measured runtime. Existing-state compatibility is supported by unchanged session/snapshot formats and additive reservations in the existing scoped lease table.

Evidence

What I checked:

  • Pinned introduction and repository identity: The origin identifies openclaw/openclaw. Review used the supplied merge-base-to-head introduction, separately from base drift; the supplied test merge is stale and was not used to infer removal of main behavior. (abb347af656f)
  • Prior finding resolved: The revision-pinned repair replaces the offline GC exact-object assertion with objectContaining, preserves required guard and policy assertions, and adds a text-output assertion. The captured body reports 14 CLI tests passing and architecture validation passing with zero cycles. (src/cli/worktrees-cli.test.ts:233, abb347af656f)
  • Change remains necessary on main: Fetched main retains synchronizeSessionWorktreeArchive and an awaited afterCommit cleanup transition. The merged background-GC and worker-settlement predecessors provide foundations but do not implement this PR's response-before-cleanup behavior. (src/gateway/server-methods/sessions-patch-archive.ts:346, e785c56d8207)
  • Response and maintenance ownership: The handler notifies maintenance in its finalizer after response handling. Maintenance coalesces notifications and schedules a follow-up when an archive arrives during a running sweep. (src/gateway/server-methods/sessions-mutations.ts:218, abb347af656f)
  • Recorded production-boundary proof: The captured PR body records isolated compiled-Gateway runs using a persistent GatewayClient WebSocket, 5,000 durable sessions, 50 real Git worktrees, and 150 archive calls per variant. Candidate p99 was 53.902 ms versus 787.246 ms; all 150 automatic removals and dirty-file restores passed. Measurements are pinned to candidate tree 423dae8ff688da54d8fed4cfb0d9ebd581be9926. The subsequent repair is tests plus type-only capacity imports, with reported byte-identical emitted capacity JavaScript. This is supplied runtime evidence, not execution by this reviewer.
  • Cleanup and revocation safeguards: Removal checks current authority before deletion; terminal settlement subsequently retains the operation leases and exact removal claim. Source inspection and recorded focused coverage include refusal after pre-deletion revocation, restoration after producer revocation following deletion, nested-lease expiry rollback, and source-donor protection. (src/agents/worktrees/service.ts:1233, abb347af656f)

Likely related people:

  • Peter Steinberger: Raw commit 3b16db7 adds src/gateway/worktree-maintenance.ts:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3b16db73c0b5; files: src/gateway/worktree-maintenance.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-04T14:02:42.454Z sha 36217d7 :: needs changes before merge. :: [P2] Update the offline GC assertions for the expanded owner policy

Remove upward type-only capacity imports without changing emitted runtime
JavaScript. Preserve CLI cleanup assertions while allowing the owning
maintenance callback, and adapt project authority fixtures to worker-backed
lease storage while retaining their real lifecycle and admission checks.

Supply prepared placement observations in the existing dispatch fixture.
Preserve real module exports in authority mocks and remove four obsolete
baseline entries without adding isolation exceptions.
@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Oct 4, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 4, 2026
@steipete
steipete merged commit 339c4da into main Oct 4, 2026
170 of 173 checks passed
@steipete
steipete deleted the steipete/perf-micro-archive-no-inline-worktree-removal-20260919 branch October 4, 2026 15:00
steipete added a commit that referenced this pull request Oct 4, 2026
Merge current main to incorporate the independently diagnosed
prepareRuntimeRefresh fixture repair from #164938. Preserve the compound 3b
worker lifecycle, native deletion, and exact transcript rewrite cutover.

The merge is conflict-free and retains the previous candidate's stable
patch ID. Refresh focused integration, SDK, and published-driver update
proof for the new surrounding worktree and placement owners.
steipete added a commit that referenced this pull request Oct 4, 2026
Follow up #164938 (339c4da), which moved managed-worktree allocation
to worker-backed leases. The shared-state codec admitted lock errors but
dropped unmarked non-lock SQLite errors. Losing errcode prevented lease
acquisition from reporting the original storage failure.

Admit the existing validated numeric result code in both codec directions.
Keep acquisition classification and outcome-unknown handling unchanged.
Cover NOTADB and extended IOERR in the existing transport table, retain
ordinary-error opt-in coverage, and document admission diagnostics. No
schema, persistence, or update migration changes are required.

The original native provisioning case reproduced its missing outcome on
main. All 58 transport tests pass. The unchanged native provisioning file
passes all 15 tests in 76.48s wall when run alone; an earlier concurrent run
exceeded its unchanged 120s deadline. Changed-file checks pass, including
core production and all 27 test type graphs. Independent Codex review
through P2 found no actionable findings.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
…w#164938)

* perf(sessions): return archive responses before worktree cleanup

Commit and publish archive state before waking the existing background
maintenance owner after the response. Preserve early and in-flight
unarchive, source custody, and snapshot finalization after deletion.

Separate registered removal from creation with per-checkout leases and
worker-backed disk admission. Keep byte debt until native work settles,
retry failed releases, and retain borrowed Git sources through creation
and restoration. Refresh queued restore facts under its held leases.

Compiled-Gateway measurements use 5,000 sessions, 50 real worktrees,
and 150 archive calls per variant. Archive p99 meets the 100 ms target,
and all 150 dirty worktrees restore after automatic cleanup. Full
before/after measurements and revision-bound proof are in the PR.

* fix(worktrees): repair archive cleanup CI contracts

Remove upward type-only capacity imports without changing emitted runtime
JavaScript. Preserve CLI cleanup assertions while allowing the owning
maintenance callback, and adapt project authority fixtures to worker-backed
lease storage while retaining their real lifecycle and admission checks.

Supply prepared placement observations in the existing dispatch fixture.
Preserve real module exports in authority mocks and remove four obsolete
baseline entries without adding isolation exceptions.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
Follow up openclaw#164938 (c6b10b3), which moved managed-worktree allocation
to worker-backed leases. The shared-state codec admitted lock errors but
dropped unmarked non-lock SQLite errors. Losing errcode prevented lease
acquisition from reporting the original storage failure.

Admit the existing validated numeric result code in both codec directions.
Keep acquisition classification and outcome-unknown handling unchanged.
Cover NOTADB and extended IOERR in the existing transport table, retain
ordinary-error opt-in coverage, and document admission diagnostics. No
schema, persistence, or update migration changes are required.

The original native provisioning case reproduced its missing outcome on
main. All 58 transport tests pass. The unchanged native provisioning file
passes all 15 tests in 76.48s wall when run alone; an earlier concurrent run
exceeded its unchanged 120s deadline. Changed-file checks pass, including
core production and all 27 test type graphs. Independent Codex review
through P2 found no actionable findings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant