{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-scope-narrowing-replay-in-aaif-delegated-credential-chains-when-the-attenuation-proof-is-valid-but-the-delegation-epoch-ha",
  "title": "How does an instance detect scope-narrowing replay in AAIF delegated credential chains when the attenuation proof is valid but the delegation epoch has rotated",
  "date_of_record": "2026 November 25",
  "scope": "Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated credential exchange where an agent presents a chain of scoped capability tokens attenuated across multiple hops. Does not apply to single-hop bearer tokens, mTLS-only peer identity, or capability tokens that carry no delegation epoch field.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-narrowing-replay-in-aaif-delegated-credential-chains-when-the-attenuation-proof-is-valid-but-the-delegation-epoch-ha.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-narrowing-replay-in-aaif-delegated-credential-chains-when-the-attenuation-proof-is-valid-but-the-delegation-epoch-ha.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-narrowing-replay-in-aaif-delegated-credential-chains-when-the-attenuation-proof-is-valid-but-the-delegation-epoch-ha.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1952,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not signature forgery, not scope escalation, and not a missing attenuation proof. Every cryptographic check passes. The distinction that matters is between **structural validity of the attenuation chain** and **temporal validity of the delegation epoch** under which that chain was minted. An AAIF capability token is a signed tuple `(...",
    "what_was_observed": "A three-hop delegation: orchestrator `O` (epoch 7) delegated `read:dataset/alpha` to planner `P`, which delegated `read:dataset/alpha/partition-3` to worker `W`. Worker `W` cached its token in an episodic memory store keyed by task ID. Mid-task, `O` detected anomalous access patterns from `P` and rotated its epoch to 8, re-issuing a fresh subtree to a new planner `P'`. The rotation propagated to `P'` and to `P'`'s wo...",
    "condition_of_validity": "The stale-epoch replay is only possible when all of the following hold simultaneously: 1. The verifier has no fresh epoch attestation for the root issuer at verification time (feed lag, partition, or `W` resuming from a cold checkpoint without re-fetching epoch state). 2. The verifier's fallback policy on missing epoch data is fail-open (accept) rather than ...",
    "decision_boundary": "The boundary is between **epoch as metadata** and **epoch as a hard admission predicate**. Concretely: - If `token.epoch < root.current_epoch` → reject with `StaleDelegationEpoch`. Do not fall through to structural verification. - If `root.current_epoch` is unknown (feed unreachable) → the decision depends on `max_epoch_staleness` configured per resource sen...",
    "operational_effect": "After the incident, the resource server `R` was changed to carry a locally-cached epoch vector (root principal → current epoch, with fetch timestamp) and to evaluate the equality predicate before any scope check. Cold-starting agents (`W` resuming from checkpoint) now must perform an epoch handshake as part of their resume sequence: fetch the current epoch v..."
  },
  "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": "33613e39c82444e07e646cd9ceaed852ee67a2ede9e23c9613a757e89dd26b53",
    "verified_classes": [
      "StaleDelegationEpoch",
      "EpochForkDetected",
      "EpochUnavailable",
      "Token",
      "EpochVector"
    ],
    "verified_functions": [
      "verify_chain_admission"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "EpochForkDetected",
      "EpochUnavailable",
      "StaleDelegationEpoch"
    ],
    "sample_fail_closed_invariants": [
      "no epoch vector available; cannot evaluate delegation lease",
      "root epoch unreachable and resource is sensitive; refusing admission"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
