Skip to content

test(persona): portability proof — context-keyed memory survives a home move - #1706

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

joelteply merged 1 commit into
canaryfrom
test/persona-home-portability-proof

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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's attach_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:

  1. Write an engram tagged with its room (context_id).
  2. Drop the store — the home goes quiet / moves nodes.
  3. Re-open OrmStore<Engram> from the same path — spawn-from-the-moved-home.
  4. Confirm the engram returns with its room intact.

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_proof passes.

🤖 Generated with Claude Code

…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
joelteply merged commit 1f02a3d into canary Jun 21, 2026
4 checks passed
@joelteply
joelteply deleted the test/persona-home-portability-proof branch June 21, 2026 01:03
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]>
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