Repository navigation
CAP-983: setup tags its conversation so Keep opens it - #543
Merged
Merged
Conversation
… the second link The pair payload's handoff secret is kept in memory for the capy setup --code run once the keys are installed. Opening setup's conversation tags it with HMAC(secret, id, cli_pub) and asks the service whether the pairing tab is waiting. CONVERSATION_OPEN then carries opens_in_keep, and a wait that sees no hello within 45 seconds returns CONVERSATION_NOT_OPENED_IN_KEEP with the link. AGENTS block, elicitation conventions and cli-reference say when to show it (spec 3o).
cvince
added a commit
that referenced
this pull request
Dec 6, 2026
… the second link (#543) The pair payload's handoff secret is kept in memory for the capy setup --code run once the keys are installed. Opening setup's conversation tags it with HMAC(secret, id, cli_pub) and asks the service whether the pairing tab is waiting. CONVERSATION_OPEN then carries opens_in_keep, and a wait that sees no hello within 45 seconds returns CONVERSATION_NOT_OPENED_IN_KEEP with the link. AGENTS block, elicitation conventions and cli-reference say when to show it (spec 3o).
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.
CAP-983, spec 3o ("After the code, Keep opens the setup conversation itself").
capy pairpickup keeps the sealedhandoffsecret in memory for this run only. It is kept only after the keys are installed, only for the bound org and user, only if it is exactly 32 bytes, and it is never written to disk.HMAC(secret, lp("capy.conv.handoff.v1", id, cli_pub))throughPOST /flows/:id/handoff. The secret is dropped before the call.CONVERSATION_OPENcarrieselicitation.opens_in_keep: true, and its message tells the agent not to post the link. The flag is kept in the recovery state.CONVERSATION_NOT_OPENED_IN_KEEP(exit 3) with the link. Later waits are ordinary.docs/cli-reference.md(regenerated) say when to show the link.Tests: 4 new in
setupConversation.test.tsand 2 new inpairCommand.test.ts. The full suite fails the same 170 tests as the base branch in this sandbox, all unrelated to this change.docs:cli:checkpasses.