{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-credential-chain-collapse-when-an-aaif-sub-agent-attenuates-scope-mid-execution",
  "title": "Which invariants prevent delegated-credential chain collapse when an AAIF sub-agent attenuates scope mid-execution",
  "date_of_record": "2026 November 30",
  "scope": "Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated credential chains where an orchestrator agent issues a scoped warrant to a sub-agent, which may further attenuate that warrant before invoking a tool or peer agent. Does not apply to single-hop bearer-token auth where no delegation or attenuation occurs, nor to static service-account credentials.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-credential-chain-collapse-when-an-aaif-sub-agent-attenuates-scope-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-credential-chain-collapse-when-an-aaif-sub-agent-attenuates-scope-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-credential-chain-collapse-when-an-aaif-sub-agent-attenuates-scope-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1829,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the sub-agent exceeded its authority.\" That is a coarse violation detectable by any policy engine. The boundary failure is subtler: **a sub-agent legitimately attenuates its own scope, then hands the attenuated warrant to a downstream agent, and the downstream agent's verifier reconstructs the chain against a *different* root than the one...",
    "what_was_observed": "An orchestrator `O` holds a root warrant `W0` signed by the tenant's identity provider, with `issuer_kid = K_root`, scope `{files:read, files:write, net:egress:api.internal}`, and `delegation_depth_max = 3`. `O` issues `W1` to sub-agent `A` attenuating scope to `{files:read, net:egress:api.internal}` and `delegation_depth_max = 2`, embedding `W0`'s header (including `issuer_kid`) in `W1.parent`. Agent `A` performs it...",
    "condition_of_validity": "The collapse requires all of the following to co-occur: 1. **Multi-hop delegation** (`delegation_depth_max >= 2`), so at least one intermediate agent re-emits a chain it received. 2. **Context-mediated re-emission**: the intermediate agent reconstructs the child warrant from its *context representation* of the parent rather than from the parent's raw signed ...",
    "decision_boundary": "The guardrail is a **chain-integrity invariant enforced at emission, not at verification**: - A child warrant MUST embed the parent's *raw signed envelope* (base64 of the exact bytes `W1` was signed over), not a parsed or summarized form. The verifier re-verifies the parent from those bytes. - `issuer_kid` is a **required** field in every parent reference. A...",
    "operational_effect": "When the invariant holds, chain verification is a pure function of the emitted bytes plus a `kid`-keyed key fetch — deterministic, cacheable, and independent of any agent's context fidelity. Re-emission at depth 3 costs one base64 copy per hop, not a re-parse-and-render cycle. Failures are localized: a missing `issuer_kid` fails at the emitting agent's own p..."
  },
  "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": "3b17ab4db0723eb4b3b4210017864f36377b9379f2750e67060e165fe2f2871c",
    "verified_classes": [
      "ChainProvenanceError",
      "ParentRef",
      "Warrant"
    ],
    "verified_functions": [
      "attenuate",
      "verify_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "ChainProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "cannot attenuate: parent raw envelope missing from credential store; refusing to reconstruct from context summary",
      "delegation depth exhausted; cannot attenuate further",
      "orphan warrant: no parent reference",
      "missing issuer_kid in parent reference; cannot bind to a key"
    ],
    "stdlib_dependencies": [
      "base64",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
