Repository navigation
Conversation
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
This was referenced Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Durable Core stack context
This is PR 6/6. Its incremental role is to add bounded read-only Gateway and CLI inspection; no new schema, config, recovery owner, or mutation authority.
End state
The series targets infrastructure-level agent silence on supported OpenClaw
7.1 paths. Accepted long-running or delegated work should retain durable
identity, parent/owner attention, recovery state, and replay-safety evidence
across Gateway restart, process interruption, context overflow/compaction,
delayed children, stale claims, and ambiguous handoffs. The intended result is
truthful recovery or an explicit owner-decision/uncertainty state, not silent
loss and not blind replay.
This is not a promise that every agent will always produce a useful response.
It does not resume an arbitrary operating-system process, guarantee exactly-once
external effects, prove delivery through every transport, or replace profile,
skill, prompt, and model quality.
Official 7.1 baseline and residual gap
Official 7.1 already has authoritative lifecycle owners for tasks and task
delivery, Task Flow runs, subagents, outbound and session delivery queues,
leases, sessions, ACP, restart/boot, conversation bindings, audit, diagnostics,
and the shared SQLite schema. This stack keeps those owners authoritative.
The residual gap appears when a fact crosses owners. No single official 7.1
owner can safely answer all of these questions without taking authority from
another owner:
refer to the same run;
delivered;
or uncertain;
directly.
Durable Core therefore adds only residual cross-owner facts, owner-first
recovery coordination, and bounded inspection. It reuses
state_leasesforattempt authority and the existing
schema_meta/user_versionowner for schemaversioning. It does not add a second task, flow, subagent, delivery, session, or
migration ledger.
Root causes and stack coverage
Six-PR map
Review model
All six PRs target
release/2026.7.1at0790d9f593ad30c940ed93b5872a8cf6d6f3cf8c, so GitHub displays a cumulativediff for each later PR. Review and merge order remains PR1 through PR6.
Review the incremental change for this slice at PR6-only compare.
Exact head for this PR:
d42d5d856be0a9e981db3b5c62a6e1568cbe6e19.What Problem This Solves
The durable runtime can preserve and recover work across restart, overflow, and
owner handoff, but operators need a supported way to determine whether the
runtime is healthy, what work remains open, and why a wake or recovery decision
is pending. Reading SQLite directly would bypass redaction, couple support tools
to private schema details, and risk accidental mutation. This slice provides a
bounded read-only Gateway and CLI contract while leaving all retry, replay,
settlement, and source-owner authority with the existing canonical owners.
What changed
operator.readGateway methods:durable.health.getdurable.coordination.getdurable.obligations.listdurable.wakes.listdurable.wakes.inspectdurable.uncertainty.listdurable.deliveryAttempts.listopenclaw durableCLI commands.Boundary
Relative to PR5, this slice adds:
Canonical source owners remain authoritative. Inspection does not repair or replay work.
Evidence
Exact head:
d42d5d856be0a9e981db3b5c62a6e1568cbe6e19pnpm buildpassed, including plugin SDK declaration/export guards.pnpm tsgo:allpassed.pnpm protocol:checkpassed after regenerating JSON and Swift models andconfirming no generated artifact drift.
git diff --checkpassed.OpenClaw 2026.7.1 (d42d5d8).Upstream CI correction
The initial submitted head passed source tests and the full build, but upstream
checks-fast-bundled-protocolcorrectly found that the generated Swift Gatewaymodel was stale. Its bundled tests passed 188/188; the job failed only when
protocol:checkregeneratedapps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swiftand foundan uncommitted diff. The repository's own
pnpm protocol:gen:swiftoutput isnow committed without manual editing, and corrected exact head
d42d5d856be0a9e981db3b5c62a6e1568cbe6e19passes the full generation andgit diff --exit-codeguard.Built CLI zero-write and privacy proof
A built-binary harness verified:
{ "head": "d42d5d856be0a9e981db3b5c62a6e1568cbe6e19", "proof": "built-cli-zero-write-and-redaction", "checks": { "disabled": true, "uninitialized": true, "invalidConfig": true, "seededReadOnly": true }, "disabledFiles": [], "uninitializedFiles": [], "invalidFiles": [], "exposed": [], "seededDatabaseUnchanged": true, "seededChangesAreReadSidecars": true }The seeded main SQLite file retained the same byte length and SHA-256 hash. In
WAL mode, a read-only SQLite connection may update standard
-shm/-walcoordination sidecars; this exact-head trace observed a 32 KiB
-shmsidecarhash/mtime change while the main database stayed byte-identical. The
implementation does not use
immutable=1, because that can ignore an activeWAL and expose stale production state.
Exact-head loopback proof
The built Gateway reached ready state on an isolated loopback fixture and served all seven public methods through real WebSocket calls. The fixture included a durable run, a failed wake/delivery attempt, unresolved uncertainty, raw metadata marker
DO_NOT_EXPOSE, a private idempotency key, file URI, local path, and private endpoint.Observed:
Inspect [path] via [endpoint];Safety notes
This PR intentionally provides inspection only. It does not claim exactly-once external effects, automatic semantic replay, external-channel delivery guarantees, or operator mutation authority.