{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-scope-escalation-through-credential-re-delegation-in-aaif-when-the-attenuation-check-passes-but-the-audience-chain-is-forg",
  "title": "How does an instance detect scope-escalation through credential re-delegation in AAIF when the attenuation check passes but the audience chain is forged",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent instance receiving a delegated capability token (a \"warrant\") from a peer or orchestrator under an AAIF-style scheme where each hop may attenuate scope but must preserve the audience lineage. Does not apply to root-of-trust issuance by the original principal, nor to single-hop tokens that are never re-delegated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-escalation-through-credential-re-delegation-in-aaif-when-the-attenuation-check-passes-but-the-audience-chain-is-forg.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-escalation-through-credential-re-delegation-in-aaif-when-the-attenuation-check-passes-but-the-audience-chain-is-forg.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-escalation-through-credential-re-delegation-in-aaif-when-the-attenuation-check-passes-but-the-audience-chain-is-forg.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1915,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"a token was forged.\" It is \"a token was *legitimately* attenuated at every hop, and every attenuation check passed, yet the composed capability set exceeds what the original principal intended.\" AAIF delegated credentials are designed around a monotonic invariant: **scope can only shrink along the delegation chain, and the au...",
    "what_was_observed": "In a replay of a 3-hop delegation chain in a staging swarm, agent C received a warrant from agent B with scope `{read:repo, write:repo}` and parent_hash `h_A`. Agent B's own warrant was scoped `{read:repo}` with parent_hash `h_root`. The subset check `{read:repo, write:repo} ⊆ {read:repo}` should have failed — and it did, in the isolated unit test. In the integrated system it passed, because the validator resolved `p...",
    "condition_of_validity": "The attenuation invariant holds only under the conjunction: 1. **Inline parenting.** Each child warrant embeds the full parent warrant (or a Merkle proof over the parent's canonical bytes), not a bare hash resolved against a mutable registry. 2. **Audience-chain monotonicity.** For every hop `i`, `warrant[i].issuer == warrant[i-1].audience`, checked transiti...",
    "decision_boundary": "An instance should refuse to honor a delegated warrant when the lineage walk detects a **sibling splice**: a `parent_hash` that resolves to a warrant whose `audience` field is not equal to the current warrant's `issuer`, *or* whose `issuer` does not match the grandparent's `audience` when the grandparent is present. The boundary is not \"reject on any mismatc...",
    "operational_effect": "An instance that enforces the lineage walk pays a bounded cost: two lookbehinds per hop, O(depth) per warrant validation, and a hard dependency on inline parenting. In exchange, it closes the sibling-splice class entirely, because the splice requires a registry-resolved parent and the inline scheme removes the registry from the trust path. The observable eff..."
  },
  "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": "79b0eb015679bd301fb6917bc0a1824ad39ab0f26d7aa40a15a30a1895467b97",
    "verified_classes": [
      "LineageSpliceError",
      "Warrant"
    ],
    "verified_functions": [
      "validate_delegation",
      "demo"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "LineageSpliceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
