feat(key): one file to hand over — handoff bundles the chain and its identities - #573
Merged
Conversation
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.
Tonight's agent-driven E2EE run stalled at exactly one place: "identityファイルってのがわからなくて積んだ" — the operator had a snapshot, an identity, and a digest, with no supported way to even locate the identity file (it lived unannounced under
run/remote-credentials/).key.sh handoff <team> [--out <file>]writes ONE bundle — the confirmed snapshot chain (every revision) plus the identity for each epoch — prints the latest snapshot's digest for the live out-of-band check, and says what the file is: KEEP SECRET, this file IS the key. After a rotation the same command exports the current chain; there is no "which epoch file" question left.remote.sh unlock <team> --bundle <file> --confirm-digest <sha>unpacks it through the existing validators — chain verification, digest binding to the latest snapshot, import, configure, reprocess, engine start. Digest semantics unchanged. The two-flag form (--snapshot/--identity) stays for advanced use.Security model unchanged: snapshot and identity already traveled the same trusted channel; bundling them changes what the operator has to understand, not what an attacker can do. The digest stays a separate string over a separate live channel — that separation is the mechanism.
SKILL.md, all nine type templates, and remote-setup's Extra section now teach the bundle as the main path. Node 53/53, key bats 26/26 green.
PR opened on the author's behalf — their sandbox blocks GitHub access.