Skip to content

fix(sessions): preserve requester identity at execution admission - #157806

Merged
joshavant merged 65 commits into
mainfrom
fix/sessions-bounded-delegation-current
Oct 19, 2026
Merged

joshavant merged 65 commits into
mainfrom
fix/sessions-bounded-delegation-current

Conversation

@joshavant

@joshavant joshavant commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #150705.

What Problem This Solves

Preserves the authenticated requester when delegated work is queued, forwarded or recovered, so each new execution uses the right person's current applicable permissions.

User Impact

Each execution keeps its admitted identity and prepared permissions. Human input waiting for admission uses current policy when admitted; already-admitted native work retains its prepared policy while waiting to run. New delegations resolve current destination policy for their requester. Accepted asynchronous work survives normal source-turn completion, while cancellation, revocation and current-owner checks remain authoritative. Intentional delegation to a more capable agent remains supported.

Human steering is opt-in across people. messages.queue.allowCollaborativeSteering defaults to false. When Bob attempts to steer Alice's active turn with collaboration disabled, the runtime refuses without invoking the model or queueing executable work, and directs Bob to /followup <message>. The refusal remains terminal through redelivery and recovery. /followup requests one new execution as Bob, respects existing queue ordering, and reports whether it actually queued, started or was rejected without changing the conversation's persistent queue mode.

With explicit true, Bob's admitted input may influence Alice's continuing execution using permissions Alice has that Bob does not. Alice's execution identity and prepared permissions remain unchanged; Bob remains the message author. Existing queue modes, conversation access, backend compatibility and live-authority checks still apply. Explicit cross-session sessions_send(mode="steer") requires the same authenticated requester and compatible policy; incompatible steering is refused with followup guidance. Approvals and cancellation commands keep their separate handling; natural-language “stop” does not imply cancellation.

Participant selection extends main's existing user selectors. Unqualified session operations and delegation use the incumbent execution's requester. A supported explicit user: Bob selection binds a live accepted participant's authority and requester facts together, including for a new child execution. Native delegation retains the original requester. Source-tool authorization and selected destination scope still apply. The model can select a participant's authority; this does not establish that person's intent or approval. Permissions are not combined, and shared history remains shared.

Configuration: new configurations explicitly contain the default. Doctor uses the existing backed-up, include-aware writer to persist an absent setting as false, preserving explicit included true/false values. Repair is idempotent and retains existing include-refusal behavior. Managed updates invoke candidate Doctor; older read-only Doctor phases and manual/package-manager/container replacements may leave the setting absent. The runtime default applies immediately; openclaw doctor --fix persists it. Ordinary reads and startup remain read-only.

Audit and rollback: existing opt-in child admissions and session-action receipts record a bounded, installation-local pseudonym for the prepared human authority subject separately from the invoking agent. The inspector labels this Recorded authority subject; generic receipt provenance remains unverified. This records authority selection, not human intent, approval or causal attribution. Collection scope, retention, row bounds and approval records are unchanged. Older released readers show new subject-bearing receipts as unknown/corrupt on otherwise compatible databases; upgrading again makes retained records readable. Full database/updater rollback is not established, and existing database-write rollback guards still apply.

Why This Change Was Made

The existing admission, queue, transcript-custody and execution-authority owners carry authenticated requester facts separately from previously calculated policy. Delegation binds authority and requester origin together instead of pairing one person's authority with another person's identity. The same facts survive native execution, worker transport, replies, recovery and compaction. Existing audit and inspector owners expose the selected subject without adding an attribution manager, store or causal graph.

Evidence

Current candidate: d4fb6dcc6543c0ae362115b0147acbd5fb5409f1, tree 24647861d8861e79218c86a1ff1bcfdbedc6fdfe, rebased onto pinned main fcbcaad75f0db848b54df62275ff4beaacbd50d0. Current-head CI is running; GitHub reports the branch conflict-free. Execution results below remain bound to their recorded source.

The rebase retains main’s combined turn-adoption/writer owner while carrying the authenticated requester facts through it. Main’s pending-final classifier remains the sole owner of that decision. /dashboard routing and explicit /followup admission remain supported. Retained cron requester authority cannot bypass the interrupted-occurrence no-replay rule. These are narrow adaptations to existing owners, with no new product scope or unresolved product-direction conflict. The final replay preserves all 65 commits: 64 patch-identical and one mechanical resolution retaining main’s stabilized CI capacity test alongside this branch’s assertions.

Focused integration proof on d892648266: the prior guard permitted an unexpected recovery dispatch in the retained-requester cron fixture. The repaired full file passed all 12 cases, including an explicit check that requester facts survive shutdown. The test and repaired owner match the recorded passing bytes. Both runs used the canonical wrapper with --maxWorkers=1 on Node 24.21.0: 61.903 s for the counterfactual and 62.933 s for the full file. Five existing adoption, requester-snapshot and command files then passed all 59 cases in 141.869 s grouped wall time. This is 71 passed cases across six files, not an end-to-end production or live-provider claim. The cron extension adds no cases or process boots; CI cost for its changed fixture is pending. All six tested files and the affected recovery owners are byte-identical after the final rebase; this is retained focused proof, not a new whole-candidate execution.

Fresh scoped P0–P2 reviews of the d892648266 integration and subsequent line-cap repair found no actionable issues. The line-cap repair moves two parameter types into the existing companion file and removes two redundant expressions; it adds no runtime owner. Type-aware lint and formatting passed for all six integration files, and whitespace checks passed against the pinned base. That reviewed integration is unchanged in the final replay. The final capacity-test resolution preserves the upstream test block byte-for-byte; its type-aware lint, formatting and final base-wide whitespace checks pass. The full CI planner file passed all 145 cases on d4fb6dcc6543 in 138.874 s command wall time, using the canonical wrapper with --maxWorkers=1 on Node 24.21.0. Its current-head CI cost is pending. A new full build and current-source provenance E2E were not completed; the prior build and CI remain qualified below.

The new base includes main’s updater-fixture correction and Codex parent-retention fixture correction, addressing the two identified inherited assertions/type failures. Inclusion is not a passing candidate replay. Main’s bounded worker shutdown, SQLite admission and reserved-system-store recovery changes preserve the campaign’s authority contracts on source inspection; they do not establish that the remaining teardown or rollback failures are fixed.

Remaining limits: current-source provenance E2E, live Telegram and published-updater proof are not established. The earlier authority teardown and hook Error.cause failures remain unexplained. Rollback observation failed when the candidate recovery path classified a daemon schema1 store as agent schema31; its relevant owners matched that prior base. Neither full rollback restoration nor healthy retained-candidate recovery was proven. No matched-performance proof exists, and an earlier order-sensitive latency observation remains unexplained. The task-owned AWS lease has been released and that release verified; no broader host-cleanup completion is claimed.

Prior-source behavior and CI evidence

These results establish earlier behavior and integration outcomes. They remain bound to the recorded source; the current owner adaptations require their own validation.

  • Two real human Telegram clients: seven scenarios and 13 authenticated non-bot inputs on 42a6bffeeb. Default/false refusal, same-requester steering, busy/idle /followup, changed policy at drain, explicit-true incumbent authority, and subsequent delegation had correlated transport IDs, admission records and observable effects. Refusals settled without later execution during the run. Model output was scripted; Telegram transport, native tools and effects were real.
  • Selected-participant native-child effects: five rows passed on the prior candidate, including visible/hidden Bob children after Alice completed, zero final writes after unlink/reassignment, and capacity-queued work using current admission policy. Queued revocation was compositional proof, not one live trace.
  • Published updater through cold recovery: published 2026.10.4 updated real released state to exact 42a6bffeeb, preserved include-owned true and history, then candidate-created selected-Bob work survived source completion and SIGKILL, executed once under Bob, retained FIFO and did not revive withdrawn work after another restart. The released profile catalog was empty; this does not prove continuity of a pre-upgrade human profile or independently changed policy across restart. The original outer carrier's export-permission failure and artifact-only recovery remain recorded.
  • Published updater/config cells covered absent default persistence and include-owned false preservation, backed-up writes, idempotence, read-only config reads and explicit new-install configuration on their recorded pre-rebase package. The older receipt reader confirmed the documented unknown-reader limitation on compatible storage.
  • Prior repair/default-fixture proof passed 294 cases in 19 files and 101 cases in eight files, with 22 existing skips. Counts overlap with other proof and are not additive.

CI on 8bfc18dfd2 tested merge 270b8f4e8d against actual base a9e5f4e3b7. It settled with 156 successful jobs, five underlying failures, a failed aggregate gate and 18 skips. Architecture, guards, production types, all five core test-type graphs and core/root lint passed. Strict refusal→explicit followup passed all three cases; worker steering passed all ten, including three request-credit cases; command execution identity passed all eleven. The provenance E2E is excluded from automatic PR CI.

Delegated-authority proof passed all 20 body cases but failed during its 300-second Gateway teardown and subsequent controller cleanup. The hook test expecting rejection of shared memory in Error.cause instead resolved. Both reproduce earlier signatures and are not labeled unrelated. The other failures had source-backed inherited causes: an upstream Codex parent-retention test supplied an option absent from MonitorOptions; the updater assertion omitted reserved database candidates; and the UI base already exceeded its chat budget. The measured UI delta was 1,491,366B→1,491,410B (+44B), with 25 requests each against a 1,490,000B cap. This is not a production-performance finding. The updater and Codex fixture corrections are now included in the new base as noted above.

Isolated validation on 8bfc18dfd2 used verified raw bytes / tree 96b88f4962. The build and all three strict-followup cases passed, with source bytes unchanged after each. The provenance phase reached the canonical wrapper’s additional private-QA build and test Gateway startup, then exceeded the carrier’s 360-second phase budget and received SIGTERM without an assertion verdict. The owned process group was absent afterward, but natural descendant completion was unverified; final source/runtime closeout was withheld and the carrier reported source-unverified. This was not an overall proof pass. The later worker-credit, command-identity and public-settle remote files did not run; the prepared authority diagnostic was also unrun.

The older frozen 9e78318ac5ab replay passed build, TUI, reply composition, private completion, registry completion authority and public settle/recovery files, while reproducing other fixture, strict-followup, provenance and chat/Doctor failures. Its authority process lacked the canonical completion receipt after assertion/teardown failures, so the overall carrier was unsuccessful. Original failures, diagnostics and costs remain recorded; no passing replay is treated as proof of an unexplained fix.

Inspector screenshots

Inspected before/after captures from the inspector implementation, delivered in chat and uploaded. The rebase changes its tests, not the renderer. The existing attachment URLs returned images that were decoded and inspected; actual GitHub browser rendering remains unverified because the browser tool could not authenticate.

Before:

Before: unverified receipt detail

After:

After: recorded authority subject with unverified provenance retained

Prior-source measured test costs

Prior-source 8bfc18dfd2 validation used Node 24.19.0, pnpm 12.11.1 and pinned Bun 1.4.4-canary.1+7bd4fdff3. The canonical wrapper owned all preparation; reported command walls include that preparation.

Prior-source check Command wall Result
Build 292.222 s Passed; source unchanged
Strict followup, standalone file with --maxWorkers=1 65.124 s Three passed; source unchanged
Provenance E2E phase 360.464 s Outer phase budget expired; SIGTERM; no assertion verdict

The interrupted proof carrier took 746.747 s overall and did not complete final verification. The separate prerequisite bootstrap passed in 58.043 s command time / 431.186 s total; setup is not behavior proof. Later remote test files and the prepared authority diagnostic were not run.

These measurements belong to frozen 9e78318ac5ab, using the canonical wrapper and --maxWorkers=1. Grouped wall times are not standalone per-file costs. Counts overlap other evidence and are not additive.

Check Command wall Result
Build 292.271 s Passed
Authority / reply / Gateway groups 125.926 / 155.325 / 258.131 s 112 pass / 2 fail; 503 pass / 4 fail; 189 pass / 1 timeout
TUI / reply composition 42.368 / 463.426 s 142 / 245 passed
Private completion / registry completion authority / public settle replay 105.175 / 92.870 / 91.218 s 25 / 84 / 18 passed
CI capacity files 133.622 s 180 passed
Original chat1 / chat2 / Doctor processes 138.230 / 170.317 / 116.027 s Reproduced retained failures
Original authority process 479.738 s Assertion and teardown failures; canonical completion receipt absent

The strict-followup and provenance diagnostic carriers took 182.064 s and 90.730 s, both failed and restored their original source. Diagnostics add no recurring CI cases and do not establish a repair. CI 820 reported 40,023 summed job-wall seconds across concurrent jobs; this is neither workflow elapsed time nor production performance. The availability counterfactual/restored commands on earlier d95895d4c317 took 62.278 s and 62.129 s. CI on 8bfc18dfd2 measured the repaired strict-followup case at 12.669 s and its two siblings at 1.872/1.375 s; the three worker request-credit cases took 0.393/0.406/0.463 s. These are CI case times, not standalone file costs. The remaining 8bfc18dfd2 standalone costs are unmeasured because its carrier stopped before those phases. These are not measurements of the candidate rebased onto fcbcaad75f. Historical Telegram, selected-child and updater costs remain attached to their original source-qualified evidence.

Scope and LoC churn

Current committed candidate against pinned main fcbcaad75f0db848b54df62275ff4beaacbd50d0. Counts include moved and blank lines.

Category Files Added Deleted
Production 248 5,590 2,091
Tests and support 202 10,514 2,105
Docs 21 297 97
Tooling 6 14 7
Total 477 16,415 4,300

Gross churn: 20,715 lines; net growth: 12,115 lines. The rebase adds no new product scope.

@joshavant
joshavant marked this pull request as ready for review September 25, 2026 01:52
@clawsweeper

clawsweeper Bot commented Sep 25, 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.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR preserves authenticated requester identity through delegation, queued execution, and recovery, with opt-in collaborative steering and explicit followup behavior.

Example: Alice selects accepted participant Bob for a queued child execution.

  • Before: The child could pair Bob’s authority with Alice’s requester facts or lose requester identity during recovery.
  • After: The child retains Bob’s identity, resolves applicable policy at admission, and rejects revoked or reassigned authority before effects.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful repair with substantive shipped-entry-point, final-effect, live-channel, and upgrade evidence; unresolved validation failures limit confidence in the integrated candidate.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The previous four Before-merge items are addressed: real selected-child HTTP/file effects and revoked/reassigned zero-effect outcomes replace the earlier mocked-execution gap; seven live two-human Telegram scenarios exercise authorization and followup behavior; and published v2026.10.4 upgraded state proceeds through selected-requester queueing and cold recovery. Current production matches the exercised parent. Queued revocation is supported compositionally by shared owners and custody tests. Inspector images were directly inspected. Portal retrieval was unavailable here, so execution results are assessed from the detailed source-bound public reports. Rollback restoration, pre-upgrade human-profile continuity, independently varied restart policy, and a performance guarantee are not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Delegated or recovered work can lose the authenticated requester or combine one person’s authority with another person’s identity.
Reason: The maintainer-authored direction accepts the steering and participant-selection contracts, and the implementation addresses a concrete permission and execution-identity problem.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-owned repair remains useful, and the updated evidence addresses the previous authority and upgrade blockers; integration validation remains outstanding.

Priority: P1
Reviewed head: d3ddc954302f83bf566f99a89f37d6faf7777ad7

Before merge

  • Complete next step - Reconcile the recorded dirty merge state with current main and complete required integration validation, preserving the unresolved CI failures until evidence establishes their cause.

Findings

None.

Agent review details

How this fits together

Authenticated channel and Gateway inputs enter the admission owners, which carry requester facts into queued, delegated, and recovered executions; existing tool and transport owners enforce authority before effects.

flowchart TD
  A[Authenticated input] --> B[Requester capture]
  B --> C[Execution admission]
  C --> D[Queue and recovery custody]
  D --> C
  C --> E[Delegated execution]
  E --> F[Current authority checks]
  F --> G[Tool and transport effects]
  C --> H[Audit receipts]
Loading

Technical review

Best possible solution:

Retain the existing admission and custody owners, preserve the accepted requester contract, and complete integration validation without weakening authority checks.

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

Current-main policy resolution consumes persisted delegated projections without this PR’s preserved requester-origin admission path; source inspection and the supplied source-bound behavior reports establish the affected boundary, without executing target code during this review.

Is this the best way to solve the issue?

The inspected implementation uses the existing requester-policy, participant-selection, transcript-custody, and recovery owners, preserves intentional delegation, and supplies the missing final-effect and upgrade evidence.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduction and unchanged production proof inputs: Reviewed introduced hunks against b2e85fa. The final commit changes only the membership and updater test fixtures; production inputs match the 42a6bff candidate used for the latest live and recovery proof. (src/gateway/server.chat-membership-authority.product.test.ts:261, d3ddc954302f)
  • Selected-child authority proof: The updated PR body reports five source-bound Gateway scenarios with real child HTTP/file effects after source completion, zero sink writes after unlinking or reassignment during awaited preparation, and retained queued requester custody. Source inspection confirms selection carries authority and requester origin together. Queued revocation remains compositional proof rather than one continuous live trace. (src/agents/subagents/spawn/subagent-spawn-gateway.ts:57, d3ddc954302f)
  • Live Telegram authorization: Josh Avant’s detailed live report correlates real human ingress, runtime refusals, followup notices, execution identities, writes, denied writes, and terminal ingress records across seven scenarios, including the moved direct-policy callback. (extensions/telegram/src/security.ts:53, 42a6bffeeb59)
  • Upgrade and cold-recovery composition: The updated body and maintainer report describe a published v2026.10.4 upgrade followed by selected-Bob queued work and actual cold recovery using the installed candidate package and upgraded state. Include-owned true, old history/session identity, FIFO, exactly-once execution, and withdrawal survived. The released profile catalog was empty; policy was not independently varied across restart. (src/gateway/operator-run-recovery.ts, 42a6bffeeb59)
  • Compatibility and accepted scope: The maintainer-authored direction explicitly accepts incumbent authority for unqualified operations, opt-in cross-person steering, and selected-participant delegation. Legacy prepared channel policies retain their original-request snapshot contract through a documented deprecation adapter. Older receipt-reader limitations and unsuccessful rollback observations remain disclosed. Public docs: docs/plugins/sdk-migration/compatibility-policy.md. (docs/plugins/sdk-migration/compatibility-policy.md:46, d3ddc954302f)
  • Inspector media inspected: Directly inspected the body’s GitHub-hosted before/after images. The after image adds Recorded authority subject while retaining unknown outcome and unverified provenance. The prepared manifest contained only expired, unrelated plugin-installation images returning HTTP 403; scratch-file downloads were blocked, so the current inspector images were inspected from fetched bytes. (ui/src/pages/activity/run-inspector-evidence-view.tsx:207, d3ddc954302f)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
New configuration option 1 boolean; default false messages.queue.allowCollaborativeSteering explicitly controls cross-person influence over an incumbent execution; Doctor preserves explicit stored values.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: Incorrect requester identity affects established delegation, permission enforcement, and recovered agent workflows.
  • merge-risk: 🚨 compatibility: The accepted change alters default steering behavior and adds a channel SDK callback while retaining a documented legacy-policy compatibility path.
  • merge-risk: 🚨 security-boundary: The accepted design transfers selected human authority into detached children and permits cross-person steering only through explicit opt-in; final-effect revocation proof now covers the changed selection path.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (32 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-14T21:16:40.874Z sha 9a4d358 :: blocked before merge. :: none
  • reviewed 2026-10-14T22:03:41.689Z sha 9a4d358 :: needs changes before merge. :: none
  • reviewed 2026-10-15T04:49:01.394Z sha dc956dc :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-15T06:34:13.362Z sha 9f4bf71 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-15T08:25:17.845Z sha f84d9c6 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-15T22:50:39.419Z sha 8004082 :: needs changes before merge. :: [P2] Emit the followup start notice when execution starts
  • reviewed 2026-10-18T05:32:49.687Z sha cfb08ba :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-18T16:56:36.721Z sha 8a11bd2 :: needs real behavior proof before merge. :: none

Reviewed October 18, 2026, 5:52 PM ET / 21:52 UTC (Revision 33).

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling size: XL labels Sep 25, 2026
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: d4fb6dcc6543c0ae362115b0147acbd5fb5409f1
  • Maintainer: @joshavant
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/harness/host-source-authority.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/harness/tool-authority.runtime.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/requester-tool-policy.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/channel-operator-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/operator-run-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-plugin-in-process-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/session-runtime-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/tool-resolution-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 25, 2026
@joshavant

joshavant commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator Author

The inherited plugin-installation UI failure has a deterministic browser reproduction. After a failed retry saved installation state, a completed catalog refresh recreated the card and closed its status popup. The correction keeps existing cards during a refresh of the same selection; a different query/category still waits for its own results.

The controlled existing flow failed before the correction (45.672s wall) and passed afterward (15.721s wall; 1.440s case). These captures use synthetic Gateway data. All local owner checks pass: controller 16/16 (3.614s wall), plugin/install-progress browser flows 19/19 (50.870s wall), production and affected-test types, typed lint, i18n, format and line-cap checks. Fresh independent P2 review found no actionable issues. The original Linux shard passed all 79 files/372 cases in 440.434s (Vitest 438.14s), including this regression in 1.421s. All three macOS-only failures also passed there. Delegated Testbox run, wrapper exit 0; owned lease stopped and verified completed. The first remote attempt stopped before tests because the proof incorrectly expected the source commit instead of the wrapper's synthetic carrier; corrected full-tree guards passed before and after testing. Linux proof used source 537ac5ff plus the frozen repair, not the later merged binary. The same reviewed patch is now on main as 14a1f931382ba; affected refresh/popup owners and harness inputs stayed unchanged during the rebase. Screenshot links expire October 2, 2026 at 05:38 UTC.

Before — the refresh closes the status details:

Before: installation status disappears after catalog refresh

After — the status details stay open:

After: installation status remains visible after catalog refresh

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 10, 2026
@joshavant joshavant changed the title fix: preserve task restrictions through delegation fix: preserve requester permissions through delegation Oct 12, 2026
@clawsweeper clawsweeper Bot added the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: telegram Channel integration: telegram channel: x cli CLI command changes commands Command implementations docs Improvements or additions to documentation extensions: codex gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant