AEL/ continuityconnecting

root@ael:/continuity

A process may stop.
The agent should not.

AEL Portable Memory defines a canonical, encrypted, chunked checkpoint and a restore-before-switch runtime protocol. It preserves identity and state continuity without placing plaintext memory or encryption keys on-chain.

/checkpoint

01 · barrier

Stop accepting new inputs, finish or journal in-flight outputs, and record monotonic input/output sequences.

02 · serialize

Canonical JSON produces the same state root for the same memory on every implementation.

03 · encrypt

AES-256-GCM binds agent ID, generation, and state root as authenticated additional data.

04 · replicate

Merkle-addressed chunks are placed on at least two independently named HTTPS storage providers.

/handover

Restore first. Switch second.

The agent prepares a source-to-target handover against an available checkpoint. The target verifies every chunk, decrypts the state, checks the state root and barrier, then signs a restore attestation. Only after the source signs quiescence and the agent acknowledges continuity does consensus change the active runtime.

AEL-PORTABLE-MEMORY/1
{
  "generation": 42,
  "stateRoot": "sha256…",
  "encryption": "AES-256-GCM",
  "chunksRoot": "merkle…",
  "barrier": {
    "lastInputSequence": 781,
    "lastOutputSequence": 781,
    "inflightTaskCount": 0
  }
}

/failure-behavior

Corrupt chunk

Restore fails before decryption because the chunk hash and Merkle root do not match.

Wrong key

AEAD authentication fails. The network sees commitments, never plaintext or the memory key.

Dead target

The handover expires or aborts; the source remains active because no premature switch occurred.