Skip to content

refactor(state): deslop sessions and state - #156541

Merged
steipete merged 4 commits into
mainfrom
deslop/l11-config-sessions-accumulate-20260922
Sep 27, 2026
Merged

steipete merged 4 commits into
mainfrom
deslop/l11-config-sessions-accumulate-20260922

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Session, configuration, and SQLite state helpers repeat traversal, row mapping, worker replies, query construction, and cleanup bookkeeping, leaving multiple places to maintain the same behavior.

User Impact

No intended behavior change. Public SDK contracts, config semantics, session ordering and authority checks, SQLite schemas, persisted state, retention, indexing, concurrency, recovery, projections, and upgrade behavior remain unchanged. Write transactions remain synchronous.

Why This Change Was Made

Repeated work moves to its existing owner. The rebase keeps main's behavior and drops superseded simplifications.

Simplifications and rationale
  • Session and shared-state readers construct successful reply/admission envelopes at their existing worker boundary. Exceptional admission paths keep their handling, and main's new capture-read operations retain their payloads.
  • Config environment collection, authored templates, listing, detection, and substitution reuse their existing filtering/traversal/scanner owners. Escape behavior, platform normalization, unresolved-template rejection, and callback order remain intact.
  • Stable array identity matching uses its single selected key. Merge patches reuse built-in cloning and existing validation. Schema hints reuse ordered string deduplication; schema/documentation traversal shares wildcard matching while preserving ranking and parsed-path caching.
  • Plugin auto-enable shares its configured-provider predicate and ordered web-search/tool/web-fetch candidate loop. Main's selected-provider resolver and native-session-catalog opt-out remain intact.
  • Session admissions share set collection; conversation/admission completion uses the existing deferred primitive. Model overrides share defined-field clearing and their selection type. The combined-store merger drops unused forwarded config.
  • Session listeners share notification; chat-type fallback, verbose/trace parsing, target/input types, and row types reuse their existing owners. Hashing, transcript identities, provenance, JSON/coercion, UTF-8 comparison, table-presence, and schema extraction reuse canonical helpers.
  • State commands share captured path/environment projection. Worker leases share the admitted lazy bridge, ownership verification, and lost-lease error formatter. Agent leases share row queries; registry cache paths share cloning/filtering; pending opens share drainage.
  • Legacy backfills invoke existing coercion helpers directly. Cleanup owners reuse SQLite lifecycle-error aggregation, retaining error order, messages, causes, and authority checks. Error transport shares property descriptors.
  • Profiles share exact alias lookups, identity upserts, affected-profile bookkeeping, and row mapping. Deletion journals share guarded path updates; machine state reuses its serialized-value upsert. Backup records use the generated row type and canonical guard; onboarding clearing calls its owner directly.
  • Snapshot sanitization reuses the table probe; state ownership drops a forwarding helper; integrity diagnostics share target fields. Talk drops a redundant private secret normalizer while retaining main's assignment order and normalization.
  • Redundant wrappers, intermediate values, and narrating headers are removed. Assertion baseline entries only shrink with deleted assertions.

Rebase and scope

Rebased onto 1c8b3187353b1d7b69faf66ca053bcb2257221f3. Candidate head: caff8e78e2efc6a0ae0e142068738e4bcd0dd4bf; source tree: 9167d7fdca81fe960a43ccd4ab25eb0670a491fa.

All four simplification commits remain. Three are patch-identical. The first has two mechanical adaptations for main's interrupted-migration repair (#159345): the shared admitted worker callback still forwards processBound, and the worker keeps reclaimDeadOpenClawStateLeaseInTransaction while removing its now-unused direct expiry-reader import. Main's process-owner metadata, recovery, transaction ordering, and admission checks remain unchanged. No additional simplification hunks were dropped in this round. The two previous main merges contained no manual merge resolutions and were flattened by the rebase.

The requester-wake fix (#159352) is included from main. Its E2E file and settlement support are unchanged by this PR. The lifecycle redesign and capability-binding patch remain excluded; this refresh adds no SQLite schema or persistent-store semantic change.

Earlier kept and dropped hunks, retained by this rebase
  • fix: preserve channel-owner revocation across recovery #157709 resolution remains exact: only safeParseJson substitution in src/state/user-channel-identities.ts, and the identical email-alias SELECT helper in src/state/user-profile-email.kernel.ts. Main's revocation and authority behavior wins.
  • refactor(config): deslop config third pass #159054 already owns delivery indexing, legacy divergence repair/warning emission, session context aliases, target collision diagnostics, target discovery, store-migration validation, and the transcript-reader factory. Keep delivery-info.ts, legacy-main-session-migration.ts, session-accessor.types.ts, targets-collision.ts, targets.ts, store-migrations.ts, and session-transcript-worker-readers.ts byte-identical to main; drop this PR's former alternatives, including its now-redundant transcript callback completion commit.
  • In plugin-auto-enable.shared.ts, retain only the shared configured-provider predicate and ordered configured-plugin loop. Keep main's selected-web-provider tuple loop/resolver, tool-config owner, and channel-key owner.
  • In talk.ts, retain only removal of the redundant secret normalizer, composed with main's single-assignment loop. Keep main's integer normalization and grouping.
  • Main's proxy-capture event/blob read commands remain in openclaw-state-read-diagnostics.ts and the result union. Their successful/admitted envelope comes from the same worker boundary as every other ordinary result, without changes to queries or admission.
  • Earlier resolutions retain main's ACP, retention, preferences, avatar, TUI, authority, ingress, extracted agent-close, and committed-read owners. Main's session-diff runtime, including descriptor-plus-file-bytes hashing, stays unchanged. Main's lifecycle/retry-grace fixtures and the entire subagents subtree stay unchanged; superseded commits 82464908822 and 5ffd9b81fa1 were dropped.
  • Environment checks keep main's token owner/comment; documentation baselines retain main's schema-object owner/grouping/artifact type. Plugin installs retain main's inline UTF-8 comparator. The existing lifecycle-error helper is reused at main's extracted close owner and lease-exclusion boundaries without changing ordering, messages, causes, or authority checks.

Evidence

Fresh proof ran on Linux Blacksmith Testbox tbx_01m3gkh4zggw00bq40wavnvdmp (run 36295751791), through node scripts/crabbox-wrapper.mjs. The receiver verified source caff8e78e2efc6a0ae0e142068738e4bcd0dd4bf and tree 9167d7fdca81fe960a43ccd4ab25eb0670a491fa; the payload asserted that exact tree and merge base before validation. Dependencies were installed on the lease with pnpm install --frozen-lockfile first.

Gate Result Wall time
node scripts/check-changed.mjs --base origin/main --head HEAD (pinned merge base above) Passed: types, lint, formatting, guards, three Knip scans with zero entries 1,680s
Recorded focused/cross-shard command below 1,548 tests passed; 98 file executions from 97 requested targets across 11 shards 269s
node scripts/run-vitest.mjs src/state/openclaw-state-lease.test.ts 7/7 passed, including main's process-bound SIGKILL recovery cases; test unchanged 21s
node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-qa.config.ts extensions/qa-lab/src/qa-gateway-config.test.ts 27/27 passed 26s
OPENCLAW_BUILD_PRIVATE_QA=1 VITEST=1 pnpm build Passed 492s
E2E command below Requester wake 18/18; lifecycle retry grace 14/14; 32/32 combined 61s
node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts \
  src/agents/subagents/registry/subagent-registry.lifecycle-retry-grace.e2e.test.ts \
  src/agents/subagents/registry/subagent-registry.requester-wake.e2e.test.ts

Both previously accepted requester failures now pass, including settles overlapping caller turns with alpha first (same ownership, yielded=alpha) and caps a stale requester batch despite foreign active work in a global session. No test assertion or settlement implementation was changed to obtain this result.

Fresh independent Codex review of the complete candidate is scoped-clean through P2. A diff-only read-isolation finding was rejected after full-source review confirmed that the unchanged preceding active-transaction branch returns through the committed-reader companion; the committed-read regression suite is included in the passing focused selection. No source changes were needed after review.

The remote validation command exited zero. The owned lease is stopped/completed. Two preliminary invocations stopped before validation because of command setup: an unsupported raw-SHA base selector and a HEAD assertion that did not account for the receiver's synthetic carrier commit. The successful invocation uses the supported base selector and exact source-tree/merge-base assertions.

Force-with-lease publication replaced 4559643acc708f9fe3f1ddc512cff80116e1cdf6 with the candidate above. A Git merge-tree check against fresh main 5e1a2cf4ea761a5493843966e5f785b11154f010 reported no conflicts with the tested candidate before publication. CI run 36298883744 is attached to the exact new head and is in progress; this is not a hosted-CI green claim.

The coordinator-enabled auto-merge request was retired before replacing the head, as explicitly authorized for requests without a native outcome receipt. This update did not re-arm auto-merge or merge the PR; the coordinator owns the next merge action.

Previously accepted, unchanged-surface SDK proof remains historical: surface/export checks passed, while the TypeScript 7 API-comparison tool failed identically on the earlier clean base and candidate with a DataView bounds error in api-baseline-declaration-print.ts:260. That tool defect remains untouched and non-gating. Optional package/upgrade proof was not rerun.

Size

Production TypeScript under src/, excluding test files/support: 83 files, 810 insertions, 1,667 deletions: 857 net production lines removed. The previous PR-body filter also includes the assertion-safety baseline (three net lines removed), yielding 84 files, 813 insertions, 1,673 deletions: 860 net production-filter lines removed. Both compare against the pinned rebase base above.

The existing doc-baseline fixture continues to import the canonical owner instead of loading the full runtime facade while mocking its siblings. No new tests, assertion relaxations, timeout changes, retries, or test-scheduling changes were added by this rebase.

Focused owner/importer command
node scripts/run-vitest.mjs \
  src/config/env-preserve.test.ts \
  src/config/env-substitution.test.ts \
  src/config/doc-baseline.test.ts \
  src/config/doc-baseline.integration.test.ts \
  src/config/channel-config-metadata.test.ts \
  src/config/plugin-install-record-map.test.ts \
  src/config/schema.shared.test.ts \
  src/config/talk.normalize.test.ts \
  src/config/config.talk-validation.test.ts \
  src/config/talk-defaults.test.ts \
  src/config/zod-schema.talk.test.ts \
  src/config/sessions/session-accessor.sqlite-cold-read.test.ts \
  src/config/sessions/session-history-worker-errors.test.ts \
  src/config/sessions/session-transcript.worker.schema-freshness.test.ts \
  src/config/sessions/session-logical-entry-read.worker.test.ts \
  src/config/sessions/session-accessor.sqlite-replacement-publication.test.ts \
  src/config/sessions/session-row-changes.test.ts \
  src/config/sessions/session-sharing-store.worker.test.ts \
  src/sessions/session-diff.runtime.test.ts \
  src/sessions/session-diff-baseline-files.test.ts \
  src/sessions/session-diff-baseline.test.ts \
  src/state/openclaw-agent-execution-cleanup.test.ts \
  src/state/openclaw-agent-execution.registration.test.ts \
  src/state/openclaw-agent-execution.creation-witness.test.ts \
  src/state/openclaw-agent-execution.integrity.test.ts \
  src/state/openclaw-state-db-async-lifecycle.test.ts \
  src/state/openclaw-state-db-cache.cleanup.test.ts \
  src/state/openclaw-state-db-cache.idle.test.ts \
  src/state/openclaw-state-read-worker.test.ts \
  src/state/openclaw-state-read.worker.test.ts \
  src/state/openclaw-state-read-worker.mcp.test.ts \
  src/state/openclaw-state-read-worker.settlement.test.ts \
  src/state/openclaw-state-read.quarantine-cleanup.test.ts \
  src/state/openclaw-state-lease-exclusion.test.ts \
  src/state/openclaw-state-lease-exclusion.nested.test.ts \
  src/state/openclaw-state-lease.nested-uncertainty.test.ts \
  src/state/openclaw-state-lease-native-admission.test.ts \
  src/state/openclaw-state-lease-async.maintenance.test.ts \
  src/state/openclaw-state-lease-async.timer.test.ts \
  src/state/user-channel-identities.test.ts \
  src/state/user-profile-email.test.ts \
  src/state/user-profiles.test.ts \
  src/state/user-profiles.owner.test.ts \
  src/state/user-profiles.avatar-admission.test.ts \
  src/state/user-profiles.avatar-cache.test.ts \
  src/state/user-profiles.avatar-worker.test.ts \
  src/state/user-preferences.test.ts \
  src/state/user-profile-aliases.test.ts \
  src/plugins/installed-plugin-index-store.install-record-map.test.ts \
  src/plugins/installed-plugin-index-facts.test.ts \
  src/plugins/install-record-commit.test.ts \
  src/plugins/installed-plugin-index-records.test.ts \
  src/gateway/server-methods.channel-identities.test.ts \
  src/gateway/server-methods.profile-authorization.test.ts \
  src/gateway/talk/handlers/index.test.ts \
  src/gateway/talk/relay/index.test.ts \
  src/gateway/session-row-projection.entry-placement.test.ts \
  src/gateway/session-row-projection.prepared-read.test.ts \
  src/channels/message/ingress-queue-health.test.ts \
  src/channels/message/ingress-queue.dead-letters.test.ts \
  src/projects/project-registry.authority.test.ts \
  packages/gateway-protocol/src/talk-config.contract.test.ts \
  src/agents/subagents/registry/subagent-registry.announce-loop-guard.test.ts \
  src/acp/runtime/session-meta-list.test.ts \
  src/acp/runtime/session-meta.test.ts \
  src/tasks/task-retention.test.ts \
  src/tasks/task-registry.maintenance-retention.test.ts \
  src/state/openclaw-state.worker.tasks.test.ts \
  src/state/openclaw-state.worker.settlement.test.ts \
  src/tui/tui-last-session.test.ts \
  src/state/openclaw-agent-db.committed-read.test.ts \
  src/config/sessions/session-accessor.sqlite-exact-read-availability.test.ts \
  src/config/sessions/session-accessor.sqlite-exact-read.test.ts \
  src/config/sessions/session-entry-read.worker.test.ts \
  src/config/sessions/session-entry-readonly.worker.test.ts \
  src/config/sessions/session-accessor.sqlite-archive.worker.test.ts \
  src/config/sessions/session-accessor.sqlite-archive-admission.test.ts \
  src/config/plugin-auto-enable.core.test.ts \
  src/config/plugin-auto-enable.providers.test.ts \
  src/config/plugin-auto-enable.channels.test.ts \
  src/config/plugin-auto-enable.model-support.test.ts \
  src/plugins/activation-context.test.ts \
  src/plugins/effective-plugin-ids.test.ts \
  src/plugins/web-search-providers.runtime.test.ts \
  src/gateway/server.talk-config.test.ts \
  src/gateway/server.talk-runtime.test.ts \
  src/config/sessions/delivery-info.test.ts \
  src/config/sessions/delivery-info.sqlite.test.ts \
  src/config/sessions/legacy-main-session-migration.test.ts \
  src/config/sessions/legacy-main-session-migration.race.test.ts \
  src/config/sessions/targets.test.ts \
  src/config/sessions/targets-discovery.test.ts \
  src/config/sessions/targets-dedupe.test.ts \
  src/config/sessions/targets-existing-store.test.ts \
  src/proxy-capture/store.async.test.ts \
  src/proxy-capture/store-readonly.test.ts \
  src/proxy-capture/runtime.test.ts

@clawsweeper

clawsweeper Bot commented Sep 23, 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 agents Agent runtime and tooling size: XL labels Sep 23, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 2:12 AM ET / 06:12 UTC (Revision 35).

ClawSweeper review

What this changes

The branch consolidates configuration, session, and SQLite state helpers and adjusts related QA fixtures while intending to preserve behavior.

Warning

SQLite table change

This PR modifies persisted SQLite tables in src/state/openclaw-agent-db-schema-helpers.ts, src/state/openclaw-state-db-schema-additive.ts, src/state/openclaw-state-db-schema-repair.ts, src/state/openclaw-state-db-schema-v13-widerow.ts. Prefer a design that avoids changing persisted SQLite tables. If the change is necessary, verify migration and upgrade compatibility against an existing database before merge.

Merge readiness

⛔ Blocked before merge - 4 items remain

The cleanup remains unique on current main. Source comparison does not support the prior whitespace finding: the shipped session helper already trimmed nonblank values. The remaining merge gate is compatibility proof for the changed migration and plugin-startup paths.

Priority: P3
Reviewed head: caff8e78e2efc6a0ae0e142068738e4bcd0dd4bf

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The cleanup has broad exact-head validation and no established patch defect, but its upgrade-sensitive paths lack a published-update receipt.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The supplied repository state identifies a member-authored internal refactor, so the external-contributor proof gate does not apply. The exact-head Testbox results cover focused worker/config tests and unchanged requester-wake E2E, but no published-updater transition on copied legacy state is shown. The introduced DDL selections and serialized formats appear unchanged, so no stored-data contract change was established.
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-authored internal refactor, so the external-contributor proof gate does not apply. The exact-head Testbox results cover focused worker/config tests and unchanged requester-wake E2E, but no published-updater transition on copied legacy state is shown. The introduced DDL selections and serialized formats appear unchanged, so no stored-data contract change was established.
Evidence reviewed 10 items Introduced worker cutover: The PR moves successful shared-state read reply fields to the outer worker boundary; the original callback still sets admission after entering the database read.
Prior finding checked against the baseline: Before this PR, normalizeText already returned value.trim() for a nonblank string, so replacing it with normalizeNullableString does not introduce the previously alleged whitespace change.
Shipped normalization contract: The latest stated release uses the same trimming implementation, independently confirming that whitespace preservation was not the existing contract.
Findings None None.
Security None None.

How this fits together

Configuration and session actions feed the Gateway, while SQLite workers persist state and serve session reads. These helpers sit between those actions and worker replies, session views, and Doctor recovery.

flowchart LR
A[Configuration and session actions] --> B[Shared config and session helpers]
B --> C[Admission and ownership checks]
C --> D[SQLite workers]
D --> E[Persisted state]
E --> F[Session views and Doctor recovery]
Loading

Before merge

  • Resolve merge risk (P1) - The current head changes Doctor repair, legacy backfill, and plugin auto-enable paths without a published-updater run on copied existing state. A successful fresh Testbox build and focused tests do not establish that retained session and queue rows survive update, Doctor recovery, and Gateway restart.
  • Complete next step (P2) - Capture a published-updater run against this head using copied legacy state, then verify retained session and queue rows, Doctor repair, and Gateway restart before merge.
  • 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

None.

Stored data model

Persistent data-model change detected: database schema: src/state/openclaw-agent-db-registry-listing.ts, database schema: src/state/openclaw-agent-db-schema-helpers.ts, database schema: src/state/openclaw-state-db-schema-additive.ts, database schema: src/state/openclaw-state-db-schema-repair.ts, database schema: src/state/openclaw-state-db-schema-v13-widerow.ts, migration/backfill/repair: src/state/openclaw-state-db-schema-repair.ts, and 6 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #156541
Summary: The open reader-validation refactor explicitly pauses its overlapping work in favor of this broader branch, while retaining two distinct reader paths.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Verify the published update path (recommended)
    Run the shipped updater against copied legacy state on this head and inspect retained rows, Doctor recovery, and Gateway restart before merge.

Technical review

Best possible solution:

Land the consolidation after the shipped updater drives this candidate through a copied legacy-state upgrade and the resulting config, session rows, Doctor recovery, and Gateway restart are checked.

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

Not applicable: this is a behavior-preserving refactor, not a reported current-main bug. Source comparison is sufficient to reject the prior whitespace allegation.

Is this the best way to solve the issue?

Yes: consolidating the existing owners is a maintainable direction, and the inspected cutovers have no established correctness defect. The update path still needs proof with existing state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 702de400b4aa.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is an internal maintainability cleanup with no intended user-visible change.
  • merge-risk: 🚨 compatibility: Changed repair and plugin-startup code still needs an exact-head published-updater compatibility receipt.
  • merge-risk: 🚨 session-state: The refactor crosses session persistence and worker-read paths whose behavior with retained state has not been checked through an upgrade.
  • 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-authored internal refactor, so the external-contributor proof gate does not apply. The exact-head Testbox results cover focused worker/config tests and unchanged requester-wake E2E, but no published-updater transition on copied legacy state is shown. The introduced DDL selections and serialized formats appear unchanged, so no stored-data contract change was established.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Shakker: 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.

  • Capture a published-updater × current-head receipt using copied legacy state, including retained rows and Doctor recovery.

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 (34 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-26T04:16:18.316Z sha 5ffd9b8 :: blocked before merge. :: none
  • reviewed 2026-09-26T15:35:10.927Z sha 5ffd9b8 :: blocked before merge. :: none
  • reviewed 2026-09-26T15:48:16.358Z sha 5ffd9b8 :: blocked before merge. :: none
  • reviewed 2026-09-26T22:13:09.047Z sha 5ffd9b8 :: blocked before merge. :: none
  • reviewed 2026-09-26T22:30:53.727Z sha d23dca4 :: blocked before merge. :: none
  • reviewed 2026-09-26T23:43:37.027Z sha eadc3ea :: blocked before merge. :: none
  • reviewed 2026-09-27T01:01:44.931Z sha 0f6ae9d :: blocked before merge. :: none
  • reviewed 2026-09-27T03:47:18.652Z sha 4559643 :: blocked before merge. :: [P2] Preserve whitespace in persisted session projections

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch from f523713 to cbf2e05 Compare September 24, 2026 03:22
@steipete steipete changed the title refactor(sessions): deslop sessions refactor(state): deslop sessions and state Sep 24, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 24, 2026
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch 4 times, most recently from 68f42fd to 3e6808e Compare September 24, 2026 10:30
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch 2 times, most recently from 34778b4 to 6bb9350 Compare September 25, 2026 01:35
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 25, 2026
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch 2 times, most recently from 239f27d to 158fffc Compare September 25, 2026 10:31
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Sep 25, 2026
@clawsweeper clawsweeper Bot added 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 Sep 25, 2026
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch from 4256d13 to 90f0996 Compare September 25, 2026 17:36
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch 2 times, most recently from 3de966b to 5ffd9b8 Compare September 26, 2026 02:00
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch from 5ffd9b8 to d23dca4 Compare September 26, 2026 22:23
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Sep 26, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 26, 2026
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch from d23dca4 to eadc3ea Compare September 26, 2026 23:33
@steipete
steipete enabled auto-merge (squash) September 26, 2026 23:40
@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 27, 2026
@steipete
steipete disabled auto-merge September 27, 2026 04:52
@steipete
steipete force-pushed the deslop/l11-config-sessions-accumulate-20260922 branch from 4559643 to caff8e7 Compare September 27, 2026 06:01
@steipete
steipete enabled auto-merge (squash) September 27, 2026 06:03
@steipete
steipete merged commit e5478ff into main Sep 27, 2026
229 checks passed
@steipete
steipete deleted the deslop/l11-config-sessions-accumulate-20260922 branch September 27, 2026 06:31
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
* refactor(state): deslop sessions and state

* refactor(state): reuse config and session helper owners

* refactor(config): reuse Talk normalization helpers

* refactor(state): complete reader and cleanup cutovers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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