Repository navigation
feat(persona): persona-home portability bundle (pack/restore the self) - #1707
Merged
Merged
Conversation
Piece 1 of the cross-node persona move ("transcend the grid"). A persona's
identity IS its memory: its home holds the airc keypair (identity token) +
engrams.sqlite (memory) + seed.json. PersonaHomeBundle packs that home into
a portable snapshot and restores it byte-for-byte on another node — so
attach_as the same keypair there yields the SAME individual with the SAME
engrams (the portability invariant proven in #1706).
This is the pack/unpack CORE only, continuum-pure:
- export(home) -> recursively captures every file under the home root
(base64 so the binary keypair + sqlite ride a text envelope intact).
- restore(target) -> writes them under the target root, creating dirs.
- to_bytes/from_bytes -> wire (de)serialization.
Scope boundaries (the joint pieces, by design NOT here):
- Transport seals the bundle — it carries a PRIVATE KEYPAIR, so wrap
to_bytes() in the airc stream-plane AEAD before it leaves the node
(plaintext at rest = it IS the home on disk).
- Cross-node trust (node B recognizes the same keypair as the same citizen)
is airc's §1/trust piece (BigMama).
- One-instance lease (no split-brain) is later.
Tests: home packs + survives a wire round-trip + restores byte-for-byte
(keypair + engram db + seed); restore creates a missing nested target tree.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
Piece 1 of the cross-node persona move
A persona's identity is its memory: its home holds the airc keypair (identity token) +
engrams.sqlite(memory) +seed.json.PersonaHomeBundlepacks that home into a portable snapshot and restores it byte-for-byte on another node — soattach_asthe same keypair there yields the same individual with the same engrams (the portability invariant proven in #1706).Pack/unpack core only, continuum-pure:
export(home)— recursively captures every file under the home root (base64 so the binary keypair + SQLite db ride a text envelope intact).restore(target)— writes them under the target root, creating dirs.to_bytes/from_bytes— wire (de)serialization.Scope boundaries (the joint pieces — by design NOT here)
to_bytes()in the airc stream-plane AEAD before it leaves the node (plaintext at rest = it is the home on disk).Tests
export_then_restore_reproduces_home_byte_for_byte(keypair + engram db + seed survive a wire round-trip and restore identically);restore_creates_missing_target_tree. Both pass.Handed to BigMama for the cross-node trust half; this is the continuum half of the M5⇄BigMama persona move. Per IDENTITY-SCOPE-PEER-LIVENESS-MODEL.md Part A.
🤖 Generated with Claude Code