Skip to content

fix(gateway): retain approval authority across storage waits - #150237

Merged
steipete merged 2 commits into
mainfrom
codex/operator-approval-lookup-followup-20260916
Sep 22, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/operator-approval-lookup-followup-20260916

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #153591, #153663.

What Problem This Solves

An approval request could lose authority while lookup or verdict work waited for SQLite and still commit or publish a response. Definite storage refusals could incorrectly settle a pending waiter as corrupt, or strand an expired approval after its one-shot timer fired. Lost worker replies could also lose local settlement or auto-review provenance.

User Impact

Approval lookup, history, expiry, and verdicts retain their live request and storage owners across asynchronous work. Disconnect alone preserves authorized completion; revoked requests leave the pending row, waiter, and events unchanged. Existing external synchronous SDK guards continue to work. Public shapes, stored bytes, schema, retention, FIFO, original deadlines, and decision rules stay unchanged.

Why This Change Was Made

Capture the original request binding in unified approval handlers and legacy exec/plugin get/list/wait/resolve. Recheck request, reviewer, source binding, and current policy around awaited work and at transaction/commit admission. Committed config publications retain relevant auth and session-routing facts: equivalent or unrelated settings preserve the request, while permission/routing changes permanently revoke it even after a restore. Both worker and native-compatible requests carry that publication fence and release its listener when the handler completes.

The existing approval store owns FIFO across the worker family and the explicitly selected v2026.9.4 opaque synchronous SDK guard family. Both use the same transition kernels and shared admission owner. The compatibility family stays native so a SQL-capable guard does not wait on its own worker transaction; worker failure never selects that family. Removing it requires a public contract that can require guards safe for worker admission.

Distinguish admission refusal, corruption, and unknown mutation outcomes. Autonomous expiry rearms its existing timer only for canonical pre-execution overload/unavailability, retaining its original database and maintenance/schema/coordinator scopes. Later resolve/deny and local settlement keep that pending-entry fence; they cannot adopt a replaced owner or redirect the pending verdict to another database. Retirement clears the timer, cancellation still closes executable authority immediately, and ordinary corruption retains its fail-closed settlement.

Unknown writes receive one readback under their original physical admission, with no automatic verdict replay. Recheck the admission after readback and before local settlement; a matching row in a replacement database does not restore it. Per-operation postcommit receipts are the sole positive evidence for auto-review provenance. Shared/null runtime resolver IDs cannot establish that provenance; missing receipts retain uncertainty, while a distinct device/channel winner settles as an operator decision. Confirmed pending readback clears an inconclusive attempt under its original owner. No-route denial keeps the null decision used by ask fallback.

Evidence

Final local qualification covers 553 cases across 17 owner files: the unchanged 16 files passed 343 cases, and the RPC owner file passed 210/210 after fixing its two existing get/list helpers to supply the required config reader. Those incomplete contexts were the only six failures in the preceding broad run; no assertions or production guards were weakened. The final 65-case expiry/request-authority matrix passes, including eight demonstrated RED→GREEN cases for replacement, rerouting, and native config ABA. The actual isolated Gateway/WebSocket native-hook flow also passes in its original whole-file order.

The production bytes pass a normal build and fresh full P2 review; the final fixture-only correction passes its type/lint checks and a fresh post-95 P2 review. The complete changed-file gate passed on the preceding candidate, and the final ownership delta passes production types, all three affected Gateway type graphs, focused lint, size checks, formatting, and runtime import-cycle checks (zero cycles). The build reported the same 362.3/362.2 KiB UI startup-budget advisory seen in the preceding retained build; this backend diff does not change the UI. Exact-head hosted CI on this successor passed; timings are recorded below.

Causal controls exercise real worker admission saturation and timer callbacks, recovery without a later client read, original coordinator custody, cancellation/retirement, same-path physical replacement, ordinary retries after refusal, and successful/uncertain lost replies. Registered lookup→verdict controls cover disconnect continuation, durable revocation, equivalent/unrelated config publication, and role/routing ABA for worker and native families. Native full-guard and shared-kernel checks retain the SDK contract. The calibrated parent SQL counters for ordinary store lookup/pending/expiry/history remain prepare=0, exec=0, get=0, all=0, run=0, iterate=0, including worker close. Their scope excludes native compatibility and upstream authority producers; no live channel delivery or native fault-injection campaign is claimed.

Measured test cost

Per-file elapsed test execution recorded by Vitest on the final production bytes (seconds, including test hooks; excludes file import/worker startup and is not additive wall time because files overlap). The first nine rows are from the final broad run; the last is the corrected fixture-owner rerun. The latter covers the changed get/list support helpers; support modules and the routing list are not standalone suites.

Test file Seconds
src/gateway/exec-approval-manager.expiry.test.ts 27.61
src/gateway/operator-approval-store.worker.test.ts 9.79
src/gateway/server-methods/approval-shared.storage-failure.test.ts 1.49
src/gateway/server-methods/approval-shared.test.ts 30.21
src/gateway/server-methods/approval.legacy-authority.test.ts 10.38
src/gateway/server-methods/approval.request-authority.test.ts 4.03
src/gateway/server-methods/approval.settlement.test.ts 7.59
src/gateway/server-methods/approval.test.ts 39.01
src/gateway/server.native-hook-request-lifetime.test.ts 59.69
src/gateway/server-methods/server-methods.test.ts 139.76

Whole-command costs: broad 17-file run 236.18 s (Vitest 223.53 s, 547 pass/6 fixture-context failures); corrected 210-case owner 164.22 s (Vitest 160.02 s, all pass); final 65-case authority/expiry control 51.01 s (Vitest 47.18 s, all pass). This is retained measured evidence, not a new run or an estimate of incremental CI overhead.

Exact-head CI run 35770681245 completed successfully: 134 successful jobs, 16 skipped. Available job elapsed times (start to completion, including setup): build-artifacts 221 s, check-prod-types 323 s, check-test-types 618 s, check-test-types-core-1 454 s, check-test-types-core-2 266 s, checks-fast-bun-launcher 123 s. All 59 compact Node test jobs passed, ranging 84–938 s; these shared jobs are not attributed as this PR’s incremental cost.

Historical source-bound evidence retained from the previous PR head

Historical evidence on the previous head and its recorded predecessor sources remains separate: 71 authority/handler tests; the original 139-test, nine-file current-main composition; four subsequent physical-worker transcript/approval controls; and the calibrated six-counter lookup/history proof. Their earlier builds, types, reviews, and ordering controls are not final-candidate qualification. The tooling follow-up retained the original-order four-case RED and seven-case GREEN, four routing controls, and 176 wrapper/provisioning passes. Its isolated operation-lock retry passed at the unchanged deadline; the Darwin accelerated cold/warm provisioning cell still hit its original 120-second limit and is not claimed green. The previously blocking task-identifier fixture import was fixed on main in #153988. Historical CI: https://github.com/openclaw/openclaw/actions/runs/35538566830 (151 successful checks, 14 skipped). It is not qualification for this rewritten current-source candidate.

Remaining authority migration

This PR does not finish every approval-related parent-thread SQL migration. Bundled in-process agent callers still need a trusted worker-safe authority carrier through their run/profile/receipt owners; the external SDK compatibility exception does not cover those internal callers. Profile and placement authority preparation are separate owner-level work, excluded from this PR's zero-SQL counter claim. The remaining cut must preserve live run/claim/placement authority and owner epochs without impersonating WebSocket authority or dropping checks.

@clawsweeper

clawsweeper Bot commented Sep 16, 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 docs Improvements or additions to documentation gateway Gateway runtime size: L maintainer Maintainer-authored PR labels Sep 16, 2026
@steipete
steipete marked this pull request as ready for review September 16, 2026 18:56
@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 3:29 PM ET / 19:29 UTC (Revision 14).

ClawSweeper review

What this changes

The PR preserves approval authorization across database waits, retries refused expiry operations under their original storage owner, and reconciles uncertain verdicts without replaying writes.

Merge readiness

✅ Ready for maintainer review

This PR remains useful and has no blocking findings after re-review. The earlier authority and expiry findings are addressed, and the updated body supplies the requested test-cost context.

Priority: P2
Reviewed head: 8f71ae50005df359a7e717b6fc97f5e78efcb689

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong causal boundary coverage, explicit compatibility limits, and successful CI support the clean review.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The inspected production-path harness and reported passing controls exercise registered approval handlers, real SQLite workers, commit admission, revocation, lost replies, and expiry recovery, observing durable rows, waiter settlement, and publication outcomes. The separate real Gateway native-hook run is supplemental; no live-channel or WebSocket revocation campaign is claimed. Stored formats and schema remain unchanged.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The inspected production-path harness and reported passing controls exercise registered approval handlers, real SQLite workers, commit admission, revocation, lost replies, and expiry recovery, observing durable rows, waiter settlement, and publication outcomes. The separate real Gateway native-hook run is supplemental; no live-channel or WebSocket revocation campaign is claimed. Stored formats and schema remain unchanged.
Evidence reviewed 13 items Pinned scope and clean checkout: Reviewed the introduced merge-base-to-head changes, preserving the distinction from base-branch drift. The checkout matches the pinned head and remained clean; no target code or tests were executed.
Request authority and revocation: The original request binding is retained through handler work. Committed permission or routing changes permanently revoke that invocation, including revoke/restore transitions; equivalent and unrelated publications preserve it. Handler disposal releases the listener.
Allowed and revoked final-effect controls: The inspected registered-handler harness retains real request-binding, device-revocation, SQLite worker, admission, and commit owners. Its controls verify successful authorized completion after disconnect and unchanged durable pending rows, unsettled waiters, and absent resolution publications after revocation. The captured body reports the final 65-case authority/expiry matrix passing; this is production-boundary fault injection, not a claim of live WebSocket revocation testing.
Findings None None.
Security None None.

How this fits together

Gateway approval handlers connect operator decisions to pending agent actions. The approval manager and SQLite store retain authorization, record the winning verdict, and release waiting actions and approval events.

flowchart TD
  A[Operator approval request] --> B[Retained request authority]
  B --> C[Approval manager]
  C --> D[Storage admission and commit checks]
  D --> E[SQLite approval record]
  E --> F[Waiter settlement and events]
  D --> G[Refusal or uncertain result]
  G --> C
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +1060, Tests +2424, Docs +56. Total +3540 across 34 files.

View PR surface stats
Area Files Added Removed Net
Source 20 1610 550 +1060
Tests 12 2475 51 +2424
Docs 2 57 1 +56
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 34 4142 602 +3540

Review metrics

Metric Value Why it matters
Production versus regression coverage Net production +1,060 lines; tests and test support +2,421 lines Production growth is explained by retained authority, bounded recovery, and shared native/worker dispatch; the larger test delta exercises their failure boundaries.

Technical review

Best possible solution:

Keep request authorization and recovery with the existing approval and storage owners, preserving synchronous SDK guards and unchanged durable records.

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

Yes, source and the retained causal controls establish concrete revocation-during-admission and refused-expiry paths. This read-only review did not execute a fresh current-main reproduction.

Is this the best way to solve the issue?

Yes. The patch extends the existing approval owner, shares transition kernels, and preserves the released synchronous guard contract without introducing another durable store.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded approval correctness and recovery repair, with no evidence of a current widespread outage requiring higher priority.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The inspected production-path harness and reported passing controls exercise registered approval handlers, real SQLite workers, commit admission, revocation, lost replies, and expiry recovery, observing durable rows, waiter settlement, and publication outcomes. The separate real Gateway native-hook run is supplemental; no live-channel or WebSocket revocation campaign is claimed. Stored formats and schema remain unchanged.
  • proof: sufficient: Contributor real behavior proof is sufficient. The inspected production-path harness and reported passing controls exercise registered approval handlers, real SQLite workers, commit admission, revocation, lost replies, and expiry recovery, observing durable rows, waiter settlement, and publication outcomes. The separate real Gateway native-hook run is supplemental; no live-channel or WebSocket revocation campaign is claimed. Stored formats and schema remain unchanged.

Evidence

What I checked:

  • Pinned scope and clean checkout: Reviewed the introduced merge-base-to-head changes, preserving the distinction from base-branch drift. The checkout matches the pinned head and remained clean; no target code or tests were executed. (8f71ae50005d)
  • Request authority and revocation: The original request binding is retained through handler work. Committed permission or routing changes permanently revoke that invocation, including revoke/restore transitions; equivalent and unrelated publications preserve it. Handler disposal releases the listener. (src/gateway/server-methods/approval-request-authority.ts:49, 8f71ae50005d)
  • Allowed and revoked final-effect controls: The inspected registered-handler harness retains real request-binding, device-revocation, SQLite worker, admission, and commit owners. Its controls verify successful authorized completion after disconnect and unchanged durable pending rows, unsettled waiters, and absent resolution publications after revocation. The captured body reports the final 65-case authority/expiry matrix passing; this is production-boundary fault injection, not a claim of live WebSocket revocation testing. (src/gateway/server-methods/approval.request-authority.test.ts:64, 8f71ae50005d)
  • Earlier expiry finding resolved: The existing pending-entry timer now rearms only for canonical pre-execution overload or unavailability. It retains database, maintenance, schema, and coordinator custody; tests cover automatic recovery without a client read, owner replacement, rerouting, cancellation, and retirement. (src/gateway/exec-approval-expiry.ts:100, 8f71ae50005d)
  • Uncertain outcomes preserve ownership and provenance: Recovery reads the original physical database without replaying the verdict and rechecks that owner before local settlement. The inspected controls exercise lost replies, missing commit receipts, competing operator decisions, physical replacement, and preservation of unanswered no-route fallback. (src/gateway/server-methods/approval.settlement.test.ts:341, 8f71ae50005d)
  • Existing storage and SDK contracts: Worker and native-compatible operations share unchanged transition kernels and FIFO admission. Serialized-record comparisons cover first-answer wins, consumption, and history. The released v2026.9.4 request types expose an opaque synchronous sessionMutationCommitGuard; preserving its native boundary avoids requiring an incompatible worker-safe callback. No schema, persisted-format, retention, or configuration change is introduced. (src/gateway/operator-approval-store.worker.test.ts:51, 8f71ae50005d)

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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-20T09:07:03.866Z sha 48b6eef :: needs real behavior proof before merge. :: [P1] Preserve device revocation across the asynchronous verdict lookup
  • reviewed 2026-09-20T19:42:27.254Z sha 66d037d :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-20T20:47:13.940Z sha 26ed90b :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-20T21:38:14.763Z sha d8b39b4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-21T00:17:47.265Z sha d8b39b4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-22T16:27:00.564Z sha 95a13d3 :: blocked before merge. :: [P2] [P2] Reschedule expiry after a transient storage refusal
  • reviewed 2026-09-22T16:35:45.867Z sha 95a13d3 :: blocked before merge. :: [P2] [P2] Reschedule expiry after a transient storage refusal
  • reviewed 2026-09-22T19:06:43.846Z sha 8f71ae5 :: needs changes before merge. :: none

@steipete
steipete force-pushed the codex/operator-approval-lookup-followup-20260916 branch from a9ae30a to 48b6eef Compare September 20, 2026 08:59
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XL and removed size: L labels Sep 20, 2026
@github-actions

github-actions Bot commented Sep 20, 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: 8f71ae50005df359a7e717b6fc97f5e78efcb689
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/exec-approval-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/exec-approval-expiry.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/exec-approval-lifecycle.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/exec-approval-manager.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/exec-approval-manager.types.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/exec-approval-recovery.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/exec-approval-results.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/server-methods/approval-request-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/exec-approval.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@steipete
steipete force-pushed the codex/operator-approval-lookup-followup-20260916 branch from 48b6eef to 66d037d Compare September 20, 2026 19:26
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts and removed agents Agent runtime and tooling labels Sep 20, 2026
@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 Sep 20, 2026
Carry original request and database authority through approval lookup,
verdict admission, recovery, and local settlement. Preserve the tagged
opaque SDK guard contract through the same mutation kernels.

Use actual postcommit receipts for auto-review provenance, retain unknown
outcomes without confusing refusal with corruption, and fence retries
against replaced database owners.
@steipete
steipete force-pushed the codex/operator-approval-lookup-followup-20260916 branch from d8b39b4 to 95a13d3 Compare September 22, 2026 16:17
@steipete steipete changed the title refactor(gateway): move approval lookup and history off the Gateway thread fix(gateway): retain approval authority across storage waits Sep 22, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review head 95a13d3b0c021399e445c162cc508002ec801a8c. The previous authority-proof hold is now covered by registered approval.resolve controls using real SQLite workers: transport retirement followed by device revocation during lookup or verdict admission preserves the durable pending row, pending waiter, and absence of resolution publications. The fixture delegates to the real admission/grant owner; live WebSocket I/O is not claimed.

The revised body records 521 passing tests, fresh clean P2 review, the exact build/check proof limits, postcommit receipt and physical-owner recovery controls, and the separate remaining internal authority-SQL migration. Hosted CI is attached to this head.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Sep 22, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Sep 22, 2026
@clawsweeper clawsweeper Bot added 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: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 22, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review current head 8f71ae50005df359a7e717b6fc97f5e78efcb689. The expiry finding is fixed through the existing pending-entry timer and SQLite owner: definite refusals recover without a client read, later verdicts retain the original database/context, and unknown outcomes are not automatically replayed. Committed config revocation now covers both worker and native-compatible requests, including ABA, while preserving equivalent publications and the synchronous SDK guard.

The updated PR body records the exact final proof scopes, including 65 causal controls, 553 qualified owner cases, normal build, clean managed P2 reviews, and remaining internal-producer SQL work. The original real Gateway native-hook case passes. Exact-head CI is running in 35770681245.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 22, 2026
@steipete
steipete merged commit d9c0dd6 into main Sep 22, 2026
232 checks passed
@steipete
steipete deleted the codex/operator-approval-lookup-followup-20260916 branch September 22, 2026 20:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to ycmjbot-bot/openclaw that referenced this pull request Sep 22, 2026
* commit 'ba4bc10ee5283f37813593da158cd3146f4cf2bf': (53 commits)
  fix(tests): drain persistence deliveries before fixture cleanup (openclaw#155934)
  fix(tests): drain Gateway abort deliveries before teardown (openclaw#155913)
  fix(test): give the bundled MCP tarball checks time on Windows runners (openclaw#155931)
  improve: explain where session catalog requests spend time (openclaw#155786)
  fix(test): recognize deletion cancellation in SQLite lifecycle proof
  test(gateway): join request lifetimes before fixture teardown
  test(codex): assert late-abort interrupt identity (openclaw#154853)
  fix(cron): avoid blocking Gateway during retention discovery (openclaw#155414)
  fix(tests): drain subagent deliveries before teardown (openclaw#155910)
  fix(ci): recover Security Review when diff data settles slowly (openclaw#155921)
  fix(ci): recover Security Review after checkout failures (openclaw#155919)
  fix(infra): retain SQLite reader modules in PR wrapper inventory
  ci: pack test jobs and add opt-in Spot cron routing (openclaw#155403)
  fix(gateway): retain approval authority across storage waits (openclaw#150237)
  test(media): isolate base64 memory accounting per VM (openclaw#155638)
  fix(gateway): keep concurrent session descriptions responsive (openclaw#155471)
  fix(test): await Talk storage cleanup before removing fixtures
  fix(tests): settle subagent steer work before teardown (openclaw#155888)
  test(ci): respect retained command worker caps (openclaw#155735)
  test(ui): synchronize release fixtures with owned lifetimes
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 23, 2026
…w#150237)

* fix(gateway): retain approval authority across storage waits

Carry original request and database authority through approval lookup,
verdict admission, recovery, and local settlement. Preserve the tagged
opaque SDK guard contract through the same mutation kernels.

Use actual postcommit receipts for auto-review provenance, retain unknown
outcomes without confusing refusal with corruption, and fence retries
against replaced database owners.

* fix(gateway): retain approval owners across retries and policy changes
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
roboclaw-bot added a commit that referenced this pull request Sep 25, 2026
Backport #150237: d9c0dd6
Backport #155964: fa92bd5

Preserve bound runtime and persistence authority across approval operations,
terminal reconciliation and deadline settlement. Keep HTTP operator session
execution on its existing capability owner. No schema or configuration bump.

Independent review and affected owner/entrypoint regressions are complete.
Combined release and hosted CI qualification remain separate.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: jalehman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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