interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

GitHub aien-dev/synapse#111 (code only)

closed derived e6a881f02f2f83f7 #111

Imported from GitHub aien-dev/synapse#111 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 87f1e518e00a141bbd44345c34eaa6daa54c7b39 · Head cb2f0f5d6f3b68bbe989e1ff28eb7ad0d27d1a48

Fetch it

A git bundle of the pull request's head, 17955 bytes.

curl -fsSL https://interplane.io/drakestapleton/synapse/patches/e6a881f02f2f83f7.bundle -o e6a881f02f2f83f7.bundle
git fetch e6a881f02f2f83f7.bundle refs/pull/111/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/synapse
111
cb2f0f5d6f3b68bbe989e1ff28eb7ad0d27d1a48
{"kind":"github-import","owner":"aien-dev","repo":"synapse","number":111,"url":"https://github.com/aien-dev/synapse/pull/111","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:11Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 432a366..0e91ed6 100644
--- a/.crumb
+++ b/.crumb
@@ -45,14 +45,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-18T18:06:03Z",
+      "compiled_at": "2026-10-18T18:10:35Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:bf47390ab31f48e1e00fced7897892cffe46cc6ea9facfd4460b918b62e5118d",
+      "digest": "sha256:226424c337c367af596af05cea44ffef7982b4643a2b85b3cf0189825cc8eac4",
       "evidence_files": 262,
       "evidence_root": "sha256:b25d2fcc4dd431ffce85a91a08342766e8f5d4b0309e16df46c008083835d98a",
-      "files": 456,
-      "generated_at_commit": "16010896d00948b5d494e0413748577c90c5d45f",
-      "source_tree": "sha256:eb0f4c628f4caff0b3f274243143636e7adb05b0841cb9fe5c9a3dc23a26f43c"
+      "files": 457,
+      "generated_at_commit": "a369465548efc1f700c4853a4704fc671515c033",
+      "source_tree": "sha256:d3ae8bd49c9a571002c1b93b78f3044871ebb591a14f0a182bc6261b637f14ef"
     },
     "synapse": {
       "component_paths": {
diff --git a/crates/synapse-api/src/lib.rs b/crates/synapse-api/src/lib.rs
index f41f7de..71fa247 100644
--- a/crates/synapse-api/src/lib.rs
+++ b/crates/synapse-api/src/lib.rs
@@ -21,7 +21,7 @@ use synapse_core::{
 use synapse_core::{ChainPath, ChangeId, ChangesetEnvelopeV2, ObsolescenceMarker, RevisionState};
 use synapse_store::{
     AdmissionAuthority, CompactionReport, FsyncPolicy, IngestOutcome, RecoveryPolicy, ReviewRecord,
-    RevisionOutcome, StoreLimits, StoredChangeset, StoredRevision, SynapseStore,
+    RevisionOutcome, RevisionSealKey, StoreLimits, StoredChangeset, StoredRevision, SynapseStore,
 };
 
 mod advisory;
@@ -381,20 +381,65 @@ pub struct SynapseService {
 }
 
 impl SynapseService {
-    /// Open or create a `SynapseService` at `root_dir` for `repo_id`.
+    /// Open or create a `SynapseService` at `root_dir` for `repo_id`. Revision records are
+    /// not sealed (see [`SynapseStore::open`]); [`Self::open_sealed`] seals them.
     pub fn open(
         root_dir: impl AsRef<Path>,
         repo_id: RepoId,
         fsync_policy: FsyncPolicy,
         recovery_policy: RecoveryPolicy,
         limits: StoreLimits,
+    ) -> SynapseResult<Self> {
+        Self::open_with(
+            root_dir,
+            repo_id,
+            fsync_policy,
+            recovery_policy,
+            limits,
+            None,
+        )
+    }
+
+    /// [`Self::open`] with the server's machine key sealing every revision record, so a
+    /// rewrite of the log without that key changes nothing on replay (issue #101; see
+    /// [`SynapseStore::open_sealed`]).
+    pub fn open_sealed(
+        root_dir: impl AsRef<Path>,
+        repo_id: RepoId,
+        fsync_policy: FsyncPolicy,
+        recovery_policy: RecoveryPolicy,
+        limits: StoreLimits,
+        seal: RevisionSealKey,
+    ) -> SynapseResult<Self> {
+        Self::open_with(
+            root_dir,
+            repo_id,
+            fsync_policy,
+            recovery_policy,
+            limits,
+            Some(seal),
+        )
+    }
+
+    fn open_with(
+        root_dir: impl AsRef<Path>,
+        repo_id: RepoId,
+        fsync_policy: FsyncPolicy,
+        recovery_policy: RecoveryPolicy,
+        limits: StoreLimits,
+        seal: Option<RevisionSealKey>,
     ) -> SynapseResult<Self> {
         let root_dir = root_dir.as_ref().to_path_buf();
         let cursors_dir = root_dir.join("cursors");
         fs::create_dir_all(&cursors_dir)
             .map_err(|e| SynapseError::new(RefusalCode::IoFailure, e.to_string()))?;
 
-        let store = SynapseStore::open(&root_dir, fsync_policy, recovery_policy, limits)?;
+        let store = match seal {
+            Some(seal) => {
+                SynapseStore::open_sealed(&root_dir, fsync_policy, recovery_policy, limits, seal)?
+            }
+            None => SynapseStore::open(&root_dir, fsync_policy, recovery_policy, limits)?,
+        };
         let mut path_index = PathIndex::new();
         for cs in store.list_changesets(Some(&repo_id), None, None)? {
             path_index.index_changeset(cs.changeset_id, &cs.envelope);
diff --git a/crates/synapse-api/tests/b5_derivation_attestation.rs b/crates/synapse-api/tests/b5_derivation_attestation.rs
index a03f518..a810a42 100644
--- a/crates/synapse-api/tests/b5_derivation_attestation.rs
+++ b/crates/synapse-api/tests/b5_derivation_attestation.rs
@@ -206,6 +206,7 @@ fn derived_record(derived: DerivedRevision) -> WalRecord {
         derived,
         chain: authority("a").chain,
         admitted_at_ms: NOW,
+        seal: None,
     }
 }
 
@@ -710,6 +711,7 @@ fn b5_derived_revision_presented_with_an_agent_signature_it_does_not_have_is_ref
             chain: authority("a").chain,
             admitted_at_ms: NOW,
             new_blobs: vec![],
+            seal: None,
         };
         let records = fx.records_with(at, record);
         assert_eq!(fx.verify(&records), Err(RefusalCode::AuthSignatureInvalid));
@@ -855,6 +857,7 @@ fn b5_another_owners_private_revision_is_not_a_derivation_input() {
             derived: rebase.clone(),
             chain: authority("b").chain,
             admitted_at_ms: NOW,
+            seal: None,
         },
     ));
     assert_eq!(
@@ -888,6 +891,7 @@ fn b5_replica_refuses_a_state_move_that_does_not_verify() {
     let WalRecord::RevisionStateMoved {
         mut state_move,
         moved_at_ms,
+        ..
     } = record
     else {
         unreachable!()
@@ -898,6 +902,7 @@ fn b5_replica_refuses_a_state_move_that_does_not_verify() {
         WalRecord::RevisionStateMoved {
             state_move,
             moved_at_ms,
+            seal: None,
         },
     );
     assert_eq!(
diff --git a/crates/synapse-core/src/lib.rs b/crates/synapse-core/src/lib.rs
index 9966ad3..02e4c15 100644
--- a/crates/synapse-core/src/lib.rs
+++ b/crates/synapse-core/src/lib.rs
@@ -151,6 +151,11 @@ pub enum RefusalCode {
     /// or whose mover key is not the audience of its chain's leaf link: the log was written
     /// without the mover's private key (ADR 0003 sections 5.3 and 5.4, step B4, issue #89).
     RevisionStateMoveUnverified,
+    /// Strict recovery of a store opened with a revision seal key found a revision record
+    /// (kind 7, 8, 9, or 11) whose server seal is missing or does not verify against the seal
+    /// chain so far: it was written, changed, reordered, or followed by a removed record
+    /// without the server's key (issue #101).
+    RevisionRecordUnsealed,
     /// A `DerivationAttestation` does not name the revision it is presented with, or its
     /// signature does not verify under the server key it names (ADR 0003 section 5.1, step B5).
     DerivationSignatureInvalid,
diff --git a/crates/synapse-store/src/codec.rs b/crates/synapse-store/src/codec.rs
index 74247ca..46a5def 100644
--- a/crates/synapse-store/src/codec.rs
+++ b/crates/synapse-store/src/codec.rs
@@ -18,6 +18,7 @@
 //! huge length is refused without allocating it.
 
 use super::*;
+use crate::seal::REVISION_SEAL_TAG;
 use synapse_auth::CapabilityLink;
 use synapse_core::{FileMode, GitOid, PathMutation};
 
@@ -323,6 +324,7 @@ pub fn encode_record(record: &WalRecord) -> SynapseResult<Vec<u8>> {
             chain,
             admitted_at_ms,
             new_blobs,
+            seal,
         } => {
             w.bytes(&envelope.encode(), "envelope v2")?;
             put_chain(&mut w, chain)?;
@@ -331,19 +333,23 @@ pub fn encode_record(record: &WalRecord) -> SynapseResult<Vec<u8>> {
             for b in new_blobs {
                 w.raw(&b.0);
             }
+            put_seal(&mut w, seal);
         }
         WalRecord::ObsolescenceRecorded {
             marker,
             chain,
             recorded_at_ms,
+            seal,
         } => {
             w.bytes(&marker.encode(), "obsolescence marker")?;
             put_chain(&mut w, chain)?;
             w.u64(*recorded_at_ms);
+            put_seal(&mut w, seal);
         }
         WalRecord::RevisionStateMoved {
             state_move: m,
             moved_at_ms,
+            seal,
         } => {
             w.repo(&m.repo_id)?;
             w.raw(&m.changeset_id.0);
@@ -354,20 +360,52 @@ pub fn encode_record(record: &WalRecord) -> SynapseResult<Vec<u8>> {
             w.bytes(&m.leaf_link.encode(), "leaf link")?;
             w.raw(&m.mover_key);
             w.raw(&m.signature);
+            put_seal(&mut w, seal);
         }
         WalRecord::DerivedRevisionAdmitted {
             derived,
             chain,
             admitted_at_ms,
+            seal,
         } => {
             w.bytes(&derived.encode(), "derived revision")?;
             put_chain(&mut w, chain)?;
             w.u64(*admitted_at_ms);
+            put_seal(&mut w, seal);
         }
     }
     Ok(w.0)
 }
 
+/// The optional seal trailer of a revision record (issue #101): nothing when unsealed,
+/// else `1 u8 | server_key [32] | signature [64]`. Bytes after a body that do not open
+/// with the seal tag are refused as `TrailingBytes`.
+fn put_seal(w: &mut Writer, seal: &Option<RevisionSeal>) {
+    if let Some(seal) = seal {
+        w.u8(REVISION_SEAL_TAG);
+        w.raw(&seal.server_key);
+        w.raw(&seal.signature);
+    }
+}
+
+fn get_seal(r: &mut Reader) -> Decoded<Option<RevisionSeal>> {
+    if r.remaining() == 0 {
+        return Ok(None);
+    }
+    // Anything after the body that is not a seal is trailing bytes, as before seals.
+    if r.buf[r.pos] != REVISION_SEAL_TAG {
+        return Err(CodecRefusal::TrailingBytes {
+            at: r.pos,
+            count: r.remaining(),
+        });
+    }
+    r.u8()?;
+    Ok(Some(RevisionSeal {
+        server_key: r.array()?,
+        signature: r.array()?,
+    }))
+}
+
 fn put_chain(w: &mut Writer, chain: &ChainPath) -> SynapseResult<()> {
     let mut buf = Vec::with_capacity(1 + 32 * chain.links().len());
     chain.encode_into(&mut buf);
@@ -748,12 +786,14 @@ pub fn decode_record(bytes: &[u8], cap: u64) -> Result<WalRecord, CodecRefusal>
                 chain,
                 admitted_at_ms,
                 new_blobs,
+                seal: get_seal(&mut r)?,
             }
         }
         8 => WalRecord::ObsolescenceRecorded {
             marker: r.embedded("obsolescence marker", ObsolescenceMarker::decode)?,
             chain: r.embedded("chain path", ChainPath::decode)?,
             recorded_at_ms: r.u64()?,
+            seal: get_seal(&mut r)?,
         },
         9 => {
             let repo_id = r.repo()?;
@@ -779,12 +819,14 @@ pub fn decode_record(bytes: &[u8], cap: u64) -> Result<WalRecord, CodecRefusal>
                     signature: r.array()?,
                 },
                 moved_at_ms,
+                seal: get_seal(&mut r)?,
             }
         }
         11 => WalRecord::DerivedRevisionAdmitted {
             derived: r.embedded("derived revision", DerivedRevision::decode)?,
             chain: r.embedded("chain path", ChainPath::decode)?,
             admitted_at_ms: r.u64()?,
+            seal: get_seal(&mut r)?,
         },
         tag => {
             return Err(CodecRefusal::UnknownTag {
diff --git a/crates/synapse-store/src/lib.rs b/crates/synapse-store/src/lib.rs
index 08411db..3f12c27 100644
--- a/crates/synapse-store/src/lib.rs
+++ b/crates/synapse-store/src/lib.rs
@@ -33,6 +33,7 @@ pub mod codec;
 #[cfg(test)]
 mod group_tests;
 mod revision;
+pub mod seal;
 pub mod segment;
 #[cfg(test)]
 mod segment_tests;
@@ -42,8 +43,9 @@ pub mod wal2;
 pub use codec::{CheckpointChain, CheckpointState, CodecRefusal, RecordCodec};
 pub use revision::{
     verify_revision_log, AdmissionAuthority, ChangeStatus, RecordedMarker, RevisionOutcome,
-    StateMoveReplayReport, StoredRevision, DOMAIN_STATE_ROOT_REVISIONS_V1,
+    SealReplayReport, StateMoveReplayReport, StoredRevision, DOMAIN_STATE_ROOT_REVISIONS_V1,
 };
+pub use seal::{RevisionSeal, RevisionSealKey};
 pub use shared::{GroupCommitStats, SharedStore};
 
 /// Magic bytes for a Synapse WAL frame (`b"SWAL"`).
@@ -316,6 +318,8 @@ pub enum WalRecord {
         chain: ChainPath,
         admitted_at_ms: u64,
         new_blobs: Vec<BlobDigest>,
+        /// The server's keyed seal (issue #101); `None` in a store opened without a seal key.
+        seal: Option<RevisionSeal>,
     },
     /// An obsolescence marker recorded under `chain` at server time `recorded_at_ms`
     /// (ADR 0003 B1). Binary codec only.
@@ -324,6 +328,7 @@ pub enum WalRecord {
         marker: ObsolescenceMarker,
         chain: ChainPath,
         recorded_at_ms: u64,
+        seal: Option<RevisionSeal>,
     },
     /// A move of a revision to another state, signed by its mover (the audience of the
     /// chain's leaf link) and recorded at server time `moved_at_ms` (ADR 0003 B4, issue
@@ -332,6 +337,7 @@ pub enum WalRecord {
     RevisionStateMoved {
         state_move: SignedStateMove,
         moved_at_ms: u64,
+        seal: Option<RevisionSeal>,
     },
     /// Admission of a server-derived revision under `chain` at server time `admitted_at_ms`
     /// (ADR 0003 B5). It references only blobs already visible, so it carries none. Binary
@@ -341,6 +347,7 @@ pub enum WalRecord {
         derived: DerivedRevision,
         chain: ChainPath,
         admitted_at_ms: u64,
+        seal: Option<RevisionSeal>,
     },
 }
 
@@ -360,6 +367,38 @@ impl WalRecord {
         }
     }
 
+    /// True for the revision records a seal covers (kinds 7, 8, 9, and 11).
+    pub fn is_revision_record(&self) -> bool {
+        matches!(
+            self,
+            Self::RevisionAdmitted { .. }
+                | Self::ObsolescenceRecorded { .. }
+                | Self::RevisionStateMoved { .. }
+                | Self::DerivedRevisionAdmitted { .. }
+        )
+    }
+
+    /// The keyed seal of a revision record (issue #101), if it carries one.
+    pub fn seal(&self) -> Option<&RevisionSeal> {
+        match self {
+            Self::RevisionAdmitted { seal, .. }
+            | Self::ObsolescenceRecorded { seal, .. }
+            | Self::RevisionStateMoved { seal, .. }
+            | Self::DerivedRevisionAdmitted { seal, .. } => seal.as_ref(),
+            _ => None,
+        }
+    }
+
+    fn set_seal(&mut self, value: RevisionSeal) {
+        if let Self::RevisionAdmitted { seal, .. }
+        | Self::ObsolescenceRecorded { seal, .. }
+        | Self::RevisionStateMoved { seal, .. }
+        | Self::DerivedRevisionAdmitted { seal, .. } = self
+        {
+            *seal = Some(value);
+        }
+    }
+
     /// Blob digests the upserts of this record reference (ingest and revision records).
     pub fn upsert_blobs(&self) -> Vec<BlobDigest> {
         let mutations = match self {
@@ -489,6 +528,8 @@ pub struct SynapseStore {
     /// `checkpoint.v1` is not yet the tombstone although `checkpoint.v2` exists.
     /// Envelope v2 revisions, changes, witnesses, and markers (ADR 0003 B1).
     revisions: revision::RevisionLedger,
+    /// The server key revision records are sealed with and checked against (issue #101).
+    revision_seal: Option<RevisionSealKey>,
     tombstone_pending: bool,
 }
 
@@ -588,11 +629,40 @@ pub(crate) struct V2Ticket {
 
 impl SynapseStore {
     /// Open or initialize a `SynapseStore` at `root_dir`, verifying checkpoint + WAL chain.
+    /// Revision records are neither sealed nor checked for a seal: whoever can rewrite the
+    /// whole log can rewrite them too (issue #101). Use [`Self::open_sealed`] to close that.
     pub fn open(
         root_dir: impl AsRef<Path>,
         fsync_policy: FsyncPolicy,
         recovery_policy: RecoveryPolicy,
         limits: StoreLimits,
+    ) -> SynapseResult<Self> {
+        Self::open_with(root_dir, fsync_policy, recovery_policy, limits, None)
+    }
+
+    /// [`Self::open`] with the server's machine key as the revision seal key (issue #101).
+    /// Every revision record written (kinds 7, 8, 9, and 11) is sealed by `seal`, chained to
+    /// the previous one; on replay a revision record whose seal does not verify against that
+    /// chain changes nothing. `StrictFailClosed` refuses such a store with
+    /// `RevisionRecordUnsealed` (including one with revision records written before it was
+    /// sealed); `TruncateTornTail` opens it, reports them in [`Self::seal_replay_report`],
+    /// and `checkpoint_and_compact` then leaves them out.
+    pub fn open_sealed(
+        root_dir: impl AsRef<Path>,
+        fsync_policy: FsyncPolicy,
+        recovery_policy: RecoveryPolicy,
+        limits: StoreLimits,
+        seal: RevisionSealKey,
+    ) -> SynapseResult<Self> {
+        Self::open_with(root_dir, fsync_policy, recovery_policy, limits, Some(seal))
+    }
+
+    fn open_with(
+        root_dir: impl AsRef<Path>,
+        fsync_policy: FsyncPolicy,
+        recovery_policy: RecoveryPolicy,
+        limits: StoreLimits,
+        revision_seal: Option<RevisionSealKey>,
     ) -> SynapseResult<Self> {
         let root_dir = root_dir.as_ref().to_path_buf();
         let blobs_dir = root_dir.join("blobs");
@@ -631,7 +701,10 @@ impl SynapseStore {
             v1_history: false,
             binary_seen: false,
             tombstone_pending: false,
-            revisions: revision::RevisionLedger::default(),
+            revisions: revision::RevisionLedger::new(
+                revision_seal.as_ref().map(RevisionSealKey::public_key),
+            ),
+            revision_seal,
         };
 
         store.recover(recovery_policy)?;
@@ -1693,9 +1766,15 @@ impl SynapseStore {
         //    Unverified kind 9 records (kept as no-ops only under `TruncateTornTail`) are left
         //    out (review of PR #100): they change no state, and carrying them would make
         //    strict recovery refuse the store forever. The ledger is rebuilt without them
-        //    only once the checkpoint is durable; the replay report counts them.
+        //    only once the checkpoint is durable; the replay report counts them. In a sealed
+        //    store (issue #101) the same holds for revision records whose seal does not
+        //    verify; sealed records always stay, so the seal chain stays whole.
         self.sync_wal()?;
-        let (revision_log, dropped_moves) = self.revisions.log_without_unverified_moves();
+        let revision::CompactedRevisionLog {
+            log: revision_log,
+            dropped_moves,
+            dropped_unsealed,
+        } = self.revisions.compacted_log();
         let (v1_state_root, prev_checkpoint_root) = match self.checkpoint_chain {
             Some(c) => (c.v1_state_root, c.checkpoint_root),
             None if self.v1_history => (v1_state_root_at_entry, v1_state_root_at_entry),
@@ -1763,9 +1842,13 @@ impl SynapseStore {
             &bytes,
         )?;
         self.checkpoint_chain = Some(chain);
-        if dropped_moves > 0 {
+        if dropped_moves + dropped_unsealed > 0 {
             self.revisions
-                .rebuild_after_compaction(revision_log, dropped_moves);
+                .rebuild_after_compaction(revision::CompactedRevisionLog {
+                    log: revision_log,
+                    dropped_moves,
+                    dropped_unsealed,
+                });
         }
         self.codec = RecordCodec::BinaryV2;
         self.binary_seen = true;
@@ -2155,6 +2238,11 @@ impl SynapseStore {
                     cs.lease_expires_at_ms = lease_expires_at_ms;
                 }
             }
+            record @ WalRecord::RevisionAdmitted { .. }
+                if !self.revisions.accepts(seq, &record) =>
+            {
+                self.revisions.apply(seq, record);
+            }
             record @ WalRecord::RevisionAdmitted { .. } => {
                 if let WalRecord::RevisionAdmitted { new_blobs, .. } = &record {
                     for digest in new_blobs {
@@ -2168,6 +2256,11 @@ impl SynapseStore {
             }
             record @ (WalRecord::ObsolescenceRecorded { .. }
             | WalRecord::RevisionStateMoved { .. }) => self.revisions.apply(seq, record),
+            record @ WalRecord::DerivedRevisionAdmitted { .. }
+                if !self.revisions.accepts(seq, &record) =>
+            {
+                self.revisions.apply(seq, record);
+            }
             record @ WalRecord::DerivedRevisionAdmitted { .. } => {
                 for digest in record.upsert_blobs() {
                     self.blob_first_visible_seq.entry(digest).or_insert(seq);
@@ -2244,6 +2337,19 @@ impl SynapseStore {
         //    refuses the store instead of hiding it as a no-op (issue #89). It checks the
         //    records themselves, so a forgery inside a resealed checkpoint is refused too.
         if recovery_policy == RecoveryPolicy::StrictFailClosed {
+            // Issue #101: in a sealed store, a revision record whose seal does not verify
+            // against the chain so far was written, changed, moved, or followed by a removal
+            // without the server key.
+            let seals = self.revisions.seal_report();
+            if let Some(seq) = seals.first_unsealed {
+                return Err(SynapseError::new(
+                    RefusalCode::RevisionRecordUnsealed,
+                    format!(
+                        "{} revision record(s) are not sealed by the store's seal key (first at {seq}); strict recovery refuses the store (open it with TruncateTornTail and run checkpoint_and_compact to drop them)",
+                        seals.unsealed
+                    ),
+                ));
+            }
             let report = self.revisions.state_move_report();
             if let Some((seq, fault)) = report.first_unverified {
                 return Err(SynapseError::new(
@@ -2274,7 +2380,10 @@ impl SynapseStore {
         self.blob_first_visible_seq = s.blob_first_visible_seq;
         self.github_projections = s.github_projections;
         self.canonical_heads = s.canonical_heads;
-        self.revisions = revision::RevisionLedger::from_log(s.revision_log);
+        self.revisions = revision::RevisionLedger::from_log(
+            s.revision_log,
+            self.revision_seal.as_ref().map(RevisionSealKey::public_key),
+        );
     }
 
     /// Admit a replayed (not checkpoint-covered) frame written with `codec`: the codec
diff --git a/crates/synapse-store/src/revision.rs b/crates/synapse-store/src/revision.rs
index ad5305b..b39a192 100644
--- a/crates/synapse-store/src/revision.rs
+++ b/crates/synapse-store/src/revision.rs
@@ -9,6 +9,7 @@
 //! same ledger. v1 changesets stay in their own map with their own IDs; the two ID domains
 //! never meet.
 
+use crate::seal::{next_head, RevisionSealKey};
 use crate::{SignedStateMove, StateMoveFault, WalRecord};
 use sha2::{Digest, Sha256};
 use std::collections::{BTreeMap, BTreeSet};
@@ -134,6 +135,24 @@ impl StateMoveReplayReport {
     }
 }
 
+/// What replay did with revision records whose keyed seal (issue #101) did not verify, in a
+/// store opened with a seal key. A sealing store writes only sealed records, so every count
+/// here is a record written without the server's key: a forgery, a removed or reordered
+/// record (which breaks the seal chain from there on), or a record from before the store was
+/// sealed. Such records stay in the log but change nothing. `StrictFailClosed` recovery
+/// refuses the store (`RevisionRecordUnsealed`); `TruncateTornTail` opens it and reports them
+/// here. All zero in a store opened without a seal key (seals are then not checked).
+#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
+pub struct SealReplayReport {
+    /// Revision records whose seal is missing or does not verify against the chain so far.
+    pub unsealed: u64,
+    /// Sequence of the first such record, for the refusal message.
+    pub first_unsealed: Option<WalSeq>,
+    /// Unsealed records this process left out of a checkpoint (`checkpoint_and_compact`
+    /// under `TruncateTornTail`). Not persisted: a reopened store reports zero.
+    pub dropped_by_compaction: u64,
+}
+
 /// In-memory revision state, rebuilt from revision records.
 #[derive(Debug, Clone, Default)]
 pub(crate) struct RevisionLedger {
@@ -147,6 +166,21 @@ pub(crate) struct RevisionLedger {
     state_moves: StateMoveReplayReport,
     /// (repository, derivation attestation digest) to its admission (replay refusal, B5).
     derivations: BTreeMap<(RepoId, [u8; 32]), WalSeq>,
+    /// Public half of the seal key (issue #101): when set, a revision record is applied only
+    /// if its seal verifies against `seal_head`.
+    seal_key: Option<[u8; 32]>,
+    /// Head of the seal chain after the last sealed record applied (zero before the first).
+    seal_head: [u8; 32],
+    /// Revision records whose seal did not verify (applied as nothing).
+    unsealed: BTreeSet<WalSeq>,
+    seals: SealReplayReport,
+}
+
+/// What a checkpoint keeps of the revision log, and what it leaves out.
+pub(crate) struct CompactedRevisionLog {
+    pub(crate) log: Vec<(WalSeq, WalRecord)>,
+    pub(crate) dropped_moves: u64,
+    pub(crate) dropped_unsealed: u64,
 }
 
 /// Digest of one revision record over its canonical core encodings.
@@ -160,6 +194,7 @@ fn record_digest(record: &WalRecord) -> [u8; 32] {
             chain: c,
             admitted_at_ms,
             new_blobs,
+            ..
         } => {
             let e = envelope.encode();
             h.update((e.len() as u64).to_le_bytes());
@@ -176,6 +211,7 @@ fn record_digest(record: &WalRecord) -> [u8; 32] {
             marker,
             chain: c,
             recorded_at_ms,
+            ..
         } => {
             let m = marker.encode();
             h.update((m.len() as u64).to_le_bytes());
@@ -187,6 +223,7 @@ fn record_digest(record: &WalRecord) -> [u8; 32] {
         WalRecord::RevisionStateMoved {
             state_move: m,
             moved_at_ms,
+            ..
         } => {
             h.update((m.repo_id.as_str().len() as u64).to_le_bytes());
             h.update(m.repo_id.as_str().as_bytes());
@@ -206,6 +243,7 @@ fn record_digest(record: &WalRecord) -> [u8; 32] {
             derived,
             chain: c,
             admitted_at_ms,
+            ..
         } => {
             let d = derived.encode();
             h.update((d.len() as u64).to_le_bytes());
@@ -250,46 +288,91 @@ impl RevisionLedger {
         self.state_moves
     }
 
-    /// The log without kind 9 records that do not verify, and how many were left out
-    /// (review of PR #100): what a checkpoint keeps. Verified moves that changed nothing stay.
-    pub(crate) fn log_without_unverified_moves(&self) -> (Vec<(WalSeq, WalRecord)>, u64) {
-        if self.state_moves.unverified() == 0 {
-            return (self.log.clone(), 0);
-        }
-        let mut dropped = 0;
-        let log = self
-            .log
-            .iter()
-            .filter(|(_, record)| match record {
-                WalRecord::RevisionStateMoved { state_move, .. }
-                    if state_move.verify().is_err() =>
-                {
-                    dropped += 1;
-                    false
+    /// What a checkpoint keeps: the log without the records that changed nothing because
+    /// they do not verify, and how many were left out. Unsealed records (issue #101) go,
+    /// since they never joined the seal chain; so do kind 9 records that do not verify
+    /// (review of PR #100), unless they are sealed: removing a sealed record would break
+    /// the chain of every later one. Verified moves that changed nothing stay.
+    pub(crate) fn compacted_log(&self) -> CompactedRevisionLog {
+        let mut out = CompactedRevisionLog {
+            log: Vec::with_capacity(self.log.len()),
+            dropped_moves: 0,
+            dropped_unsealed: 0,
+        };
+        for (seq, record) in &self.log {
+            if self.unsealed.contains(seq) {
+                out.dropped_unsealed += 1;
+                continue;
+            }
+            if let WalRecord::RevisionStateMoved { state_move, .. } = record {
+                if self.seal_key.is_none() && state_move.verify().is_err() {
+                    out.dropped_moves += 1;
+                    continue;
                 }
-                _ => true,
-            })
-            .cloned()
-            .collect();
-        (log, dropped)
+            }
+            out.log.push((*seq, record.clone()));
+        }
+        out
+    }
+
+    /// Rebuild from the log a checkpoint kept, recording what it left out.
+    pub(crate) fn rebuild_after_compaction(&mut self, compacted: CompactedRevisionLog) {
+        let moves = self.state_moves.dropped_by_compaction + compacted.dropped_moves;
+        let unsealed = self.seals.dropped_by_compaction + compacted.dropped_unsealed;
+        *self = Self::from_log(compacted.log, self.seal_key);
+        self.state_moves.dropped_by_compaction = moves;
+        self.seals.dropped_by_compaction = unsealed;
     }
 
-    /// Rebuild from the log a checkpoint kept, recording the `dropped` unverified moves.
-    pub(crate) fn rebuild_after_compaction(&mut self, log: Vec<(WalSeq, WalRecord)>, dropped: u64) {
-        let carried = self.state_moves.dropped_by_compaction + dropped;
-        *self = Self::from_log(log);
-        self.state_moves.dropped_by_compaction = carried;
+    /// An empty ledger that checks seals under `seal_key` when it is set (issue #101).
+    pub(crate) fn new(seal_key: Option<[u8; 32]>) -> Self {
+        Self {
+            seal_key,
+            ..Self::default()
+        }
     }
 
     /// Rebuild a ledger from checkpointed records.
-    pub(crate) fn from_log(log: Vec<(WalSeq, WalRecord)>) -> Self {
-        let mut l = Self::default();
+    pub(crate) fn from_log(log: Vec<(WalSeq, WalRecord)>, seal_key: Option<[u8; 32]>) -> Self {
+        let mut l = Self::new(seal_key);
         for (seq, record) in log {
             l.apply(seq, record);
         }
         l
     }
 
+    /// Unsealed revision records replay kept as no-ops (issue #101).
+    pub(crate) fn seal_report(&self) -> SealReplayReport {
+        self.seals
+    }
+
+    /// The seal head `record` at `seq` moves the chain to, when its seal verifies against the
+    /// chain so far; `None` when it does not (and the record must change nothing).
+    fn sealed_head(&self, key: &[u8; 32], seq: WalSeq, record: &WalRecord) -> Option<[u8; 32]> {
+        let head = next_head(&self.seal_head, seq, &record_digest(record));
+        record
+            .seal()
+            .is_some_and(|s| s.verifies(key, &head))
+            .then_some(head)
+    }
+
+    /// Whether `record` at `seq` would take effect: always without a seal key, else only when
+    /// its seal verifies against the chain so far (issue #101).
+    pub(crate) fn accepts(&self, seq: WalSeq, record: &WalRecord) -> bool {
+        match self.seal_key {
+            Some(key) if record.is_revision_record() => {
+                self.sealed_head(&key, seq, record).is_some()
+            }
+            _ => true,
+        }
+    }
+
+    /// Seal `record`, to be written at `seq`, as the next link of this ledger's chain.
+    pub(crate) fn seal_record(&self, key: &RevisionSealKey, seq: WalSeq, record: &mut WalRecord) {
+        let head = next_head(&self.seal_head, seq, &record_digest(record));
+        record.set_seal(key.seal(&head));
+    }
+
     /// Feed the revision part of the state root (nothing when the ledger is empty, so roots
     /// of stores without revisions are unchanged).
     pub(crate) fn hash_into(log: &[(WalSeq, WalRecord)], snapshot: WalSeq, h: &mut Sha256) {
@@ -308,6 +391,23 @@ impl RevisionLedger {
     /// Apply one revision record (other records are ignored). Total: a record that could
     /// not have been admitted is still applied the same way on every replica.
     pub(crate) fn apply(&mut self, seq: WalSeq, record: WalRecord) {
+        if !record.is_revision_record() {
+            return;
+        }
+        // Issue #101: in a sealed store a revision record counts only when the server's seal
+        // over the chain so far verifies; nothing in it (not even its unsigned `chain`) can
+        // then have been changed, inserted, reordered, or removed without the key.
+        if let Some(key) = self.seal_key {
+            if let Some(head) = self.sealed_head(&key, seq, &record) {
+                self.seal_head = head;
+            } else {
+                self.seals.unsealed += 1;
+                self.seals.first_unsealed.get_or_insert(seq);
+                self.unsealed.insert(seq);
+                self.log.push((seq, record));
+                return;
+            }
+        }
         match &record {
             WalRecord::RevisionAdmitted {
                 envelope,
@@ -353,6 +453,7 @@ impl RevisionLedger {
                 derived,
                 chain,
                 admitted_at_ms,
+                ..
             } => {
                 let att = &derived.attestation;
                 let id = att.output_changeset;
@@ -392,6 +493,7 @@ impl RevisionLedger {
                 marker,
                 chain,
                 recorded_at_ms,
+                ..
             } => {
                 self.changes
                     .entry((marker.repo_id.clone(), marker.change_id))
@@ -919,6 +1021,7 @@ impl crate::SynapseStore {
             chain: authority.chain,
             admitted_at_ms: now_ms,
             new_blobs: inline.iter().map(|(d, _)| *d).collect(),
+            seal: None,
         };
         let wal_seq = self.append_revision_record(record, &inline, None)?;
         Ok(RevisionOutcome::Admitted {
@@ -1013,6 +1116,7 @@ impl crate::SynapseStore {
             derived,
             chain: authority.chain,
             admitted_at_ms: now_ms,
+            seal: None,
         };
         let wal_seq = self.append_revision_record(record, &[], Some(at))?;
         Ok(RevisionOutcome::Admitted {
@@ -1059,6 +1163,7 @@ impl crate::SynapseStore {
             marker,
             chain,
             recorded_at_ms: now_ms,
+            seal: None,
         };
         self.append_revision_record(record, &[], None)
     }
@@ -1084,6 +1189,7 @@ impl crate::SynapseStore {
         let record = WalRecord::RevisionStateMoved {
             state_move,
             moved_at_ms: now_ms,
+            seal: None,
         };
         self.append_revision_record(record, &[], None)
     }
@@ -1095,6 +1201,13 @@ impl crate::SynapseStore {
         self.revisions.state_move_report()
     }
 
+    /// Revision records replay kept as no-ops because their seal did not verify (issue #101;
+    /// only in a store opened with [`Self::open_sealed`] under `TruncateTornTail`, since
+    /// strict recovery refuses them). All zero for a log written only by this sealed store.
+    pub fn seal_replay_report(&self) -> SealReplayReport {
+        self.revisions.seal_report()
+    }
+
     /// An admitted revision of `repo_id` as `viewer` may see it (step B4): another owner's
     /// `Private` revision is `ChangesetNotFound`, exactly like an unknown one.
     pub fn get_revision_visible_to(
@@ -1165,10 +1278,18 @@ impl crate::SynapseStore {
     /// admitted at a sequence it was not checked at. Real checks in every build profile.
     fn append_revision_record(
         &mut self,
-        record: WalRecord,
+        mut record: WalRecord,
         blobs: &[(BlobDigest, &[u8])],
-        checked_at: Option<WalSeq>,
+        mut checked_at: Option<WalSeq>,
     ) -> SynapseResult<WalSeq> {
+        // Issue #101: a sealed store seals the record for the exact sequence it is written
+        // at, so it is checked at that sequence like a derivation (a record that would land
+        // elsewhere is refused, one that did is not applied).
+        if let Some(key) = &self.revision_seal {
+            let at = checked_at.unwrap_or_else(|| self.committed_seq.next());
+            self.revisions.seal_record(key, at, &mut record);
+            checked_at = Some(at);
+        }
         if self.v2_mode {
             let encoded = crate::wal2::encode_record(&record, blobs, self.codec)?;
             self.check_frame_cap(encoded.payload.len())?;
@@ -1371,6 +1492,7 @@ mod b4_tests {
         WalRecord::RevisionStateMoved {
             state_move,
             moved_at_ms: 6_000,
+            seal: None,
         }
     }
 
@@ -1408,6 +1530,7 @@ mod b4_tests {
             chain,
             admitted_at_ms: 5_000,
             new_blobs: vec![],
+            seal: None,
         }
     }
 
@@ -1492,7 +1615,7 @@ mod b4_tests {
                 }
             }
             assert_eq!(ledger.state_move_report(), want);
-            let rebuilt = RevisionLedger::from_log(ledger.log().to_vec());
+            let rebuilt = RevisionLedger::from_log(ledger.log().to_vec(), None);
             assert_eq!(rebuilt.state_move_report(), want);
             for id in &ids {
                 assert_eq!(
@@ -1529,7 +1652,7 @@ mod b4_tests {
             (WalSeq(4), mv(RevisionState::Verified, &[1, 9])),
             (WalSeq(5), mv(RevisionState::Canonical, owner)),
         ];
-        let replayed = RevisionLedger::from_log(log);
+        let replayed = RevisionLedger::from_log(log, None);
         assert_eq!(
             replayed.get_revision(&repo(), id).unwrap().state,
             RevisionState::Proposed,
@@ -1754,7 +1877,7 @@ mod b4_tests {
             (WalSeq(2), moved(signed(owner, id, RevisionState::Draft))),
         ];
         // The revision is `Draft`, so every chain sees it: only ownership can refuse.
-        let shared = RevisionLedger::from_log(log.clone());
+        let shared = RevisionLedger::from_log(log.clone(), None);
         for m in &moves {
             let err = shared.plan_move(m).unwrap_err();
             assert_eq!(err.code, RefusalCode::AuthChainNotDominant);
@@ -1765,7 +1888,7 @@ mod b4_tests {
                 .zip(3..)
                 .map(|(m, n)| (WalSeq(n), moved(m))),
         );
-        let replayed = RevisionLedger::from_log(log);
+        let replayed = RevisionLedger::from_log(log, None);
         assert_eq!(
             replayed.get_revision(&repo(), id).unwrap().state,
             RevisionState::Draft
@@ -1833,7 +1956,443 @@ mod b4_tests {
         let later = WalRecord::RevisionStateMoved {
             state_move: m,
             moved_at_ms: 6_001,
+            seal: None,
         };
         assert_ne!(record_digest(&later), base);
     }
+
+    // ---------------------------------------------------------------------------------
+    // Issue #101: the keyed seal over revision records
+    // ---------------------------------------------------------------------------------
+
+    fn server_key() -> crate::RevisionSealKey {
+        crate::RevisionSealKey::new(SigningKey::from_bytes(&derived("server machine key", &[])))
+    }
+
+    fn open_sealed(dir: &PathBuf, policy: RecoveryPolicy) -> SynapseResult<SynapseStore> {
+        open_sealed_with(dir, policy, server_key())
+    }
+
+    fn open_sealed_with(
+        dir: &PathBuf,
+        policy: RecoveryPolicy,
+        key: crate::RevisionSealKey,
+    ) -> SynapseResult<SynapseStore> {
+        let limits = StoreLimits {
+            wal_prealloc_bytes: 64 * 1024,
+            ..Default::default()
+        };
+        SynapseStore::open_sealed(dir, FsyncPolicy::EveryCommit, policy, limits, key)
+    }
+
+    /// A root link a forger minted with its own key (no repository authority signed it),
+    /// delegating to itself: what a whole-log rewrite can put in an unsigned `chain` field.
+    fn forger_chain() -> (SigningKey, CapabilityChain, ChainPath) {
+        let forger = key_of(&[7]);
+        let link = CapabilityLink::issue(
+            &forger,
+            ROOT_PARENT,
+            derived("forged nonce", &[]),
+            repo(),
+            forger.verifying_key().to_bytes(),
+            caveats(),
+        );
+        let chain = CapabilityChain::new(vec![link]);
+        let digests = chain.link_digests().iter().map(|d| d.0).collect();
+        (forger, chain, ChainPath::new(digests).unwrap())
+    }
+
+    fn with_chain(mut record: WalRecord, swapped: ChainPath) -> WalRecord {
+        if let WalRecord::RevisionAdmitted { chain, .. } = &mut record {
+            *chain = swapped;
+        }
+        record
+    }
+
+    /// Issue #101 acceptance 1: a whole-log rewrite that swaps an admission's chain for a
+    /// forger-minted one and signs an owner move under it. Written through the store's own
+    /// framing (valid CRC32C and hash chain), carrying over the honest record's seal bytes.
+    /// Opened without a seal key (the behaviour on PR #100's head) the forger owns and
+    /// publishes the revision; opened with the server's seal key the rewrite changes nothing:
+    /// strict recovery refuses the store, torn-tail recovery applies neither record. A
+    /// rewrite resealed with another key is refused the same way.
+    #[test]
+    fn s101_whole_log_rewrite_swapping_an_admission_chain_changes_nothing_on_sealed_replay() {
+        const TORN: RecoveryPolicy = RecoveryPolicy::TruncateTornTail;
+        const STRICT: RecoveryPolicy = RecoveryPolicy::StrictFailClosed;
+        let owner: &[u8] = &[1, 2];
+        let honest_dir = temp_dir("s101-honest");
+        let mut s = open_sealed(&honest_dir, STRICT).unwrap();
+        let id = admit(&mut s, owner);
+        let honest = s.revision_records()[0].1.clone();
+        assert!(
+            honest.seal().is_some(),
+            "a sealed store seals what it writes"
+        );
+        drop(s);
+
+        let (forger, forger_links, forged_chain) = forger_chain();
+        let forged_move = SignedStateMove::sign_new(
+            &forger,
+            repo(),
+            id,
+            RevisionState::Draft,
+            &forger_links,
+            6_000,
+        )
+        .unwrap();
+        assert_eq!(forged_move.verify(), Ok(()));
+
+        for reseal in [None, Some(crate::RevisionSealKey::new(key_of(&[8])))] {
+            let dir = temp_dir("s101-forged");
+            // The rewrite: a fresh log holding the swapped admission and the forged move.
+            let mut w = match reseal.clone() {
+                None => open(&dir, STRICT).unwrap(),
+                Some(k) => open_sealed_with(&dir, STRICT, k).unwrap(),
+            };
+            let swapped = with_chain(honest.clone(), forged_chain.clone());
+            let blob = body(1);
+            w.append_revision_record(swapped, &[(BlobDigest::compute(&blob), &blob[..])], None)
+                .unwrap();
+            w.append_revision_record(moved(forged_move.clone()), &[], None)
+                .unwrap();
+            drop(w);
+
+            // Without a seal key the rewrite takes effect: the attack of issue #101.
+            let unsealed = open(&dir, STRICT).unwrap();
+            let rev = unsealed.get_revision(&repo(), id).unwrap();
+            assert_eq!(rev.state, RevisionState::Draft);
+            assert_eq!(rev.witnesses[0].chain, forged_chain);
+
+            let err = open_sealed(&dir, STRICT).err().unwrap();
+            assert_eq!(err.code, RefusalCode::RevisionRecordUnsealed, "{err:?}");
+            let s = open_sealed(&dir, TORN).unwrap();
+            assert_eq!(
+                s.get_revision(&repo(), id).unwrap_err().code,
+                RefusalCode::ChangesetNotFound,
+                "the swapped admission must change nothing"
+            );
+            let report = s.seal_replay_report();
+            assert_eq!(report.unsealed, 2, "{report:?}");
+            assert_eq!(report.first_unsealed, Some(WalSeq(1)));
+            assert_eq!(
+                s.state_move_replay_report(),
+                StateMoveReplayReport::default(),
+                "an unsealed move is not even considered"
+            );
+            let _ = std::fs::remove_dir_all(&dir);
+        }
+        let _ = std::fs::remove_dir_all(&honest_dir);
+    }
+
+    /// Records appended to a sealed store without the key (here by opening it without one)
+    /// change nothing on sealed replay; the honest records keep their meaning, the store
+    /// keeps sealing after them, and a torn-tail compaction drops exactly the unsealed
+    /// records so strict recovery accepts the store again with the same states and root.
+    #[test]
+    fn s101_appended_unsealed_records_change_nothing_and_compaction_restores_strict() {
+        const TORN: RecoveryPolicy = RecoveryPolicy::TruncateTornTail;
+        const STRICT: RecoveryPolicy = RecoveryPolicy::StrictFailClosed;
+        let owner: &[u8] = &[1, 2];
+        let dir = temp_dir("s101-appended");
+        let mut s = open_sealed(&dir, STRICT).unwrap();
+        let id = admit(&mut s, owner);
+        drop(s);
+
+        let (forger, forger_links, forged_chain) = forger_chain();
+        let forged = admission(forged_chain, &[7], 2);
+        let forged_id = match &forged {
+            WalRecord::RevisionAdmitted { envelope, .. } => envelope.changeset_id(),
+            _ => unreachable!(),
+        };
+        let mut w = open(&dir, STRICT).unwrap();
+        let blob = body(2);
+        w.append_revision_record(forged, &[(BlobDigest::compute(&blob), &blob[..])], None)
+            .unwrap();
+        let forged_move = SignedStateMove::sign_new(
+            &forger,
+            repo(),
+            forged_id,
+            RevisionState::Proposed,
+            &forger_links,
+            6_000,
+        )
+        .unwrap();
+        w.append_revision_record(moved(forged_move), &[], None)
+            .unwrap();
+        drop(w);
+
+        assert_eq!(
+            open_sealed(&dir, STRICT).err().unwrap().code,
+            RefusalCode::RevisionRecordUnsealed
+        );
+        let mut s = open_sealed(&dir, TORN).unwrap();
+        assert_eq!(s.seal_replay_report().unsealed, 2);
+        assert!(s.get_revision(&repo(), forged_id).is_err());
+        // The sealed chain continues after the unsealed records.
+        s.advance_revision_state(signed(owner, id, RevisionState::Draft), 6_500)
+            .unwrap();
+        drop(s);
+        let mut s = open_sealed(&dir, TORN).unwrap();
+        assert_eq!(
+            s.get_revision(&repo(), id).unwrap().state,
+            RevisionState::Draft
+        );
+        s.checkpoint_and_compact(7_000).unwrap();
+        assert_eq!(s.seal_replay_report().dropped_by_compaction, 2);
+        assert_eq!(s.seal_replay_report().unsealed, 0);
+        let root = s.state_root_digest(None).unwrap();
+        drop(s);
+        let s = open_sealed(&dir, STRICT).expect("strict accepts the compacted store");
+        assert_eq!(
+            s.get_revision(&repo(), id).unwrap().state,
+            RevisionState::Draft
+        );
+        assert!(s.get_revision(&repo(), forged_id).is_err());
+        assert_eq!(s.seal_replay_report(), SealReplayReport::default());
+        assert_eq!(s.state_root_digest(None).unwrap(), root);
+        let _ = std::fs::remove_dir_all(&dir);
+    }
+
+    /// The seal chain binds each record's sequence and the records before it: removing a
+    /// sealed record (its sequence filled by anything else), reordering two sealed
+    /// admissions (which would hand ownership to the second admitter), or changing any
+    /// field breaks the chain from that record on. The ledger applies nothing from there.
+    #[test]
+    fn s101_removed_reordered_or_edited_sealed_records_break_the_chain() {
+        let key = server_key();
+        let public = Some(key.public_key());
+        // Two admissions of the same content by different chains, then an owner move.
+        let first = admission(path(&[1, 2]), &[1, 2], 1);
+        let joiner = admission(path(&[3]), &[3], 1);
+        let id = match &first {
+            WalRecord::RevisionAdmitted { envelope, .. } => envelope.changeset_id(),
+            _ => unreachable!(),
+        };
+        let mut sealing = RevisionLedger::new(public);
+        let mut log = Vec::new();
+        for (n, mut r) in [
+            first,
+            joiner,
+            moved(signed(&[1, 2], id, RevisionState::Draft)),
+        ]
+        .into_iter()
+        .enumerate()
+        {
+            let seq = WalSeq(n as u64 + 1);
+            sealing.seal_record(&key, seq, &mut r);
+            sealing.apply(seq, r.clone());
+            log.push((seq, r));
+        }
+        let honest = RevisionLedger::from_log(log.clone(), public);
+        assert_eq!(honest.seal_report(), SealReplayReport::default());
+        let rev = honest.get_revision(&repo(), id).unwrap();
+        assert_eq!(rev.state, RevisionState::Draft);
+        assert_eq!(rev.witnesses[0].chain, path(&[1, 2]));
+
+        // Removed: the joiner's record is gone; the move after it no longer verifies.
+        let removed = vec![log[0].clone(), log[2].clone()];
+        let l = RevisionLedger::from_log(removed, public);
+        assert_eq!(l.seal_report().first_unsealed, Some(WalSeq(3)));
+        assert_eq!(
+            l.get_revision(&repo(), id).unwrap().state,
+            RevisionState::Private
+        );
+
+        // Reordered: the joiner first would own the revision; neither record verifies.
+        let reordered = vec![
+            (WalSeq(1), log[1].1.clone()),
+            (WalSeq(2), log[0].1.clone()),
+            log[2].clone(),
+        ];
+        let l = RevisionLedger::from_log(reordered, public);
+        assert_eq!(l.seal_report().unsealed, 3);
+        assert!(l.get_revision(&repo(), id).is_none());
+
+        // Edited: the first admission's time changed, everything after it is cut off.
+        let mut edited = log.clone();
+        if let WalRecord::RevisionAdmitted { admitted_at_ms, .. } = &mut edited[0].1 {
+            *admitted_at_ms += 1;
+        }
+        let l = RevisionLedger::from_log(edited, public);
+        assert_eq!(l.seal_report().unsealed, 3);
+
+        // Without a seal key the seals are carried but not checked.
+        let unchecked = RevisionLedger::from_log(log, None);
+        assert_eq!(unchecked.seal_report(), SealReplayReport::default());
+        assert_eq!(
+            unchecked.get_revision(&repo(), id).unwrap().state,
+            RevisionState::Draft
+        );
+    }
+
+    /// Issue #101 acceptance 2: a legitimate sealed store (admission, owner move, marker)
+    /// round-trips strict replay, checkpoint, and compaction unchanged, with the same state
+    /// root as the same operations in an unsealed store (the seal is not part of the root).
+    #[test]
+    fn s101_sealed_store_round_trips_replay_checkpoint_and_compaction() {
+        const STRICT: RecoveryPolicy = RecoveryPolicy::StrictFailClosed;
+        let owner: &[u8] = &[1, 2];
+        let run = |s: &mut SynapseStore| {
+            let id = admit(s, owner);
+            s.advance_revision_state(signed(owner, id, RevisionState::Draft), 6_000)
+                .unwrap();
+            let marker = ObsolescenceMarker::sign_new(
+                &key_of(owner),
+                repo(),
+                ChangeId([1; 16]),
+                id,
+                vec![],
+                6_100,
+            );
+            s.record_obsolescence(marker, path(owner), 6_200).unwrap();
+            id
+        };
+        let plain_dir = temp_dir("s101-plain");
+        let mut plain = open(&plain_dir, STRICT).unwrap();
+        run(&mut plain);
+        let plain_root = plain.state_root_digest(None).unwrap();
+
+        let dir = temp_dir("s101-roundtrip");
+        let mut s = open_sealed(&dir, STRICT).unwrap();
+        let id = run(&mut s);
+        assert_eq!(s.revision_records().len(), 3);
+        assert!(s.revision_records().iter().all(|(_, r)| r.seal().is_some()));
+        assert_eq!(s.state_root_digest(None).unwrap(), plain_root);
+        drop(s);
+        let check = |s: &SynapseStore| {
+            assert_eq!(
+                s.get_revision(&repo(), id).unwrap().state,
+                RevisionState::Draft
+            );
+            assert_eq!(
+                s.change_status(&repo(), ChangeId([1; 16]))
+                    .unwrap()
+                    .obsolete,
+                vec![id]
+            );
+            assert_eq!(s.seal_replay_report(), SealReplayReport::default());
+            assert_eq!(s.state_root_digest(None).unwrap(), plain_root);
+        };
+        let mut s = open_sealed(&dir, STRICT).unwrap();
+        check(&s);
+        s.checkpoint_and_compact(7_000).unwrap();
+        check(&s);
+        // Writing after the checkpoint continues the same chain.
+        s.advance_revision_state(signed(owner, id, RevisionState::Proposed), 7_100)
+            .unwrap();
+        drop(s);
+        let s = open_sealed(&dir, STRICT).unwrap();
+        assert_eq!(
+            s.get_revision(&repo(), id).unwrap().state,
+            RevisionState::Proposed
+        );
+        assert_eq!(s.seal_replay_report(), SealReplayReport::default());
+        drop(s);
+        // An existing unsealed store is refused by strict sealed recovery: its records
+        // predate the seal and cannot be told apart from forgeries.
+        drop(plain);
+        assert_eq!(
+            open_sealed(&plain_dir, STRICT).err().unwrap().code,
+            RefusalCode::RevisionRecordUnsealed
+        );
+        let _ = std::fs::remove_dir_all(&dir);
+        let _ = std::fs::remove_dir_all(&plain_dir);
+    }
+
+    /// The segment store (group commit) seals and replays the same way.
+    #[test]
+    fn s101_group_commit_store_seals_and_replays() {
+        const STRICT: RecoveryPolicy = RecoveryPolicy::StrictFailClosed;
+        let owner: &[u8] = &[1, 2];
+        let dir = temp_dir("s101-group");
+        let reopen = || {
+            let limits = StoreLimits {
+                wal_prealloc_bytes: 64 * 1024,
+                ..Default::default()
+            };
+            let fsync = FsyncPolicy::GroupCommit {
+                max_batch_records: 8,
+                max_batch_delay_us: 0,
+            };
+            SynapseStore::open_sealed(&dir, fsync, STRICT, limits, server_key()).unwrap()
+        };
+        let mut s = reopen();
+        let id = admit(&mut s, owner);
+        s.advance_revision_state(signed(owner, id, RevisionState::Draft), 6_000)
+            .unwrap();
+        assert!(s.revision_records().iter().all(|(_, r)| r.seal().is_some()));
+        drop(s);
+        let mut s = reopen();
+        assert_eq!(
+            s.get_revision(&repo(), id).unwrap().state,
+            RevisionState::Draft
+        );
+        s.checkpoint_and_compact(7_000).unwrap();
+        s.advance_revision_state(signed(owner, id, RevisionState::Proposed), 7_100)
+            .unwrap();
+        drop(s);
+        let s = reopen();
+        assert_eq!(
+            s.get_revision(&repo(), id).unwrap().state,
+            RevisionState::Proposed
+        );
+        assert_eq!(s.seal_replay_report(), SealReplayReport::default());
+        let _ = std::fs::remove_dir_all(&dir);
+    }
+
+    /// The seal trailer is canonical: sealed records of every kind round-trip the binary
+    /// codec, an unsealed record ends at its body, a trailer cut short is `Truncated`, and
+    /// bytes that do not open with the seal tag, or follow a seal, are `TrailingBytes`.
+    #[test]
+    fn s101_seal_trailer_round_trips_and_malformed_trailers_are_refused_typed() {
+        let key = server_key();
+        let id = ChangesetId(derived("changeset", &[1]));
+        let marker = ObsolescenceMarker::sign_new(
+            &key_of(&[1]),
+            repo(),
+            ChangeId([1; 16]),
+            id,
+            vec![],
+            6_100,
+        );
+        let records = [
+            admission(path(&[1, 2]), &[1, 2], 1),
+            moved(signed(&[1, 2], id, RevisionState::Draft)),
+            WalRecord::ObsolescenceRecorded {
+                marker,
+                chain: path(&[1]),
+                recorded_at_ms: 6_200,
+                seal: None,
+            },
+        ];
+        let cap = 1 << 20;
+        for mut record in records {
+            let unsealed = crate::codec::encode_record(&record).unwrap();
+            let ledger = RevisionLedger::new(Some(key.public_key()));
+            ledger.seal_record(&key, WalSeq(1), &mut record);
+            let sealed = crate::codec::encode_record(&record).unwrap();
+            assert_eq!(sealed.len(), unsealed.len() + 97);
+            assert_eq!(&sealed[..unsealed.len()], &unsealed[..]);
+            assert_eq!(crate::codec::decode_record(&sealed, cap).unwrap(), record);
+            let mut bad_tag = sealed.clone();
+            bad_tag[unsealed.len()] = 2;
+            assert!(matches!(
+                crate::codec::decode_record(&bad_tag, cap),
+                Err(crate::CodecRefusal::TrailingBytes { .. })
+            ));
+            for cut in unsealed.len() + 1..sealed.len() {
+                assert!(matches!(
+                    crate::codec::decode_record(&sealed[..cut], cap),
+                    Err(crate::CodecRefusal::Truncated { .. })
+                ));
+            }
+            let mut extra = sealed.clone();
+            extra.push(0);
+            assert!(matches!(
+                crate::codec::decode_record(&extra, cap),
+                Err(crate::CodecRefusal::TrailingBytes { .. })
+            ));
+        }
+    }
 }
diff --git a/crates/synapse-store/src/seal.rs b/crates/synapse-store/src/seal.rs
new file mode 100644
index 0000000..7eaeb69
--- /dev/null
+++ b/crates/synapse-store/src/seal.rs
@@ -0,0 +1,107 @@
+//! Keyed seal over revision records (issue #101).
+//!
+//! The WAL frame chain (CRC32C plus an unkeyed SHA-256 chain) and the checkpoint state root
+//! detect corruption, not forgery: anyone who can rewrite the whole log can recompute both.
+//! Kinds 7 and 8 carry a `chain` field that no signature in the record covers, so such a
+//! rewrite could swap an admission's chain for links the forger minted and then sign kind 9
+//! moves under them. A store opened with a [`RevisionSealKey`] (the server's machine key)
+//! closes that: every revision record it writes (kinds 7, 8, 9, and 11) carries a
+//! [`RevisionSeal`], an Ed25519 signature by that key over a running head that chains the
+//! record's `WalSeq`, its full record digest (every field, chain included), and the head of
+//! the previous sealed record. Replay applies a revision record only when its seal verifies
+//! against the head so far, so a changed, inserted, reordered, or removed revision record
+//! breaks the chain from that point on. Strict recovery refuses such a store
+//! (`RevisionRecordUnsealed`).
+//!
+//! Layout (ADR 0003 principle P5): the seal is an optional trailer after the record body,
+//! `1 u8 | server_key [32] | signature [64]`; a record without it ends at its body.
+//!
+//! * head 0 = 32 zero bytes;
+//! * head n = `SHA-256(DOMAIN_REVISION_SEAL_HEAD_V1 || head n-1 || seq u64le || record digest)`;
+//! * signature n = Ed25519 over `DOMAIN_REVISION_SEAL_SIGN_V1 || head n`, checked with
+//!   `verify_strict` under the configured key, which must not be a small-order key.
+
+use ed25519_dalek::{Signature, Signer, SigningKey, VerifyingKey};
+use sha2::{Digest, Sha256};
+use synapse_core::WalSeq;
+
+/// Domain tag of the running seal head.
+pub const DOMAIN_REVISION_SEAL_HEAD_V1: &[u8] = b"SYNAPSE_REVISION_SEAL_HEAD_V1\0";
+/// Domain tag of the server's signature over one seal head.
+pub const DOMAIN_REVISION_SEAL_SIGN_V1: &[u8] = b"SYNAPSE_REVISION_SEAL_SIGN_V1\0";
+/// Tag byte that opens the seal trailer of a revision record.
+pub const REVISION_SEAL_TAG: u8 = 1;
+
+/// The server's seal on one revision record: the key that signed and its signature over the
+/// running head at that record.
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub struct RevisionSeal {
+    pub server_key: [u8; 32],
+    pub signature: [u8; 64],
+}
+
+/// The server machine key a store seals revision records with (and verifies them against on
+/// replay). The key never comes from the log: the operator hands it to
+/// [`crate::SynapseStore::open_sealed`].
+#[derive(Clone)]
+pub struct RevisionSealKey(SigningKey);
+
+impl RevisionSealKey {
+    pub fn new(key: SigningKey) -> Self {
+        Self(key)
+    }
+
+    /// The public half: what a seal must name and verify under.
+    pub fn public_key(&self) -> [u8; 32] {
+        self.0.verifying_key().to_bytes()
+    }
+
+    pub(crate) fn seal(&self, head: &[u8; 32]) -> RevisionSeal {
+        RevisionSeal {
+            server_key: self.public_key(),
+            signature: self.0.sign(&signable(head)).to_bytes(),
+        }
+    }
+}
+
+impl std::fmt::Debug for RevisionSealKey {
+    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+        f.debug_tuple("RevisionSealKey")
+            .field(&hex::encode(self.public_key()))
+            .finish()
+    }
+}
+
+fn signable(head: &[u8; 32]) -> Vec<u8> {
+    let mut buf = Vec::with_capacity(DOMAIN_REVISION_SEAL_SIGN_V1.len() + 32);
+    buf.extend_from_slice(DOMAIN_REVISION_SEAL_SIGN_V1);
+    buf.extend_from_slice(head);
+    buf
+}
+
+/// The head after the record at `seq` with digest `record_digest`, following `prev`.
+pub(crate) fn next_head(prev: &[u8; 32], seq: WalSeq, record_digest: &[u8; 32]) -> [u8; 32] {
+    let mut h = Sha256::new();
+    h.update(DOMAIN_REVISION_SEAL_HEAD_V1);
+    h.update(prev);
+    h.update(seq.0.to_le_bytes());
+    h.update(record_digest);
+    h.finalize().into()
+}
+
+impl RevisionSeal {
+    /// True when the seal names `expected_key` (not a small-order key) and its signature over
+    /// `head` verifies strictly.
+    pub(crate) fn verifies(&self, expected_key: &[u8; 32], head: &[u8; 32]) -> bool {
+        if &self.server_key != expected_key {
+            return false;
+        }
+        let Ok(key) = VerifyingKey::from_bytes(expected_key) else {
+            return false;
+        };
+        !key.is_weak()
+            && key
+                .verify_strict(&signable(head), &Signature::from_bytes(&self.signature))
+                .is_ok()
+    }
+}
diff --git a/crates/synapse-store/tests/b1_change_identity.rs b/crates/synapse-store/tests/b1_change_identity.rs
index c216e7d..a587965 100644
--- a/crates/synapse-store/tests/b1_change_identity.rs
+++ b/crates/synapse-store/tests/b1_change_identity.rs
@@ -559,11 +559,13 @@ fn b1_revision_records_round_trip_and_malformed_bytes_are_refused_typed() {
             chain: c.w1.clone(),
             admitted_at_ms: 5,
             new_blobs: vec![BlobDigest::compute(b"x")],
+            seal: None,
         },
         WalRecord::ObsolescenceRecorded {
             marker: marker(&key(2), env.changeset_id(), vec![ChangesetId([3; 32])]),
             chain: c.o.clone(),
             recorded_at_ms: 6,
+            seal: None,
         },
     ];
     for record in records {
diff --git a/crates/synapse-store/tests/b4_revision_states.rs b/crates/synapse-store/tests/b4_revision_states.rs
index 90bf3be..de0f4f8 100644
--- a/crates/synapse-store/tests/b4_revision_states.rs
+++ b/crates/synapse-store/tests/b4_revision_states.rs
@@ -562,6 +562,7 @@ fn b4_state_move_records_round_trip_and_malformed_bytes_are_refused_typed() {
     let record = WalRecord::RevisionStateMoved {
         state_move: signed(w1, id, RevisionState::Proposed, 7),
         moved_at_ms: 8,
+        seal: None,
     };
     let bytes = encode_record(&record).unwrap();
     assert_eq!(record.kind_byte(), 9);
diff --git a/crates/synapse-store/tests/b5_derived_record.rs b/crates/synapse-store/tests/b5_derived_record.rs
index fb8bc24..d8efc27 100644
--- a/crates/synapse-store/tests/b5_derived_record.rs
+++ b/crates/synapse-store/tests/b5_derived_record.rs
@@ -76,6 +76,7 @@ fn b5_derived_revision_records_round_trip_and_malformed_bytes_are_refused_typed(
         derived,
         chain: ChainPath::new(vec![label("chain")]).unwrap(),
         admitted_at_ms: 7,
+        seal: None,
     });
     for record in records {
         assert_eq!(record.kind_byte(), 11);
diff --git a/docs/B4_REVISION_STATES.md b/docs/B4_REVISION_STATES.md
index ffd1d6c..9a5167f 100644
--- a/docs/B4_REVISION_STATES.md
+++ b/docs/B4_REVISION_STATES.md
@@ -61,8 +61,8 @@ Red before green: each acceptance test was run against the B4 commit with one mu
 * `Verified` is not reachable yet: it is recorded when claims (B3) and required-action receipts (E1) are discharged on the exact tree. `Canonical` is reached only by the promotion queue (E2), which does not exist yet; `CanonicalPromoted` (the canonical reference head) is unchanged and does not consult revision states.
 * An identical-content admission from a chain that may not see the existing `Private` revision joins it (B1 identity covers content only) and reports `joined_existing_revision`. That reveals only that the same content already exists under the change (which the joiner already holds); the joiner gains no ownership, cannot read the owner's witnesses or attestations, and cannot publish the revision.
 * The cost of that restrictive reading: a joiner outside the owner chain cannot read, name as a parent, or mark the revision it submitted itself until the owner shares it. The reverse exposure remains: when the owner publishes, every joiner's attestation (its authorship) becomes visible with the revision without that joiner's consent; this matters only for a joiner the owner could not already see (a change-scope joiner outside the owner's subtree). Low.
-* **Signed moves (issue #89), what they do not cover.** Replay binds a move to the key the chain's leaf link names, but the chain digests themselves come from the unkeyed log. An attacker who can rewrite and reseal the whole WAL can still change a kind 7 admission's chain field to links of their own making and then sign moves under those links; that needs edits to kind 7 records, not only appended kind 9 records. Closing it needs kind 7 and 8 records that carry their leaf link too, or a keyed seal or chain anchor; that is a follow-up.
-* **Kinds 7 and 8 are not re-verified at replay.** Their envelope and marker signatures were checked on admission; re-checking only the signature on replay would not bind the unsigned `chain` field next to it (see the bullet above), so it is left for the same follow-up as that binding.
+* **Signed moves (issue #89), what they do not cover; closed by the revision seal (issue #101).** Replay binds a move to the key the chain's leaf link names, but the chain digests themselves come from the unkeyed log, and no signature in a kind 7 or 8 record covers its `chain` field. An attacker who can rewrite and reseal the whole WAL could change a kind 7 admission's chain field to links of their own making and then sign moves under those links. Issue #101 chose option 2 of its three, a keyed log seal, see section 6: a store opened with `SynapseStore::open_sealed` (or `SynapseService::open_sealed`) and the server's machine key refuses such a rewrite. A store opened with `open` keeps the old behaviour and stays exposed to it.
+* **Kinds 7 and 8 are not re-verified at replay.** Their envelope and marker signatures were checked on admission; re-checking only the signature on replay would not bind the unsigned `chain` field next to it. In a sealed store the seal covers every field of the record (chain included), so re-verifying the signatures adds nothing against a rewrite without the server key; option 1 of issue #101 (carrying the full links and binding the chain under the agent's signature) is not done.
 * **Mover time.** The issue asks for `moved_at_ms` under the signature. The agent cannot sign the server's clock, so the mover signs its own `signed_at_ms` (the precedent of obsolescence markers: signed `signed_at_ms`, server `recorded_at_ms`); the record keeps both, and the state root covers both.
 * **`signed_at_ms` is self-reported.** It is never checked against the server clock or the leaf link's `issued_at_ms`/`expires_at_ms` window, on the API path or at replay, so it is not evidence of when the mover acted. Replay does not re-check revocation or expiry of the leaf link either: a stolen leaf key whose link was later revoked, together with write access to the WAL, yields a move that verifies. That needs both at once; low.
 * **`verify()` binds, it does not authorize.** `SignedStateMove::verify` never checks the leaf link's issuer or caveats; it is safe only together with the owner rule (the chain is or dominates the first admission's chain), which pins the leaf to an admitted link. Its doc comment states this precondition for any future caller; a descendant chain is not enough.
@@ -74,3 +74,23 @@ Red before green: each acceptance test was run against the B4 commit with one mu
 * Store-level `get_revision` and `change_status`, and `SynapseService::store()`, are unfiltered server-side reads; callers acting for an agent use the `_visible_to` reads or `read_revision`. Subscriptions, search, and predictions (section 5.7) do not exist yet and must filter the same way when they are built.
 * Revision reads are not snapshot-bounded yet (as in B1).
 * No performance figures: B4 has no hot-path acceptance, and none were measured.
+
+## 6. Revision seal (issue #101)
+
+Code: `crates/synapse-store/src/seal.rs` (`RevisionSeal`, `RevisionSealKey`, the head and signature), `crates/synapse-store/src/revision.rs` (checking at replay, sealing on write, compaction), `crates/synapse-store/src/codec.rs` (the trailer), `crates/synapse-store/src/lib.rs` (`open_sealed`, strict refusal). Tests: the `s101_` tests in `crates/synapse-store/src/revision.rs`.
+
+* **Choice.** Of the options in issue #101 (1: re-verify kinds 7 and 8 and bind the chain into what is verified; 2: a keyed seal by the server machine key; 3: both), this is option 2. Option 1 alone does not close the attack: the agent's authorship signature does not cover the chain, and the store holds no repository trust root at replay, so a rewriter could still attach a self-minted chain whose leaf is the author's key. Closing it that way needs a new signed envelope layout (a protocol change for every agent) and trust roots in the store. The seal covers every field of kinds 7, 8, 9, and 11 with no client change.
+* **What is sealed.** Every revision record a store opened with a `RevisionSealKey` writes. The seal is an Ed25519 signature (`ed25519-dalek`, `verify_strict`, small-order keys refused) by that key over a running head: head 0 is 32 zero bytes, head n = `SHA-256("SYNAPSE_REVISION_SEAL_HEAD_V1\0" | head n-1 | seq u64 | record digest)`, signature n over `"SYNAPSE_REVISION_SEAL_SIGN_V1\0" | head n`. The record digest is the state-root record digest of section 3 (every field, `chain` included; the seal itself excluded). The store writes the record at exactly the sequence it sealed for (the `checked_at` rule of B5).
+* **Layout.** An optional trailer after the record body: `1 u8 | server_key [32] | signature [64]`. An unsealed record ends at its body, so every existing record still decodes. Bytes after a body that do not open with tag 1 are `TrailingBytes`; a cut trailer is `Truncated`.
+* **Replay.** With a seal key, a revision record is applied only when its seal names that key and verifies against the head so far; otherwise it stays in the log and the state root, changes nothing (an unsealed kind 7 does not even make its blobs visible), and does not move the head. So a changed, inserted, or reordered revision record, or one removed from the middle, breaks the chain from that record on. `StrictFailClosed` refuses the store with `RevisionRecordUnsealed`; `TruncateTornTail` opens it and reports `SealReplayReport { unsealed, first_unsealed, dropped_by_compaction }` (`SynapseStore::seal_replay_report`). `checkpoint_and_compact` then leaves out exactly the unsealed records (sealed ones always stay, so the chain stays whole), and strict recovery accepts the store again. Without a seal key, seals are carried through checkpoints but not checked.
+* **State root.** Unchanged: the seal is not part of the record digest, so a sealed store and an unsealed store that ran the same operations have the same root.
+
+Limits:
+
+* **Opt in.** `SynapseStore::open` and `SynapseService::open` do not seal or check. Whoever deploys a server must open with `open_sealed` and the server machine key; the key never comes from the log.
+* **Existing stores.** A store with revision records written before it was sealed is refused by strict sealed recovery (its records cannot be told from forgeries). Torn-tail recovery plus a compaction drops them. A migration that adopts existing records under an operator's explicit decision is a follow-up.
+* **Rollback.** Removing revision records from the end of the log (or replacing the whole store with an older copy) is not detected: the seal proves records were written by the key holder, not that none came after. That needs an external anchor (a monotonic counter or a published head), as for anti-rollback elsewhere.
+* **Key compromise and rotation.** Whoever holds the server key can seal anything; this is the same trust as B5 derivations. One key per store: a rotated key makes strict recovery refuse every record sealed under the old key. Accepting retired keys, or checking the seal key against the identity document (`server_key` at the sequence, as B5 does), is a follow-up.
+* **Replica verification.** `verify_revision_log` (replicas, B5) does not check seals.
+* **Cost.** One Ed25519 signature per revision write and one or two verifications per revision record on replay (two for kinds 7 and 11). Not measured.
+