Repository navigation
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. |
|
|
Codex review: needs real behavior proof before merge. Reviewed September 24, 2026, 12:32 PM ET / 16:32 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch carries linked channel senders’ person permissions into agent tools, assigns new visible tasks to direct requesters, revises approval routing, and adds channel identity controls to Profile settings. Merge readiness⛔ Blocked before merge - 7 items remain Current main still lacks the linked channel authority and direct requester ownership behavior. The PR has useful boundary coverage, but the previously reported Discord approval fallback defect remains on the current head. Priority: P1 Review scores
Verification
How this fits togetherChannel plugins pass verified sender information to Gateway agent runs. The Gateway applies person permissions to tools and session creation, then routes approval requests to connected clients or channel transports. flowchart LR
A[Channel sender] --> B[Verified identity link]
B --> C[Gateway run authority]
C --> D[Agent tools]
D --> E[Session ownership]
C --> F[Approval routing]
F --> G[Client or channel reply]
Before merge
Findings
Agent review detailsSecurityNeeds attention: No bypass was established, but the new linked-person authority path needs forbidden-principal proof at its final effects. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one live person-authority path through channel ingress and final effects, and base Discord fallback suppression on an eligible recipient or this request’s delivery receipt so an unlinked requester retains a usable approval prompt. Do we have a high-confidence way to reproduce the issue? Yes, source gives a high-confidence path: Discord auto approvals with no explicit approvers and no linked requester select no native target while the active native route can suppress forwarding. This review did not execute that path. Is this the best way to solve the issue? No, not as submitted. The shared authority direction is coherent, but Discord suppression needs a per-request delivery condition and the linked-principal boundary needs final-effect proof. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 58578fc79e4a. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
Carry verified channel-person permissions into native tools and assign new visible tasks to the direct human requester. Use registered delivery receipts for approval availability, add administrator identity linking, and show saved session permission settings.
0ad41a2 to
11cb84d
Compare
Give the manually constructed original run the same verified human requester marker as the production UI path. Preserve the same, changed, and revoked grant assertions. The full nine-test file, focused typecheck, lint, and independent review pass.
|
This pull request has been automatically marked as stale due to inactivity. |
|
Retiring this broad branch. Extending person permissions and task ownership to non-admin linked senders across shared channels changes the documented multi-user model (docs/concepts/multi-user.md). Parts of the identity propagation already landed in #157806 and #159694; any remaining change needs to be rescoped. Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters. |
What Problem This Solves
Fixes linked channel users losing their server permissions and getting agent-owned tasks when they ask an agent to start work. Approval replies could also claim that approval was unavailable after a connected client had received the request.
User Impact
Channel requests use the linked person's current permissions, and new visible tasks belong to the person who directly requested them. Administrators can link, inspect, and unlink exact channel identities in Settings → Profile → Channel identities. Existing installations need that one-time link; display names and channel administrator badges do not establish a person identity.
Existing sessions keep their owners. Creator provenance, sharing, permission modes, required sandboxes, and model credentials keep their existing contracts. Explicit command-owner entries still establish owner status; a linked sender's execution also honors their person policies, including access revocation. No schema migration is required.
Why This Change Was Made
Channel admission and native tools now carry the same live person authority as other server requests. Native session creation records the direct requester immediately, removing the need for an extra assignment command. Synthetic continuations retain their execution restrictions without claiming a direct human request.
Approval handling uses the registered request's delivery receipt, ID, and expiry. Discord can route to an eligible linked requester when native approvals are enabled, and rechecks authority before delivery and decision. The change removes configuration-guessed failure paths and duplicate renderers while preserving the synchronous plugin authorization hook and historical result readers. The permission picker also identifies a saved session setting separately from the default.
Production TypeScript/JavaScript/CSS changes total 1,582 additions and 1,593 deletions: net −11 lines, excluding tests, test support, docs, and tooling.
Evidence
11cb84d4357834ccf1fab2b3d32c1d7808748454completed with 166 successful jobs, including artifact build, architecture, lint, production/test types, docs, and guards. Its sole test failure was the repaired reconnect fixture. The final test-only head isd971b7f6559fedf095ad67724f88ec3e1be7c01e; fresh CI is pending.Test cost and limits
Focused commands use
--maxWorkers=1. Core, representative plugin, and UI batches took 427.55s, 137.87s, and 10.10s wall time respectively on the development host. The final two-file entry-point batch took 76.41s: the HTTP transport file reported 37.64s total / 3.108s test body, and the public reply file 32.08s total. The Profile browser flow initially took 34.07s wall / 3.96s test body. The final CI-repair batch took 248.93s wall; the two rebase batches took 405.42s and 338.30s including worker compilation. The final nine-test reconnect file took 192.49s wrapper wall / 179.02s Vitest duration. In the preceding CI run, its same/changed/revoked-grant cases took 2.275s / 1.193s / 1.111s respectively. The final sibling command took 4,179.38s wall, including a 53m 34.5s private QA runtime build prerequisite; all selected tests passed. The first PR CI run also encountered two unrelated main-branch fixture failures: Codex startup teardown is fixed by upstream commit619405d49ddd; release artifact publication fixtures are fixed by upstream commit3928d51bf8ee, verified with all 64 tests passing. Both fixes are on main and remain separate from this redesign.An earlier HTTP fixture timed out after 120s on a heavily loaded host. An instrumented repeat passed and showed startup/catalog loading dominated the test. The final fixture excludes unrelated tool factories while retaining the real HTTP, grant/cache, caller wrappers, native spawn, and RPC dispatch; it passes without a timeout increase. That does not establish the exact cause of the original timeout.
The duplicate local full-declaration build and broad checks were stopped after the corresponding hosted artifact, architecture, lint, and type checks completed. These stopped local attempts are not counted as passing builds. The earlier full Linux builds took 18m 57.4s and 7m 38.4s.
No live channel send, server configuration change, or deployment was performed.
Inspected before/after screenshots