Repository navigation
fix(talk): keep voice-only agent consults read-only - #125392
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 5:31 PM ET / 21:31 UTC. ClawSweeper reviewWhat this changesThis PR derives Talk agent-consult authority from Gateway scopes and propagates a read-only tool allowlist for Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for maintainer approval of the intended least-privilege boundary. No blocking patch defect was found: the branch consistently carries Talk scope-derived authority through browser, relay, and legacy tool-call consults, but intentionally removes accidental mutation capability from Talk-only clients. Priority: P1 Review scores
Verification
How this fits togetherGateway Talk sessions can delegate voice requests to embedded agents. This change maps the authenticated caller scope to a tool boundary, then passes that boundary into the delegated agent run or chat dispatch. flowchart LR
A[Authenticated Talk scopes] --> B[Talk session or tool-call handler]
B --> C[Consult authority decision]
C --> D[Embedded agent or chat dispatch]
D --> E[Runtime tool allowlist]
E --> F[Voice consult response]
Decision needed
Why: This is an intentional compatibility change at an authenticated delegation boundary; source and docs support least privilege, but accepting removal of previously reachable accidental capability is a maintainer security-policy choice. Before merge
Agent review detailsSecurityNone. PR surfaceSource +54, Tests +74. Total +128 across 11 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single scope-to-authority resolver: Talk-only credentials stay on the documented read-only set, while integrations that need state changes use Do we have a high-confidence way to reproduce the issue? No runtime reproduction was run in this read-only review, but the pre-fix tool-call path directly dispatched an unbounded chat turn and the focused boundary tests identify the constrained replacement path. Is this the best way to solve the issue? Yes. Resolving authority once from authenticated scopes and carrying the existing safe allowlist to each consumer is cleaner than adding tool-specific denials at downstream call sites. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 57e862980be1. LabelsLabel justifications:
EvidenceWhat 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
History |
What Problem This Solves
Fixes an issue where a voice-only Talk session could start embedded agent work with broader tool access than the session credential permitted. Browser, relay, and legacy tool-call entry points did not consistently preserve the caller's effective authority.
Why This Change Was Made
Agent consult authority is now derived once from authenticated Gateway scopes. Talk-only callers receive the canonical safe read-only tool set, write-scoped callers retain general non-owner tools, and admin callers retain owner authority. The legacy tool-call route now carries the same runtime tool cap through chat dispatch. This does not change protocol, configuration, storage, or public API contracts.
User Impact
Voice-only integrations can continue using read-only agent consults while state-changing tools stay unavailable. Existing write- and admin-scoped workflows retain their prior capabilities.
Evidence
senderIsOwnerortoolsAllowconstraints.