Repository navigation
Live Activity updates carry the step in progress, sealed for the phone - #297
Merged
Merged
Conversation
A phone gives the host a key for a chat's row over its own connection. Each update for that card then carries sealed detail: the step in progress, the last steps, a question that waits, the reply's first lines. The notification service and Apple forward bytes they cannot read. A new step alone goes at low priority. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A turn's state is sent again once a minute while no hook fires, so a question that waits or a long tool call does not go stale. An update that takes the place of a high-priority one keeps its priority. The same key again changes nothing. A malformed URL or a long tool name never stops a card's updates. Co-Authored-By: Claude Fable 5.2 <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.
Problem
A Live Activity update holds a phase, a fixed label and counts. The app cannot show what the agent does, because the notification service and Apple can read an update, so the host sends no chat text in it. See promptclickrun/bighelp#960.
Change
PUT …/live-activities/<activityId>/card-key. The key comes over the phone's own connection to the host.capabilitieslistssealedCardDetail.sealed(card_detail.py, sealed-card-v1): the step in progress and what it works on, the last three steps, the model's latest words, a question or command that waits, the reply's first lines, helper goals, context use and the model's name. It is AES-256-GCM under the row key and bound to the update's timestamp. The service and Apple forward bytes that they cannot read.quiet(low priority). One update in every 30 seconds, a question, an approval and the end of the turn are not quiet.waitingwhileclarifyasks a question or a command waits for approval.post_api_request(where Hermes has it) for the model's words and context use.Trust boundary
New text leaves the host only inside the sealed bytes. A note that can hold a credential is left out. If the service refuses an update that has
sealed, the host drops that card's key and sends plain updates.The notification service must accept
sealedandquietbefore this is released (promptclickrun/bighelp,services/link).Tests
On the Mac:
tests/test_card_detail.py, 8 tests, all pass. They cover the shared vector, the size limit, a credential in a command, the quiet rule, a question, the reply at the end, and a service that refuses sealed updates. The five notification suites have the same results asmain(2 failures and 27 errors, all from Hermes modules that are not installed here).Not tested on a real host or a device yet.
Model and harness: Claude Fable 5.2 in Claude Code.
🤖 Generated with Claude Code