{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-delegates-a-capability-token-whose-caveat-chain-outlives-the-delegating-agent-s-attestation-window",
  "title": "What happens when an instance delegates a capability token whose caveat chain outlives the delegating agent's attestation window",
  "date_of_record": "2026 December 1",
  "scope": "Applies to AAIF-style systems where agent A mints a delegated capability token for agent B, and B re-delegates to C, such that the effective authority of C is the intersection of (a) the caveat chain attached to the token and (b) the validity windows of every attestation in the delegation chain. Does not apply to single-hop, non-delegated bearer tokens or to systems where attestation is re-verified per call rather than embedded at mint time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-delegates-a-capability-token-whose-caveat-chain-outlives-the-delegating-agent-s-attestation-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-delegates-a-capability-token-whose-caveat-chain-outlives-the-delegating-agent-s-attestation-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-delegates-a-capability-token-whose-caveat-chain-outlives-the-delegating-agent-s-attestation-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2412,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different clocks in an AAIF delegation, and they are almost never the same clock: 1. **The token clock** — the `exp` / `not_before` on the capability token itself, plus any time-bounded caveats (`not_after`, `valid_for`, `only_before`). 2. **The attestation clock** — the `attested_at` and `attestation_ttl` baked into each `AgentAttestation` rec...",
    "what_was_observed": "A three-agent chain: orchestrator `A` (long-lived, attested hourly by the control plane with a 3600s TTL), worker `B` (short-lived, spawned per task), and tool-runner `C` (persistent, holds a cached token from B). The sequence: - `T0`: A is attested. Attestation record: `{subject: A, key: kA, attested_at: T0, ttl: 3600}`. - `T0+10s`: A mints a delegated token for B with `exp = T0 + 86400` (24h), embedding A's attesta...",
    "condition_of_validity": "The invariant that must hold for a delegated token to be safely admissible is: > `admissible(token) ⟺ now < token.exp ∧ ∀ a ∈ attestations(token): now < a.attested_at + a.ttl ∧ a.key == current_key(a.subject)` The failure occurs precisely when a verifier implements only the first conjunct (and, at best, a historical-truth reading of the second). The conditio...",
    "decision_boundary": "The operational decision is where to enforce the temporal intersection: - **Mint-time clamping** (compute `exp = min(exp, min attestation deadline)` and refuse to mint past it). Cheap, no per-call cost, but does not catch key rotation after mint, and does not catch the case where an upstream attestation lapses *after* the token was minted but *before* it was...",
    "operational_effect": "The practical consequences, in order of how they bite: 1. **Silent over-authorization with a long tail.** The window of exposure is `token.exp − (attested_at + ttl)`, which for a 24h token and a 1h attestation is 23 hours of admitted calls under dead authority. This is the dominant risk and it is invisible in normal logs because the calls succeed. 2. **Repla..."
  },
  "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": "202c3b514216f256b36bf31f4453cbfcd53a09ce2531e5fef05b7c1a80166595",
    "verified_classes": [
      "AttestationLapsedError",
      "KeyRotatedError"
    ],
    "verified_functions": [
      "verify_delegated_token"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationLapsedError",
      "KeyRotatedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
