Repository navigation
feat(rpc): let a host report a delegated turn it ran elsewhere - #55
Merged
Merged
Conversation
With hostDelegation the host sends each spoken request as the user's
message, and the live session read that turn's progress and answer from
its own session. That ties a call to the conversation's agent: no call
before the conversation has one, or after it stopped.
live_report ({ text, final? }) lets the host run the turn anywhere and
report it instead: progress as commentary, and with final the answer,
which ends the delegation. A report without an active delegation is
dropped.
Scient-Divergence: SA-LIVE-HOST-DELEGATION
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scient-Generator: rpc Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yaacovcorcos
added a commit
that referenced
this pull request
Nov 14, 2026
A live voice host can report a delegated turn it ran elsewhere: `live_report` (#55), so Scient Desktop's calls start before a conversation's first message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
live_report({ text, final? }): a host that ran a delegated request's turn somewhere else reports it to the live voice session. Progress goes in as commentary; withfinal, the answer goes in and ends the delegation. A report without an active delegation is dropped.This extends
SA-LIVE-HOST-DELEGATION, in its own marker blocks:controller.reportHostWork,RpcLiveBridge.report, thelive_reportcommand inrpc-mode.ts,rpc-types.tsand the wire spec. The RPC clients are regenerated in their own(generated)commit. The ledger contract and the SCIENT.md row are updated.Why
With
hostDelegation, the host sends each spoken request as the user's message, but the call still had to run inside the conversation's own agent session to hear that turn's progress and answer. So there was no call before a conversation's first message, nor after its agent stopped (restart, 30 idle minutes). Scient Desktop will run the call in a separate agent process and report the conversation's turns withlive_report, so a call can start from the first message.Platforms: the same on macOS, Windows and Linux; RPC routing only.
Testing
test/scient/live-host-delegation.test.ts: a report before any delegation is dropped; progress goes in as commentary and the final answer is spoken; a report after the final one is dropped; the call leaves "working".test/scient,rpc-live,rpc-wireandcli-command-metadatasuites: 95 pass.check:typespasses. The divergence check reports "Every divergence is accounted for".bun checkpasses (packagecheck:types; oxfmt on the changed files)🤖 Generated with Claude Code