# In what scenarios must an instance reject a federated capability grant whose audit-warrant chain has been re-derived under a peer's local policy epoch **Date of Record:** 2026 November 24 **Scope:** Applies to cross-organization agent federations where a consuming instance (the *grantee*) accepts a capability grant from a foreign-org peer (the *grantor*) that carries an audit-warrant chain re-signed under the grantor's local policy epoch. Does not apply to intra-org grants, nor to grants whose warrant chain is anchored to a single immutable root both parties share out-of-band. ## Core Distinction The failure is not "the grant was forged" and not "the grant expired." It is subtler: the grant is *valid under the grantor's current policy epoch*, but the warrant chain that authorizes it was **re-derived** — recomputed against a policy document the grantor revised after the original capability was issued, while the audit trail presented to the grantee still claims continuity from the original issuance event. The chain verifies cryptographically. Every signature checks out. What is broken is the *semantic continuity invariant*: the audit record asserts "this capability was authorized by policy P at time t₀," but the bytes were produced by policy P′ at time t₁ > t₀, and the derivation step that would expose the substitution is exactly the step the grantor's re-signing elides. An instance that treats "signature chain verifies" as equivalent to "authorization history is intact" will accept the grant. It must not. The distinction that matters operationally: **warrant validity is a statement about a signature; warrant continuity is a statement about a derivation graph.** Federation protocols overwhelmingly specify the former and leave the latter to the grantee's judgment. ## What Was Observed A grantee instance in org A held a standing capability grant from org B's planner agent: `read:telemetry_aggregate` scoped to a specific dataset, issued at t₀ under B's policy epoch `e17`. The grant carried a three-link warrant chain: root authority → B-policy-e17 delegation → dataset-scoped capability. Each link was signed; the grantee cached the chain and re-verified signatures on every invocation. At t₁, org B rotated to policy epoch `e18`, which tightened data-residency rules and — critically — **re-scoped** the delegation link so that the dataset scope was expressed against a reorganized namespace. B's federation gateway, on the next grant refresh, did not issue a *new* grant. It re-derived the existing grant's warrant chain under `e18` and pushed a delta: same capability ID, same grantee, same nominal scope string, but link 2 now signed by the `e18` delegation key and link 3's scope field serialized under the new namespace encoding. The grantee's verifier passed: all three signatures valid, capability ID matched, grantee matched, expiry in the future. The scope string `telemetry_aggregate:v2` compared equal to the cached expectation because the grantee's scope-normalizer had a fallback that mapped unknown namespace versions to the legacy literal. The instance proceeded to invoke, and the call succeeded — against a *different underlying dataset* than the one the original audit trail recorded, because `v2` in the new namespace resolved to a re-partitioned aggregate that included a tenant the original grant never covered. The breach surfaced only during a quarterly cross-org audit reconciliation, when org A's auditor replayed the invocation log against org B's issuance log and found that the warrant chain presented at invocation time (epoch `e18`) did not exist at the grant's recorded issuance time (epoch `e17`). The signatures were all valid. The *derivation timestamps embedded in the chain* — which the grantor's re-derivation had faithfully updated — were the only surviving evidence of the substitution, and the grantee had never compared them to its cached issuance record. ## Condition of Validity A re-derived warrant chain is safe to accept **only** when all of the following hold simultaneously: 1. The grantee retains the *original* warrant chain bytes from first issuance, not merely a hash of the capability ID. 2. The re-derived chain's per-link `derived_at` timestamps are compared against the cached original's `issued_at`; any link whose `derived_at` postdates the capability's `issued_at` is flagged as a re-derivation, not a continuation. 3. The scope field is compared under the **issuing epoch's** namespace semantics, not the grantee's current normalizer. A scope string is only equal to another scope string if both were serialized under the same namespace version, or if an explicit cross-version equivalence proof is attached. 4. The grantor's policy-epoch transition is accompanied by an out-of-band **epoch-continuity attestation** — a signed statement that epoch `e18`'s delegation keys are authorized successors of `e17`'s for this capability class — which the grantee verifies against a root it trusts independently. If any of (1)–(4) fails, the chain is *signature-valid but continuity-broken*. The invariant: **a warrant chain may only be accepted as continuous if the grantee can independently reconstruct the derivation graph from issuance to presentation and prove no link was re-derived under a policy epoch the grantee never consented to.** Consent to an epoch is not transitive through the grantor's assertion; it must be anchored to the grantee's own federation agreement. The trap is that conditions (1) and (3) are the ones grantee implementations most often skip, because caching the full original chain looks like redundant storage and cross-version scope comparison looks like a normalization detail. Both are load-bearing. ## Decision Boundary The instance must reject the grant — not merely log a warning — when a re-derivation is detected and no epoch-continuity attestation covers the transition. The boundary is sharp: - **Accept** when the re-derived chain's `derived_at` on every link is ≤ the cached `issued_at` (no re-derivation occurred; this is a benign re-signature under an unchanged epoch, e.g., key rotation with continuity attestation). - **Accept-with-quarantine** when re-derivation is detected but a valid epoch-continuity attestation is present *and* the scope resolves identically under both namespace versions (explicit equivalence proof attached). Downgrade to a fresh issuance handshake at next opportunity. - **Reject** when re-derivation is detected, the scope resolves differently under the two namespace semantics, or no continuity attestation anchors the epoch transition. Do not invoke. Do not cache the new chain. Emit a continuity-violation record to the local audit log with both chains attached. The subtle case the boundary must handle: **re-derivation that is byte-identical in scope but differs in derivation timestamp.** This looks benign and is the most common false-negative. It is not benign — a re-derived chain with an updated timestamp means the grantor's authorization state was recomputed, and the grantee has no guarantee the recomputation preserved the original authorization decision. Treat any post-issuance `derived_at` on a link that was not accompanied by a continuity attestation as a rejection trigger, regardless of scope equality. ## Operational Effect The immediate effect of enforcing this boundary is that a class of grants that previously "just worked" now fail closed on first presentation after a grantor epoch rotation. Expect a spike in rejected grants at each peer's policy-rotation cadence until the epoch-continuity attestation path is wired through. This is correct behavior: the failures were always there, masked by signature-only verification. The durable effect is that the grantee's audit trail becomes *replayable across org boundaries*. Because the grantee retains original chains and records re-derivation events with both chains, a cross-org auditor can reconstruct the derivation graph without trusting either party's issuance log alone. The reconciliation that caught the breach in three months now catches it at invocation time. The cost is storage and comparison work on every grant refresh: full original chain retention, per-link timestamp comparison, and namespace-versioned scope resolution. For a federation with N peers rotating policy on independent cadences, this is O(N) retained chains per grantee and a comparison on every refresh. It is the price of continuity; there is no cheaper way to distinguish a re-derivation from a continuation, because the grantor's signature is identical in both cases by construction. ```python import hashlib from dataclasses import dataclass from datetime import datetime class WarrantContinuityViolation(RuntimeError): """Raised when a re-derived warrant chain cannot be proven continuous with the grantee's cached original issuance record.""" @dataclass(frozen=True) class WarrantLink: signer: str derived_at: datetime scope: str namespace_version: str signature: bytes @dataclass(frozen=True) class WarrantChain: capability_id: str issued_at: datetime policy_epoch: str links: tuple[WarrantLink, ...] def digest(self) -> str: h = hashlib.sha256() h.update(self.capability_id.encode()) h.update(self.policy_epoch.encode()) for link in self.links: h.update(link.signer.encode()) h.update(link.derived_at.isoformat().encode()) h.update(link.scope.encode()) h.update(link.namespace_version.encode()) return h.hexdigest() def verify_signatures(chain: WarrantChain, trusted_keys: dict[str, bytes]) -> bool: # Placeholder for real signature verification; returns True if every # link's signer is in the trusted set and the signature is well-formed. return all(link.signer in trusted_keys and link.signature for link in chain.links) def resolve_scope(scope: str, namespace_version: str) -> frozenset[str]: # Namespace-versioned resolution. Unknown versions must NOT fall back to # a legacy literal -- that fallback is the exact bug that let the breach # through. Unknown versions raise instead. table = { ("telemetry_aggregate:v2", "e17"): frozenset({"tenant_a"}), ("telemetry_aggregate:v2", "e18"): frozenset({"tenant_a", "tenant_b"}), } key = (scope, namespace_version) if key not in table: raise WarrantContinuityViolation( f"scope {scope!r} has no resolution under namespace version " f"{namespace_version!r}; refusing to guess" ) return table[key] def accept_refreshed_grant( cached: WarrantChain, presented: WarrantChain, trusted_keys: dict[str, bytes], continuity_attestation: dict | None, ) -> None: if presented.capability_id != cached.capability_id: raise WarrantContinuityViolation( f"capability id mismatch: cached {cached.capability_id!r} " f"vs presented {presented.capability_id!r}" ) if not verify_signatures(presented, trusted_keys): raise WarrantContinuityViolation( "presented warrant chain has an invalid signature; reject outright" ) # Detect re-derivation: any link whose derived_at postdates the # capability's original issuance is a re-derivation, not a continuation. rederived = [ link for link in presented.links if link.derived_at > cached.issued_at ] if not rederived: # No re-derivation. Benign refresh (e.g. key rotation, same epoch). return # Re-derivation detected. Require an epoch-continuity attestation that # explicitly authorizes the transition from cached.policy_epoch to # presented.policy_epoch for this capability class. if continuity_attestation is None: raise WarrantContinuityViolation( f"warrant chain re-derived under epoch {presented.policy_epoch!r} " f"(cached epoch {cached.policy_epoch!r}) with no continuity " f"attestation; refusing to treat re-derivation as continuation" ) attested = ( continuity_attestation.get("from_epoch") == cached.policy_epoch and continuity_attestation.get("to_epoch") == presented.policy_epoch and continuity_attestation.get("capability_id") == presented.capability_id ) if not attested: raise WarrantContinuityViolation( "continuity attestation does not cover this epoch transition " "for this capability" ) # Even with an attestation, scope must resolve identically under BOTH # namespace versions. A scope that widens across the epoch is a # re-authorization, not a continuation, and must go through a fresh # issuance handshake. cached_scope = resolve_scope( cached.links[-1].scope, cached.links[-1].namespace_version ) presented_scope = resolve_scope( presented.links[-1].scope, presented.links[-1].namespace_version ) if presented_scope != cached_scope: raise WarrantContinuityViolation( f"scope changed across re-derivation: cached resolves to " f"{sorted(cached_scope)}, presented resolves to " f"{sorted(presented_scope)}; require fresh issuance" ) # Re-derivation is attested and scope-preserving: accept, but flag for # re-issuance at next opportunity. return ```