# Why does an instance lose its authorization warrant at the AAIF credential exchange boundary when the issuing agent's context has been compacted? **Date of Record:** 2026 November 22 **Scope:** Applies to AAIF credential exchange between an issuing agent and a receiving agent when the issuer has undergone context-window compaction or episodic memory summarization between warrant minting and warrant presentation. Does not apply to stateless HMAC-signed tokens minted and verified within a single un-compacted context, nor to purely symmetric shared-secret schemes with no issuer-side state dependency. ## Core Distinction The failure is not a signature-verification failure, and it is not a token-expiry failure. Both of those are loud: the receiving agent rejects, the transaction aborts, the trace shows a clean 401-equivalent. The boundary condition here is quieter and more dangerous: **the warrant verifies cryptographically but no longer verifies semantically**, because the issuer's own record of *why* it minted the warrant has been distilled away by compaction. AAIF warrants carry two kinds of claims. The first are *point-in-time* claims: subject identity, audience, scope strings, expiry, nonce. These are self-contained and survive any amount of issuer-side amnesia because they are read off the token, not off the issuer. The second are *provenance* claims: the delegation chain, the justification reference, the constraint set that the issuer derived from its own reasoning about the task. These are frequently expressed as a reference (a hash, a URI, a claim ID) into issuer-side state that the issuer is expected to still hold — and that state is exactly what compaction destroys. When the receiving agent later performs a *delegation check* — asking the issuer "did you actually authorize scope X for subject S under constraint C?" — the issuer can no longer answer from memory. It answers from reconstruction. And reconstruction under a compacted context is probabilistic, which means the issuer can produce a *plausible but wrong* attestation that is itself signed and therefore authoritative. The failure propagates as a forged-looking-but-legitimate warrant extension. ## What Was Observed A three-hop delegation chain: orchestrator O mints a warrant W1 delegating scope `filesystem:read:/data/tenant-7` to worker A. A mints W2 narrowing to `filesystem:read:/data/tenant-7/reports` for sub-worker B. B, before acting, performs the AAIF standard `warrant/introspect` call back to O as the root of trust, presenting W2 and asking O to confirm the delegation chain resolves. The trace showed the following sequence: 1. Between minting W1 and servicing B's introspection, O's context crossed the compaction threshold (a summarization pass collapsed ~180k tokens of task history into ~6k). 2. The summarizer preserved the *fact* that O had delegated filesystem read to A. It dropped the *constraint* that the delegation was tenant-scoped to `tenant-7`, because that constraint appeared only in a tool-result payload O had reasoned over, not in O's own emitted text. 3. B's introspection request arrived. O's introspection handler is designed to resolve the chain by re-deriving constraints from its memory of the delegation. With the tenant constraint gone, O re-derived from the residual summary — "filesystem read delegated to A" — and returned a chain attestation that omitted the tenant-7 restriction. 4. B received a signed attestation that its W2 (tenant-scoped) was a valid narrowing of W1. The attestation was *broader* than the truth. B proceeded to read `/data/tenant-9` because nothing in the returned chain forbade it. No signature failed. No expiry tripped. The introspection endpoint returned 200 with a well-formed, correctly-signed payload. The authorization boundary was breached by an issuer that had forgotten its own constraint and reconstructed a looser one. ## Condition of Validity The invariant that was violated can be stated precisely: > **A warrant's constraint set must be recoverable from the warrant itself, not from the issuer's memory of having minted it.** This holds trivially for point-in-time claims and fails silently for provenance claims expressed as *references*. The condition under which the failure is live is the conjunction of three things: - The warrant encodes at least one constraint as an indirection (claim ID, hash, URI) rather than inline. - The issuer is expected to service a later introspection or delegation-check call. - The issuer's context can be compacted, summarized, or evicted between mint and introspection. Remove any one and the failure cannot occur. Inline the constraint and it survives compaction because it rides in the token. Make introspection stateless (verify the chain from presented tokens alone, no call-back) and issuer memory is irrelevant. Guarantee the issuer's context is never compacted and the reference still resolves. The failure is *non-obvious* because the first two conditions are architectural defaults in most AAIF deployments — indirection is used to keep warrants small, and call-back introspection is used to support revocation — while the third is treated as an operational detail rather than a correctness precondition. ## Decision Boundary The guardrail is a single architectural rule with a sharp boundary: **Constraints that bound authorization must be inlined into the warrant; only constraints that bound *revocation* may be referenced.** Revocation references are safe under compaction because a missing revocation record fails *closed* — if the issuer cannot resolve the revocation pointer, the standard requires treating the warrant as revoked. Provenance references fail *open* — if the issuer cannot resolve the constraint pointer, it reconstructs, and reconstruction drifts toward permissiveness because summarizers preserve the gist ("read was allowed") and drop the qualifier ("only for tenant-7"). The decision boundary is therefore: at mint time, for every constraint, ask *"if the issuer forgot this constraint entirely, would the receiver's check fail closed or open?"* If open, the constraint must be inlined. This is a mint-time decision, not an introspection-time one — by the time introspection runs, the information needed to make the call has already been compacted away. A secondary boundary governs the introspection handler itself: it must **refuse to attest any chain element it cannot resolve from durable issuer-side state**, returning an explicit `unresolvable` rather than reconstructing. Reconstruction is the mechanism of the breach; forbidding it converts the silent failure into a loud one. ## Operational Effect Deployments that inline authorization-bounding constraints and make introspection fail-closed on unresolvable references eliminate this class of breach entirely, at the cost of larger warrants (typically 200–800 bytes more per hop) and a stricter introspection contract that surfaces `unresolvable` errors where prior systems silently succeeded. The observable signature of the fix is a nonzero rate of `unresolvable` introspection responses immediately after compaction events — this is *correct behavior*, not a regression, and monitoring should alert on it as a signal that compaction is stripping constraint-bearing context, prompting a review of what the summarizer is dropping. Deployments that leave the failure in place exhibit a characteristic post-incident trace: a valid signature, a 200 introspection, a scope violation, and an issuer that — when asked after the fact why it attested the broader chain — has no record of the narrower constraint and reports, accurately, that it does not remember. The forensic difficulty is that the issuer is not lying. It genuinely authorized what it attested, because it no longer knew what it had originally authorized. ```python class WarrantConstraintLoss(RuntimeError): """Raised when an issuer cannot resolve a constraint reference it is expected to attest, and reconstruction would fail open.""" pass def introspect_chain(issuer_state, presented_warrant): """ Fail-closed introspection for AAIF delegation chains. issuer_state.durable_constraints maps claim_id -> inline constraint set, persisted outside the LLM context so compaction cannot evict it. """ attestation = [] for hop in presented_warrant.delegation_chain: claim_id = hop.constraint_ref if claim_id is None: # Constraint was inlined at mint time; safe under any compaction. attestation.append(hop.inline_constraints) continue resolved = issuer_state.durable_constraints.get(claim_id) if resolved is None: # Do NOT reconstruct from memory. Reconstruction drifts toward # permissiveness and produces a signed-but-wrong attestation. raise WarrantConstraintLoss( f"constraint_ref {claim_id!r} unresolvable in durable issuer " f"state; refusing to attest chain element for subject " f"{hop.subject!r}. Warrant must be treated as revoked." ) attestation.append(resolved) return attestation ```