Skip to content

refactor: migrate historical compaction state with Doctor - #163592

Closed
steipete wants to merge 27 commits into
mainfrom
refactor/lg-config-compaction-state
Closed

steipete wants to merge 27 commits into
mainfrom
refactor/lg-config-compaction-state

Conversation

@steipete

@steipete steipete commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Moves supported historical compaction state out of runtime cleanup and history readers without losing retained history or token metrics. Releases including v2026.7.1 and v2026.9.3 wrote checkpoints that still serve both responsibilities.

User Impact

Doctor converts checkpoints into canonical retention references and finite metrics on existing compaction events. Runtime consumes those canonical facts. Transcript text, retained-entry boundaries, unrelated fields, and opaque large integers remain intact. Verified backups retain original bookkeeping and unmatched metrics; Doctor never invents a matching compaction event.

The normal update-time Doctor owns conversion. After direct binary replacement, run openclaw doctor --fix before starting the Gateway with historical rows. Prior-head source, build, SDK, package, and the hot/cold 2026.9.7 → candidate cell passed. The separate replay cell exposed a live Doctor file-input defect that the current head fixes. Fresh validation and all three update cells for the current head are pending; this PR is not yet ready to merge.

Why This Change Was Made

Migration now uses Doctor's existing entry rewrite, backup, cold restore, import-spool, and transaction owners. Ordinary edits and rewinds preserve retention; forks and explicit resets retain their release behavior. Cross-store repair refuses concrete history-custody loss while preserving originals. A cold-to-hot restore may precede a later refusal; immutable archives remain available to database backups. No schema-version change is introduced.

The shared backup owner captures current repair inputs instead of reusing a stale schema rollback snapshot. Canonical repair backs up and revalidates pending validity before admission, then rebuilds its decisions. Existing path validation rejects aliases, including external stores. The path-containment correction accepts a legitimate child named ..keep. Import backs up an existing destination before restoring cold history or changing metrics.

Published 9.7 copies SQLite into its disposable rehearsal but omits cold archive files. In a verified disposable rehearsal only, absent file-backed cold metrics are deferred with a recoverable warning while copied metadata is normalized. Live Doctor still verifies and migrates original archives before activation; present corrupt archives remain errors. Provider-alias-before-delivery ordering from #163171 is preserved.

Significant overlap: #164512 shares Doctor repair-snapshot and source-path validation owners. Its integration must retain these final main behaviors. Main's formatter-import and preview-readiness corrections are included in the base; this PR does not duplicate them.

SDK: public SessionEntry is unchanged and ordinary entry projections omit retainedHistoryReferences. Existing session-store-runtime writer aliases recordSessionMetaFromInbound and updateLastRoute return an internal entry type, so their reachable return types gain optional retainedHistoryReferences: { sessionIds: string[]; artifactPaths: string[] }. The prior 93dc SDK comparison reports this additive public effect: no entrypoints added/removed and no direct export changes; 182 exports have changed reachable declaration closures, including internal migration/query declarations. The inspected full digest is c1327cf8305739de6e15dcbf2832659b950d1c390cac5759fe20fc2d08898322. No compatibility export is retired. SessionEntry.compactionCheckpoints was already removed in #154131 and is absent from stable 9.7 public projections.

Production +2292 / -936 / net +1356, across 50 production files, from all 85 files in complete paginated GitHub accounting at e818d504d7beeaf3372dd2f0236586d89a650cd6. Scope is src/** and extensions/**, excluding tests, support/helpers/utils/harnesses, E2E, and fixtures. Growth belongs to preserving supported durable data; this PR does not claim a net reduction.

Evidence

The installed update proof found a second rehearsal gap: 9.7 copies admitted SQLite but omits legacy session JSON/JSONL. Replay's SQLite input was canonical while its checkpoints lived in sessions.json. The early ACP scan normalized every JSON row merely to find ACP metadata, so strict runtime projection refused it before the transcript importer ran. The current head adds one Doctor-only intermediate shape that preserves checkpoint and locator inputs through file/key/ACP repairs; identity/scalar normalization remains shared and the canonical importer stays strict. The two outer migration cases cover canonical and alias keys, both non-ACP and combined ACP/checkpoint rows, durable ACP metadata, and exact locator/transcript preservation.

Prior package run run_325041de8a6e3a34c03ef74133baa4c2 passed in 655.218 s and SDK surface run run_6083178d8a5e4c98eef81fe61a06f391 passed in 5.770 s. At 93dc, update run run_87a68ef4af312212faaa7de39e8ecc2f passed the hot/cold cell (published update 318.383 s, repeat Doctor 12.432 s, candidate Gateway history 18.680 s). Its replay update failed live ACP preflight after 236.530 s; changed databases and retained snapshots were preserved. Custody did not run. That run remains failed overall, with its successful cell attributed only to 93dc.

Original 93dc regression run run_5e20579735d53f531bc42dc9e3192d3c failed both new cases for the intended ACP/orphan-key refusal in 46.790 s. Fixed production head b06b3259164848c2de358aea8de70890b870a1e8 passed the complete outer migration suite (72.699 s), legacy-file suite (22.825 s), ACP suite (31.213 s), and round-trip suite (24.646 s) in run_e93d7736704646d5190c36881f6341b1. Its broader migration suite passed 110 cases and failed one stale locator-removal expectation (166.046 s). The current test-only child asserts the exact preserved locator; no product assertion, timeout, or retry was relaxed. Those first four passing suites retain their original producer; remaining suites, new delta checks, SDK report, package, and all three new update cells are still pending.

Candidate: e818d504d7beeaf3372dd2f0236586d89a650cd6; base: 3f6c1d3a23b90c52b3bf317afc5291e7f1125e32. Independent Codex reviews are clean through P2, including the final mechanical correction. No local builds or tests ran.

On Hetzner lease cbx_b2c1c013d4d4, native run run_f9268fb2f2bcdbe4ce6de07456a1238f passed 33 ordinary suites / 470 cases in 1172.221 seconds at parent 02f7dbe429c927819e84accd7089356d62c3b3be, using pnpm test <file> --maxWorkers=1. It then failed the database-worker ratchet in changed checks after 37.737 seconds. The renamed Doctor-only inventory operation was missing from its existing T3 classification. Hosted CI run 37186701111 also caught six local-variable shadowing diagnostics. The candidate fixes those exact classification and lexical-name omissions, without changing the product algorithm or test bytes. The original run remains failed overall; its passing suites retain their original head and producer. The follow-on inventory check exposed stale generated documentation; the canonical generator corrected it in the docs-only final commit. The original runs remain failed overall. Native continuation run_2b09bf6d5f1e6d609bed2547f84607d6 passed all nine remaining stages: assertion guard 21.798 s, inventory 2.004 s, Kysely guard 55.351 s, changed lanes 0.342 s, changed plan 2.583 s, full changed checks 1281.538 s, CI-artifact build 180.164 s, built-CLI migration E2E 165.225 s, and SDK report 223.791 s. All 33 retained suite results remain attributed to their original head/run; exact mechanical and docs-only delta checks justify their reuse. Packaging and update proof are still pending.

Meaningful regressions cover backed-up pending validity, aliased repair inputs, exact opaque entry bytes, retained cold archives, import recovery, and registered history readers. Their original negative controls remain failed at their original heads: the ..keep control (34.310 s), stale-backup control (24.156 s), and three admission/alias cases (31.118 s). No retries, longer timeouts, or weaker assertions were introduced.

Earlier update run run_efaa50f0761b2d6ef1a38b9b1a17837e on stopped lease cbx_84d414edbcd0 failed after 96.894 seconds because the published rehearsal omitted a verified 749-byte archive. The candidate's rehearsal-only correction addresses that producer omission; it is not yet claimed as a passing cell. Earlier fixture, import, assertion, and lint failures remain historical failures and are not counted as successful proof.

Exact-head hosted CI 37197994646 failed only job 111423970347 (checks-node-changed-compact-large-27, 198 s including setup) and its aggregate gate. The native harness-auth suite ran in worker threads while its real session admission requires the host-owned SQLite actor. Native run run_f8482c58226f176981a9defedbcb6d65 reproduced all 18 failures on clean main f9dfa9a36f1506e29aee44126d6c6371d7f89aae with the exact two-file inner shard and observed file order (54.630 s). The unchanged tests plus the shared integration sibling pass 157 cases / 3 files through the existing infra/forks owner (209.070 s). This is a deterministic test-routing defect, separate from the transaction-observer flake. Main already contains the same one-line correction in ec583a242659c2a972f25d7a93520cc6f06098c0; the duplicate local fix was not published. Compaction's entry writer can be reached during setup, but the unconditional thread admission refusal and incorrect routing are unchanged on main and independent of retained-history serialization. This is retained failure evidence, not a claim that the failed CI run passed.

Measured source-suite wall cost

Each ordinary suite used pnpm test <file> --maxWorkers=1 on the named Hetzner lease. These native storage, recovery, and registered-reader contracts include real worker setup; files above 30 seconds protect persisted bytes or lifecycle boundaries that a mocked helper cannot verify. The original producer is 02f7dbe429c927819e84accd7089356d62c3b3be; the built-CLI test ran freshly at 93dc1affad6cd11edf4bb7b1ff3b1e16db97dd63.

File Wall seconds
src/commands/doctor-session-compaction-history.test.ts 66.366
src/commands/doctor-session-sqlite.compaction-history-import.test.ts 32.170
src/commands/doctor-session-canonical-keys.test.ts 51.604
src/commands/doctor-session-canonical-keys.address.test.ts 28.272
src/commands/doctor-session-canonical-keys.retention.test.ts 29.859
src/commands/doctor-session-canonical-keys.race.test.ts 32.426
src/commands/doctor-session-incognito-key-repair.test.ts 24.708
src/config/sessions/legacy-main-session-migration.handoff.test.ts 60.926
src/config/sessions/session-accessor.sqlite-session-row.test.ts 32.263
src/config/sessions/session-accessor.sqlite-message-cut.test.ts 48.899
src/config/sessions/session-accessor.sqlite-excluded-rows.test.ts 27.725
src/config/sessions/disk-budget.test.ts 25.736
src/config/sessions/session-cold-storage-eligibility.test.ts 2.643
src/plugins/contracts/session-entry-projection.contract.test.ts 36.157
src/gateway/server-methods/chat-history-omission-logging.test.ts 29.615
src/config/sessions/session-accessor.compaction-boundary.test.ts 36.876
src/config/sessions/session-accessor.sqlite-message-cut-native.test.ts 41.032
src/commands/doctor-session-sqlite.compaction.test.ts 32.934
src/commands/doctor-session-sqlite.compaction-recovery.test.ts 39.572
src/config/sessions/session-transcript.worker.schema-freshness.test.ts 25.332
src/gateway/server.chat-history-cursor.test.ts 53.394
src/tui/embedded-backend.test.ts 31.568
src/gateway/session-transcript-readers.markers.test.ts 33.272
src/commands/doctor-session-sqlite.manifests.test.ts 30.182
src/commands/doctor-session-sqlite.retirement-verification.test.ts 36.559
src/commands/doctor-session-transcripts.missing-index.test.ts 26.339
src/config/sessions/session-accessor.sqlite-import.test.ts 29.465
src/commands/doctor-migration-backup.test.ts 33.282
src/commands/doctor-session-canonical-keys.scale.test.ts 49.324
src/commands/doctor-session-canonical-keys.completions.test.ts 64.845
src/commands/doctor-session-canonical-keys.memory.test.ts 48.222
test/scripts/eager-import-closure.test.ts 26.031
test/scripts/pr-wrapper-source-closure.test.ts 4.621
test/scripts/sqlite-sessions-transcripts-flip-proof.built-cli.e2e.test.ts 165.225

@clawsweeper

clawsweeper Bot commented Oct 2, 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 commands Command implementations size: XL labels Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 4, 2026, 8:54 AM ET / 12:54 UTC (Revision 31).

ClawSweeper review

What this changes

Doctor converts historical compaction checkpoints into private history-retention references and transcript token metrics, allowing runtime cleanup and history readers to stop interpreting legacy checkpoints.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: this migration remains useful and is not implemented on current main. No new actionable code finding was established, but the previous review’s packaged upgrade-safety blocker remains unresolved after the latest file-input fix.

Priority: P2
Reviewed head: e818d504d7beeaf3372dd2f0236586d89a650cd6

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The migration has coherent ownership and meaningful regressions, but current-candidate upgrade compatibility remains unproven.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The supplied repository state identifies a member author, so ordinary external-contributor proof is exempt. Independent stored-data compatibility remains insufficient: the real 93dc published-driver hot/cold success is preserved, but replay failed before the latest Doctor file-input correction, and current-candidate package, SDK, and all three upgrade cells remain pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a member author, so ordinary external-contributor proof is exempt. Independent stored-data compatibility remains insufficient: the real 93dc published-driver hot/cold success is preserved, but replay failed before the latest Doctor file-input correction, and current-candidate package, SDK, and all three upgrade cells remain pending.
Evidence reviewed 10 items Pinned introduction and latest correction: Reviewed the introduced merge-base-to-head changes separately from base drift. The latest production commit adds a Doctor-only intermediate shape that retains checkpoints and transcript locators through early file repairs; the final child changes only the locator-preservation expectation.
Still necessary on current main: Fetched main still uses readLegacyCompactionSnapshotPaths in disk cleanup and enrichChatHistoryCompactionMarkers in history responses. The merged checkpoint-feature removal preserved legacy retention; it did not implement this durable conversion.
Shipped retention contract: The v2026.9.8 source retains legacy checkpoint references and explicitly requires an approved preservation migration before removing their runtime interpretation. Retrieved this blob through GitHub after local lazy object retrieval failed.
Findings None None.
Security None None.

How this fits together

Doctor repairs older session databases and imported transcript files before OpenClaw starts using them. Its converted records determine which historical transcripts cleanup preserves and which token metrics chat history displays.

flowchart TD
  A[Historical session records] --> C[Doctor migration]
  B[Transcript files and cold archives] --> C
  C --> D[Verified original backups]
  C --> E[Validate history preservation]
  E --> F[Canonical retention and metrics]
  E --> G[Refusal with originals preserved]
  F --> H[Runtime cleanup and chat history]
Loading

Before merge

  • Resolve merge risk (P1) - Existing installations with historical checkpoints now require successful Doctor conversion before runtime admission. Current-candidate packaged upgrade evidence remains pending for hot/cold history, restored-source replay, and custody/refusal or rollback preservation, so the supported upgrade contract is not yet verified.
  • Complete next step (P2) - Complete current-candidate packaging, affected validation, and SDK comparison, then record passing published-2026.9.7 upgrade cells for hot/cold history, replay, and custody/refusal or rollback preservation.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth production +2292/-936; tests/support +1965/-288 The body explicitly justifies production growth as preserving supported durable history while retiring runtime interpretation.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-migration-backup.ts, migration/backfill/repair: src/commands/doctor-session-canonical-candidates.ts, migration/backfill/repair: src/commands/doctor-session-canonical-keys.ts, migration/backfill/repair: src/commands/doctor-session-compaction-history.ts, migration/backfill/repair: src/commands/doctor-session-delivery-state.ts, migration/backfill/repair: src/commands/doctor-session-sqlite-archive.ts, and 17 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete the packaged upgrade evidence (recommended)
    Keep the PR open until the current candidate passes the published-driver hot/cold, replay, and custody cells with original-history readback and preservation on refusal or rollback.

Technical review

Best possible solution:

Supported updates should complete the Doctor conversion automatically, preserve exact historical content, and retain recoverable originals whenever repair refuses or activation rolls back.

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

Not applicable to the requested behavior-preserving refactor. The body documents the prior-head live replay failure and its source regression; this read-only review did not execute the current candidate.

Is this the best way to solve the issue?

Yes: Doctor’s existing backup, import, rewrite, and transaction owners are the appropriate place for this conversion. The latest intermediate file shape addresses the observed early-repair failure without restoring runtime legacy interpretation.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded session-storage migration with meaningful upgrade impact, rather than an established current emergency.
  • merge-risk: 🚨 compatibility: Historical checkpoint rows become runtime-inadmissible until Doctor succeeds, and current-candidate packaged upgrade proof is pending.
  • merge-risk: 🚨 session-state: The migration rewrites durable history-retention facts and transcript metrics whose preservation must survive replay, refusal, and rollback.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a member author, so ordinary external-contributor proof is exempt. Independent stored-data compatibility remains insufficient: the real 93dc published-driver hot/cold success is preserved, but replay failed before the latest Doctor file-input correction, and current-candidate package, SDK, and all three upgrade cells remain pending.

Evidence

What I checked:

  • Pinned introduction and latest correction: Reviewed the introduced merge-base-to-head changes separately from base drift. The latest production commit adds a Doctor-only intermediate shape that retains checkpoints and transcript locators through early file repairs; the final child changes only the locator-preservation expectation. (src/commands/doctor/shared/session-entry-shape.ts:120, e818d504d7be)
  • Still necessary on current main: Fetched main still uses readLegacyCompactionSnapshotPaths in disk cleanup and enrichChatHistoryCompactionMarkers in history responses. The merged checkpoint-feature removal preserved legacy retention; it did not implement this durable conversion. (src/config/sessions/legacy-compaction-history.ts:3, 33bf4664a0e9)
  • Shipped retention contract: The v2026.9.8 source retains legacy checkpoint references and explicitly requires an approved preservation migration before removing their runtime interpretation. Retrieved this blob through GitHub after local lazy object retrieval failed. (src/config/sessions/legacy-compaction-history.ts:3, fc23bc864e45)
  • Captured proof body fully inspected: The complete fetched body matches captured SHA-256 4b171de3911592a989a388404a660cf58ec9d75e810784a367ed2e27395be696 and all 12,756 UTF-16 units were inspected. It records a real published-2026.9.7 hot/cold upgrade success at 93dc, a subsequent live replay failure, and passing source regressions at b06b. Current-head package, SDK comparison, remaining validation, and all three upgrade cells are expressly pending; older successful results retain their original source identities. (e818d504d7be)
  • Migration and refusal behavior: Doctor prepares retention references, updates only existing matching compaction markers, and leaves unmatched metrics in original backups. Raw repair backs up current preimages before cold restoration and revalidates maintenance ownership and physical database identity. Missing cold-file deferral is restricted to verified disposable update rehearsals. (src/commands/doctor-session-delivery-state.ts:463, e818d504d7be)
  • Meaningful storage regressions: Inspected migration and import tests covering exact original backups, opaque integers, canonical marker text, cold archive restoration, refusal, replay, and idempotence. Writer and message-cut regressions preserve references during ordinary edits and rewinds while excluding them from public projections and forks. These tests were read, not executed during this review. (src/commands/doctor-session-compaction-history.test.ts:138, e818d504d7be)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record successful packaged published-driver upgrades for hot/cold history, replay, and custody, including idempotence and preservation on refusal or rollback.
  • Complete the current-candidate SDK comparison and affected validation after the file-input correction.

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 (30 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-04T07:05:58.554Z sha 449dd07 :: blocked before merge. :: none
  • reviewed 2026-10-04T07:24:24.819Z sha 1ed26444f0881d8b2788d4a19af33bb6a0e0e23b :: blocked before merge. :: none
  • reviewed 2026-10-04T07:33:16.681Z sha ad3b843 :: blocked before merge. :: none
  • reviewed 2026-10-04T07:51:08.325Z sha 02f7dbe :: blocked before merge. :: none
  • reviewed 2026-10-04T08:20:48.499Z sha 8aeead7 :: blocked before merge. :: none
  • reviewed 2026-10-04T08:29:41.458Z sha 8aeead7 :: blocked before merge. :: none
  • reviewed 2026-10-04T11:20:23.978Z sha 93dc1af :: blocked before merge. :: none
  • reviewed 2026-10-04T12:01:43.377Z sha 93dc1af :: blocked before merge. :: none

@steipete
steipete force-pushed the refactor/lg-config-compaction-state branch 3 times, most recently from 39a4b6e to 9f74db7 Compare October 3, 2026 19:36
@steipete
steipete force-pushed the refactor/lg-config-compaction-state branch from 9f74db7 to f1d5785 Compare October 3, 2026 20:45
@steipete
steipete force-pushed the refactor/lg-config-compaction-state branch from cf8fadd to f86aef8 Compare October 4, 2026 02:29
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Oct 4, 2026
@steipete
steipete marked this pull request as ready for review October 4, 2026 05:17
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 4, 2026
@steipete
steipete force-pushed the refactor/lg-config-compaction-state branch from f5af1d0 to 449dd07 Compare October 4, 2026 06:56
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts and removed agents Agent runtime and tooling labels Oct 4, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Oct 4, 2026
@steipete
steipete force-pushed the refactor/lg-config-compaction-state branch from 1ed2644 to ad3b843 Compare October 4, 2026 07:26
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Deferred until these supported checkpoint shapes leave the retention window. At +1,356 net production lines, this migration is too costly; the runtime readers stay. The retention record records the shipped writers and January 2027 retirement checkpoint, including the required check for later preservation writers.

Keeping this branch for reference. The independent dot-prefixed checkpoint-path cleanup fix is extracted separately, without the migration or snapshot extension.

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

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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