Skip to content

refactor(gateway): offload approval grant administration - #162549

Merged
steipete merged 12 commits into
mainfrom
dbasync/operator-approvals
Oct 1, 2026
Merged

steipete merged 12 commits into
mainfrom
dbasync/operator-approvals

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Standing-grant list/revoke administration still performs SQLite work on the Gateway thread, and approval worker commands duplicate dispatch and type declarations outside the shared typed registry.

User Impact

Grant administration runs through the existing SQLite workers with live requester-authority checks. Cron exec grant validation and consumption retain current main's synchronous native-launch behavior. The Gateway exec implementation and launch tests match integrated main b9c7034d1bcdfcb19fbd82e4526a366b4aa54fb4 byte-for-byte; the cron validation/consumption transaction remains native.

No schema, stored-state, retention, durability, permission, configuration, or updater/Doctor behavior changes. The shipped v2026.9.4 sessionMutationCommitGuard native-compatibility path and boot-only approval cleanup/pruning remain intact.

Deferred launch-authority work:

Cron exec grant consumption needs a prepared, synchronously revocable capability (revocation fences in-flight consumption before acknowledging) before it can leave the launch boundary.

placement/session owners should expose a prepared, synchronously revocable exact-binding capability for final dispatch

Why This Change Was Made

Register OperatorApproval operations and execApprovals.commitAuthorizations through the typed handler registry, sharing transaction admission and resolution receipts with the retained native SDK path. Shared DTOs stay in leaf modules so worker-derived contracts do not create static import cycles. Related to #162446.

The Discord capture E2E now uses the existing runner admission helper to compile its workers before Vitest starts. This prevents cold compilation from consuming the case deadline without changing timeouts, assertions, or Gateway behavior.

Only grant list/revoke RPC storage is offloaded in this grant cutover: listing uses the existing read-only worker transport; revocation uses the registered guarded writer. RPCs recheck authority after settlement, and revocation rechecks it at transaction admission and commit. Allow-once approval consumption stays with its existing transaction owner.

The cron validate/consume worker commands and async facades were removed, along with the cron validation read command, extracted exec helper, and worker-only cron tests. Current main's native path is restored without a compatibility layer. The test API registration in exec-approvals-sqlite.ts uses typed Object.assign instead of the undocumented assertion; the obsolete old-store assertion exemption was removed without adding exceptions.

Production diff against integrated main b9c7034d1bcdfcb19fbd82e4526a366b4aa54fb4: +415 / −406 / net +9, within the +90 ceiling. Production means non-test/non-test-support .ts under src/, extensions/, and packages/. The shared-state changes are registry wiring and existing read transport integration; the broker lifecycle is unchanged.

Evidence

139 tests in 8 focused files passed. Each row ran pnpm test <file> --maxWorkers=1 with OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=1800000; wall times include wrapper/compiler setup.

File Result Wall time
src/agents/bash-tools.exec-host-gateway.test.ts 40 passed 60.95s
src/gateway/operator-approval-standing-grants.test.ts 33 passed 36.18s
src/gateway/server-methods/approval.legacy-authority.test.ts 14 passed 29.21s
src/gateway/operator-approval-store.worker.test.ts 8 passed 19.85s
src/gateway/operator-approval-store.test.ts 24 passed 19.27s
src/infra/exec-approvals-store.read-worker.test.ts 16 passed 19.18s
src/infra/exec-approvals-authorization.worker.test.ts 3 passed 14.89s
src/state/openclaw-state-worker-registry.test.ts 1 passed 3.93s

The restored launch tests cover standing-grant execution without prompting, consumption at the pre-spawn boundary, and denial when the parent approval is revoked after consultation. Admin grant tests prove no SQLite statements execute on the calling thread for list/revoke, rejected commit authority rolls revocation back, and RPC authority is checked after storage settlement. Real worker/SQLite and native-compatibility coverage justify the longer integration files.

  • pnpm tsgo:core: passed.
  • node scripts/run-oxlint.mjs --tsconfig tsconfig.core.json <changed files>: passed.
  • pnpm check:assertion-safety --base 347b627f9c0c63b439a080087dbe5d9752ca3fce: passed; baseline change is the exact deletion of the obsolete src/infra/exec-approvals-store.ts entry.
  • pnpm check:madge-import-cycles: passed, 0 cycles, with configuration and exceptions unchanged.
  • pnpm check:database-worker-ratchet --base e2e4a34c9828f1230d906567c0eacb7b1e1fe185: passed.
  • git diff --check: passed.
  • Final Codex autoreview through P2: scoped-clean; no accepted/actionable findings.

The description uses the current PR template headings, including What Problem This Solves. CI timing will come from the normal updated-head run; no workflow reruns were dispatched for proof.

Main 9ced5fc07daee9af43fa2a7542f7543bdd651648 is integrated through merge commit 6ecb2c21b3c7d5d394846799f5cab0a4096ff7f8; the registry retains all main domains plus operatorApprovals and execApprovals. The 139 focused tests also passed on that merged source in a combined 238.13s, with core typecheck, ratchet, madge (0 cycles), and P2 autoreview clean.

Capture E2E admission repair

The two hosted attempts timed out in test/e2e/gateway-transcripts-discord-capture.e2e.test.ts > Gateway admitted Discord transcript capture > fences late STT and preserves the admitted owner's history after a room route changes. The second failed job compiled 11,889 worker inputs for 33.820s inside the test's first dynamic import. The first turn was submitted at 115.785s and completed at 122.780s, past the unchanged 120s deadline.

The runner already prepares known worker users before Vitest starts, but its selection omitted this E2E. Add that file to shouldPrepareVitestCoreWorkers. Both direct-runner and pnpm test regression cases failed before the change with prepared: false at Vitest spawn; the existing suite now passes all 51 cases. This is a shared harness omission, not a two-minute approval transaction wait. No authority or timeout workaround was added.

A paired cold-cache reproduction used Blacksmith Testbox tbx_01m3vj1d8pjxe2hazdkd88x0p1, run 36852794722, Node 24.19.0 on 8 vCPUs. The capture test ran first on both revisions, matching the failed shard order; disposable phase/CPU instrumentation and Gateway startup tracing were the only source modifications. Both completed successfully on this faster host, while both reproduced compilation inside the test. This does not claim a main timeout was reproduced.

Source Compilation inside case First turn submitted Case through cleanup
Original PR 6ecb2c21b3c7 12.789s 63.328s 70.728s
Main 0ac1c241fba8 13.536s 56.103s 62.972s
Fixed PR b46efef77afb 0s (12.028s before Vitest starts) 38.242s 45.325s

Repair validation:

  • Fixed capture E2E on the same Testbox: passed, 61.70s command wall, including cold worker compilation before Vitest starts. The capture source was verified unchanged; the final run used fresh filesystem/module caches and disabled compiler-cache reuse. Command: CI=1 OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=1800000 OPENCLAW_E2E_USE_PREBUILT_DIST=1 OPENCLAW_VITEST_WORKER_CACHE=0 OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/tmp/operator-approvals-discord-fixed-fs NODE_COMPILE_CACHE=/tmp/operator-approvals-discord-fixed-compile pnpm test test/e2e/gateway-transcripts-discord-capture.e2e.test.ts --maxWorkers=1.

  • pnpm test test/scripts/vitest-worker-artifacts.batch.test.ts --maxWorkers=1: 51 passed, 53.33s wall. The two added cases take the existing controlled-compiler path and prove compile-before-spawn ordering through both public runners. The file's existing real subprocess lifecycle, failure, and cancellation coverage accounts for its cost.

  • pnpm test src/gateway/operator-approval-standing-grants.test.ts src/gateway/operator-approval-store.worker.test.ts src/infra/exec-approvals-authorization.worker.test.ts --maxWorkers=1: 44 passed, 100.22s runner wall.

  • node scripts/check-changed.mjs --base 9ced5fc07daee9af43fa2a7542f7543bdd651648 -- scripts/lib/vitest-runtime-selection.mts test/scripts/vitest-worker-artifacts.batch.test.ts: passed, including script/root-test typechecks and targeted lint.

  • pnpm check:madge-import-cycles: 0 cycles.

  • pnpm check:database-worker-ratchet --base e2e4a34c9828f1230d906567c0eacb7b1e1fe185: passed.

  • Fresh Codex autoreview through P2: scoped-clean.

This repair adds 0 production LOC, 3 tooling LOC, and 9 net test LOC. At the original repaired head, production was +510 / −496 / net +14; the current integrated-head totals above account for main’s completed facade retirement. No further hosted workflow reruns or merge submissions were requested for the repair.

Previous integrated candidate

Merged main b9c7034d1bcdfcb19fbd82e4526a366b4aa54fb4 through merge commit ebda96c2fd816422e41bb39cde69e550fe133ebd to resolve actual conflicts. All main worker registry domains coexist with operatorApprovals and execApprovals; superseded dispatch and type declarations remain removed. The resolution also preserves main’s completed exec facade retirement from #162333, so moved helpers do not resurrect retired APIs. The exec launch implementation and tests match integrated main. No schema, durability, retention, permission, or update contract changed.

Validation on the resolved tree:

  • 139 tests in the same 8 focused approval, worker, authority, and launch files: passed in 107.33s runner wall using node scripts/run-vitest.mjs <files> --maxWorkers=1.
  • test/scripts/vitest-worker-artifacts.batch.test.ts: 51 passed, 30.03s runner wall, including both Discord capture compile-before-spawn cases.
  • Core typecheck, targeted lint of the resolution, database-worker ratchet, and git diff --check: passed. Direct repository Node wrappers reused the existing installation without dependency reconciliation. The ratchet compared against the original common base 9ced5fc07daee9af43fa2a7542f7543bdd651648 while the merge was staged.
  • Madge import check: 0 cycles.
  • Fresh Codex autoreview of the complete resolved candidate against integrated main through P2: scoped-clean.
  • ClawSweeper completed review of predecessor b46efef77afb with no actionable source or security findings and accepted the documented capture harness repair. Its conflict blocker is resolved here; its generic data-model checklist is unsupported by a stored-contract delta, and the focused previous-schema-reader/candidate-reopen case passed again.

The earlier capture timeout and its cold-cache repair evidence above remain recorded. Current-head GitHub CI is tracked separately; these local results do not claim hosted CI success.

UI prebuilt source-state repair

Prior-head CI run 36858008070 failed both real-Gateway UI shards before tests, in assertPrebuiltUiE2eRuntime at test/vitest/vitest.ui-e2e-prebuilt.global-setup.ts:57. That gate runs git status --porcelain --untracked-files=all and refuses nonempty output or Git failure. The gate is unchanged.

Root cause: dependency-refresh commit 2918779dbf3c, included by the merge, added a stale duplicate @pnpm/[email protected] entry to the lockfile's package-manager environment document. pnpm build prunes that entry and its package/snapshot records, dirtying pnpm-lock.yaml. Main fixed this in 4b32b401503d, just after this branch's conflict-resolution merge. This classifies the failure as inherited stale generated metadata, rather than an approval/worker behavior regression.

Commit 384bf1fbeac9 commits the normalized lockfile. Its blob 7c44ac974c7fb1f0515c50589c5267684306fb3e is byte-identical to main's lockfile-only fix. The application dependency document and pinned versions are unchanged. The repair deletes 25 metadata lines and changes no source or harness checks.

Validation:

  • On the original PR head, OPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_RUN_NODE_SKIP_DTS_BUILD=1 pnpm build passed in 115.52s but changed only pnpm-lock.yaml; invoking the unchanged prebuilt-UI guard reproduced source state is dirty or unavailable.
  • After committing the normalized artifact, OPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_RUN_NODE_SKIP_DTS_BUILD=1 OPENCLAW_BUILD_ALL_NO_PNPM=1 pnpm build passed in 135.90s and git status --porcelain --untracked-files=all was empty.
  • The unchanged real preparation boundary passed: node --import ./scripts/tsx.mjs --input-type=module -e 'import {assertPrebuiltUiE2eRuntime} from "./test/vitest/vitest.ui-e2e-prebuilt.global-setup.ts"; console.log(assertPrebuiltUiE2eRuntime(process.cwd()))'.
  • OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=1800000 pnpm test test/vitest-ui-e2e-prebuilt.test.ts src/gateway/operator-approval-standing-grants.test.ts src/gateway/operator-approval-store.worker.test.ts src/infra/exec-approvals-authorization.worker.test.ts --maxWorkers=1: 57 passed, 98.87s wall, including all 13 prebuilt-UI admission tests.
  • pnpm check:madge-import-cycles: 0 cycles.
  • pnpm check:database-worker-ratchet --base e2e4a34c9828f1230d906567c0eacb7b1e1fe185: passed.
  • git diff --check and fresh Codex autoreview through P2: clean.

This repair adds 0 production LOC; the full PR remains +415 / −406 / net +9. These are local preparation and focused-test results, not a claim of a new hosted UI run. No workflow retry, admin exception, merge request, or auto-merge was submitted for this repair.

Current landing candidate and UI E2E setup repair

The prior run 36858008070 failed both real-Gateway UI E2E shards before test admission with “source state is dirty or unavailable.” The coordinator traced this to stale @pnpm/exe package-manager metadata: pnpm build pruned it from pnpm-lock.yaml, leaving a dirty checkout. Commit 384bf1fbeac947155060a20cf693fb9ae23f28ae applies main's exact normalization from 4b32b401503d63edd0162b84072bd0deb2574cb0; application dependency versions and bytes are unchanged. This supersedes the earlier unresolved-attribution stop.

Final candidate d6b581d6fbc678129d9975c38373fba4c794ca88 merges main ab1b93295ad0f0c093563585bbc76f2e6ce39686 to resolve the new registry conflict. userProfiles, operatorApprovals, and execApprovals all remain registered, and the lockfile matches integrated main exactly. No schema, stored-state, permission, retention, durability, or updater behavior changed.

On this resolved source, all 139 focused tests passed in 122.66s runner wall. Core typecheck, the database-worker ratchet (effective common base b9c7034d1bcdfcb19fbd82e4526a366b4aa54fb4 while staged), formatting, and diff checks passed; Madge reports zero cycles. Fresh Codex autoreview of the complete candidate against integrated main through P2 is scoped-clean. The earlier 51 passing runner regression cases remain applicable because their source and owning implementation are unchanged. Current-head CI and ClawSweeper completion remain separate landing gates.

Infer shared-state worker command contracts from lazy per-domain handler tables. Migrate Web Push, APNs, worktree registry operations, and fleet registry while preserving the existing broker and transaction owners.
@clawsweeper

clawsweeper Bot commented Oct 1, 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.

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: d6b581d6fbc678129d9975c38373fba4c794ca88
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/server-methods/exec-approval.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-allow-always.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-allowlist.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-authorization.worker-contract.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-authorization.worker.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-contracts.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-sqlite.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-store.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals.types.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 1, 2026, 8:30 AM ET / 12:30 UTC (Revision 13).

ClawSweeper review

What this changes

The branch moves approval-grant listing and revocation into existing database workers, consolidates approval dispatch, and prepares Discord capture workers before testing.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains useful, unmerged work. The prior conflict blocker is resolved, and the reviewed diff has no actionable correctness or security findings.

Priority: P2
Reviewed head: d6b581d6fbc678129d9975c38373fba4c794ca88

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused ownership refactor with meaningful boundary coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor proof gate is exempt for this verified repository-member PR. Source and reported real-worker/SQLite coverage connect grant administration to guarded persistence and rollback; no unresolved authority violation requires additional final-effect proof. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor proof gate is exempt for this verified repository-member PR. Source and reported real-worker/SQLite coverage connect grant administration to guarded persistence and rollback; no unresolved authority violation requires additional final-effect proof. No stored-data contract changes.
Evidence reviewed 9 items Pinned introduction reviewed: Reviewed the merge-base-to-head delta rather than attributing integrated main changes to this PR. The approval administration changes remain distinct from the available current-main comparison; neither related merged PR implements this cutover.
Authority retained through final effects: Grant RPCs retain the original request authority and check it after storage settlement. Revocation uses the existing writer admission owner, with checks at transaction entry and immediately before commit; listing checks authority before returning rows. The native compatibility adapter shares the same transaction and receipt implementation.
Observable authority regressions covered: The added storage case uses real worker/SQLite operations and verifies that commit-time authority rejection leaves the grant unchanged. RPC cases verify that invalidated clients receive no response after storage settlement. These protect separate durable-write and response boundaries.
Findings None None.
Security None None.

How this fits together

OpenClaw’s approval subsystem stores operator decisions and reusable grants for scheduled commands. CLI and UI requests inspect or revoke those grants, while command launch independently checks whether execution remains authorized.

flowchart TD
  A[CLI and approval UI] --> B[Gateway approval requests]
  B --> C[Live requester authority]
  C --> D[Read-only worker]
  C --> E[Guarded write worker]
  D --> F[Approval database]
  E --> F
  F --> G[Grant ledger or revocation result]
  F --> H[Native command launch checks]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +9, Tests +139, Other +2. Total +150 across 36 files.

View PR surface stats
Area Files Added Removed Net
Source 29 415 406 +9
Tests 5 160 21 +139
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 3 1 +2
Total 36 578 428 +150

Review metrics

Metric Value Why it matters
Production versus regression coverage production net +9 LOC; tests and support net +139 LOC The small production increase supports the worker cutover, while coverage targets thread placement, authority rejection, and runner admission.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/infra/exec-approvals-sqlite.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep grant administration with the existing worker owners while preserving native launch checks, live requester authority, and established stored-state semantics.

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

Not applicable to an internal refactor; the original synchronous administration path and proposed worker boundary are directly identifiable in source.

Is this the best way to solve the issue?

Yes. Reusing the existing read transport, guarded writer, and typed registry avoids a competing storage or authorization owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded runtime refactor with no demonstrated urgent user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor proof gate is exempt for this verified repository-member PR. Source and reported real-worker/SQLite coverage connect grant administration to guarded persistence and rollback; no unresolved authority violation requires additional final-effect proof. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction reviewed: Reviewed the merge-base-to-head delta rather than attributing integrated main changes to this PR. The approval administration changes remain distinct from the available current-main comparison; neither related merged PR implements this cutover. (src/gateway/operator-approval-store.ts:284, d6b581d6fbc6)
  • Authority retained through final effects: Grant RPCs retain the original request authority and check it after storage settlement. Revocation uses the existing writer admission owner, with checks at transaction entry and immediately before commit; listing checks authority before returning rows. The native compatibility adapter shares the same transaction and receipt implementation. (src/gateway/operator-approval-store.operations.ts:34, d6b581d6fbc6)
  • Observable authority regressions covered: The added storage case uses real worker/SQLite operations and verifies that commit-time authority rejection leaves the grant unchanged. RPC cases verify that invalidated clients receive no response after storage settlement. These protect separate durable-write and response boundaries. (src/gateway/operator-approval-standing-grants.test.ts:864, d6b581d6fbc6)
  • Stored and launch contracts preserved: The introduced patch leaves schema declarations, grant minting and consumption semantics, and native Gateway launch implementation/tests unchanged. Existing grant expiry, revocation provenance, and parent-approval checks remain intact; this is an execution-placement refactor without a stored-data migration. (src/gateway/operator-approval-standing-grants.ts:286, d6b581d6fbc6)
  • Existing product contract: Current documentation defines a visible, idempotently revocable standing-grant ledger and requires authorization checks at the command spawn boundary. CLI and UI callers continue using the same grant RPCs. Public docs: docs/tools/exec-approvals.md. (docs/tools/exec-approvals.md:608, d6b581d6fbc6)
  • Previous conflict blocker resolved: The exact pinned head is still open and unmerged, and live REST metadata reports mergeable=true. Source retains userProfiles alongside both approval registry domains. The supplied test-merge object is stale and was not used to infer the eventual merged tree. (src/state/openclaw-state-worker-registry.ts:68, d6b581d6fbc6)

Likely related people:

  • steipete: 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 (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-01T10:34:03.811Z sha 6ecb2c2 :: blocked before merge. :: none
  • reviewed 2026-10-01T10:55:03.678Z sha 6ecb2c2 :: blocked before merge. :: none
  • reviewed 2026-10-01T11:05:03.121Z sha 6ecb2c2 :: blocked before merge. :: none
  • reviewed 2026-10-01T11:43:21.882Z sha b46efef :: blocked before merge. :: none
  • reviewed 2026-10-01T11:48:40.992Z sha b46efef :: blocked before merge. :: none
  • reviewed 2026-10-01T11:57:15.944Z sha ebda96c :: blocked before merge. :: none
  • reviewed 2026-10-01T12:06:50.420Z sha ebda96c :: blocked before merge. :: none
  • reviewed 2026-10-01T12:17:27.649Z sha 384bf1f :: blocked before merge. :: none

@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete steipete changed the title refactor(gateway): run operator approval grants in workers refactor(gateway): offload approval grant administration Oct 1, 2026
@openclaw-barnacle openclaw-barnacle Bot removed scripts Repository scripts agents Agent runtime and tooling labels Oct 1, 2026
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 1, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Oct 1, 2026
Resolve the shared worker registry conflict by retaining every main domain alongside operatorApprovals and execApprovals. Preserve the existing synchronous cron launch boundary.
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 1, 2026
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Preserve all registered worker domains and retain the completed exec facade retirement while resolving conflicts. Approval authority, cron launch, and stored-state contracts remain unchanged.
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Apply the lockfile-only fix from main 4b32b40. The CI build prunes the duplicate @pnpm/exe environment entry and leaves the checkout dirty, causing prebuilt real-Gateway UI setup to refuse it. Application dependency bytes and pinned versions are unchanged.
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has dependency changes awaiting review. A future dependency graph change from an external contributor requires a maintainer's /allow-dependencies-change comment after the guard notice identifies that revision.

  • Current SHA: d6b581d6fbc678129d9975c38373fba4c794ca88

@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Retain userProfiles alongside both approval registry domains. Preserve the normalized pnpm lockfile and all main domain registrations.
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Oct 1, 2026
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 1b33b99 into main Oct 1, 2026
159 checks passed
@steipete
steipete deleted the dbasync/operator-approvals branch October 1, 2026 12:39
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

* refactor(state): register worker operations once per domain

Infer shared-state worker command contracts from lazy per-domain handler tables. Migrate Web Push, APNs, worktree registry operations, and fleet registry while preserving the existing broker and transaction owners.

* refactor(gateway): run operator approval grants in workers

* test(agents): retain cron grant worker test routing

* fix(gateway): break approval worker type-import cycles

* refactor(gateway): keep cron grants at the launch boundary

* fix(test): prepare Discord capture workers before test admission

* fix(deps): drop stale package-manager lock metadata

Apply the lockfile-only fix from main 359ebb7. The CI build prunes the duplicate @pnpm/exe environment entry and leaves the checkout dirty, causing prebuilt real-Gateway UI setup to refuse it. Application dependency bytes and pinned versions are unchanged.
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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed 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