Skip to content

refactor(infra): run core restart sentinel I/O in workers - #163364

Merged
steipete merged 7 commits into
mainfrom
dbasync/sentinel
Oct 2, 2026
Merged

steipete merged 7 commits into
mainfrom
dbasync/sentinel

Conversation

@steipete

@steipete steipete commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Related: #162446

What Problem This Solves

Core restart-sentinel APIs returned promises while executing SQLite on the Gateway thread during config acknowledgements, chat restarts, update handoff, and post-readiness recovery. This is a maintainer-requested cutover to the existing async storage boundary.

Why This Change Was Made

Core writes now use typed handler-table operations in the shared-state writer registry. Current-row, revision-snapshot, and install-receipt reads extend the existing typed read-only worker registry alongside diagnostic reads. The broker and connection lifecycle remain unchanged.

The existing synchronous kernel still owns atomic current/revision-floor updates and guarded deletion. Named failure/finalization operations replace the private callback rewrite path. Finalization retains its original database admission across reads and root discovery, and verifies the revision again before updating the notification and install receipt in one transaction. Producer authority is checked at transaction and commit admission. Callers recheck campaign or shutdown ownership after awaited settlement.

User Impact

The Gateway awaits core sentinel I/O in workers. Config acknowledgement, chat restart, and managed update transfer retain their persistence ordering. A retired campaign cannot publish or clear its successor, and stopped recovery leaves durable delivery work queued.

Inventory measured with node scripts/database-worker-inventory.mjs --json on pinned base 212a6b81d58d01624e787b097db01bb6bb5ef58c and the candidate:

Owner file T1 before T1 after
src/infra/restart-sentinel.ts 16 10
src/infra/restart-sentinel-store.ts 5 5
Total 21 15

All eleven selected core sites execute through worker paths. The five kernel sites remain classified as mixed: the shared row reader also serves the excluded update-report receipt workflow, migrations, and the sealed updater helper. No inventory classification or generated inventory document was changed. The new writer module has one W transaction site.

Production TypeScript delta against merged main a6dce59e1ca97363636bf9342e05af1bf643be09: +412 / -215 / net +197 across this lane, excluding tests and test support. The increase supplies typed dispatch, worker admission, and read routing; the host rewrite implementation is removed. The PR changes 27 files.

Evidence

The boundary regression failed on the pinned base with caller-thread SQL at writeRestartSentinel. It now passes while host database-open and transaction functions throw, exercising actual worker persistence, reads, and consumption. It also proves existing-only reads do not create a database.

239 focused tests passed. New coverage includes live revocation at transaction and commit admission, consumed revision floors, database-target preservation, deferred config acknowledgement, replacement campaigns, and shutdown during sentinel consumption. Existing coverage proves newer acknowledgements survive cancellation, update handoff waits for persistence, and legacy reader dispatch remains synchronous.

Each row ran with OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=1800000 pnpm test <file> --maxWorkers=1:

Changed test file Passed Measured wall time
src/infra/restart-sentinel.update-result.test.ts 42 732.80 s
src/infra/restart-sentinel.test.ts 35 266.56 s
src/infra/restart-sentinel-format.test.ts 11 302.40 s
src/infra/update-startup-campaign-run.test.ts 10 511.69 s
src/gateway/server-methods/config.shared-auth.test.ts 24 548.81 s
src/gateway/server-methods/update-run-campaign.test.ts 29 292.08 s
src/gateway/server-restart-sentinel.state-context.test.ts 26 605.89 s

The unchanged sibling files below passed 62 tests in 660.32 s total:

OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=1800000 pnpm test \
  src/auto-reply/reply/commands-session-restart.test.ts \
  src/gateway/server-methods/update-handoff-failure.test.ts \
  src/gateway/server-startup-restart-sentinel.test.ts \
  src/state/openclaw-state-read.worker.test.ts \
  src/state/openclaw-state-read.quarantine-cleanup.test.ts \
  src/state/openclaw-state-db-read-connection.cache.test.ts --maxWorkers=1

Wall times include worker-cache validation and transformation on a heavily loaded host. Persistence fixtures reuse suite-level workers; separate database lifetimes remain where physical identity, migration custody, shutdown, and durable delivery ownership are the contract under test. Those lifecycle suites require real workers and SQLite. Formatting assertions were moved unchanged into their own file. CI seconds are not available yet.

Additional validation:

  • node scripts/check-changed.mjs --base a4ad0b67b100308b25dae459f79b52d8b40fbdc5 — passed, including core typechecking, all 27 test-typecheck shards, core/script lint, export scans, and repository guards.
  • pnpm build qaRuntime — passed; this is the Gateway setup's supported runtime build. A full release declaration build was stopped before switching to this profile.
  • pnpm check:database-worker-ratchet --base 212a6b81d58d01624e787b097db01bb6bb5ef58c — passed.
  • pnpm check:madge-import-cycles — zero cycles; runtime import-cycle guard also passed.
  • Codex branch autoreview against the merged main base — scoped-clean at P1. The subsequent logger-fixture correction received a separate scoped-clean review and passed targeted lint and its affected tests.
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.infra.json --incremental and targeted node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/infra/restart-sentinel.test.ts — passed after the logger-fixture correction.
  • git diff --check — passed.

Initial validation exposed a combined-contract import cycle, lazy ledger setup missing from the reused fixture, a threaded test lane without the host broker, and an incomplete logger mock. These were corrected. Worker compilation also correctly refused concurrent build/lint namespace changes; final behavioral validation ran serially after those operations completed. The initial implementation validation used isolated tests; published-driver update proof is recorded below.

Landing repairs and validation

Final candidate: 71f9b49e869dc27e29e5c5bdd5a7adce1225176a. Behavior proof, P2 review, targeted lint, affected typechecks, and repository guards passed. The final-head published-driver update cell passed. CI retains one independently reproduced main failure, recorded below for the explicitly approved native admin exception.

The P2 branch review and ClawSweeper both identified the same durable campaign race: a foreground update could retire while its worker write was queued, leaving a stale notification despite suppressing the in-memory publication. update.run now passes current campaign authority into the existing transaction and commit admission checks. Real-worker regressions failed on the prior implementation at both boundaries and pass with the guard; an existing positive campaign case also verifies the actual persisted row. Fresh Codex review of the repairs is scoped-clean through P2.

CI run 36978870518 exposed three PR-caused test integration failures. The two CLI sentinel consumers needed the existing forked host-broker lane. A real persistence case needed to move out of the deliberately worker-free startup suite. The startup update suite assumed a fake-timer tick completed worker-backed install discovery; its early assertion left a deferred probe unreleased and stalled cleanup. That suite now awaits the existing injected scheduler clock and explicit operation-entry signals, preserving real persistence and all assertions. Its unchanged mock setup moved into a sibling support module to satisfy the line-count ratchet.

Repair validation (overlapping runs, not additive coverage):

  • Seven focused files: 222 tests passed, 599.97 s wall with --maxWorkers=1, including the CLI consumers, worker-free startup, sentinel startup, campaign RPC, and both core sentinel suites.
  • Original failing startup CI composition (update-failure-report-transport, update-run-reader, update-startup): 92 tests passed, 292.09 s wall with the original concurrency.
  • After the mock-module extraction, update-startup.test.ts --maxWorkers=1: 55 tests passed, 333.40 s wall, including 106.85 s compiled-worker preparation. The lifecycle suite retains real workers because cancellation, durable receipts, and post-settlement publication are its contracts.
  • Existing live-campaign success case, now using actual worker persistence: 1 test passed, 58.65 s wall. Transaction- and commit-retirement cases passed in the seven-file run.
  • The startup callback collectors emitted two non-failing admission-close diagnostics during cleanup; there were no assertion, unhandled-error, or teardown failures.

The moved startup-sentinel file passed 4 cases (9.61 s summed case time), the retained worker-free startup file passed 84 (25.84 s), and the campaign file passed 30 (59.95 s) before its positive persistence strengthening. These case totals are distinct from invocation wall time above. Per-file CI timing artifacts are not published; the local case and wall measurements are above, and the final update-cell duration is recorded below.

Main was integrated with a merge commit after a real routing-map conflict; both independent watch mappings were retained. This includes upstream Windows declaration-fixture fix 0a188c4f038f05a04af5d9cac2f0695c54cd229e. Its missing record-coerce export failure was independently observed in main run 36979748808, before any sentinel code was reached. The repaired branch also exposed 17 mechanical startup-fixture lint errors; all were corrected and targeted typed lint passed.

The merged dispatcher crossed the local 700-line lint limit. Its existing journal status and authority branches now use the existing registry-read helper, retaining the same admitted database and unchanged kernels. This move adds no production lines overall and changes no schema, authority, or transaction contract. Post-merge proof passed 107 tests in 215.44 s across sentinel, campaign, restart-recovery, and read-worker suites. The dispatch move passed 36 existing journal/read-worker tests in 64.62 s. Core typechecking, affected test-type graphs, targeted core/script lint, and the runtime import-cycle check passed. Before integration, all 27 test-type graphs and the pre-lint changed-file guards completed successfully; the broad lint invocation was stopped after CI identified the now-corrected fixture errors.

A second real conflict arose when main landed the diagnostic and config worker migrations. Integration now extends main's stateReadRegistry with sentinel operations, carries both read result/command contracts, and retains all writer and test registrations. The branch-private prepareRegisteredStateRead bridge was removed. The final composition passed 60 tests across sentinel, diagnostic, config-snapshot, and legacy read-worker suites in 107.18 s, targeted typed lint, core typechecking, a zero-cycle import check, and fresh P2 review. No schemas, persistence bytes, or authority checks changed during integration.

The intermediate repaired head 9f99d108 also passed the selected published-driver update cell (job 110766741312, 429 s): published 2026.9.7, updater exit 0, durable run succeeded/finished, readiness 200, correct serving version, and cleanup exit 0. This remains prior-head evidence after integration.

The original head's selected published-driver update cell passed using published 2026.9.7: managed update exit 0, durable run succeeded/finished, replacement service readiness 200, serving version verified, and service cleanup exit 0. This is prior-head evidence; the final-head result is recorded below.

Final-head update proof and inherited CI failure

The selected published-driver update cell passed on head 71f9b49e869dc27e29e5c5bdd5a7adce1225176a. Published 2026.9.7 performed a managed update to CI merge candidate bbb65251f83bf7988fb184ab94b9c2bbf6e26caa (package SHA-256 2d6cda79fc8f1fe06070700b322982b4b5db3fa2a55b01a7d71953f3bdecadb5). The updater exited 0 in 556.002 s; durable completion was succeeded/finished, managed service replacement passed, readiness returned 200, the serving version matched, and cleanup exited 0. The complete cell took 661 s, including a 612 s update step.

CI attempt 1 has one failed leaf: Windows Node shard 3. The source and compiled TUI provider-hook cases in test/scripts/vitest-worker-artifacts.test.ts still expect the old authentication-error sentence after main's d0b48d63efb88ac4f9f5eb447a39ea95cb2b0542 changed that wording. A clean checkout of the exact tested main parent 5ec7d7f3b0ce443563d0e1e6f2c4122c3b6aac75, with its own frozen dependency install, reproduced both identical failures using the existing tests (2 failed, 33 skipped, 66.42 s wall). The assertion executes before provider preparation or any sentinel/SQLite flow. All 13 causal fixture/formatter inputs are byte-identical between that main parent and the tested PR merge, and were unchanged in checked main 0614328f729e36addaaa02d72d114054ca6c9a27.

The remaining selected CI jobs, including security-fast, passed; no jobs were cancelled. The aggregate CI gate failed only because of that Windows leaf. Native landing retained this failure and the independent main proof under the explicitly authorized pre-existing-failure exception; it is not reported as green CI. No workflow rerun was requested.

Compatibility Retained

No public SDK API changed and no async/sync aliases were added. No exports were deleted; the private rewriteRestartSentinel callback path was removed.

  • readRestartSentinelRowSync, readRestartSentinelSnapshotSync, and writeRestartSentinelRowSync remain available to the legacy migration/maintenance owner.
  • readRestartSentinelRowSync and writeRestartSentinelRowIfRevisionSync retain the sealed updater-helper subprocess contract.
  • readRestartSentinelRowForKeySync remains shared with the excluded update-failure-report receipt owner. That owner's runtime SQL is remaining debt, not a new compatibility exception.
  • Delete and install-receipt functions remain synchronous worker-kernel operations, not host runtime alternatives.

Update Behavior

No schema version, state format, retention, durability, config, or permission change. Existing sentinel keys, typed columns, payload bytes, revision-floor semantics, and install receipts are preserved. Installed drivers and the sealed helper keep their native contracts; old drivers are unaffected. The frozen released 2026.9.4 recovery-reader cases pass. Candidate-side callers still await accepted persistence before acknowledgement, restart emission, or handoff.

Overlap Census

No competing core sentinel worker cutover was found. Adjacent #144764, #121050, and #161513 affect untouched config-producer, test, migration, or report-receipt files. Main's #162874 update-target validation cleanup was merged without conflicts; its hunks are separate from sentinel persistence.

Merged through the native workflow as d8b18a62a3c61adb4247064f2ad93d6ea8d9df54. The retained parent audit records intervening main movement from aa31aeefb745aba23a8393ea50ddb26251132c31 to actual parent ca0159f1c2ea5087df217430fc608815268ea180; the native workflow verified the exact attempted head and retained its qualified CI result.

Move core restart sentinel writes and reads into the shared-state workers, preserve commit admission and revision ownership, and recheck producer and delivery liveness after settlement. Keep installed updater and migration kernels unchanged; no schema or state-format changes.
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XL labels Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. 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 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:49 AM ET / 09:49 UTC (Revision 6).

ClawSweeper review

What this changes

Moves saved restart-notification reads and writes into existing SQLite workers while preserving config acknowledgement, update handoff, and recovery ordering.

Merge readiness

✅ Ready for maintainer review

The PR remains useful because current main still executes core restart-notification SQL on the calling thread. No actionable introduced defect remains, and the final-head published-driver result resolves the previous proof blocker.

Priority: P2
Reviewed head: 71f9b49e869dc27e29e5c5bdd5a7adce1225176a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent worker cutover with strong update and authority-boundary evidence; the earlier finding and final-candidate proof request are resolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The final-head Linux Docker published-2026.9.7 update cell exercises installed-updater handoff into the worker-backed sentinel path and records succeeded/finished completion, replacement readiness, serving identity, and cleanup. Real-worker allowed and retired-campaign cases cover durable final effects at transaction and commit admission. The captured body identity and successful GitHub job were verified; raw log retrieval was network-blocked. No stored-data contract changes require migration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The final-head Linux Docker published-2026.9.7 update cell exercises installed-updater handoff into the worker-backed sentinel path and records succeeded/finished completion, replacement readiness, serving identity, and cleanup. Real-worker allowed and retired-campaign cases cover durable final effects at transaction and commit admission. The captured body identity and successful GitHub job were verified; raw log retrieval was network-blocked. No stored-data contract changes require migration.
Evidence reviewed 11 items Pinned introduction and current-main necessity: Reviewed the introduced delta from a6dce59 to the exact head. Current main still calls the synchronous write transaction directly inside writeRestartSentinel; the latest release retains that implementation too.
Latest-release comparison: v2026.9.7 also implements writeRestartSentinel through calling-thread runOpenClawStateWriteTransaction; this worker cutover has not been superseded by that release.
Prior campaign finding resolved: update.run now supplies current campaign ownership to sentinel persistence. The worker requests transaction admission before mutation and commit admission before returning to the transaction owner; publication and campaign clearing also recheck ownership after settlement.
Findings None None.
Security None None.

How this fits together

Restart notifications preserve config, chat-restart, and update outcomes across Gateway restarts. Producers save them in shared SQLite state; startup recovery consumes them after recording durable notification and continuation work.

flowchart TD
  A[Config and restart requests] --> C[Restart notification owner]
  B[Update campaigns] --> C
  C --> D[Worker admission and revision checks]
  D --> E[Shared SQLite state]
  E --> F[Startup recovery]
  F --> G[Durable notices and continuations]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +197, Tests +568. Total +765 across 27 files.

View PR surface stats
Area Files Added Removed Net
Source 14 412 215 +197
Tests 13 1114 546 +568
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 27 1526 761 +765

Review metrics

Metric Value Why it matters
Production versus test growth Production +197 net; tests and support +563 net Production growth supplies typed worker dispatch and admission while removing the host rewrite path; test growth protects persistence and lifecycle boundaries.

Technical review

Best possible solution:

Keep one sentinel kernel behind the existing workers, preserving revision ownership, live producer admission, durable settlement, and installed-updater compatibility.

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

Yes, by source inspection: current main directly executes synchronous sentinel SQL inside promise-returning APIs. The supplied boundary regression records the before-fix failure; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. Extending the existing writer and read-worker registries preserves the authoritative kernel and avoids introducing a competing storage owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This is a bounded runtime storage refactor with relevant recovery and upgrade proof, rather than an urgent user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The final-head Linux Docker published-2026.9.7 update cell exercises installed-updater handoff into the worker-backed sentinel path and records succeeded/finished completion, replacement readiness, serving identity, and cleanup. Real-worker allowed and retired-campaign cases cover durable final effects at transaction and commit admission. The captured body identity and successful GitHub job were verified; raw log retrieval was network-blocked. No stored-data contract changes require migration.
  • proof: sufficient: Contributor real behavior proof is sufficient. The final-head Linux Docker published-2026.9.7 update cell exercises installed-updater handoff into the worker-backed sentinel path and records succeeded/finished completion, replacement readiness, serving identity, and cleanup. Real-worker allowed and retired-campaign cases cover durable final effects at transaction and commit admission. The captured body identity and successful GitHub job were verified; raw log retrieval was network-blocked. No stored-data contract changes require migration.

Evidence

What I checked:

  • Pinned introduction and current-main necessity: Reviewed the introduced delta from a6dce59 to the exact head. Current main still calls the synchronous write transaction directly inside writeRestartSentinel; the latest release retains that implementation too. (src/infra/restart-sentinel.ts:68, aa31aeefb745)
  • Latest-release comparison: v2026.9.7 also implements writeRestartSentinel through calling-thread runOpenClawStateWriteTransaction; this worker cutover has not been superseded by that release. (src/infra/restart-sentinel.ts:68, c074824a27c9)
  • Prior campaign finding resolved: update.run now supplies current campaign ownership to sentinel persistence. The worker requests transaction admission before mutation and commit admission before returning to the transaction owner; publication and campaign clearing also recheck ownership after settlement. (src/gateway/server-methods/update.ts:640, 71f9b49e869d)
  • Authority and persistence boundary coverage: The campaign regressions use actual worker persistence, retire the campaign at transaction and commit admission, and inspect the durable row to verify preservation. The positive campaign case also reads the persisted result. The body records before-fix failures and passing repair runs; these are supplemental production-boundary regressions, not execution performed by this review. (src/gateway/server-methods/update-run-campaign.test.ts:786, 71f9b49e869d)
  • Final-head published-driver proof: GitHub verifies job https://github.com/openclaw/openclaw/actions/runs/36989172596/job/110783091497 succeeded for head 71f9b49, including the candidate update step. The captured body reports published 2026.9.7 updating to package candidate bbb65251f83bf7988fb184ab94b9c2bbf6e26caa, updater exit 0, succeeded/finished durable completion, service replacement, readiness 200, matching serving version, and cleanup exit 0. That candidate remains historical proof; its stale test-merge parentage is not used to infer the current merge result. (71f9b49e869d)
  • Update proof exercises the relevant contract: The published-driver harness invokes the installed openclaw update command against the candidate package, then asserts durable completion, installed build identity, replacement service PID, readiness, serving version, and cleanup. Thus the successful job covers managed update behavior rather than generic startup or help output. Raw log retrieval was blocked by the network allowlist; supplied results, job metadata, and harness source were inspected. (scripts/e2e/lib/upgrade-survivor/published-driver.mjs:343, 71f9b49e869d)

Likely related people:

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

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 (5 earlier review cycles)
  • reviewed 2026-10-02T07:34:55.353Z sha d064d33 :: blocked before merge. :: [P1] Revalidate campaign ownership before committing the sentinel
  • reviewed 2026-10-02T07:41:55.830Z sha d064d33 :: needs real behavior proof before merge. :: [P1] Revalidate campaign ownership before committing the sentinel
  • reviewed 2026-10-02T08:31:38.651Z sha 9f99d10 :: blocked before merge. :: none
  • reviewed 2026-10-02T09:09:43.828Z sha b6ede68 :: blocked before merge. :: none
  • reviewed 2026-10-02T09:25:14.056Z sha 71f9b49 :: blocked before merge. :: none

@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 2, 2026
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 2, 2026
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Oct 2, 2026
@steipete
steipete merged commit d8b18a6 into main Oct 2, 2026
152 of 157 checks passed
@steipete
steipete deleted the dbasync/sentinel branch October 2, 2026 10:05
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…63364)

* refactor(infra): run restart sentinel operations in workers

Move core restart sentinel writes and reads into the shared-state workers, preserve commit admission and revision ownership, and recheck producer and delivery liveness after settlement. Keep installed updater and migration kernels unchanged; no schema or state-format changes.

* test(infra): retain real logger methods in sentinel fixture

* fix(infra): fence campaign sentinel writes at commit admission

* test(infra): adapt sentinel consumers to worker completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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