Skip to content

refactor(state): simplify admission and reader bookkeeping - #168947

Merged
steipete merged 7 commits into
mainfrom
deslop/p15-state-pr2-20261010
Oct 12, 2026
Merged

steipete merged 7 commits into
mainfrom
deslop/p15-state-pr2-20261010

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Continues the state simplification after #168674: several readers keep their own copy of schema-admission state, and internal execution paths still defend synthetic re-entry, duplicated worker facts, and overlapping owners that normal deployments do not use.

User Impact

Normal state access, incognito sessions, profile backgrounds, startup verification, permissions, and write settlement remain. This changes no config keys, schema versions, persisted formats, retention, or durability policy. Catalog batch failures now fail the page instead of trying every row again. Unsupported same-actor calls from synchronous authorization callbacks no longer promise a special synchronous refusal.

Why This Change Was Made

Reuse the existing physical-database schema owner; keep one verifier consumer and one worker-side conflict check. Preserve current authority, actual physical identity, FIFO, native cleanup and known-commit handling. The second largest-first pass re-evaluated the first pass's KEEP decisions using introducing commits, PRs, actual callers and explicit contracts.

Best-effort tradeoffs accepted

Evidence

Candidate: f1eac5423f5bdfe6012ab53355c3ed4a2c563cd2, base 491dfa6b1597, includes isolation fix af6153fa71c. GitHub reported a conflict; main independently landed the publication synchronization fix, so its version is retained and that duplicate commit is dropped. All seven remaining patches are identical. Local runtime/build/tests use isolated HOME/OpenClaw/XDG paths. Net removal: 518 production lines, plus 297 test lines. Cancellation, receipt and authority assertions remain. No retries, skips, timeout increases or suppressions. Earlier-head proof below is historical.

  • Full unit state run: 1,182 passed, 9 failed, 4 skipped across 144 files (1,879.40s Vitest). Four failures pinned the removed repeated metadata checks: they directly changed the admitted store's version/role/owner or deleted its primary metadata row without the migration owner. Those cases were removed; initial validation and physical replacement tests remain. The other five were existing subprocess entry/cleanup deadlines, not assertion differences.
  • Full native state run: 1,317 passed, 3 failed, 3 skipped across 86 files (2,273.57s Vitest). Two failures pinned removed failed-close and schema-scope bookkeeping and their obsolete assertions were removed; the third is the unchanged Doctor ownership 120s timeout.
  • Corrected owner proof: 86 unit tests and 155 native tests pass, along with all 3 suppression-guard tests (745.64s wrapper for the three selected shards). No kept assertion was weakened.
  • Focused preflight/verifier contrast: all 6 selected unit cases pass on the corrected candidate (53.15s Vitest); the Doctor-ownership case still reaches its existing 120s timeout. That exact Doctor timeout also reproduces on independently installed clean base 83b5f5425eab6021ff03104c9de1b4826f0c3d97 (182.51s Vitest / 221.34s wrapper); its stalled await remains unresolved. The other five previously failed cases pass on the clean base as well, so their broad-run timeouts are recorded but not called fixed or proven main-red.
  • Gateway startup preparation and catalog identity: 11 tests pass. The broader startup lifecycle file first times out in worker/recovery, then 12 cases fail because the fixture never closes. The same first-case timeout and fixture cleanup error reproduce on clean base 83b5f5425eab6021ff03104c9de1b4826f0c3d97 (248.14s Vitest). No timeout was increased.
  • Initial full-candidate P2 review was scoped-clean. A fresh review after the test/helper cutover raised two proposed restorations. Both were declined with actual caller evidence: lease descriptors have no public/network input path, and readonly native-close failure reuse is an expressly accepted rare recoverable edge. Generic unknown error payload shape checks remain. This is a resolved review, not a claim that the final automated review was clean.
  • Production types and all 28 core test-type graphs pass. Targeted type-aware lint passes, runtime value cycles are zero and Madge cycles are zero. The changed-check command passed its first 25 gates; its script export scan passed with zero entries, while production/full-tree export scans reached the unchanged 600-second limit. Those are missing local proof, not claimed green or main-red. The remaining schema, database-first, media, sidecar, webhook and pairing-auth guards passed separately. Hosted exact-head CI remains the landing gate.
  • New column-helper boundary tests: all 6 cases pass with node scripts/run-vitest.mjs src/state/openclaw-state-db-schema-helpers.test.ts --maxWorkers=1 (9.52s Vitest / 14.41s wrapper). The two added in-memory cases consumed about 17ms in the broader owner run; hosted CI timing is pending.
  • SDK API comparison completed for original base 83b5f5425eab6021ff03104c9de1b4826f0c3d97 and head 50e4f11956699e587f94a4639b8ac3ffc403651f: no entrypoints added/removed and all direct export declarations unchanged. It reports 150 reachable fingerprint changes through six internal declaration blocks: removed private class fields/helpers, the private catalog error variant and the internal incognito callback parameters. Those match this cutover; no supported SDK callable or parameter was removed. Base/head renders took 2,657.68s / 2,668.54s on the shared local host. This is prior-head evidence, not a new-head API render.

GitHub reported an actual conflict with main's new scoped session actors. The conflict-only rebase preserves main's snapshot invalidation callback and generic execution contract. Its new factory was also cut over from the two removed re-entry callbacks; a local typecheck caught that missed caller before any replacement push. On the corrected rebased tree, all 95 focused tests pass (including the new session-actor suite and 3 suppression tests, 168.41s wrapper), production types and the state/config/infra/Gateway test graphs pass, targeted lint passes, and runtime/Madge cycles remain zero. Fresh independent P2 review of the two-file follow-through is scoped-clean. Other unchanged source proof is reused; hosted CI on the replacement head is the gate.

First hosted attempt (38123555309, head 190dda60bcae6058a30f6fb8d3b8438e61399ac7) failed in two root jobs. checks-node-compact-small-2 exposed an obsolete session-share test that demanded the removed scalar replay's exact error order across two deliberately corrupt rows. That 50-line parameterized block is removed; ordinary malformed-data rejection, page isolation and reader-failure coverage remain. The complete session-share file and suppression guard pass (18 tests, 90.41s wrapper), and independent P2 review of the deletion is scoped-clean. checks-node-changed-compact-large-16-2 failed before Gateway execution because its nested fixture did not produce worker.pid; the exact case independently reproduces on clean baseline 53eb3f4f0c9 (174.85s). Its nested report says Cannot find module '/@fs/.../fixture.test.ts', with zero tests collected despite the file existing. This is an inherited nested-Vitest bootstrap failure, not a passing product test. The aggregate CI gate failed downstream; cancelled sibling jobs remain missing proof, not green. No job was rerun.

A second actual merge conflict with #168948 required integration of its new role-authority reader. That reader now uses the shared column facts while retaining main's single-statement identity/role snapshot, live authority and absent-admission behavior. Main's new session admission check is retained unchanged. On the second-rebase candidate, 79 focused tests pass: schema facts, profiles, session sharing and suppression (53 tests, 188.41s wrapper), plus role authority (26 tests, 104.09s wrapper). Fresh full-branch independent P2 review is scoped-clean, production/core and state/Gateway test types pass, targeted type-aware lint passes, and runtime/Madge cycles remain zero. Earlier unchanged proof is reused.

Second hosted attempt (38126523714, head f16594f86dea60b7647d20409944ae25e81b5fb9) passed the formerly failing session-share shard. Its root failure was checks-node-changed-compact-large-22-1: two session-group legacy-schema fixtures admitted a modern file, then silently removed columns through an untracked SQLite handle. With per-file admission facts, that unsupported outside writer left the fixture stale. The setup now performs its DDL through the tracked owner before close/reopen; every legacy-feature assertion is unchanged. The full file passes all 26 tests (116.86s Vitest), plus 3 suppression tests (143.16s total wrapper), targeted lint and Gateway test types; independent P2 review is scoped-clean. The aggregate gate failed downstream and cancelled siblings are recorded as missing proof. This test-only fix does not restore runtime schema polling or weaken legacy support.

Third attempt (38127541472, head d68a2effd1c4ee38dff4ee389d84f268d8ef1314) failed checks-node-changed-compact-large-8-3: a test changed user_version after a successful warm listing and expected repeat validation. That synthetic variant originated in the worker-read refactor 88004e9cc66 (#152691), not a live-upgrade incident. It is removed with the repeated check; missing-table rejection stays. All 18 worker cases, 10 admitted/replacement checks and 3 suppression checks pass (102.73s wrapper); lint/types and independent P2 review pass. Future-schema initial/replacement refusal remains tested. Its aggregate failed downstream and cancelled siblings remain missing proof, not passes.

Second-pass coverage ledger

Fourth CI attempt 38128532566 failed three catalog-queue model-override cases in checks-node-changed-compact-large-22-3. All three reproduce on current main e7e3b949ae1: the fixture selected its own default while asserting explicit override fields. Fixed on main in 194a08e5963 by selecting a distinct default, preserving every assertion. All 14 tests plus 3 suppression tests pass (356.28s wrapper), independent P2 review and direct lint/types pass; the standard lint wrapper's SDK emit hit its existing 300s limit. After integration, 23 focused tests pass (607.75s), production types pass and both cycle counts are zero. Cancelled siblings are not claimed green.

The implementation groups re-examined their first-pass inventories largest-first. Explicit schema/upgrade, security, integrity, destructive-effect, ordinary concurrency and write-settlement contracts stay; mere names such as “lifecycle” or “generation” were not sufficient justification. Detailed per-group decisions follow.

  • agent-creation-claim.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-database-admission-error.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-database-admission.ts — simplified; removal provenance above
  • agent-database-path-discovery.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-database-preparation-context.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-database-startup.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-cleanup-admission.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-cleanup.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-cleanup.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-cleanup.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-discovery.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-final-guard.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal-authority.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal-history.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal-recovery.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal-recovery.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal-transport.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal.read.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal.snapshot.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-journal.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-recovery.read-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-recovery.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-recovery.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-worker-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion-worker.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-deletion.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-lifecycle-read.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-provenance.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-provenance.schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-provenance.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • agent-provenance.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • artifact-preserving-state-reads.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • backup-run-records.contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • backup-run-records.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • backup-run-records.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • claw-mcp-adoption.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • claw-package-adoption.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • claw-package-lifecycle-lease-key.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • claw-package-lifecycle-lease.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • config-machine-state-write.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • config-machine-state.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • creator-namespace-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • github-personal-publication-lifecycle.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • github-publication-read.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • github-publication-receipts.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • github-publication-requester.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • github-publication-session-lifecycles.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • incognito-session-error.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • local-onboarding-state.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • onboarding-recommendations.contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • onboarding-recommendations.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • onboarding-recommendations.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-board-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-canonical-validation-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-canonical-validation-receipt.ts — simplified; removal provenance above
  • openclaw-agent-canonical-validation-schema.ts — simplified; removal provenance above
  • openclaw-agent-context-engine-turn-outbox-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-additive-columns.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-admission.ts — simplified; removal provenance above
  • openclaw-agent-db-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-discovery-paths.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-disposal.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-existing-write.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-identity.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-lease-provenance.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-lease.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-legacy-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-lifecycle.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-maintenance-lease.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-maintenance.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-media-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-metadata-write.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-metadata.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-migration-required.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-path-repair.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-permissions.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-read-error.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-readers.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-readonly-companion.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-readonly-open.ts — simplified; removal provenance above
  • openclaw-agent-db-readonly-scope.ts — simplified; removal provenance above
  • openclaw-agent-db-readonly.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-registry-listing.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-registry.read.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-registry.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-registry.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-resources.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-schema-compatibility.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-schema-helpers.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-schema-read.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-session-migrations.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-session-nodes-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-session-provenance.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-terminal.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-transaction.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-validation-cache.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-validation-facts.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db-write.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db.paths.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-db.wal.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-admission-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-cleanup.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-cleanup.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-close.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-domain.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-incognito-absence.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-incognito.ts — simplified; removal provenance above
  • openclaw-agent-execution-incognito-session-actors.ts — same callback cutover after main integration; snapshot, authority and receipt behavior retained
  • openclaw-agent-execution-incognito.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-maintenance.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-native.ts — simplified; removal provenance above
  • openclaw-agent-execution-operations.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-owner.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-scope.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-voice-operations.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution-work.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-execution.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-goal-operations-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-legacy-acp-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-message-tool-outcome-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-operation-context.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-participants-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-pending-inputs-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-progress-card-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-schema-inspection-response.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-schema-inspection-worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-schema-inspection.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-schema-inspection.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-session-participants-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-session-sharing-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-session-snapshots-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-session-snapshots-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-session-transcript-archive-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-standing-intents-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-storage-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-transcript-fts-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-transcript-payload-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-worker-store.ts — simplified; removal provenance above
  • openclaw-agent-write-admission-state.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-agent-write-admission.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight-agent-scheduler.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight-cleanup.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight-contexts.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight-state-path.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight-targets.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight.messages.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-preflight.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-schema-contracts.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-verify.impl.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-database-verify.ts — simplified; removal provenance above
  • openclaw-database-verify.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-migration-witness.ts — simplified; removal provenance above
  • openclaw-quarantine-error.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-quarantine-store.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-schema-versions.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-additive-columns.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-admission.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-async-lifecycle.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-audit-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-borrow.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-cache.admission.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-cache.idle.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-cache.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-cache.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-cache.wal.ts — simplified; removal provenance above
  • openclaw-state-db-content-version.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-cron-delivery-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-current-reader.ts — simplified; removal provenance above
  • openclaw-state-db-delivery-queue-backfill.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-doctor-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-existing-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-existing-write.ts — simplified; removal provenance above
  • openclaw-state-db-failure.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-fast-path.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-handle.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-initialization.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-integrity-admission.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-legacy-backfills.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-maintenance.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-open.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-operator-approval-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-permissions.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-read-connection.ts — simplified; removal provenance above
  • openclaw-state-db-read-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-readonly-reuse.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-readonly.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-repair.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-additive.ts — simplified; removal provenance above
  • openclaw-state-db-schema-discovery.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-helpers.ts — simplified; removal provenance above
  • openclaw-state-db-schema-migration-required.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-policy.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-repair.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-runtime.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-v12-foldin.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-v13-widerow.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-schema-version.ts — simplified; removal provenance above
  • openclaw-state-db-session-watch-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-snapshot-owner.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-startup-checkpoint.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-table-retirements.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-task-delivery-recovery.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db-transaction.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db.paths.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-db.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-feature-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-acquisition.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-cleanup.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-context.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-error.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-heartbeat-cleanup.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-heartbeat-shared.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-heartbeat.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-heartbeat.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-options.ts — simplified; removal provenance above
  • openclaw-state-lease-process-exit.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-storage.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-store.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-worker-operation.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-worker-owner.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-worker-storage.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease-worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-lease.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-maintenance-context.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-ownership-operations.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-ownership-worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-ownership.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-ownership.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-diagnostics.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-mcp-oauth.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-operation-registry.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-operation.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-registry.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-request.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-scope.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-session-rows.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-stream.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-worker.test-harness.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read-worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read.validation.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-read.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-schema-compatibility.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-schema-inspection.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-schema-preflight.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-schema-publication.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-schema.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-snapshot-sanitizer.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-context.capture.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-context.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-context.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-error-identity.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-error.ts — simplified; removal provenance above
  • openclaw-state-worker-lease.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-memory-pressure.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-operation.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-owner.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-registry.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-runtime.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-store.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state-worker-store.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-state.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • openclaw-update-schema-refusal.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • secret-state-tables.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-metadata-unavailable-error.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-repository-workspaces.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-repository-workspaces.publication.ts — simplified; removal provenance above
  • session-repository-workspaces.receipts.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-repository-workspaces.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-repository-workspaces.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-repository-workspaces.worker-contract.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-repository-workspaces.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • session-watch-cursor-provenance.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • state-domain-publication.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-background-image.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-background.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-background.store.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-background.ts — simplified; removal provenance above
  • user-background.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-background.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-channel-identities.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-channel-identities.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-channel-identity-operations.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-github-connections.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-model-account-id.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-model-account-operations.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-model-accounts.read.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-model-accounts.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-preferences-publication.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-preferences.store.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-preferences.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-preferences.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-preferences.validation.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-preferences.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-catalog-identity.read.ts — simplified; removal provenance above
  • user-profile-display-validation.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-email.kernel.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-email.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-events.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-github-identity.ts — simplified; removal provenance above
  • user-profile-identity.read.ts — simplified; removal provenance above
  • user-profile-list.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-mutation.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-read.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-reads.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-writes.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profile-writes.worker.ts — simplified; removal provenance above
  • user-profiles-avatar.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles-avatar.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles-internal.ts — simplified; removal provenance above
  • user-profiles-merge.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles-owner-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles-owner.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles-schema.ts — simplified; removal provenance above
  • user-profiles-tailscale-avatar.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles-tailscale-login.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles-tailscale-migration.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles.types.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • user-profiles.worker.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract
  • worker-operation-registry.ts — retained; public/persisted, live effect authority, initial integrity, real concurrency or normal dispatch contract

@clawsweeper

clawsweeper Bot commented Oct 11, 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 gateway Gateway runtime size: XL labels Oct 11, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates SQLite admission facts and removes duplicate reader, execution, verifier, and profile bookkeeping.

Example: A Session Share page encounters an invalid profile integer such as 9223372036854775807.

  • Before: The failed batch retries profiles individually to preserve scalar error ordering.
  • After: The batch failure propagates immediately and the page fails visibly.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful simplification with meaningful owner-boundary tests and no established introduced defect; unresolved current-head failures limit validation confidence.
Proof confidence 🦐 gold shrimp (3/6) Maintainer authorship exempts this PR from the ordinary contributor proof gate; supplied tests support the changed owners, and inspection verifies unchanged persisted formats and DDL.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: State operations carry repeated schema checks and overlapping internal bookkeeping without a corresponding supported-runtime requirement.
Reason: The maintainer-authored direction explicitly accepts the changed edge-case behavior, and the patch substantially reduces production machinery without adding configuration or a storage owner.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this PR provides useful, owner-approved state simplification, and no actionable introduced defect was established; current-head CI failures still need attribution before landing.

Priority: P3
Reviewed head: f1eac5423f5bdfe6012ab53355c3ed4a2c563cd2

Before merge

  • Complete next step - Attribute the failed inbound-maintenance, chat-identity, account-routing, and mocked-Gateway UI checks using complete failure evidence and base comparisons; repair PR-caused failures or document independently demonstrated outside causes.

Findings

None.

Agent review details

How this fits together

Gateway session and profile operations use SQLite workers; physical database admission supplies reusable schema facts, while request owners authorize writes and committed receipts publish changes.

flowchart TD
Gateway[Gateway requests] --> Owners[Session and profile owners]
Owners --> Admission[Physical database admission]
Admission --> Workers[SQLite workers]
Workers --> Databases[Agent and shared databases]
Workers --> Receipts[Commit receipts]
Receipts --> Owners
Loading

Technical review

Best possible solution:

Keep one physical-schema owner while preserving current effect authority, physical identity, FIFO ordering, and native write settlement.

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

This is an intentional refactor; CI demonstrates failing assertions, but their causal relationship to the introduced changes remains unproven.

Is this the best way to solve the issue?

Reusing the existing schema owner is consistent with repository policy, and the removed fallback and lifecycle guarantees have explicit owner-approved rationale.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Physical schema admission and retained readers changes intended behavior with a stated reason (bb7d32e: Shared physical admission already permits reuse across workers and reopens; earlier retained-reader work separately guarded schema and cleanup lifetimes.)
  • Incognito callback re-entry changes intended behavior with a stated reason (e32e38e: The inactive actor stage rejected same-actor calls from authorization callbacks; this PR explicitly retires that special refusal while retaining live grants.)
  • Verifier subscribers and replay changes intended behavior with a stated reason (6584af0: Background verification supported clean-restart admission; this PR narrows consumption to the single production Gateway owner and preserves shutdown joins.)
  • Catalog scalar error replay changes intended behavior with a stated reason (34cb8f7: Batch preparation preserved scalar conversion-error ordering; the current owner explicitly accepts immediate page failure instead.)
  • Worker error graph reconstruction changes intended behavior with a stated reason (3ec01ce: Caller-local hydration preserved typed errors and graph aliases; this PR retains ordinary causes and shared children while explicitly relaxing circular local-wrapper reconstruction.)
  • Background conflict checks keeps the original intent (afafe74: Private image writes require exact compare-and-set guards; those guards remain in the worker transaction, making the host comparison redundant.)
  • Startup preparation guard changes intended behavior with a stated reason (ec9de37: Deferred startup preserves agent preparation and publication validity; explicit migration and model-publication assertions remain after removing nested guard accumulation.)
  • Migration witness identifier census keeps the original intent (974443a: Migration witnesses preserve original data; removed membership checks compare identifiers with the same inventory that produced them, while quoted identifiers and witness capture remain.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6584af0 adds src/state/openclaw-database-verify.ts:59 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6584af0ae9ae; files: src/state/openclaw-database-verify.ts)

PR surface

Source -518, Tests -297. Total -815 across 48 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 33 338 856 -518
Tests 15 85 382 -297
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 48 423 1238 -815

Review metrics

Metric Value Why it matters
Production versus tests Production +338/-856; tests +85/-382 The production reduction removes duplicate owners and guards; test reductions follow the explicitly retired contracts.

Labels

Label changes:

  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P3: This is internal maintenance without an established urgent user-facing defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-11T09:36:43.059Z sha f06335b :: needs changes before merge. :: none
  • reviewed 2026-10-11T10:27:19.773Z sha bec7db7329ea4eb810a08b09f5b99f32c8a32302 :: needs changes before merge. :: none
  • reviewed 2026-10-11T11:57:59.501Z sha eaba0352388f9adffee66395e3181eda919b6461 :: needs changes before merge. :: none
  • reviewed 2026-10-11T12:14:52.556Z sha 60b3a7e :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T14:08:44.019Z sha 91e7270 :: needs changes before merge. :: none
  • reviewed 2026-10-11T14:52:58.362Z sha 1c59f34 :: needs changes before merge. :: none
  • reviewed 2026-10-11T17:42:18.225Z sha 5424989 :: needs changes before merge. :: none
  • reviewed 2026-10-11T18:29:21.363Z sha d7ef68a :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 7:08 PM ET / 23:08 UTC (Revision 12).

@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from 50e4f11 to 190dda6 Compare October 11, 2026 07:56
@steipete
steipete marked this pull request as ready for review October 11, 2026 08:04
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 11, 2026
@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from 190dda6 to f16594f Compare October 11, 2026 08:55
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 11, 2026
@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from f06335b to bec7db7 Compare October 11, 2026 10:19
@steipete

Copy link
Copy Markdown
Contributor Author

PR #168947 remains open at bec7db7329ea4eb810a08b09f5b99f32c8a32302.

Latest CI run 38131531013 failed checks-node-changed-compact-large-24-1 (job 114446949264) in two chat-send-global-identity.test.ts cases. Both reproduced independently on current main fc0720162ed; the aggregate openclaw/ci-gate (114447729109) failed downstream. Cancelled sibling jobs remain missing proof.

The main-only repair is now on main in f1fbf170dea3c0c631031e477dc61dc06627fba1. It validates a session's logical agent against its canonical key instead of the physical shared-database owner, and preserves the pending-input custody error classification when its held actor snapshot becomes unavailable. No tests or assertions were weakened. The full chat file passed its other 22 cases; final pending-input and suppression proof passed, followed by 22 actor/source-custody cases plus the pending-input regression. Fresh independent P2 review, production types, direct lint and both zero-cycle checks passed.

The lane has the matching logical-agent fix locally in df8c66301214a62b0fa6f9b8d68364d6ede13841, not yet pushed. Production reduction is 535 lines locally (536 on the published head), with 307 test lines removed. Its merge against current main now conflicts in src/config/sessions/session-actor-phase.worker.ts; resolution must retain main's initial-entry session-ID fallback and the canonical logical-agent check. Three integration rounds have been used. One additional conflict-only round needs coordinator authorization before further integration/push. No CI reruns were requested.

@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from bec7db7 to eaba035 Compare October 11, 2026 11:46
@steipete

Copy link
Copy Markdown
Contributor Author

Latest candidate: eaba0352388f9adffee66395e3181eda919b6461, on main f30bfc6ccb91d399c8de585ca27029caca1fcbcf.

The conflict keeps main's initial-entry session-ID fallback and the verified canonical logical-agent check from df8c6630121. That correction is already on main in f1fbf170dea; no duplicate implementation remains in the PR. Seven simplification/test-cutover commits remain. Net production reduction: 536 lines; test reduction: 307 lines.

Post-rebase proof: all 23 chat-send-global-identity and 18 session-actor-worker cases pass (451.20s wrapper). Production and config-graph types, targeted lint, runtime cycles (0) and Madge cycles (0) pass. The mandatory suppression guard was run: two cases pass; the allowlist case reports ui/src/components/solid/markdown-html.tsx|solid/no-innerhtml|1. The exact same failure reproduces on clean main f30bfc6ccb9 (29.53s wrapper). Neither that UI file nor the guard is changed by this PR; no suppression or baseline was edited.

The previous exact-head CI 38131531013 failed the two independently reproduced main actor regressions in checks-node-changed-compact-large-24-1 (114446949264), plus downstream aggregate openclaw/ci-gate (114447729109). Main repair f1fbf170dea fixed both. Its original regression assertions remain unchanged. Prior cancelled jobs are not represented as passing proof; new exact-head hosted CI is still required.

Coordinator authorized continued conflict-only rebases until this PR lands and explicitly excluded ClawSweeper holds from the campaign's landing gates. No CI reruns, dispatches, or green-only pushes were requested.

@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from eaba035 to 60b3a7e Compare October 11, 2026 12:06
@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 Oct 11, 2026
@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from 60b3a7e to 91e7270 Compare October 11, 2026 14:00
@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 Oct 11, 2026
@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch 2 times, most recently from 1c59f34 to 5424989 Compare October 11, 2026 17:33
@steipete

Copy link
Copy Markdown
Contributor Author

Integrated the coordinator-requested main containing build-smoke isolation fix af6153fa71c. Current head: 54249899c2418a40c384775ef00a97afe264b693; base: 0e9917f5146c3326363c95c0e2f38a63345e6912. All six patches are identical across the rebase. Net production reduction remains 518 lines, with 300 test lines removed separately.

All new local test/build/runtime commands use an allowlisted environment with task-owned HOME, OpenClaw state/config and XDG directories. Frozen install passed. Production types passed; runtime and Madge cycles are both zero. Focused schema-helper, suppression, worker-store and profile tests: 56 passed, 492.82s wrapper. Full changed checks remain in progress. Exact-head hosted run: https://github.com/openclaw/openclaw/actions/runs/38160171364

Fresh independent P2 review returned six suggestions, inspected and declined rather than described as a clean verdict:

  • Native lease identity is constructed from captured host inputs, not copied from the worker reply; live source checks remain.
  • The incognito backend checks its captured target/path and native owner; session writes keep separate request-bound transaction/commit admission.
  • The bundled transaction owner emits ordered requests; every grant still passes binding.authorize. A duplicate host phase counter only defends malformed internal sequencing.
  • Background writes retain profile-remapping refusal and asset/preference CAS inside the admitted transaction. Gateway callers pass the resolved current profile owner.
  • The sole production verifier start belongs to the listening Gateway lifetime. Duplicate starts in one process are unsupported; separate processes have separate queues and exclusive state ownership.
  • The sole prepared-workspace consumer rejects an absent row before effects. New workspace IDs are random UUIDs; holding a nonexistent future ID is not a production path. Existing-row publication, pending settlement and uncertain outcomes remain guarded.

These are the campaign's explicit best-effort compromises, not weakened security boundaries. No CI rerun was requested.

@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from 5424989 to d7ef68a Compare October 11, 2026 18:21
@steipete

Copy link
Copy Markdown
Contributor Author

Replacement head d7ef68ad8fcc7c07021d15aa87fb216c6b0b36de integrates the existing main UI fixture repair 95dcdf93588 for the named local type gate. All eight rebased patches are identical. Net removal remains 518 production lines; test removal is now 290 lines.

Exact-head run 38160171364 for the previous head is terminal. Full cancelled-job log inspection found four actual failures, not just the two jobs marked failed:

  • 114531588482: transcript-search cancellation test compared an advisory earlier indexing: true to settled false. Corrected the final expectation to explicitly require false, preserving exact hits/truncation and every timeout/abort assertion. Current-main full-file replay passed, so it is not presented as inherited-red proof.
  • 114531588447 (cancelled): GitHub-publication test assumed delivery order across the raw reply port and commit-receipt port. The fixture now awaits actual publication while keeping the ordinary reply withheld. All receipt, installed-authority, durable-row and final-result assertions remain. Current-main full-file replay passed; the source-level cross-port race is corrected rather than labeled inherited.
  • 114531588542: sandbox SDK ownership test's filesystem snapshot includes Bun's runtime cache. Exact cache-only mismatch reproduced on clean main 9fec51a055407f9f50eb744ccb13800074fe6e8d under Bun; no application-state mutation was observed in the diff.
  • 114531588635 (cancelled): Codex account-route fixture rejects gpt-account-only-fixture because route compatibility is not declared. Exact error reproduced on clean main 9fec51a055407f9f50eb744ccb13800074fe6e8d, after its clean isolated build. Both control cases pass; the requested model-list assertion passes before the rejection.

The aggregate gate failed downstream. Other cancellations remain missing proof, not passes. No workflow/job rerun was requested. This push carries two actual fixture corrections and the named type-gate integration, not a green-only refresh.

Both test corrections passed independent P2 reviews without actionable findings. Production and UI component types pass; runtime and Madge cycles are zero. Earlier passing unaffected proof is retained; current-head CI will be tracked separately.

@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Oct 11, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Oct 11, 2026
@steipete steipete added the ci:no-fail-fast Keep all selected CI matrix jobs running after failures on the next PR run. label Oct 11, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Conflict-only integration after GitHub reported CONFLICTING: head f1eac5423f5bdfe6012ab53355c3ed4a2c563cd2, base 491dfa6b1597e99ddd246fe3e1f10a1a01c76f65.

Main independently landed the publication synchronization fix in d49e04cfcba. Retained its test file byte-for-byte and dropped the duplicate PR commit. All seven remaining patches are range-diff identical. No production behavior changed in the rebase. Net reduction remains 518 production lines (339 added, 857 removed), plus 297 test lines.

Isolated proof (task-owned HOME, OpenClaw paths, XDG and temp; no real user state):

  • Publication worker: all 11 tests passed; 36.04s Vitest, 159.76s wrapper including worker preparation.
  • State test type graph: passed.
  • Runtime import cycles: 0. Madge cycles: 0.
  • Suppression guard: 2 passed, 1 failed, exact 87-versus-86 mismatch also reproduced on clean base. The only extra entry is src/state/json-predicate-fields.ts|no-control-regex|1, introduced by unrelated main commit 84a834e2334 (perf(state): promote hot session JSON predicates to columns #169315). Both this source and the guard are unchanged by the PR. No suppression or baseline was changed.

Previous focused, full state, type, review and exact-merge proof remains historical evidence for unchanged patches. The earlier d7ef hosted run failed the unchanged SDK ownership test on Bun cache files; its 67 cancelled jobs were not called green. Two isolated remote replays supplied partial coverage, with every failure retained; the final follow-up stopped before tests because its runner did not meet the payload's memory requirement. This replacement run uses the documented ci:no-fail-fast label so all selected jobs can finish. No CI rerun, green-only repush, or timeout change was requested.

@steipete
steipete force-pushed the deslop/p15-state-pr2-20261010 branch from d7ef68a to f1eac54 Compare October 11, 2026 23:01
@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 Oct 11, 2026
@steipete

steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Exact-head CI attribution

Head: f1eac5423f5bdfe6012ab53355c3ed4a2c563cd2.
Run: 38182692484, attempt 1, terminal failure.
Tested merge: 81c1b24a930b82176c6777d96e3b725f0e95c297, main parent e9d8770489b6b50e44100bb99604ee27dd1a9fed.
All 121 jobs finished: 84 success, 25 explicitly skipped, 11 failed roots, one downstream aggregate. No cancelled jobs. Complete commit check-runs and job census retained locally.

The full commit census contains 170 checks: 105 success, 52 skipped, 12 failure and one neutral. The neutral CodeQL check 114598700215 reports "16 configurations not found" (14 critical-quality scopes plus Android/macOS). This is a coverage warning, not a passing result. No unfinished or zero-step non-skipped job was found.

Ten failing root jobs are independently qualified against main. The coordinator explicitly authorized landing with a separate exception for the remaining unreproduced native-placement case. This is not a passing-gate attestation.

Job Observed failure Baseline qualification
114598687129, checks-ui-e2e (2/7) Board panel loses unsaved note Scheduled main run38180826485 job114592980204 has exact same case and assertion
114598687148, checks-ui-e2e (4/7) Follow maintenance scroll gap 330 versus <=2 Scheduled main run38180826485 job114592980272 has exact same case and assertion
114598687197, checks-ui-e2e (1/7) Two prepend-anchor polls and scroll-affordance assertion Scheduled main run38180826485 jobs114592980204 and114592980270 have all three exact cases
114598688223, compact-small-10 Discord /status timestamp; Doctor update-owner error Discord timestamp reproduced on clean8fc and caused by deliberate #169200 history recording. Doctor independently reproduced on main7fcba3a (184.78s wrapper) and scheduled main job114592981847
114598688264, compact-small-14 SDK ownership HOME snapshot includes new Bun cache files Same exact mismatch on clean current main491dfa, isolated Bun, 118.95s wrapper; no application-state differences
114598688273, compact-small-7-1 Board root mode960 instead of448 Same failure on clean maind290 and scheduled main job114592984779. Main #169310 deliberately limits permission repair to open, unlike this stale expectation
114598688382, compact-large-17 Chat optional identity: third anonymous prompt missing Exact missing-third-turn assertion reproduced on clean maind290 Linux in the full three-group job,158.262s. Narrower replays passed; the cause remains unproved, and this is not called fixed
114598688415, changed-3 Codex fixture rejects account-only model before reply Exact compatibility rejection reproduced again on clean maind290 Linux (64.331s; both controls pass), Testbox tbx_01m4pq8mf0tcnyp6q3dddh9vxx/run38187136845
114598688446, changed-5 Required native follow-up placement authority; raw cursor generation mismatch Cursor generation mismatch reproduced on clean maind290 Linux both separately and in the full eight-target sequence. Native follow-up passed main replays and the exact tested merge81c1b24a (594.57s Vitest,3039.30s wrapper including build). The original placement-authority error remains unreproduced and unqualified
114598688644, compact-small-7-3 Inbound event test sees maintenance timestamp before dispatch Same exact failure on clean maind290; Board/inbound run29pass2fail,233.69s Vitest/490.55s wrapper
114598931555, check-test-types-core-2 Four UI fixture errors involving SourceAccessor/Element/updateComplete Exact four errors reproduced on mainf343d33 (52.1s) and scheduled main job114592980810
114600958110, openclaw/ci-gate Downstream aggregation Caused by the 11 roots above; never classified independently green

Explicitly authorized unreproduced-failure exception

The native placement guard comes from existing main code; commit b690de6fbb4 (#168747) removed waiting/retry around a placement read. A same-session publication during that read can produce the observed message. That is a plausible explanation, not proof of this failure's cause or independence from the PR.

Main comparisons included the full eight-target job and an isolated Node24 predecessor/native sequence. A two-CPU Linux comparison could not allocate a Testbox and timed out in the queue without running tests. The exact CI merge snapshot subsequently passed the native E2E locally. Raw-branch attempts produced different Gateway-close/timeout failures on an older base and are not used to qualify the hosted error. All temporary diagnostic edits were removed.

The coordinator authorized an exact-head admin squash with this one failure recorded as unreproduced and likely flaky, distinct from the ten inherited failures. It is not called fixed or proven main-red. Follow-up target: job 114598688446 (checks-node-changed-5), test test/e2e/qa-lab/runtime/required-native-same-session.e2e.test.ts, case settles required native empty workspaces and same-session follow-ups through public RPC, observed Session … placement authority changed.

All task-owned remote leases are stopped; no test/build remains running. The primary branch is clean at the published head. Local replay proof used task-owned HOME, OpenClaw paths, XDG paths and temporary directories. No assertions, retries, skips, timeout limits or suppressions were changed to obtain a pass.

@steipete
steipete merged commit 2526dd8 into main Oct 12, 2026
160 of 173 checks passed
@steipete
steipete deleted the deslop/p15-state-pr2-20261010 branch October 12, 2026 04:02
steipete added a commit that referenced this pull request Oct 12, 2026
#168947 removed the admitted-schema-facts lookup from openclaw-state-db-schema-additive.ts in favor of tableHasColumn, while #168199 landed a new ensureAgentDeletionJournalPhaseSchema that still used getAdmittedSqliteSchemaFacts and parseSqliteTableDefinition, leaving main without those imports (tsgo:core TS2304). Use the same direct column check.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…168947)

* refactor(state): share admitted schema facts across readers

* refactor(state): remove speculative execution bookkeeping

* refactor(state): simplify startup and profile publication

* refactor(state): finish the incognito guard callback cutover

* test(session-share): drop retired scalar error precedence

* test(gateway): publish legacy group fixture schema changes

* test(sessions): assert settled search indexing after cancellation
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
openclaw#168947 removed the admitted-schema-facts lookup from openclaw-state-db-schema-additive.ts in favor of tableHasColumn, while openclaw#168199 landed a new ensureAgentDeletionJournalPhaseSchema that still used getAdmittedSqliteSchemaFacts and parseSqliteTableDefinition, leaving main without those imports (tsgo:core TS2304). Use the same direct column check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:no-fail-fast Keep all selected CI matrix jobs running after failures on the next PR run. gateway Gateway runtime 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant