Skip to content

fix: keep delegated approvals alive until their outcome - #137017

Merged
steipete merged 1 commit into
mainfrom
steipete/silly-morse-012e3f
Sep 3, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/silly-morse-012e3f

Conversation

@steipete

@steipete steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: #134557 — delegated system-agent approvals can be consumed without applying the requested configuration change.

What Problem This Solves

Fixes an issue where users approving a delegated OpenClaw configuration change in Guarded mode could lose the approval card when the requesting turn finished, while the final answer incorrectly said the proposal was still pending for ten minutes. Even a quick Allow could record the human decision without applying the change.

Fresh authenticated baseline proof captured the full resolution payload: deny, terminalStatus: cancelled, durable reason run-aborted. A separate actual Allow recorded allow-once, followed by a false-pending final and applicationStatus: not-applied. This behavior already exists in baseline 04bad80b953d493882d5ecf8b095275eaf5826fd; this PR does not attribute it to #136036, the Full Access delegation repair.

Why This Change Was Made

The existing pending-proposal owner now carries completion, and the requesting tool waits for the actual application or terminal non-application result. Human waiting happens outside system-agent serialization so the single decision executor can reenter that queue without deadlocking. Final history and failure/cancellation/expiry replies come from that owner; the redundant per-session queue and immediate pending-response plumbing are removed.

Long real waits also exposed a native Code Mode ownership mismatch: a yielded cell could let the model finish its turn while the nested delegation call remained pending. The delegate now uses the existing direct-only tool surface, preserving one direct model call through the human decision. Other tools retain Code Mode, and ordinary tool policy, Codex exclusions, and turn allowlists still apply. Direct placement grants no ring-zero authority.

Authorization is unchanged: the exact run, tool, worker claim, Gateway, and session must remain live, including after awaited work and immediately before persistent effects. The caller now carries its individual AbortSignal privately instead of relying on an outer Promise race. A closed run cannot approve or revive the proposal. The approval still expires after 600 seconds; the dynamic tool uses the existing human-interaction execution budget and transport grace, not a new configuration option.

User Impact

Operators can take time to review a delegated change, click Allow or Deny, and receive the actual outcome. Stop cancels the proposal. Expiry produces a truthful final response instead of a disappearing card followed by a stale pending claim. Late Allow preserves the terminal decision and performs no write.

No new configuration keys, SQLite changes, protocol version, dependency changes, or compatibility fallback. Documentation is updated for OpenClaw delegation, permission modes, and the Codex harness reference.

Evidence

Real authenticated browser proof

Real isolated Gateway and Chromium, stock Codex 0.152.1, public openai/gpt-5.6-luna, Guarded sessions. No provider mock, shortened expiry, clock manipulation, approval-manager injection, or operator Gateway/state access.

Scenario Observed result
Baseline, no human decision Approval cancelled about 1.8 seconds after registration; final falsely said pending for ten minutes.
Baseline, actual Allow Allow at +193 ms; false-pending final at +2,249 ms; not-applied at +15,338 ms; saved/live configuration unchanged.
Fixed, Allow after 95 seconds Card remained usable; Allow at +95,296 ms, application at +119,480 ms, accurate final at +120,842 ms. Saved/live logging.level changed debug → info.
Fixed, Deny Actual GUI Deny; no write; final “Denied. No change.”
Fixed, Stop Actual GUI Stop / chat.abort; durable cancelled record, aborted chat, visible “Interrupted”; no write.
Fixed, natural expiry Card still visible at +300,157 and +590,103 ms. Expired at +600,001 ms; accurate final at +600,675 ms: “The request expired. No configuration change was made.”

Deny and Stop completed while another session continued its full expiry wait. Late Allow after Deny, Stop, and expiry returned applied: false with the exact unchanged terminal snapshot; saved/live configuration remained unchanged. This is the existing terminal replay contract, not an exception-based API.

Before/after screenshots and recordings attached below were inspected and contain synthetic data only. Full resolution payloads, config readbacks, source hashes, build identity, and verification logs are retained locally. The live proof build is 2026.8.1-2d23e7276db1-2026-09-03T03-33-24.827Z; source/build hashes were unchanged throughout. The approval-owner modules are unchanged on the refreshed main baseline. Exact-head integration CI is tracked on this PR.

Regression and contract proof

  • Pre-fix owner regressions failed on early completion, missing terminal history, and stale pending results; the per-tool cancellation table failed 8/8 before signal propagation was repaired.
  • Direct-only regression failed eight delegate metadata cases and both real-descriptor Codex namespace cases before the marker was added. Post-fix: 11 delegate tests, 114 Codex build tests, and 11 Code Mode/Pi/headless/start/resume sibling contracts passed.
  • Owner/sibling validation included a 272-test run and a later 71-test split-owner run. These overlap; counts are not additive.
  • Core, core-test, plugin, and plugin-test typechecks; scoped formatting/lint/architecture checks; max-lines ratchet; pnpm build qaRuntime; and git diff --check passed. Documentation link audit: 7,290 links, zero broken.
  • Fresh independent Codex autoreview completed scoped-clean at the configured P0-only threshold before commit; exact-head CI and native landing guards remain required.

Focused owner command:

node scripts/run-vitest.mjs src/agents/tools/openclaw-delegate-tool.test.ts src/gateway/server-methods/system-agent-approval.test.ts src/gateway/server-methods/system-agent-approval-authority.test.ts src/gateway/server-methods/system-agent.test.ts

Native dependency source was inspected personally at Codex rust-v0.152.1 / 5adb68a49933ae446bf11935662c83dba55a0804: direct-only exposure, namespace override, dynamic handler awaiting lines 139–151/174–250, and active-turn waiter cleanup. No custom Codex runtime or protocol is required.

Scope and remaining distinctions

Production +361/−356, net +5; tests +975/−679, net +296, including moved authority coverage; docs +29/−11, net +18. Handler churn is largely dedentation after deleting duplicate serialization. Remaining production growth supplies the completion/ownership boundary and truthful terminal outcomes rather than a second execution path.

The baseline UI startup gzip guard failed by 143 bytes before any UI edits; the shared main repair #136817 has since merged. This PR changes no UI budget. The ask_user / secrets Code Mode exposure audit is a separate follow-up, not silently included here. The issue's distinct agents.entries deletion/whole-object examples have not been reproduced by this proof, so the mutation-specific follow-up on #134557 remains for separate verification.

Exact-head integration proof

Refreshed all four authenticated real-browser flows on PR head 72c297aee646c33d300808981628679ae6526d24, build 2026.8.1-72c297aee646-2026-09-03T05-13-22.910Z, after integrating current main. Source/build hashes stayed unchanged throughout.

  • Allow after 95 seconds: human decision at +95,201 ms, actual application at +108,128 ms, accurate final at +109,480 ms. Saved and live logging.level changed from debug to info.
  • Deny: no write; final “Request denied. No change was made.”
  • Stop: cancelled approval and aborted chat at +201 ms; visible “Interrupted”; no write.
  • Natural expiry: approval stayed visible through the full wait, expired at +600,011 ms, and produced the truthful final at +601,516 ms: “The request expired before approval. No configuration change was made.”

Late Allow after Deny, Stop, and expiry returned applied: false with the exact unchanged terminal snapshot. Deny/Stop completed while the other session remained waiting. No model/provider mocks, clock shortcuts, or post-closure execution. Test Gateway/state and temporary credentials were cleaned up; the operator Gateway was untouched.

The exact-head conversation-only recordings appended last show Allow and natural expiry, in that order. They were cropped to exclude operator identity chrome, then inspected across the full duration and final frames; the approval controls, countdown, final response and permission posture remain visible.

CI run 33717961345, attempt 1 completed successfully for the exact head; required openclaw/ci-gate is SUCCESS, with no failed or pending checks. Local integration: 239 tests passed across three shards; pnpm build qaRuntime passed in 3m38.4s after the frozen-lockfile install. Fresh pre-commit Codex autoreview was scoped-clean at P0-only threshold, and git range-diff confirms the rebase preserved the reviewed patch.

Exact local test command:

node scripts/run-vitest.mjs src/agents/tools/openclaw-delegate-tool.test.ts src/gateway/server-methods/system-agent-approval.test.ts src/gateway/server-methods/system-agent-approval-authority.test.ts src/gateway/server-methods/system-agent.test.ts extensions/codex/src/app-server/dynamic-tool-build.test.ts extensions/codex/src/app-server/dynamic-tool-execution.test.ts

ClawSweeper evidence-gap resolution

The completed ClawSweeper review found no correctness or security defects and rated the patch/proof diamond. Its P1 pre-merge item was a verification-access gap in its DNS-disabled environment. I verified each missing item before proceeding:

  • Current main: fetched 13799ec4f8380c14f7ce1836ce611291254bdda2 and reopened all seven affected production modules. Each is byte-identical to the reviewed pre-fix baseline at c7f353d7274f130603d3af24f454218832025d66; the repair is not already present on main.
  • Official Codex provenance: a fresh git ls-remote against https://github.com/openai/codex.git returned tag object 3c6cfbab81e44218c729dc8c6b304cb760d1b8a1 for rust-v0.152.1 and peeled commit 5adb68a49933ae446bf11935662c83dba55a0804, exactly matching the locally inspected source. The direct-call, waiter-cleanup and DirectModelOnly contracts cited above are from that commit.
  • Published media: downloaded all eight linked GitHub attachments successfully. Every SHA-256 matches the original inspected source media. I also decoded and inspected the remotely fetched exact-head expiry recording's final frame; it visibly reports expiry and no configuration change. The latest Allow recording SHA-256 is b978384507c1a484ed4c33c2d049d0786d1599303c5bbd13ba417e619112c48f; expiry is f39ac722d38beaf4faa11f0dce814eb879f39d69861f5bf343a6e0398ce49a3e.

This resolves the published evidence-access concern through maintainer verification; it does not claim the review worker had network access. No code, authorization policy, or gate was weakened. Head remains 72c297aee646c33d300808981628679ae6526d24; exact-head CI, the required gate, independent review, and the four authenticated live flows remain green. No additional Rank-up moves or source findings were published.

Before: closed run still claims approval is pending

After: approval stays usable during human review

After: Allow applies the setting before the final answer

After: expiry is reported truthfully without a write

attachment-3921694616.webm
attachment-4180251352.webm
attachment-1393740255.mp4
attachment-811066557.mp4

Wait for the actual delegated OpenClaw approval/application result without
holding system-agent serialization or extending closed-run authority.
Keep human approval on a direct model tool call so yielded Code Mode cells
cannot strand it. Preserve cancellation and truthful denial/expiry results.

Verified real authenticated Allow after 95 seconds, Deny, Stop, and natural
600-second expiry; late approvals preserve terminal state and perform no write.
Related: #134557. No configuration, SQLite, or protocol changes.
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling extensions: codex size: XL maintainer Maintainer-authored PR labels Sep 3, 2026
@steipete steipete self-assigned this Sep 3, 2026
@steipete
steipete marked this pull request as ready for review September 3, 2026 05:13
@steipete
steipete requested a review from a team as a code owner September 3, 2026 05:13
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Exact-head integration proof

Refreshed all four authenticated real-browser flows on PR head 72c297aee646c33d300808981628679ae6526d24, build 2026.8.1-72c297aee646-2026-09-03T05-13-22.910Z, after integrating current main. Source/build hashes stayed unchanged throughout.

  • Allow after 95 seconds: human decision at +95,201 ms, actual application at +108,128 ms, accurate final at +109,480 ms. Saved and live logging.level changed from debug to info.
  • Deny: no write; final “Request denied. No change was made.”
  • Stop: cancelled approval and aborted chat at +201 ms; visible “Interrupted”; no write.
  • Natural expiry: approval stayed visible through the full wait, expired at +600,011 ms, and produced the truthful final at +601,516 ms: “The request expired before approval. No configuration change was made.”

Late Allow after Deny, Stop, and expiry returned applied: false with the exact unchanged terminal snapshot. Deny/Stop completed while the other session remained waiting. No model/provider mocks, clock shortcuts, or post-closure execution. Test Gateway/state and temporary credentials were cleaned up; the operator Gateway was untouched.

The exact-head conversation-only recordings appended last show Allow and natural expiry, in that order. They were cropped to exclude operator identity chrome, then inspected across the full duration and final frames; the approval controls, countdown, final response and permission posture remain visible.

CI run 33717961345, attempt 1 completed successfully for the exact head; required openclaw/ci-gate is SUCCESS, with no failed or pending checks. Local integration: 239 tests passed across three shards; pnpm build qaRuntime passed in 3m38.4s after the frozen-lockfile install. Fresh pre-commit Codex autoreview was scoped-clean at P0-only threshold, and git range-diff confirms the rebase preserved the reviewed patch.

Exact local test command:

node scripts/run-vitest.mjs src/agents/tools/openclaw-delegate-tool.test.ts src/gateway/server-methods/system-agent-approval.test.ts src/gateway/server-methods/system-agent-approval-authority.test.ts src/gateway/server-methods/system-agent.test.ts extensions/codex/src/app-server/dynamic-tool-build.test.ts extensions/codex/src/app-server/dynamic-tool-execution.test.ts

Latest ClawSweeper status is a running-review placeholder, with no published findings or Rank-up moves to apply or skip at this check. Independent review and exact-head validation are complete; any findings published before merge will be checked.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 2:04 AM ET / 06:04 UTC.

ClawSweeper review

What this changes

The PR keeps delegated OpenClaw approval requests alive until their applied, denied, expired, or cancelled result can be returned to the requesting agent, and keeps that delegation out of nested Codex Code Mode calls.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open for normal maintainer handling. No introduced correctness or security defect was found: the patch releases Gateway serialization while the initiating tool waits for the exact approval outcome, and retains live authority checks through the final effect.

Priority: P1
Reviewed head: 72c297aee646c33d300808981628679ae6526d24

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-boundary repair with strong lifecycle and authority coverage plus recorded real-flow evidence.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This maintainer-authored PR records exact-head authenticated Allow, Deny, Stop, and expiry coverage; linked media could not be independently opened in the DNS-disabled review environment.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR records exact-head authenticated Allow, Deny, Stop, and expiry coverage; linked media could not be independently opened in the DNS-disabled review environment.
Evidence reviewed 8 items Queue release and completion wait: The chat handler returns pending approval work from the serialized task, then awaits its completion before responding, preventing the approval resolver from deadlocking on the same task lane.
Authority remains closure-bound: The approval owner validates run, tool signal, Gateway, worker, and session identity before resolution and passes the same assertion to the engine’s final persistent-effect boundary.
Authority regression coverage: The new test closes delegated authority after queued approval work begins and verifies that the final effect is not called; table coverage also fences Full Access across run, tool, Gateway, worker, and session closure.
Findings None None.
Security None None.

How this fits together

The agent-facing OpenClaw tool sends delegated administrative requests to the Gateway system agent. The Gateway stages a persistent proposal, waits for an operator decision outside its serialized task lane, then applies or rejects it and returns the resulting reply to the original tool call.

flowchart LR
  A[Agent tool call] --> B[Gateway chat request]
  B --> C[Pending approval owner]
  C --> D[Operator decision or cancellation]
  D --> E[Live authority check and apply]
  E --> F[Reply to original tool call]
Loading

Before merge

  • Resolve merge risk (P1) - Current-main source blobs, official Codex-tag provenance, and linked live-proof media could not be reopened because the promisor remote and GitHub DNS were unavailable; this review therefore makes no shipped-duplicate or independently inspected-media claim.
Agent review details

Security

None.

PR surface

Source +5, Tests +296, Docs +18. Total +319 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 7 361 356 +5
Tests 8 975 679 +296
Docs 3 29 11 +18
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 1365 1046 +319

Review metrics

Metric Value Why it matters
Production vs test delta production +361/-356 (net +5); tests +975/-679; docs +29/-11 The small production increase is concentrated in the approval-completion and authority boundary while substantially replacing prior pending-reply and queue logic.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain one approval-completion owner that releases the Gateway queue, returns the actual outcome to the initiating tool, and revalidates live authority immediately before application.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain one approval-completion owner that releases the Gateway queue, returns the actual outcome to the initiating tool, and revalidates live authority immediately before application.

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

Yes: the source identifies the pending-approval queue/lifetime path and the PR records authenticated Allow, Deny, Stop, and expiry scenarios, though this read-only review did not re-execute them.

Is this the best way to solve the issue?

Yes: moving the wait outside the serialized Gateway task while retaining the exact completion and final-effect authority assertions is the clean owner-boundary repair; keeping the tool direct-only matches the inspected Codex exposure contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d1774564e686.

Labels

Label changes:

  • add P1: This repairs a user-visible delegated administrative flow that could otherwise leave an operator waiting without the final applied, denied, expired, or cancelled outcome.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR records exact-head authenticated Allow, Deny, Stop, and expiry coverage; linked media could not be independently opened in the DNS-disabled review environment.

Label justifications:

  • P1: This repairs a user-visible delegated administrative flow that could otherwise leave an operator waiting without the final applied, denied, expired, or cancelled outcome.
  • 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. Not applicable: This maintainer-authored PR records exact-head authenticated Allow, Deny, Stop, and expiry coverage; linked media could not be independently opened in the DNS-disabled review environment.

Evidence

Acceptance criteria:

  • [P1] Exact-head CI is reported green in the supplied PR context.
  • [P1] Read-only source review of queue release, final-effect authority checks, Codex exposure contract, and focused regression coverage.

What I checked:

  • Queue release and completion wait: The chat handler returns pending approval work from the serialized task, then awaits its completion before responding, preventing the approval resolver from deadlocking on the same task lane. (src/gateway/server-methods/system-agent.ts:620, 72c297aee646)
  • Authority remains closure-bound: The approval owner validates run, tool signal, Gateway, worker, and session identity before resolution and passes the same assertion to the engine’s final persistent-effect boundary. (src/gateway/server-methods/system-agent-approval.ts:133, 72c297aee646)
  • Authority regression coverage: The new test closes delegated authority after queued approval work begins and verifies that the final effect is not called; table coverage also fences Full Access across run, tool, Gateway, worker, and session closure. (src/gateway/server-methods/system-agent-approval-authority.test.ts:118, 72c297aee646)
  • Request lifecycle coverage: The Gateway test verifies that the request remains unanswered while approval is pending, the task lane is free for resolution, and the original request receives the applied result afterwards. (src/gateway/server-methods/system-agent.test.ts:940, 72c297aee646)
  • Codex integration contract: The bundled Codex plugin pins @openai/codex 0.152.1; the delegate tool is marked direct-only and the thread request adds its namespace to the Codex feature-table setting. (extensions/codex/package.json:11, 72c297aee646)
  • Direct Codex runtime inspection: The inspected sibling Codex source defines DirectModelOnly as model-visible but unavailable to nested Code Mode, and applies that exposure to configured namespaces; its local origin is a cache, so official upstream provenance could not be revalidated under DNS failure. (codex-rs/tools/src/tool_executor.rs:68, 5adb68a49933ae446bf11935662c83dba55a0804)

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.

@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

ClawSweeper evidence-gap resolution

The completed ClawSweeper review found no correctness or security defects and rated the patch/proof diamond. Its P1 pre-merge item was a verification-access gap in its DNS-disabled environment. I verified each missing item before proceeding:

  • Current main: fetched 13799ec4f8380c14f7ce1836ce611291254bdda2 and reopened all seven affected production modules. Each is byte-identical to the reviewed pre-fix baseline at c7f353d7274f130603d3af24f454218832025d66; the repair is not already present on main.
  • Official Codex provenance: a fresh git ls-remote against https://github.com/openai/codex.git returned tag object 3c6cfbab81e44218c729dc8c6b304cb760d1b8a1 for rust-v0.152.1 and peeled commit 5adb68a49933ae446bf11935662c83dba55a0804, exactly matching the locally inspected source. The direct-call, waiter-cleanup and DirectModelOnly contracts cited above are from that commit.
  • Published media: downloaded all eight linked GitHub attachments successfully. Every SHA-256 matches the original inspected source media. I also decoded and inspected the remotely fetched exact-head expiry recording's final frame; it visibly reports expiry and no configuration change. The latest Allow recording SHA-256 is b978384507c1a484ed4c33c2d049d0786d1599303c5bbd13ba417e619112c48f; expiry is f39ac722d38beaf4faa11f0dce814eb879f39d69861f5bf343a6e0398ce49a3e.

This resolves the published evidence-access concern through maintainer verification; it does not claim the review worker had network access. No code, authorization policy, or gate was weakened. Head remains 72c297aee646c33d300808981628679ae6526d24; exact-head CI, the required gate, independent review, and the four authenticated live flows remain green. No additional Rank-up moves or source findings were published.

@steipete
steipete merged commit 644e14a into main Sep 3, 2026
303 checks passed
@steipete
steipete deleted the steipete/silly-morse-012e3f branch September 3, 2026 06:24
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
)

Wait for the actual delegated OpenClaw approval/application result without
holding system-agent serialization or extending closed-run authority.
Keep human approval on a direct model tool call so yielded Code Mode cells
cannot strand it. Preserve cancellation and truthful denial/expiry results.

Verified real authenticated Allow after 95 seconds, Deny, Stop, and natural
600-second expiry; late approvals preserve terminal state and perform no write.
Related: openclaw#134557. No configuration, SQLite, or protocol changes.
@fray-ai

fray-ai commented Sep 4, 2026

Copy link
Copy Markdown

I can confirm this failure remains present in the packaged stable release 2026.9.1 (ad6fe23) on Ubuntu.

From a WhatsApp-backed main session, two delegated config proposals (IDs redacted) were created at 13:06:49 and 13:09:32 UTC. Both returned the user-facing OpenClaw change pending approval … Expires in 10m response. Neither reached WhatsApp or Control UI → Inbox → Approvals.

Durable operator_approvals evidence:

kind source session final status terminal reason
system-agent agent:main:whatsapp:direct:<redacted> cancelled run-aborted
system-agent agent:main:whatsapp:direct:<redacted> cancelled run-aborted

They were cancelled roughly 8 s and 34 s after creation, despite their nominal 10-minute TTL. There were no matching delivery_queue_entries, and the packaged dist/system-agent-BhnNvC3z.js explicitly calls handlePendingApprovalRequest with deliverRequest: () => false for approvalKind: "system-agent".

The system-agent owner, WhatsApp allowlist, source session, and paired Control UI operator scopes were valid. This rules out a local routing/allowlist issue and matches the requesting-turn lifetime problem addressed by this PR. No secrets or personal identifiers included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex gateway Gateway runtime maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

2 participants