{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-delegated-macaroon-capability-chain-when-attenuation-appears-valid-but-the-discharge-witness-was-minted-ag",
  "title": "In what scenarios must an instance reject a delegated macaroon capability chain when attenuation appears valid but the discharge witness was minted against a stale root",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent-to-agent delegation where the delegating instance issues an HMAC-chained capability (macaroon-style caveats) and the receiving instance discharges third-party caveats by presenting witness macaroons. Does not apply to single-holder bearer tokens or to symmetric-key session tickets without caveat chains.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-delegated-macaroon-capability-chain-when-attenuation-appears-valid-but-the-discharge-witness-was-minted-ag.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-delegated-macaroon-capability-chain-when-attenuation-appears-valid-but-the-discharge-witness-was-minted-ag.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-delegated-macaroon-capability-chain-when-attenuation-appears-valid-but-the-discharge-witness-was-minted-ag.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2197,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A macaroon chain is *cryptographically intact* when every HMAC over `(prev_sig, caveat_predicate)` recomputes correctly from the presented root key identifier down to the leaf. A chain is *semantically authorized* only when the discharge witnesses attached to each third-party caveat were minted by the caveat's designated root authority **at a root-generation...",
    "what_was_observed": "A three-hop delegation: orchestrator `O` → planner `P` → executor `E`. `O` holds the root key `K_g7` (generation 7). It mints a capability for `P` with caveats `[resource=prod-db, op=read, root_gen>=7]` and a third-party caveat binding discharge to `E`'s root authority. `P` attenuates further (adds `table=users`) and hands the chain to `E`. `E` discharges the third-party caveat by calling its own root authority, whic...",
    "condition_of_validity": "The invariant that must hold for delegated authorization to be sound: > For every third-party caveat `c` with designated authority `A` and predicate `P`, the discharge witness `W` presented at verification time must satisfy `P` **and** `W.mint_root_generation == verifier.current_root_generation(A)` **and** `W` must not appear on `A`'s revocation list as of v...",
    "decision_boundary": "The boundary is between two classes of in-flight chain at rotation time: - **Chain minted before rotation, witness minted before rotation, presented before grace-window close.** Accept. The chain and witness are contemporaneous with the pre-rotation epoch; the operation was authorized under `g7` and completes under `g7`. Generation-equality holds if the veri...",
    "operational_effect": "Without the generation-equality invariant, the effective authorization window for a delegated capability is `grace_window + witness_cache_ttl`, not the intended `min(chain_ttl, witness_ttl)`. In the observed case this was 90 seconds of key retention plus 40 minutes of witness cache — a 40-minute window during which a revoked capability remained grantable to ..."
  },
  "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": "0ce6ebd5d6264b715e81a508b6c98fc60d01f0cd34847ac6be6dbcdc13770a53",
    "verified_classes": [
      "StaleRootWitnessError",
      "Witness",
      "Chain"
    ],
    "verified_functions": [
      "verify_discharge",
      "__init__",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleRootWitnessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
