Skip to content

feat(persona): persona-home portability bundle (pack/restore the self) - #1707

Merged
joelteply merged 1 commit into
canaryfrom
feat/persona-home-portability
Jun 21, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/persona-home-portability

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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. 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).

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)

  • 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

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

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]>
@joelteply
joelteply merged commit 6a24a79 into canary Jun 21, 2026
4 checks passed
@joelteply
joelteply deleted the feat/persona-home-portability branch June 21, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant