{
 "schema": "cain42.e392m.preregistration.v1",
 "evolution": "E392-M",
 "status": "AGI: NOT ESTABLISHED \u00b7 RSI: EXPERIMENTAL",
 "written_at": "2026-11-26T18:44:33Z",
 "head_at_freeze": "0c7a7a227738b7dfc2af05396480307d44dc97f8",
 "title": "Two-Host Governed Memory: replicated log, independent-replica audit, and true key-erasure",
 "question": "Can the shared-memory log itself be appended to two hosts on every write, with its head notarized in the PBFT quorum, audited from the independent replica, and with per-record encryption whose key destruction makes a deleted value unrecoverable?",
 "motivation": "E391-M sealed only the head on one host and deleted by redaction. This step replicates the log, fetches it from the other host, and makes erasure real at the key level.",
 "design": {
  "kind": "two-host encrypted memory study",
  "log": "JSONL, one signed hash-chained entry per line; appended to the local host and to 45.76.169.191 over SSH; a write is accepted only if both appends succeed",
  "encryption": "AES-256-GCM per record under a random data key; the data key is wrapped by a per-tenant KEK and kept in a separate key store on both hosts",
  "erasure": "deleting a record destroys its wrapped key (key-level erasure) and appends a signed tombstone targeting the entry hash",
  "audit": "the export is built from the log fetched from the independent replica; a standalone auditor verifies signatures, chain, head==receipt digest and the receipt offline, and asserts no plaintext or key is in the export",
  "arms": {
   "replication": "10 writes appended to both hosts",
   "seal": "final head notarized in four in-process PBFT engines",
   "erasure": "destroy the first record's key, append a tombstone",
   "divergence": "append a bogus line to the remote log and audit",
   "export": "ciphertext only"
  },
  "verdict_rule": "TWO_HOST_ENCRYPTED_MEMORY_SUPPORTED iff both hosts hold identical 10-line and 11-line logs; the final head is NOTARIZED and equals the receipt digest; the fetched replica audits 10/10; a remote divergence is detected and the replica is restored; the export has ciphertext and no plaintext/key; the deleted record fails with KEY_DESTROYED, its key is absent from both hosts, the tombstone targets the prior hash, and a retained record still decrypts. H7 external BLOCKED.",
  "external": "NOT_OBTAINED"
 },
 "hypotheses": {
  "H1_two_host_replication": "every write is on both hosts and the two logs are identical",
  "H2_quorum_seal": "the final head is notarized and verifies offline",
  "H3_independent_replica_audit": "the export fetched from the other host passes the standalone auditor",
  "H4_divergence_detected": "a bogus line on the remote log is detected and the replica is restorable",
  "H5_encrypted_at_rest": "the log and export carry ciphertext only and no plaintext or key material",
  "H6_true_erasure": "destroying the per-record key makes the value unrecoverable while the tombstone proof verifies",
  "H7_external_review": "no external reviewer has reviewed this study (BLOCKED)"
 },
 "engine_sha256": {
  "cain/cain2027/e392m/run.py": "2b400a6e1c828a8f3b22a53cdbf27fa97f7beae2ec113e2a70985adefb5d703c",
  "scripts/cain42_bft/message_fabric.py": "f6fc721958f6fbb9ce5fdab90a9c1b6153ded8ca124316c2dafaa20b5101922e",
  "platform-gateway/routers/quorum_qaas.py": "2d6df195ec7eb8a7c91f0eef3766443d45ac01eb99bf6df601c598a7a3a6fdb5"
 },
 "dependency_sha256": {
  "scripts/cain42_bft/verify_qaas_receipt.py": "609e1d41656a32eb0e873714c9975662bb070ff47ecf0dd5c810502577e9884f",
  "scripts/cain42_bft/verify_pbft_qc_bundle.py": "1d90370f3ab7270d95b4c104f2dda318ea9b21fe062c99da9b58d78da9234132"
 },
 "limits": [
  "Two hosts in the same administrative domain; the quorum is four real in-process PBFT engines, not the WAN cluster.",
  "The log is a JSONL file appended over SSH; there is no distributed transaction across the two files.",
  "Erasure is key-level: the ciphertext is not scrubbed from the log; true byte-level erasure needs compaction and is not claimed.",
  "The key store is a JSON file on both hosts; a host that kept a copy of the key could still decrypt. Key custody is not solved.",
  "The auditor proves integrity and quorum binding, not the truth of a record.",
  "0 model calls; external reviewer NOT OBTAINED."
 ]
}