Repository navigation
test(persona): portability proof — context-keyed memory survives a home move - #1706
Merged
Merged
Conversation
…me move The local proof of "move the home, keep the self." A persona's (token, engram_db) lives in one home; identity resolves from that home (airc-lib attach_as), so moving the home to another node and re-spawning yields the same individual with the same memory. This proves the memory half: write an engram tagged with its room (contextId), drop the store (home goes quiet / moves), re-open OrmStore<Engram> from the SAME path (spawn-from-the-moved-home), confirm the engram returns with its room intact. Exact shape of the eventual cross-node M5<->BigMama persona move. Regression guard for the portability invariant (IDENTITY-SCOPE-PEER- LIVENESS-MODEL.md Part A). Builds on #1705 (engrams keyed by context). Co-Authored-By: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 21, 2026
#1707) 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.
The local proof of "move the home, keep the self"
A persona's
(token, engram_db)lives in one home (personas/<name>/{airc/keypair, engrams.sqlite}), and its identity resolves from that home (airc-lib'sattach_as) — so moving the home to another node and re-spawning yields the same individual with the same memory. (Identity = portable token bound to memory, IDENTITY-SCOPE-PEER-LIVENESS-MODEL.md Part A.)This proves the memory half locally:
context_id).OrmStore<Engram>from the same path — spawn-from-the-moved-home.It's the exact shape of the eventual cross-node M5⇄BigMama persona move (the persona analog of the stream-plane two-machine test), sitting on BigMama's router series.
Builds on #1705 (engrams keyed by context). One focused test;
engram_context_survives_home_reopen_portability_proofpasses.🤖 Generated with Claude Code