How a broker and custodian enforce a policy · Chapter 6 of 6

V. Complete Mediation, Temporal Consistency, and Replay Resistance

For the four-stage ledger architecture to sustain its security guarantees under continuous production loads, three subtle engineering invariants, complete mediation, temporal consistency at commitment, and deterministic replay resistance, must be enforced across every participating service.

First, the principle of complete mediation, articulated by Jerome Saltzer and Michael Schroeder in 1975, requires that every access path to every protected object be checked for authority without exception. Routing primary user interactions through a four-stage certified ledger achieves nothing if an archive administrator leaves open a legacy maintenance port, an unauthenticated internal administrative API, or a background batch-processing script that accepts direct commands from internal workstations. If an overlooked backup interface accepts the reviewing officer’s credential directly without broker endorsement, a malicious director or a sophisticated rogue agent discovering that interface can bypass the ledger entirely. Consequently, achieving structural isolation requires closing every direct network socket and application route on every custodian host, ensuring that the certified ledger interface constitutes the sole operational ingress for routine tasks, background jobs, and administrative maintenance alike.

Second, the architecture must enforce temporal consistency across the interval separating broker endorsement from custodian commitment. Distributed systems inevitably experience latency between the moment a policy broker validates a request at Stage Two and the moment a resource custodian reads that endorsed entry and commits the action at Stage Three. During that brief interval, the human principal may revoke the grant, a shared credit allowance may be exhausted by a parallel worker, or a security violation on another node may trigger an immediate suspension of the requesting machine. A custodian cannot treat a broker’s earlier endorsement as a permanent license to execute; instead, the custodian must verify current eligibility, checking active revocation lists, current membership standing, and live budget balances, at the exact instant of commitment. Conversely, if a custodian loses network connectivity to the membership state authority and cannot verify whether a grant remains active, it must fail closed, holding all pending protected operations until current state is reconciled. Similarly, if an archive service is restored from a historical backup snapshot after a hardware failure, it must reconcile its local state against the immutable ledger’s latest signed checkpoints before resuming operations, preventing yesterday’s revoked grants or spent budgets from being resurrected by stale backup files.

Third, the execution protocol must guarantee idempotency and replay resistance so that network retries cannot be exploited to multiply authorized actions or substitute altered parameters. In asynchronous ledger environments, a notification message alerting a worker that its reply is ready may be delayed or dropped, prompting a legitimate worker to resubmit its request or prompting a rogue agent to replay an endorsed entry in hopes of triggering duplicate execution. Because every request is bound to a unique operation identifier and a cryptographic digest of its canonical bytes, the custodian maintains a durable operation journal recording the exact status of every accepted identifier. If an identical retry of a completed operation arrives, the custodian recognizes the existing operation identifier, withholds duplicate execution, and returns a reference to the original signed receipt. If an adversary or rogue agent attempts to reuse an endorsed operation identifier while altering even a single parameter, such as changing the destination address or incrementing a transfer amount, the digest check fails immediately, exposing an attempted substitution attack and triggering immediate boundary refusal.