Skip to content

fix: keep Gateway responsive during restart checkpoint scans - #158680

Closed
fuller-stack-dev wants to merge 1 commit into
openclaw:mainfrom
fuller-stack-dev:fix/recovery-checkpoint-history-worker-20260926
Closed

fuller-stack-dev wants to merge 1 commit into
openclaw:mainfrom
fuller-stack-dev:fix/recovery-checkpoint-history-worker-20260926

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes Gateway pauses during restart recovery when a session has a large active history.

User Impact

Other Gateway work can continue while recovery classifies a durable session's checkpoint. Recovery decisions, transcript bytes and incognito behavior stay unchanged. No migration or operator action is required.

Why This Change Was Made

The restart checkpoint scan still decoded durable transcript rows on the caller after the bounded display-history read had moved to a worker. Route this classifier through the existing admitted history worker and share its incremental reducer with the process-held incognito reader. The result still comes from one active-history snapshot, including checkpoints outside the display tail.

The tradeoff is worker overhead: this improves caller responsiveness, not total cold-read throughput.

Evidence

Published head remains a441eb6e1ae8f6684a88b05b00657bdd19db758d. Local correction 5536ab0aae84926dd3c734d03256d72fdb6239da contains canonical a58d7709797ae6a9816576f86987af68b0b1ef99 through an ancestry-preserving merge. Its native correction review validates READY. The latest gate passed build in 7m5s and full check, then failed during full tests. It ended with exit 130 after the native backup-shard watchdog fired and the failed invocation was interrupted. The log has 175 completed groups and 107,061 reported passing tests. Finalized groups contain one Telegram timeout and two restart-fixture assertion failures; backup and worker-profile failures were also observed in unfinished groups. Cancelled groups are not passing coverage. Two residual process entries still prevent native lock recovery. No replacement broad run has started. Correction publication, exact-candidate gates, hosted CI and fresh ClawSweeper review remain pending.

Separate fixture repair 04413f10f6b30fe7ea02606741687cb599bb45e1 is committed and reviewed but not yet integrated into this held candidate. The restart fixture replaced isolated state resolution with a fixed shared temporary path. A transparent guard reproduced five attempted admissions to that path while refusing access before SQLite opened; the two original signal assertions also failed. Binding each case to private state and restoring the real path resolver passes the same 16 cases in a reported 11.40s. Infra types, scoped lint and formatting pass. Independent API review found no P0-P2 findings, confidence 0.91. Source-blind validation passed all 16 cases with spaces and Unicode in the temporary path and verified cleanup. The whole test file was audited; no assertion, deadline, retry or skip was weakened. This proves fixture isolation, not the original shared path's contents or exact error.

Bounded, phase-only diagnostics passed the original two Telegram cases, all 125 backup cases and all 80 worker-runtime cases. These are non-reproductions, not established fixes for the original timeouts or missing marker. Three attempts to isolate a separate Telegram loader-fixture problem ended at the unchanged no-output guard without a test verdict, so no speculative patch was kept. Diagnostic source was restored exactly and private outputs were removed. The full UI group passed all 22,249 tests; the earlier watcher and hot-reload reply cases also passed. The historical process crash and unsettled exit remain unattributed.

The integrated checkpoint and history-worker suites passed 57 cases. Independent source-blind validation passed 25 varied durable/incognito cases, including 19 durable reads with zero caller-thread transcript statements and corruption/refusal/recovery controls. The latest scoped same-fixture responsiveness check passed with a 1.864167 ms maximum caller gap for the large fixture, zero caller transcript statements and the unchanged 250 ms limit. Independent API review of the integrated branch found no actionable P0–P2 findings. Canonical archive-presence handling uses a separate worker request; current full-gate coverage remains required.

The Slack fixture now enters the cold resolver on real clocks before testing the existing policy boundaries. All 135 cases pass, and an overlong-cleanup negative control still fails the unchanged 500 ms limit. The MCP retention fixture now follows the native isolated-memory and shared-requester owners; its 21-case command passes with original execution counts and order. This does not establish the cause of the historical 180-second wrapper timeout. The latest prerequisite only moves an unchanged roster type into a type-only leaf: scoped lint fails before and passes after, UI types and formatting pass, and all 59 existing cases in four UI suites pass. Independent API review found no actionable P0–P2 findings. No assertion, retry, timeout or skip was weakened.

Historical full-gate failures remain disclosed. The prior 3d2ab027 run passed build but failed the roster line limit before tests; the type-only prerequisite repairs that failure. The earlier a8f387cd run passed build and check, then recorded a watcher assertion failure, an agent-admission fixture failure and a unit-src SIGSEGV. The watcher passed one unchanged focused replay, which is inconclusive. Canonical d923cd08 repairs the admission fixture routing. The SIGSEGV has no matching crash stack or established cause. Those runs settled and their exact native locks were recovered. The measurements below retain their original candidate identities.

  • The original private 256 MiB fixture failed on canonical c6da2a9 with a 390.154 ms maximum caller gap and two caller transcript statements. The same fixture on 2094ed23 passed with a 3.745 ms maximum gap, zero caller transcript statements and the unchanged classification. Total checkpoint time was 352.523 ms. Its small control also passes. Both cases took 41.85 s including compilation and fixture lifetime. The 250 ms assertion is unchanged.
  • Exact integrated-head checks passed 56 cases across six native shards in 125.22 s. They cover registry discovery and revalidation, physical/schema replacement, cancellation, failed-reader recovery, prewarm custody and the checkpoint contract. Four selected existing prewarm cases filtered 14 unrelated cases; no source skips were introduced.
  • The seven-case checkpoint regression protects older checkpoints, new-turn and inactive-branch rejection, provenance, incognito, typed parse errors and successful reuse. The entire test file, fixtures, assertions and teardown were audited. No distinct coverage was removed or weakened.
  • Independent API review is clean through P2. The authored runtime patch remains identical across main integration; independent source review found no conflict with canonical prewarming or shared-state admission changes. Final fixture/UI prerequisites also passed independent review.
  • Shared test fixtures now remove inherited PR/Git authority. Seventeen native isolation/maintenance cases and seven independent cases using 151 real Git commands pass. A mechanical clipboard-helper extraction repairs the strict UI line limit and passes all 34 existing attachment tests. The next exact-candidate full gate remains pending.
  • Earlier source-blind classification passed six cases, and recovery-flow validation passed four cases after the caller's real bounded-history prelude. A separate cold-source run exceeded the scheduling target at 304.163 ms. This limitation remains disclosed. These are prior-head module-boundary results, not new public Gateway E2E evidence.

The previous e1ac2ef3 native build passed in 11m0.4s, then its check failed the UI line limit before full tests began. That exact failure is now repaired by the reviewed extraction; no old gate stamp is carried forward.

The original live 7.111 s history log has no caller stack. This repairs a reproducible restart-checkpoint stall, without attributing that specific incident. Worker overhead remains, so this is a caller-responsiveness claim rather than a cold-read throughput claim. All fixtures were private and synthetic; no live Gateway was used.

Historical proof downloads were hash-verified. Their links expire after seven days; the measured results remain recorded here.

Shared gate prerequisite repair

The earlier native run at 2094ed23a9ef196db43a86aaa29583cff849dad9 passed build and check, then exposed shared fixture failures. That run has stopped and its native recovery is complete. The following reviewed repairs are integrated locally and remain absent from the published head. Their original focused results remain identified below. Later native fixture routing and the unresolved historical timeout attribution are described above.

  • fc47343a5198574003ff7a806c774bf6034535ae: isolate the MCP command fixture's global runtime manager. An ordered fresh-main reproduction showed that a preceding file's retained factory bypassed the transport mock and started a real process. The full command fixture passes all 20 cases; both permanent ordered-pair regressions pass, including all four transport-settlement paths.
  • 0fa080f71eb40c9eb1f5a3b6b7c97f6dafc448d5: remove incomplete lifecycle-error mocks and restore timers during teardown. Both original and reversed file orders reproduce the missing export on unmodified main. The repaired lease and adjacent maintenance suites pass all 27 cases.
  • b464a9a55d1bbe07c457d3be131ff4bcb83b1a51: keep GitHub item icons with the first label line. Fitting chips remain on one line; oversized labels wrap without clipping or icon overlap in both directions. All seven browser tests and six independent source-blind clauses across 80 combinations pass.

All five touched test files were audited in full. Distinct regressions, failure paths and cleanup checks remain; no tests were removed or skipped, and no timeout or retry was increased. The UI test now distinguishes fitting from oversized labels and checks clipping and overlap. A new RTL guard rejected the first padding draft. Scoped types, lint, formatting, styles and changed-plan guards pass. Final independent API review found no actionable P0–P2 issue, confidence 0.93. These are focused results, not a completed full-gate claim.

The before/after captures use the same synthetic component fixture, Chromium renderer and 200/208-pixel columns. Base: 1fe560c198c2917154e2e1b130b0df3352ac5114. Head: b464a9a55d1bbe07c457d3be131ff4bcb83b1a51. This proves component layout, not a full Gateway workflow or every browser engine.

Theme Before After
Light Before, light, icon stranded above label After, light, icon shares first label line
Dark Before, dark, icon stranded above label After, dark, icon shares first label line

Before video:

https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/pr-158680/publish/20260928-061345-944996000/before.mp4?X-Amz-Expires=604800&X-Amz-Date=20260928T061345Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20260928%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=7e738bc0a2aaf033c3881374b5d220d472c0fd32ed2f6df84af0a21ee47a6ef1

After video:

https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/pr-158680/publish/20260928-061345-944996000/after.mp4?X-Amz-Expires=604800&X-Amz-Date=20260928T061345Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20260928%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=a95c81c2122825713eddf588b9638379ea62a6816c358381340a468443784943

Contract · Raw before · Raw after · Artifact manifest

All published files were downloaded and hash-verified. Links expire on October 5, 2026.

@clawsweeper

clawsweeper Bot commented Sep 26, 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 agents Agent runtime and tooling labels Sep 26, 2026
@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review September 26, 2026 05:44
@clawsweeper clawsweeper Bot added 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 28, 2026, 9:01 AM ET / 13:01 UTC (Revision 8).

ClawSweeper review

What this changes

The branch moves durable restart-checkpoint classification into the session-history reader worker, keeps incognito reads process-held, and adds tests and worker-access documentation.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 9 items remain

Current main still has the restart-scan responsiveness gap. The pinned PR head remains useful, but it is not ready to land: its new classifier omits a recovery authority rule already fixed on main, and the described correction is not published.

Priority: P2
Reviewed head: a441eb6e1ae8f6684a88b05b00657bdd19db758d

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The worker responsiveness evidence is useful, but the pinned patch has a blocking recovery-authority defect and lacks proof of the corrected final effect.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: The PR records real SQLite-worker terminal measurements for caller responsiveness, but the pinned head still classifies unverified input as other. It has no published-head recovery-owner trace showing a verified external-user input reaching resume and missing or invalid provenance being refused before resume. The diff changes no stored-data contract. A redacted terminal trace of those final effects is suitable; updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: The PR records real SQLite-worker terminal measurements for caller responsiveness, but the pinned head still classifies unverified input as other. It has no published-head recovery-owner trace showing a verified external-user input reaching resume and missing or invalid provenance being refused before resume. The diff changes no stored-data contract. A redacted terminal trace of those final effects is suitable; updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Published classifier: The introduced reader maps both verified external-user provenance and missing or invalid provenance to other.
Current-main authority rule: Current main recognizes external_user explicitly and maps missing or unknown provenance to undefined.
Final recovery decision: For an internal-ingress claim, the recovery store tombstones an undefined source but does not tombstone other; the surviving path can reach resumeCurrent.
Findings 1 actionable finding [P1] Preserve verified-human provenance in the worker classifier
Security Needs attention Unverified input can pass the recovery source guard: Mapping missing or invalid provenance to other bypasses the recovery store's undefined-source tombstone for internal ingress and can allow an unintended resumed turn.

How this fits together

After a Gateway restart, recovery reads a session transcript to decide whether an interrupted turn may resume. The proposed worker read returns checkpoint and input-source facts to the recovery store, which resumes or tombstones the turn.

flowchart LR
  A[Gateway restart] --> B[Session transcript]
  B --> C{History location}
  C -->|Durable| D[History reader worker]
  C -->|Incognito| E[Process reader]
  D --> F[Checkpoint and source]
  E --> F
  F --> G{Recovery allowed}
  G --> H[Resume or tombstone]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: The PR records real SQLite-worker terminal measurements for caller responsiveness, but the pinned head still classifies unverified input as other. It has no published-head recovery-owner trace showing a verified external-user input reaching resume and missing or invalid provenance being refused before resume. The diff changes no stored-data contract. A redacted terminal trace of those final effects is suitable; updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Preserve verified-human provenance in the worker classifier (P1) - The new reader maps both external_user and missing or invalid provenance to other. For internal ingress, the recovery store tombstones an undefined source but lets other proceed toward resume, so this branch loses the verified-human rule merged in fix(agents): require human provenance for internal restart recovery #160130. Port that rule into the worker reader and update the conflicting test expectations.
  • Resolve security concern: Unverified input can pass the recovery source guard - Mapping missing or invalid provenance to other bypasses the recovery store's undefined-source tombstone for internal ingress and can allow an unintended resumed turn.
  • Resolve merge risk (P1) - The published classifier can let an internal restart claim with missing or invalid human provenance reach resume because it returns other where current main returns undefined.
  • Resolve merge risk (P1) - The published head has no final-effect recovery trace showing refusal before resume for missing or invalid provenance and acceptance for verified external-user provenance.
  • Resolve merge risk (P1) - GitHub reports merge conflicts, and the PR body's local correction has not been published or validated as the combined candidate.
  • Complete next step (P2) - Publish a conflict-resolved head that preserves current-main provenance handling and provide final-effect recovery proof for verified external-user and missing or invalid inputs before merge.
  • Improve patch quality - Publish the integrated correction and resolve the conflicts against current main.
  • Improve patch quality - Add a redacted recovery-owner trace proving verified external-user resume and pre-resume refusal for missing or invalid provenance.

Findings

  • [P1] Preserve verified-human provenance in the worker classifier — src/agents/main-session-recovery/main-session-restart-recovery-checkpoint-reader.ts:51-52
  • [high] Unverified input can pass the recovery source guard — src/agents/main-session-recovery/main-session-restart-recovery-checkpoint-reader.ts:52
Agent review details

Security

Needs attention: The published reader can classify unverified input as eligible for internal restart recovery.

PR surface

Source +52, Tests +178, Docs +6. Total +236 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 8 101 49 +52
Tests 1 178 0 +178
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 285 49 +236

Review metrics

Metric Value Why it matters
Production and test growth production net +52 lines; tests +178 lines The production growth is explained by the worker request and shared reader; the new test surface needs to cover the current provenance rule.

Merge-risk options

Maintainer options:

  1. Integrate the provenance correction (recommended)
    Update the published branch against main, preserve the verified-human recovery rule, and demonstrate both allowed and forbidden final recovery effects before merge.
  2. Pause the branch
    Keep the PR open without landing it until the corrected, conflict-free candidate and its recovery proof are available.

Technical review

Best possible solution:

Carry current main's verified external-user rule into the worker classifier, then validate allowed and forbidden recovery outcomes on the integrated head while retaining the measured responsiveness improvement.

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

Yes. Current main still scans the active transcript on the recovery caller, and the PR records a synthetic 256 MiB before/after timing; this reviewer did not execute that fixture.

Is this the best way to solve the issue?

Yes, the existing admitted history reader is the appropriate owner for the durable scan. The published classifier must first preserve current main's provenance decision.

Full review comments:

  • [P1] Preserve verified-human provenance in the worker classifier — src/agents/main-session-recovery/main-session-restart-recovery-checkpoint-reader.ts:51-52
    The new reader maps both external_user and missing or invalid provenance to other. For internal ingress, the recovery store tombstones an undefined source but lets other proceed toward resume, so this branch loses the verified-human rule merged in fix(agents): require human provenance for internal restart recovery #160130. Port that rule into the worker reader and update the conflicting test expectations.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6d6ea35f7616.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The reported restart pause has a measured synthetic reproduction, while the specific live incident lacks a caller stack.
  • merge-risk: 🚨 security-boundary: The introduced classifier can turn absent or invalid human evidence into a source value that bypasses the internal-recovery refusal.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: The PR records real SQLite-worker terminal measurements for caller responsiveness, but the pinned head still classifies unverified input as other. It has no published-head recovery-owner trace showing a verified external-user input reaching resume and missing or invalid provenance being refused before resume. The diff changes no stored-data contract. A redacted terminal trace of those final effects is suitable; updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [high] Unverified input can pass the recovery source guard — src/agents/main-session-recovery/main-session-restart-recovery-checkpoint-reader.ts:52
    Mapping missing or invalid provenance to other bypasses the recovery store's undefined-source tombstone for internal ingress and can allow an unintended resumed turn.
    Confidence: 0.96

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (7 earlier review cycles)
  • reviewed 2026-09-26T05:52:11.023Z sha a441eb6 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T04:57:20.569Z sha a441eb6 :: blocked before merge. :: none
  • reviewed 2026-09-28T06:22:12.898Z sha a441eb6 :: blocked before merge. :: none
  • reviewed 2026-09-28T08:39:44.857Z sha a441eb6 :: needs real behavior proof before merge. :: [P1] Preserve verified-human provenance in the worker classifier
  • reviewed 2026-09-28T11:08:48.086Z sha a441eb6 :: needs real behavior proof before merge. :: [P1] Preserve verified-human provenance in the worker classifier
  • reviewed 2026-09-28T11:46:22.355Z sha a441eb6 :: needs real behavior proof before merge. :: [P1] Preserve verified-human provenance in the worker classifier
  • reviewed 2026-09-28T12:19:14.453Z sha a441eb6 :: needs real behavior proof before merge. :: [P1] Preserve verified-human provenance in the worker classifier

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Sep 28, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed 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. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Sep 28, 2026
@fuller-stack-dev fuller-stack-dev self-assigned this Sep 29, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Closing as superseded by #163053, merged as b7cf8fa.

Current main at 9c199dc routes readMainSessionRecoveryCheckpoint through readSessionTranscriptSummaryAsync with the recovery-checkpoint selector. Durable transcript reads then dispatch to the existing history worker. The caller no longer scans durable transcript SQL on the Gateway thread. Process-held/incognito reads keep their separate owner.

The merged implementation records a 1,204-message regression covering checkpoint, usage and MCP facts without host transcript SQL. Its historical checkpoint benchmark reduced the largest event-loop gap from 193.0 ms to 4.1 ms. Those are the merged PR's recorded measurements, not a new benchmark from this reconciliation.

The intended recovery-checkpoint repair is now on main. The unpublished correction branch is preserved while its unrelated accumulated changes are reconciled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant