Repository navigation
feat(talk): let connected clients speak short results - #184546
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. What this changesAdds talk.client.say so an authenticated client can submit bounded speech through its own active Talk call without starting an agent task. Example: A connected watch submits “The dial is ready.” after a separate device action.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep this PR open: it implements a concrete, maintainer-approved device capability through the existing Talk owner, and source review found no definite introduced bug. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway authenticates the speech RPC, authorizes its session target, and passes text to the connection-bound Talk owner, which sends an exact-speech message through the existing provider control. flowchart LR
A[Connected Talk client] --> B[RPC scope and session authorization]
B --> C[Exact call ownership check]
C --> D[Existing Talk control owner]
D --> E[Provider speech control]
E --> F[Active call]
E --> G[Retained echo recognition]
Technical reviewBest possible solution: Retain the bounded RPC on the existing Talk owner and establish allowed and forbidden caller behavior at final provider submission. Do we have a high-confidence way to reproduce the issue? Source inspection confirms the capability is absent from fetched main and cannot be supplied by synthesis or idle-run steering; no target code was executed. Is this the best way to solve the issue? The implementation uses the appropriate existing owner, preserves ordinary caller authority, and adds bounded echo handling without a competing speech manager. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8c4437c4281b. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete authorization bypass was found, but the new speech authority boundary needs final-effect validation. EvidenceWhat I checked:
PR surfaceSource +161, Tests +279, Docs +9. Total +449 across 32 files. Added test files: 2. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 26, 2026, 7:55 AM ET / 11:55 UTC. |
|
Merged via squash.
|
* feat(talk): let connected clients speak short results * test(talk): pass logger when closing speech connection * fix(talk): preserve advertised gateway method order
Fixes #184481
What Problem This Solves
A connected Talk device cannot speak a short externally completed result through its active call without starting another agent task.
User Impact
Clients can submit up to 1,024 UTF-8 bytes with
talk.client.sayusingoperator.talk. Only the requesting connection’s ready, Gateway-controlled call can receive it.{ accepted: true }confirms provider submission, not audible playback; disconnected or replaced calls reject the request.Why This Change Was Made
The existing call owner now sends exact speech and recognizes complete, retained playback echoes before they enter agent delegation. This preserves an in-flight task’s final response and prevents quoted context from swallowing a new request. The new method appends to the advertised catalog, preserving existing method indices. There is no new task queue, configuration, or persistent state.
The simplification pass reused the existing owner and protocol formatter. Existing authority logic moved unchanged into its authority module to keep the owner within its line limit. Most of the generated diff is validator identifier renumbering from the normal generator. Excluding generated validators, the merge-base delta is +248/−111 production lines, +305/−26 test lines, and 9 documentation lines; the existing authority/type moves account for much of the production churn.
Evidence
Focused Talk ownership, permissions, consultation, exact-speech, and native transport tests passed. The new native-flow tests cover
operator.talkwithoutoperator.write, byte limits, rejected inputs, and a playback echo while an original task completes. Lifecycle tests cover readiness, disconnect, replacement, failed submission, and bounded echo retention.Core and Gateway test typechecks, targeted lint and formatting, line/assertion ratchets, and the
qaRuntimebuild passed. CI identified a missing logger argument in the new disconnect test; the corrected test suite and affected test typecheck pass locally. Independent structured review reported no actionable findings.The existing Gateway’s copied-state upgrade rehearsal passed required migration, configuration, plugin, readiness, and authenticated-health checks, preserving paired device credentials. Optional post-activation inspections remain deferred. Physical watch playback follows deployment; no audible-playback claim is made here.
The 23 method discovery and authority tests pass after preserving the frozen catalog order. The real Gateway node control-plane suite passes all five tests locally under the repository Bun runner. An earlier Linux CI attempt timed out during packaged setup before Gateway startup; the current head is being checked in CI, and the local pass is not treated as a fix for that timeout.