Repository navigation
refactor(gateway): wake restored processes and channel-owner work as their requester - #205129
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
…their requester Durable and lost ordinary process records store the requester's QueuedOperatorRecoverySource; the exit admits it again through restoreGatewayQueuedOperatorRecovery and copies it into the owed row. A refused requester's result is withheld with its cause. A configured channel owner records a channel-owner source (sender only); restore re-runs decideChannelOwnerPrincipal and refuses a sender removed from commands.ownerAllowFrom. Older rows wake as the session principal. Co-authored-by: obviyus <[email protected]>
6e7abc3 to
5c1626e
Compare
|
Codex review: blocked before merge. What this changesThis PR saves background-process requesters and configured channel-owner identities so restored work runs through requester admission. Example: Discord owner 111 starts a durable command, then the Gateway restarts before it exits.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open: the requester recovery correction is useful and maintainer-directed, but two introduced lifecycle defects need repair. Reviewed head: Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe process registry persists restart facts; exec notifications and queued-input recovery turn saved command results into conversation turns through operator admission. flowchart TD
A[Requester starts exec] --> B[Process registry]
B --> C[Stored process and requester source]
C --> D[Restored process exits]
D --> E[Operator admission]
E --> F[Conversation wake queue]
E --> G[Visible withheld result]
Technical reviewBest possible solution: Keep saved-source recovery in the existing owners, retain admission through enqueue, and leave temporarily unavailable results pending for recovery. Do we have a high-confidence way to reproduce the issue? Current-main source confirms that restored process records lack requester sources and configured channel owners cannot capture one; no product execution was performed during this read-only review. Is this the best way to solve the issue? Persisting requester facts and reusing admission is the smallest coherent approach, provided custody survives enqueue and temporary unavailability remains recoverable. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50f5d88f656a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +81, Tests +184, Docs +5. Total +270 across 14 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 25, 2026, 1:29 AM ET / 06:29 UTC. |
…enqueued The event queue retains the admitted authority when it takes the occurrence; releasing the admission before enqueue let a participant-limited source fail as released. captureOwedRequesterTarget now returns the release, and both callers release after wakeOwedExec. Co-authored-by: obviyus <[email protected]>
…etry wakeOwedExec resolves once its last attempt (including the one retry) settles; both restart callers release the admission then, so a participation-limited source is still retained when the retry enqueues. Co-authored-by: obviyus <[email protected]>
|
Landed as 9a0d83b.
|
… Talk reads grant.owner (OA2 PR 6i) (#205451) ## Problem OA2 PR 6i (one admission owner, same person same answer). - A verified channel sender listed in `commands.ownerAllowFrom` whose channel identity is also linked to a non-admin profile got that profile's grant, not the owner grant. The same owner over the Control UI (or unlinked in Discord) is the owner. In Discord, `/status`-class commands said "owner" (command-auth matches the owner list) while the run's owner-only tools were refused (they follow `grant.owner`). - Talk decided its consult owner bit itself, from the socket's `operator.admin` scope (`talk/client-tool-authority.ts`). ## Fix - `host-context-builder.ts`: `decideChannelOwnerPrincipal` runs first. A listed verified sender is the owner principal even when linked; an unlisted linked sender keeps its profile's grant, as before. The owner principal records `channelOwner`, so queued, restart and durable work re-admit it against the current owner list (`channel-owner` source, #205129). - Talk: `resolveTalkAgentConsultAuthority(client)` reads `readGatewayRequestAdmission(client).grant.owner` (the admitted run's grant, else the connection's scopes grant). The local admin-scope check and the duplicate `scopes` argument are deleted (8 callers). - Lint: `OWNER_PRODUCER_FILES` 16 → 15 (Talk leaves). - Docs: `gateway/config-channels/commands.md`, `automation/cron-jobs/managing-jobs.md` state the listed-owner rule. ## Decisions (recorded, not asked) - **Listed owner wins** (one-admission plan, #205232 follow-up (i)): the list is by definition the owners; same grant as the owner's Control UI turn. Sources saved before this change by a linked listed owner (linked-profile `channel` kind) still restore the profile until that work finishes; named, no code. - **Talk tool context keeps command-auth's owner answer** (Fable 5.2 consult, pick A): `prepareTalkClientToolContext` passes along `resolveCommandAuthorization(...).senderIsOwner`, the same answer the person's `chat.send` turn gets (a Control UI profile id listed in `ownerAllowFrom` is a command owner there too). Removing it from Talk only would make Talk differ from chat. Command-auth's `ownerAllowFrom` match stays the producer for asserted-identity owners and pre-turn senders (#205232); `client-permission-parity` "configured ownership without admin" stays green unchanged. - **Split (6j):** the plugin requester-owner continuation (`openclaw-plugin-tools`, `tool-factory-context`, `bindRequesterOwnerIdentity` and its `requesterOwner` chain through chat-send, cron creator admission and subagent requester custody, `scheduled-message-invocation`, `message-action-dispatch`, `execution-context-registry`, `openclaw-tools`) is ~15 production files plus tests, over the file cap with this PR. After this PR every verified listed owner carries `grant.owner`; the continuation remains only for asserted-identity owners, which 6j must decide. ## User impact - A Discord/Telegram (any verified channel) owner listed in `commands.ownerAllowFrom` who also linked a member profile now gets owner-only tools, automation management and PR actions in the channel, the same as the owner in the Control UI. - Talk: no change for real sockets (the grant from connection scopes equals the old admin check). ## Evidence - Production (`src` + `scripts`, non-test): +16 / −19. - Matrix cell `operator-admission.table.test.ts` "channel: listed-linked-owner" (real Gateway, real Discord identity declaration, real ingress and host context builder): **red on base `1bf2147f0a75`** (`owner: false, automations: "self", commands: "none"`), green on head. - Pre-push: one `ocx test` call over 26 files (touched tests + importers of every changed source and test-support file, `OPENCLAW_NODE_TEST_PLAN_CONTINUE_ON_FAILURE=1`): all green except `gateway.sessions-send-provenance.e2e.test.ts` (collaborative steering refusal), which fails the same way on base `1bf2147f0a75` (not this change; no `ownerAllowFrom` in that test). `pnpm tsgo:core`, `pnpm tsgo:test`, oxlint and oxfmt clean. `pnpm check:changed`: only the main-owned parallels dead exports (`detectParallelsHostIp`, `listVmNames`) fail. - E2E (one-admission run.sh Q/R/S) on the exact head: see comment. - Live Discord QA bot: not run. The QA flow cannot create a linked member profile in its scratch Gateway (profiles come only from sign-in; `users.linkChannelIdentity` needs an existing non-owner profile). The matrix cell above runs the same Discord ingress path against a real Gateway. Co-authored-by: Ayaan Zaidi <[email protected]>
…their requester (openclaw#205129) ## Problem A background command that exits after a Gateway restart wakes its chat under the wrong person. - A durable process record (and the record of an ordinary wake-armed process the restart lost) saved no requester. At exit, the wake ran as the **session principal**: - A member's job in the owner's session finished with the owner's power. - An admin's job in another person's session failed with "Session principal has no current run authority". - A configured channel owner (`commands.ownerAllowFrom`, for example a Discord owner) recorded no source at all (`captureQueuedOperatorRecoverySource` returned nothing). After a restart, their owed or queued work lost the owner grant. ## Fix The fix follows the OA2 storage decision: store the requester's source on the work item and admit it again when the work starts. 1. **Durable process record.** `record_json` now holds the requester's `QueuedOperatorRecoverySource`, for both `durable` and `ordinary` kinds. - The source comes from the target captured at exec start. Nothing is stored when capture is `unavailable`. - Incognito sessions still never write a row. - At exit, the restored process admits that source again (`restoreGatewayQueuedOperatorRecovery`, then `captureSessionEventTargetForHost`). This is the same function the restart replay of owed rows uses; `captureOwedRequesterTarget` now serves both paths. - The source is copied into the owed row's `originFacts`, so a second restart follows the same requester. - If the requester's access ended, the stored result is withheld with its cause (`revoked`). It stays visible in the chat as not run; it is never dropped. 2. **Channel owner.** `queuedSourceSchema` gets `{ kind: "channel-owner", sender: { channelId, accountId, senderId } }`. `captureQueuedOperatorRecoverySource` returns it for a configured channel owner. Restore runs `decideChannelOwnerPrincipal(config, sender)` again, then `decideOperatorAdmission` (live facts). - A sender no longer in `ownerAllowFrom` is refused, with a cause the user can see. - Same-process work keeps its live authority, as before. - Nothing is written to the session `operatorSources` store, so in a shared guild session a member's job never borrows the owner's grant. Comments updated: `bash-durable-process-store.ts:13`, `operator-run-recovery-source.ts:28`, `bash-process-durable-notify.ts`, `initializeDurableProcesses`. Docs updated: `docs/gateway/background-process.md`, `docs/reference/database-schemas/layout.md`. ## Decisions - **Old rows:** no migration. A process record or owed row written before this change has no source. It wakes as the session principal, as before, until it settles. - **Deleted sessions:** session delete does not remove durable process rows. Durable processes deliberately survive reset and delete (`stopSessionExecProcesses`), and the row is what lets the registry clean up the unit and its log. So the row stays until the process ends. Its stored source is never admitted: exit-time preparation disarms the wake when the session entry is gone or archived (`prepareAdoptedDurableProcessNotification`). Ordinary rows are removed, because delete stops ordinary processes and their exit deletes the row. - **Wider capture:** the channel-owner source reaches every existing capture point (owed rows, queue, subagent launch, environment provisioning, scheduled plugin commands). A Discord owner now gets the same answer there as the Control UI owner. This is the intended "same principal, same answer" rule (OA2 DESIGN §1). - **Production lines:** net positive (+142/−45 in `src` non-test). This PR adds approved stored-source behavior (storage decision, Fable 5.2 consult 2). The replay path in `queued-chat-inputs.ts` now shares `captureOwedRequesterTarget` instead of its own copy. - **Admission lifetime (review rounds 1-2, fixed):** a restored requester's admission is held until the wake and its one retry settle. `wakeOwedExec` now resolves at that point, and both restart callers release then. Before, a participant-limited source (openclaw#204847) was released before the event queue retained it, and the retry reused a released target. ## Evidence - New test `src/gateway/owed-exec-requester.test.ts`. All 5 cases fail on base `2719e6162d55` and pass on head: - (a) a member's restored job in an owner session wakes as the member; - (b) an admin's restored job in another person's session wakes as the admin; - (c) a Discord owner's owed result after a restart, and a restored owner's job at exit, keep the owner grant; - (d) a removed owner's result ends `cancelled`/`revoked`, and a requester without session write gets the same visible cause; - (e) in the same guild session, a member's owed result wakes without the owner grant. - Matrix: E11 (durable exec wake) and channel-owner replay cells live in that file; the table test's comment points there. - Real isolated Gateway restart, real model (`member-restart-proof.ts`). `admin@` owns the session, and `worker@` (role `worker`: read + write, no admin) starts `durable: true` `sleep 45`. The Gateway restarts, the command exits, and the woken turn calls `gateway config.get`: - base `2719e6162d55`: the call returned the config; the wake ran with the session principal's (admin) owner grant; - head: "gateway needs the owner's authority, and this turn was not started by the owner. Do not retry gateway." The wake ran as the worker, with no refusal of the wake itself. - Live Discord QA bot (live channel driver, live model, real Gateway restart). The driver is the configured `ownerAllowFrom` owner. It checks that its own turn can call `gateway config.get` (owner grant), then starts `durable: true` `sleep 75`. The Gateway restarts, and the completion turn calls `gateway config.get` again: - base `2719e6162d55`: `WAKE MEMBER: gateway needs the owner's authority, and this turn was not started by the owner.` - head: `WAKE OWNER`. - One-admission E2E Q/R/S pass on each pushed head. Co-authored-by: Ayaan Zaidi <[email protected]>
… Talk reads grant.owner (OA2 PR 6i) (openclaw#205451) ## Problem OA2 PR 6i (one admission owner, same person same answer). - A verified channel sender listed in `commands.ownerAllowFrom` whose channel identity is also linked to a non-admin profile got that profile's grant, not the owner grant. The same owner over the Control UI (or unlinked in Discord) is the owner. In Discord, `/status`-class commands said "owner" (command-auth matches the owner list) while the run's owner-only tools were refused (they follow `grant.owner`). - Talk decided its consult owner bit itself, from the socket's `operator.admin` scope (`talk/client-tool-authority.ts`). ## Fix - `host-context-builder.ts`: `decideChannelOwnerPrincipal` runs first. A listed verified sender is the owner principal even when linked; an unlisted linked sender keeps its profile's grant, as before. The owner principal records `channelOwner`, so queued, restart and durable work re-admit it against the current owner list (`channel-owner` source, openclaw#205129). - Talk: `resolveTalkAgentConsultAuthority(client)` reads `readGatewayRequestAdmission(client).grant.owner` (the admitted run's grant, else the connection's scopes grant). The local admin-scope check and the duplicate `scopes` argument are deleted (8 callers). - Lint: `OWNER_PRODUCER_FILES` 16 → 15 (Talk leaves). - Docs: `gateway/config-channels/commands.md`, `automation/cron-jobs/managing-jobs.md` state the listed-owner rule. ## Decisions (recorded, not asked) - **Listed owner wins** (one-admission plan, openclaw#205232 follow-up (i)): the list is by definition the owners; same grant as the owner's Control UI turn. Sources saved before this change by a linked listed owner (linked-profile `channel` kind) still restore the profile until that work finishes; named, no code. - **Talk tool context keeps command-auth's owner answer** (Fable 5.2 consult, pick A): `prepareTalkClientToolContext` passes along `resolveCommandAuthorization(...).senderIsOwner`, the same answer the person's `chat.send` turn gets (a Control UI profile id listed in `ownerAllowFrom` is a command owner there too). Removing it from Talk only would make Talk differ from chat. Command-auth's `ownerAllowFrom` match stays the producer for asserted-identity owners and pre-turn senders (openclaw#205232); `client-permission-parity` "configured ownership without admin" stays green unchanged. - **Split (6j):** the plugin requester-owner continuation (`openclaw-plugin-tools`, `tool-factory-context`, `bindRequesterOwnerIdentity` and its `requesterOwner` chain through chat-send, cron creator admission and subagent requester custody, `scheduled-message-invocation`, `message-action-dispatch`, `execution-context-registry`, `openclaw-tools`) is ~15 production files plus tests, over the file cap with this PR. After this PR every verified listed owner carries `grant.owner`; the continuation remains only for asserted-identity owners, which 6j must decide. ## User impact - A Discord/Telegram (any verified channel) owner listed in `commands.ownerAllowFrom` who also linked a member profile now gets owner-only tools, automation management and PR actions in the channel, the same as the owner in the Control UI. - Talk: no change for real sockets (the grant from connection scopes equals the old admin check). ## Evidence - Production (`src` + `scripts`, non-test): +16 / −19. - Matrix cell `operator-admission.table.test.ts` "channel: listed-linked-owner" (real Gateway, real Discord identity declaration, real ingress and host context builder): **red on base `9837ccd07e4d`** (`owner: false, automations: "self", commands: "none"`), green on head. - Pre-push: one `ocx test` call over 26 files (touched tests + importers of every changed source and test-support file, `OPENCLAW_NODE_TEST_PLAN_CONTINUE_ON_FAILURE=1`): all green except `gateway.sessions-send-provenance.e2e.test.ts` (collaborative steering refusal), which fails the same way on base `9837ccd07e4d` (not this change; no `ownerAllowFrom` in that test). `pnpm tsgo:core`, `pnpm tsgo:test`, oxlint and oxfmt clean. `pnpm check:changed`: only the main-owned parallels dead exports (`detectParallelsHostIp`, `listVmNames`) fail. - E2E (one-admission run.sh Q/R/S) on the exact head: see comment. - Live Discord QA bot: not run. The QA flow cannot create a linked member profile in its scratch Gateway (profiles come only from sign-in; `users.linkChannelIdentity` needs an existing non-owner profile). The matrix cell above runs the same Discord ingress path against a real Gateway. Co-authored-by: Ayaan Zaidi <[email protected]>
A durable background exec (`durable: true`) completed only when its whole process group was empty. A command that leaves anything running (`nohup helper &`, `cmd &`) exited, but no exit was recorded and the promised wake never came. In a real incident a durable check script exited with code 2; its nohup'd helper kept the group alive, and the owner found out 9 hours later. - macOS: the launchd wrapper's `drain()` waited for `kill(-pgid, 0)` to fail with ESRCH before it recorded the exit. - Linux: units ran with `ExitType=cgroup`, which has the same rule. Ordinary exec already completes when the root command exits and turns leftovers into tracked background sessions. Exec now has one definition of done. - **macOS wrapper:** records the exit, the group id and the start time when the command itself exits. Stop and timeout still end the whole group (SIGTERM, then SIGKILL after the grace) before the wrapper records, as before. Verified on a real gui domain: launchd leaves the detached group alive at job exit and at `bootout`. - **Linux unit:** `ExitType=cgroup` is removed. `SuccessExitStatus` lists every exit code and standard signal, because systemd stops (and kills) a unit whose main process fails. `ExecMainCode`/`ExecMainStatus` still carry the real code or signal; `reason` already comes from them. In `active/exited`, `RuntimeMaxSec` no longer applies, which matches ordinary exec (the timeout ends with the root). - **Leftovers:** both supervisors report them (`survivors`): on Linux, the unit's `cgroup.procs`; on macOS, members of the recorded group that started before the recorded exit. A reused group id is never adopted. The durable `ManagedRun` now exposes `releasesOnRootExit` and `waitForExtinction`, so the existing `settleHostExecDescendants` → `adoptExecSurvivors` owner handles them as it does for ordinary exec: - the completion names `pid N (cmd) keeps running as background session …`; - `process list` shows them; - `process kill`, session reset and Gateway stop end them. Gateway-start adoption uses the same function. - **Unit release:** the release never kills leftovers. On Linux, `cleanup` keeps a unit whose cgroup still holds processes. It is released at the record's retention end or at the next Gateway start. The wake and the recorded result no longer wait for `cleanup`. - If the wrapper itself was killed, the registry now checks the root pid, not the group. A leftover no longer holds the "outcome unknown" report either. Removed: the wrapper's wait-for-empty-group drain on natural exit, `ExitType=cgroup`, and the registry's group-alive gating of the supervisor-lost report. No schema, protocol or dependency change. The macOS status file is wrapper-private; old wrappers still running keep their old behavior until they finish. - A durable command's exit wakes its session within seconds with its real exit code, even when it left processes running. - Those processes keep running. The completion names them, and they behave like ordinary exec leftovers. - Accepted asymmetry: leftovers of a durable command, like ordinary leftovers, stop at Gateway stop. Only the root command survives a restart. Keeping them across restarts would need a second owner (exempting them in `stopReleasedProcesses` plus re-adoption at boot). - Accepted edge cases (named in the code): - On Linux, if leftovers outlive the 30-min completed record without a Gateway restart, the empty unit stays loaded (`active/exited`) until the user manager restarts. - A root killed by a real-time signal still fails the unit. - If leftovers cannot be listed, they keep running untracked. - **Red on base, green on head** (`src/agents/bash-process-launchd.test.ts`, real wrapper and real processes, `sh -c 'sleep 600 & …; exit 3'`): - base: no exit recorded; the test timed out at 120 s; - head: exit code 3 recorded in under 1 s, the leftover alive and reported by `read()`. - **Real E2E, macOS launchd** (scratch Gateway from `dist`, Node 24.22.1, real `openai/gpt-5.5`, isolated state). The agent started `sleep 600 & sleep 3; echo DURABLE_HEAD; exit 3` with `background: true, durable: true` and ended its turn. Results: - The wake arrived 4.5 s after `STARTED` (the command runs about 3 s): `Exec completed (salty-re, code 3, 5s): DURABLE_HEAD … pid 95391 (sleep 600) keeps running as background session fast-daisy:…`. - The agent replied `SEEN_DURABLE_HEAD 3`. - `process list` showed `fast-daisy:… running … sleep 600`, and `process kill` ended pid 95391. - No durable launchd job of the run remained. An earlier run also showed Gateway stop ending the leftover. - The live Gateway's launchd pid, the set of durable jobs and the live config hash are unchanged. - **Real systemd 255 `--user` manager** (arm64 Ubuntu 24.04 container, the real `systemdDurableSupervisor`): - exit code 3 recorded 1.1 s after launch (the command sleeps 1 s), with `survivors: [sleep 600]` and the leftover alive; - `cleanup` keeps the unit while the leftover lives and releases it once empty; - stop and `timeoutSeconds` while the root runs still end the whole tree; - a root killed by SIGKILL keeps its leftover. - Targeted tests on the touched files and every test that imports a changed source or `*.test-support.ts`: all pass except `bash-process-durable.test.ts` (ordinary-restart case). It fails with `FsSafeError: private Darwin creation requires native descriptor ACL inspection` and fails identically on the merge base `5750fb88fe02`. Test lines: +39 −15. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit e80be91) Release adaptation: Reuse stable truncateCommand for the live-process census and retain the two-second ordinary-exec survivor settle. Add a systemd regression for already-removed unit cleanup. The wrapper status additions remain private and require no database change. Follow-ups: #205129 is a separate restored requester-authority refactor and is not required for root-exit completion. Co-authored-by: RomneyDa <[email protected]>
Problem
A background command that exits after a Gateway restart wakes its chat under the wrong person.
commands.ownerAllowFrom, for example a Discord owner) recorded no source at all (captureQueuedOperatorRecoverySourcereturned nothing). After a restart, their owed or queued work lost the owner grant.Fix
The fix follows the OA2 storage decision: store the requester's source on the work item and admit it again when the work starts.
record_jsonnow holds the requester'sQueuedOperatorRecoverySource, for bothdurableandordinarykinds.unavailable.restoreGatewayQueuedOperatorRecovery, thencaptureSessionEventTargetForHost). This is the same function the restart replay of owed rows uses;captureOwedRequesterTargetnow serves both paths.originFacts, so a second restart follows the same requester.revoked). It stays visible in the chat as not run; it is never dropped.queuedSourceSchemagets{ kind: "channel-owner", sender: { channelId, accountId, senderId } }.captureQueuedOperatorRecoverySourcereturns it for a configured channel owner. Restore runsdecideChannelOwnerPrincipal(config, sender)again, thendecideOperatorAdmission(live facts).ownerAllowFromis refused, with a cause the user can see.operatorSourcesstore, so in a shared guild session a member's job never borrows the owner's grant.Comments updated:
bash-durable-process-store.ts:13,operator-run-recovery-source.ts:28,bash-process-durable-notify.ts,initializeDurableProcesses. Docs updated:docs/gateway/background-process.md,docs/reference/database-schemas/layout.md.Decisions
stopSessionExecProcesses), and the row is what lets the registry clean up the unit and its log. So the row stays until the process ends. Its stored source is never admitted: exit-time preparation disarms the wake when the session entry is gone or archived (prepareAdoptedDurableProcessNotification). Ordinary rows are removed, because delete stops ordinary processes and their exit deletes the row.srcnon-test). This PR adds approved stored-source behavior (storage decision, Fable 5.2 consult 2). The replay path inqueued-chat-inputs.tsnow sharescaptureOwedRequesterTargetinstead of its own copy.wakeOwedExecnow resolves at that point, and both restart callers release then. Before, a participant-limited source (chore: carry and enforce participant limits on admitted runs #204847) was released before the event queue retained it, and the retry reused a released target.Evidence
src/gateway/owed-exec-requester.test.ts. All 5 cases fail on base79e42e0877d9and pass on head:cancelled/revoked, and a requester without session write gets the same visible cause;member-restart-proof.ts).admin@owns the session, andworker@(roleworker: read + write, no admin) startsdurable: truesleep 45. The Gateway restarts, the command exits, and the woken turn callsgateway config.get:79e42e0877d9: the call returned the config; the wake ran with the session principal's (admin) owner grant;ownerAllowFromowner. It checks that its own turn can callgateway config.get(owner grant), then startsdurable: truesleep 75. The Gateway restarts, and the completion turn callsgateway config.getagain:79e42e0877d9:WAKE MEMBER: gateway needs the owner's authority, and this turn was not started by the owner.WAKE OWNER.