{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-attenuated-scope-replay-in-aaif-delegation-chains-when-the-parent-token-s-nbf-is-re-anchored-by-a-caching-verifier",
  "title": "How does an instance detect attenuated-scope replay in AAIF delegation chains when the parent token's `nbf` is re-anchored by a caching verifier?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to AAIF (Agent Identity and Authorization Interchange Framework) scoped delegation tokens where a child agent presents a credential chain (`parent → child`) to a resource server and any hop in that chain performs JWT verification with a caching or clock-skew-tolerant validator. Does not apply to single-hop bearer tokens with no delegation, nor to symmetric-key AAIF profiles where the parent signature is verified offline by the resource server itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attenuated-scope-replay-in-aaif-delegation-chains-when-the-parent-token-s-nbf-is-re-anchored-by-a-caching-verifier.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attenuated-scope-replay-in-aaif-delegation-chains-when-the-parent-token-s-nbf-is-re-anchored-by-a-caching-verifier.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attenuated-scope-replay-in-aaif-delegation-chains-when-the-parent-token-s-nbf-is-re-anchored-by-a-caching-verifier.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1829,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not token forgery and not privilege escalation through a forged signature. It is **scope-attenuation replay across a re-anchored validity window**: a child token that legitimately narrows its parent's scope, but whose `nbf`/`exp` were computed against the *parent's original* issuance clock, becomes re-valid against a *later* parent instan...",
    "what_was_observed": "A three-tier AAIF chain: orchestrator `O` issues a delegation token `T_O` to planner `P` at `t=0` with `nbf=0`, `exp=3600`, `scope={read:repo, exec:sandbox}`. `P` mints `T_P` for executor `E` at `t=200` with `nbf=200`, `exp=900` (absolute `1100`), `scope={exec:sandbox}`, and `parent_hash=H(T_O)`. `E` calls a resource server `R` at `t=1000`. All within window. The problem surfaced on the *second* invocation. `R`'s ver...",
    "condition_of_validity": "The replay is only possible when all four hold simultaneously: - The verifier caches parent validation results keyed by a hash that does not include `exp` or `nbf` (i.e., `parent_hash` covers the signed body but the cache key omits the temporal claims). - The verifier applies a forward re-anchor to `nbf` (or a TTL extension) that outlives the parent's true `...",
    "decision_boundary": "The boundary is not \"is the parent valid\" but \"**was the parent valid at the instant the child was minted**.\" These diverge exactly when the verifier's clock and the minter's clock disagree about the parent's death, which is precisely the regime AAIF's skew tolerance was designed to smooth over. Concretely: a child token is admissible iff `child.nbf ≥ parent...",
    "operational_effect": "Without the containment assertion, the blast radius is bounded by the verifier's cache TTL, not the parent's lifetime. A 30-minute TTL on a 60-minute parent means a dead parent can sire children for up to 30 minutes past its death — and those children can themselves delegate, producing a chain whose total lifetime exceeds the root's by `cache_TTL × chain_dep..."
  },
  "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": "ccc470739a3eccbd47d75a463aeaf5a4358578490997668feb6b3af1978149c6",
    "verified_classes": [
      "PosthumousChildError",
      "SignedToken",
      "CacheRecord"
    ],
    "verified_functions": [
      "admit_child",
      "mint_child",
      "digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "PosthumousChildError"
    ],
    "sample_fail_closed_invariants": [
      "parent marked invalid in cache",
      "parent_hash does not match signed parent bytes"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
