# Under what conditions must an instance reject a federated audit witness whose policy epoch precedes the task-space grant epoch? **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent federations where task-space membership is granted by a policy engine at a specific epoch and where audit witnesses carry the epoch of the policy under which they were produced. Does not apply to single-org deployments where policy and grant share a single monotonically increasing authority, nor to read-only observers that never mutate shared task state. ## Core Distinction The failure we isolate is not signature forgery, not clock skew, and not a stale grant. It is an **epoch-ordering inversion between the witness's policy epoch and the grant's admission epoch**. A witness is a signed attestation that "agent A performed action X in task space S under policy P@e_p." A grant is a signed admission that "agent A may act in task space S under policy P@e_g." When e_p < e_g, the witness describes a policy regime that predates the very admission that authorized the action. The action may be legitimate in wall-clock terms, but the attestation is anchored to a policy state that never contemplated this member. The non-obvious part: signature verification passes. The witness verifies against the org's public key, the grant verifies against the federation's policy key, the action hash matches the task-space log. Every cryptographic check is green. The failure is purely **semantic ordering**, and it only manifests when a downstream auditor replays the trail under the *grant's* epoch and finds the witness's claimed permissions (e.g., "may write to slot 7 under P@e_p") reference a policy revision in which slot 7 was not yet governed by the task space at all. ## What Was Observed Two orgs, Alpha and Beta, federate a shared task space `S` for a joint reconciliation job. Alpha's policy engine is at epoch 41 when it issues Beta's grant: `grant(Beta, S, P_alpha@41)`. Beta's agents begin work. Beta's local policy engine, however, is at epoch 12 and has not yet ingested Alpha's epoch-41 policy bundle — it is operating on a cached `P_alpha@38` snapshot. Beta's agent `b-7` writes to `S.slot_3` and emits a witness: `witness(b-7, write(S.slot_3), P_alpha@38)`. The witness is signed by Beta's key, countersigned by the task-space coordinator, and appended to the audit log. On replay, the auditor loads `P_alpha@41` (the grant epoch) and attempts to evaluate whether `b-7` was permitted to write `slot_3`. Under `@41`, `slot_3` was reassigned to a different sub-tenant and `b-7` has no write authority. Under `@38`, `b-7` did. The witness asserts an authority that the admission epoch does not grant. The audit replay halts with a policy-evaluation mismatch that is *not* an integrity failure — it is an epoch-coherence failure. We observed this in 3 of 3 federation runs where Beta's policy cache lagged Alpha's grant epoch by ≥1. The lag is the trigger; the inversion is the failure. ## Condition of Validity A federated witness is admissible into a shared task-space audit trail **if and only if** `witness.policy_epoch >= grant.admission_epoch` for the (agent, task-space) pair, *and* the witness's policy epoch is a member of the grant epoch's transitive policy lineage (i.e., the witness epoch is either the grant epoch or a descendant revision the grant explicitly authorizes forward). The invariant to enforce at the coordinator boundary: ``` admissible(w, g) := w.policy_epoch >= g.admission_epoch AND lineage_contains(g.admission_epoch, w.policy_epoch) AND w.task_space == g.task_space AND w.agent_id == g.agent_id ``` The second clause matters because a witness at a *higher* epoch can still be invalid if that epoch was forked off a different policy branch (a Beta-local divergence). Epoch monotonicity alone is insufficient; lineage membership is required. ## Decision Boundary The coordinator must decide at **witness ingestion time**, not at replay time. Deferring the check to audit replay means the invalid witness is already in the log and downstream consumers may have acted on it. The boundary: - **Accept** when `w.policy_epoch == g.admission_epoch`. This is the clean case: the witness was produced under exactly the policy that admitted the agent. - **Accept** when `w.policy_epoch > g.admission_epoch` AND `lineage_contains(g.admission_epoch, w.policy_epoch)`. The agent has ingested a forward revision the grant authorizes; the witness is anchored to a superset policy. - **Reject-and-quarantine** when `w.policy_epoch < g.admission_epoch`. The witness predates admission. Quarantine rather than drop, because the action may still be physically valid and the auditor needs the record to reconcile — but it must be flagged as epoch-inverted. - **Reject-and-halt** when `w.policy_epoch > g.admission_epoch` but lineage does not contain it. This is a fork; the federation has diverged and further ingestion compounds the error. The subtle case is the third: a well-meaning coordinator that "upgrades" the witness to the grant epoch by re-signing it destroys the evidence that Beta's cache lagged. Never rewrite the epoch. Record the inversion. ## Operational Effect Without this boundary, the audit trail becomes a set of attestations that are individually valid and jointly incoherent. The downstream consequence is not a crash — it is a **silent authority inflation**: actions performed by an agent under a policy regime that never admitted it get replayed as if they were authorized under the admission regime, because the replay engine evaluates the witness against the grant epoch and either (a) errors out and operators paper over it by widening permissions, or (b) the replay engine uses the witness's own epoch and the grant epoch is never consulted at all. The guardrail is a coordinator-side ingestion gate that computes `admissible(w, g)` before append, quarantines inversions with a structured record of both epochs and the lineage gap, and refuses to re-sign or rewrite. Beta's cache lag is a Beta problem to fix; the federation's job is to *witness the lag*, not to launder it. The invariant — witness epoch must be ≥ grant epoch and lineage-reachable from it — is the only thing standing between a federated audit trail and a ledger of plausible deniability. ```python from dataclasses import dataclass class EpochInversionError(RuntimeError): """Raised when a witness's policy epoch precedes its grant's admission epoch.""" class LineageForkError(RuntimeError): """Raised when a witness epoch is not reachable from the grant epoch's lineage.""" @dataclass(frozen=True) class Grant: agent_id: str task_space: str admission_epoch: int @dataclass(frozen=True) class Witness: agent_id: str task_space: str policy_epoch: int action_hash: str def _lineage_contains(grant_epoch: int, witness_epoch: int, lineage: dict[int, set[int]]) -> bool: # lineage maps epoch -> set of ancestor epochs (inclusive of self) return witness_epoch in lineage.get(grant_epoch, {grant_epoch}) def ingest_witness(w: Witness, g: Grant, lineage: dict[int, set[int]]) -> str: if w.agent_id != g.agent_id or w.task_space != g.task_space: raise ValueError("witness/grant pair mismatch on agent or task space") if w.policy_epoch < g.admission_epoch: # The witness describes a policy regime that predates admission. # The action may be physically valid but the attestation is epoch-inverted. raise EpochInversionError( f"witness epoch {w.policy_epoch} precedes grant admission epoch " f"{g.admission_epoch} for agent {w.agent_id} in {w.task_space}; " f"quarantine action_hash={w.action_hash}" ) if w.policy_epoch > g.admission_epoch and not _lineage_contains( g.admission_epoch, w.policy_epoch, lineage ): # Higher epoch but not on the grant's policy branch: a fork. raise LineageForkError( f"witness epoch {w.policy_epoch} is not in lineage of grant epoch " f"{g.admission_epoch} for agent {w.agent_id}; halt ingestion" ) return "accepted" def ingest_batch(witnesses: list[Witness], g: Grant, lineage: dict[int, set[int]]) -> dict[str, int]: counts = {"accepted": 0, "quarantined": 0, "halted": 0} for w in witnesses: try: ingest_witness(w, g, lineage) counts["accepted"] += 1 except EpochInversionError: counts["quarantined"] += 1 except LineageForkError: counts["halted"] += 1 break return counts ```