Normative · Part
Errors, limits and timers
Every bound below is normative. Each links to the mechanism it constrains, because a constant without its mechanism is not implementable.
35. Fail-closed inventory
Section titled “35. Fail-closed inventory”The single most important table in this specification: every boundary where SSP/1 chooses safety over availability.
| Condition | Behaviour | Defined in |
|---|---|---|
| Invalid event signature | Drop and surface — never hold, so a forger cannot stall the impersonated node’s stream | semantics |
Unknown sender kid |
Drop and surface | data model |
| Unknown critical COSE header or content type | Reject | registry |
| Clock skew beyond bound | Reject, never clamp | data model |
| Watermark advance past a skew-rejected event | Never advance — the rejected HLC is above every honest one, so advancing would acknowledge the site’s whole unapplied backlog | data model |
| HLC beyond the observe bound | Apply under the accept bound, never merge the clock, surface | data model |
| No HLC high-water mark covering every event the node has released, or a mark that fails its integrity check | Refuse to stamp further events under that site_id — never resume from the wall clock. Surface the two as distinct conditions |
data model |
| Out-of-scope event | Drop and log, never raise | semantics |
row_key null, empty, or naming any column the destination lacks |
Drop — never partially resolve a key, which would address every row sharing the surviving prefix | semantics |
| No matching policy row | Deny | scope |
| Incomparable maximal policy rows | Deny and log, never guess open | scope |
Record whose issuer is not in the admission authority head’s admins |
Drop and surface, whatever its signature | scope |
| Forked admission authority chain | Read admins as the intersection of the last unforked link and every branch head — never one branch, and never the pre-fork set alone. Surface |
scope |
| Purge requested | Error, never downgrade to soft delete | scope |
Identity conflict on existing site_id |
Hard fail, never overwrite | identity |
| Second removal record for one target | Surface as a fork. The first accepted record stands, and the cutoff never moves for the second | identity |
Removal closure whose kid, target_site_id or signer does not match the removal record it names |
Drop and surface — a closure’s authority is the removal it names, and no other key attests for it | identity |
| Removal closure for a removal record the verifier does not hold | Hold, keyed on removal_id, at most one per (kid, target_site_id); drop and surface a second for the same pair |
identity |
| Removal closure arriving from a sending peer that already has 8 held | Drop and surface — never hold it, and never verify its signature to decide | identity |
| Second removal closure for one removal | Surface as a fork. The first accepted closure stands, and the second refuses and quarantines nothing | identity |
Removal closure whose kid is its target_site_id |
Drop and surface at decoding, before the hold, so it costs no hold slot — a self-removal carries no closure | identity |
| Removal closure over the closure tables bound or entries bound | Drop and surface the whole closure, never truncate it; the removal keeps the behaviour it has without one | §36 |
Event of a removed site_id in a closed window and not in the removal closure |
Drop and surface as not in closure — never hold, never reject, and advance the watermark | semantics |
| Pairing signature failure | Abort, no downgrade | identity |
| Pairing offer does not match its commitment | Abort, no downgrade — the offer is not the one the peer committed to | identity |
| Malformed pairing message | Reject and abort, no downgrade — a commitment, offer or transcript signature with a missing, extra or mis-sized member, a non-canonical encoding, or a site_id that does not derive from ik_pub, refused at the wire before any transition and before any secret is spent |
identity |
| Pairing ceremony deadline exceeded | Abort — never extend the deadline, and never resume the ceremony that ran past it | identity |
Node below a policy-required key_protection level |
Refuse, never admit at a lower level | identity |
hardware_attested claimed with absent, malformed, expired, revoked or mismatched evidence |
Treat as software — never as hardware_unattested |
SOP/1 §5.2 |
| Attestation revocation data unobtainable or stale beyond the configured bound | Treat the attestation as unverified | SOP/1 §5.2 |
| Non-compressed encoding of a node root public key | Reject — never convert | signature profile |
| Non-low-S signature | Reject — never normalise | signature profile |
| DER-encoded or non-64-byte signature | Reject | signature profile |
| Public key failing point validation | Reject before use | signature profile |
| Hardware signer’s verify-after-sign check fails | Abort — never release the signature | SOP/1 §5.4 |
| Conformance claim naming a module identifier the registry does not register | Reject the claim — never ignore the identifier and evaluate the rest | registry |
supports_realtime: true about to be advertised by an implementation that does not claim SOVM-SYNC-RT, or on a binding that cannot carry unsolicited one-way bodies |
Advertise false — never advertise a capability not held |
messages |
Unknown ssp_version |
Refuse the exchange | messages |
| Synchronization payload length is not a Padmé target | Reject the frame and close the session — never read the body | transport |
| Malformed sync body | Reject | messages |
Unsolicited push without mutual supports_realtime |
Reject | messages |
| NaN or infinity in canonical CBOR | Refuse to serialize | data model |
Eight of the signature-path rows exist because a signature algorithm with more than one encoding of a signature and of a public key has more boundaries than one with a unique encoding. Rejecting the other encodings keeps every verifier’s acceptance set the same (signature profile §7); a record’s identity does not rest on them, since it is derived from the signed input (record identity), but a key’s still does (§9). The two conformance-claim rows are where the module-set assertion of registry §55.1 becomes checkable on the wire, because an assertion nothing checks is not an assertion.
The one deliberate exception is eviction, which fails open and keeps the row. The asymmetry is the justification: failing open wastes local storage, failing closed destroys data.
Volume is deliberately absent from the table, and its absence should not read as an oversight. An authorized peer that floods a receiver with well-formed events — including the existence-only upserts that semantics §13.6 makes cheap to produce — crosses no boundary at all: it is inside the trust boundary, its signatures verify, and every row above passes it through. Fail-closed has nothing to close on. The bound is §37 instead, whose receiver-side limits — materialization batch size and backfill rows per cycle — a receiver enforces on its own authority rather than trusting the sender’s events-per-response, together with whatever rate control the binding supplies.
The held-closure ceiling is a number, not an implementation-chosen limit, because
the hold sits before authentication: a closure is held when the verifier does not
yet hold the removal it names, so its kid, removal_id and target_site_id are
all unauthenticated, and a ceiling one implementation may raise is a memory budget a
hostile transport peer chooses. The ceiling counts held closures per sending peer —
the peer whose session or mailbox delivery carried the record — however many distinct
pairs that peer presents. Eight is the number: a sending peer offers a closure in the
same exchange body or mailbox delivery as its removal record
(identity §22.3), so a verifier holds an
honest peer’s closure only while its removal is still in flight, and a mesh of
personal devices has fewer removals in flight from one peer than that. Within the
ceiling a peer can still fill its own eight slots with junk, attributably and
boundedly, which is the residual of every hold that precedes authentication.
36. Normative bounds
Section titled “36. Normative bounds”| Bound | Value | Rationale |
|---|---|---|
| Clock skew tolerance | 300 000 ms | Bounds a hostile clock’s ability to win every future comparison |
| Clock observe bound | 60 000 ms | Bounds how far one fast clock can drag its peers’ clocks; a dragged clock stays 240 000 ms inside every honest receiver’s skew tolerance |
| Vouch validity | 86 400 s | Long enough to seat a node across a brief outage; short enough to bound replay |
| Vouch future-dating tolerance | 300 s | Accommodates ordinary clock drift between honest nodes |
| Vouch quorum k | 2 where the mesh has 3+ nodes, else 1 | A quorum is meaningless below three participants |
| SAS strength | ~39.9 bits | log₂(10¹²), one guess per ceremony: the offer commitment fixes each side’s offer before the other’s is known; see SAS |
| Fingerprint display | First 4 bytes of site_id |
Display aid only, never an authentication input |
| Closure entries bound | 65 536 (2¹⁶) entries in one table’s applied |
Above a table the shenas workload fills in two years. A signer omits a table that would exceed it, and surfaces the omission |
| Closure tables bound | 1 024 tables in one closure | An order of magnitude above a deployed schema’s syncable tables; without it the entries bound bounds nothing |
The two closure bounds are constants, not implementation-chosen limits, for the reasons the held-closure ceiling is a number. A bound one verifier may raise makes the same closure accepted at one member and dropped at another, so the members refuse different events and their state drifts, and one admin’s over-sized record would be enough to split a mesh. And the bounds are checked when the closure decodes, before its signature, so a raisable bound is a decode budget a hostile transport peer chooses. A table that outgrows the entries bound stays open, and the omission surfaced at the act is where that shows; raising a bound is a revision of this specification.
37. Implementation-chosen limits
Section titled “37. Implementation-chosen limits”These MUST be documented but are not fixed by the protocol, because the right value depends on deployment rather than on correctness.
| Limit | Constraint |
|---|---|
| Events per sync response | Finite; MUST be enforced by the sender |
| Materialization batch size | Finite |
| Backfill rows per cycle | Finite |
| Sync cycle interval | The retry unit; there is no separate backoff protocol. MUST keep running in realtime mode |
| Realtime push cadence | Implementation- or policy-chosen; a fixed cadence trades latency for timing-channel flatness |
| HLC reservation window | Finite, and below the clock observe bound with margin. A node resumes at the reserved physical component, so a window at or above the bound resumes it into a value its peers apply and do not merge |
| Mailbox retention | Finite and stated |
| Mailbox quota | Optional; MUST reject rather than silently drop |
| KeyPackage stock size | The number of single-use packages a node maintains in the §25.2 directory |
| KeyPackage replenishment low-water mark | The stock level below which a node MUST replenish; MUST be above zero so last-resort is not the first response to a depleted stock in the normal case |
| Pairing ceremony deadline | Finite, fixed when the machine enters idle, and spanning the whole ceremony rather than restarting per transition. The only limit here gated on human reaction time rather than on a round trip, which is why nothing on the wire carries it and why too tight a value is its failure mode |
38. Error handling posture
Section titled “38. Error handling posture”SSP/1 distinguishes three responses, and conflating them is the common implementation error:
- Reject — refuse this item, surface it, retain nothing, continue processing others.
- Hold — refuse this group for now, do not advance the watermark past it, retry next cycle. For conditions that may resolve.
- Drop — discard permanently, advance the watermark. For conditions that will not resolve, and for anything a hostile peer could otherwise use to stall the apply loop.
Hold and drop each settle the watermark; reject does not settle it on its own, so every rejecting condition MUST state its own. A rejection that is a property of the bytes alone can never resolve, so the watermark advances past it. The clock skew bound is the one rejection that turns on receiver-local state rather than on the bytes — it resolves as the receiver’s clock advances — so there the watermark does not advance and the next re-offer succeeds. An HLC beyond the observe bound and within the skew bound is not a rejection: the event is applied and its watermark settles, and only the clock merge is withheld.
An implementation MUST NOT raise an exception that halts the apply loop on peer-supplied input. A single malformed event from one peer must not stop replication with every other peer.