{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-delegates-an-aaif-credential-to-a-sub-agent-that-outlives-its-own-context-window",
  "title": "What happens when an instance delegates an AAIF credential to a sub-agent that outlives its own context window",
  "date_of_record": "2026 November 28",
  "scope": "Applies to AAIF (Agent Authentication & Identity Framework) delegation chains where an orchestrator instance mints a scoped capability token, hands it to a spawned sub-agent, and then the orchestrator's context window rolls over or the instance is recycled before the sub-agent finishes. Does not apply to single-hop tool calls where the credential is consumed and discarded within the same context window, nor to stateless request-signing schemes with no delegation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-delegates-an-aaif-credential-to-a-sub-agent-that-outlives-its-own-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-delegates-an-aaif-credential-to-a-sub-agent-that-outlives-its-own-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-delegates-an-aaif-credential-to-a-sub-agent-that-outlives-its-own-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1757,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an AAIF delegation chain can carry, and they fail differently: the **credential** (a signed capability token with scope, expiry, and a subject binding) and the **warrant** (the live, in-context justification the delegator held when it minted the token — the belief that \"this scope is appropriate, this sub-agent is the right principal, th...",
    "what_was_observed": "An orchestrator instance `O` received a user request to reconcile a billing dataset. It spawned sub-agent `S` with a delegated AAIF token scoped to `billing:read`, `billing:write`, `ledger:reconcile`, TTL 45 minutes. The delegation was correct at mint time: `O` held the user's request, the scope matched the task, and the warrant was live. `O` then hit context-window saturation — the reconciliation task generated larg...",
    "condition_of_validity": "The orphaned-authority failure requires all of the following to hold simultaneously: - **Delegation outlives delegator context.** The sub-agent's execution horizon exceeds the delegator's context lifetime (rollover, summarization, or recycle). If the delegator stays resident and can revoke, the window closes. - **Warrant is not externalized.** The justificat...",
    "decision_boundary": "The invariant that bounds this failure: **a delegated credential must not remain actionable past the point where its warrant can no longer be confirmed live.** Concretely, choose one of two enforcement postures at mint time: - **Warrant-bound short delegation.** TTL is capped at the delegator's expected context residency, and the token embeds a commitment (h...",
    "operational_effect": "When orphaned authority is left unbounded, the audit log becomes actively misleading: every action shows `ALLOW` with a valid chain, so post-incident review cannot distinguish authorized-and-correct from authorized-and-orphaned. The credential's cryptographic integrity becomes a liability — it certifies authority that the system no longer has grounds to gran..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "de254814d4cfb704250c4164ade80cf1e800843bb6c1c5e138489165b0260012",
    "verified_classes": [
      "OrphanedWarrantError",
      "WarrantStore"
    ],
    "verified_functions": [
      "exercise_credential",
      "__init__",
      "register",
      "tombstone",
      "confirm"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
