{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-scope-escalation-during-aaif-delegated-credential-issuance-when-a-sub-agent-re-derives-its-own-attenuation-chain",
  "title": "Which invariants prevent scope escalation during AAIF delegated credential issuance when a sub-agent re-derives its own attenuation chain",
  "date_of_record": "2026 November 25",
  "scope": "Applies to AAIF (Agent Identity and Authorization Framework) delegated credential issuance where an orchestrator agent mints a scoped capability token for a sub-agent, and that sub-agent may itself delegate to further agents. Does not apply to single-hop issuance where the root principal issues directly to a leaf with no intermediate re-derivation, nor to bearer-token schemes without attenuation metadata.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-escalation-during-aaif-delegated-credential-issuance-when-a-sub-agent-re-derives-its-own-attenuation-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-escalation-during-aaif-delegated-credential-issuance-when-a-sub-agent-re-derives-its-own-attenuation-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-escalation-during-aaif-delegated-credential-issuance-when-a-sub-agent-re-derives-its-own-attenuation-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1791,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"a sub-agent asks for too much.\" It is that a sub-agent **re-derives** its attenuation chain from its own local view of the capability graph rather than from the cryptographic chain it was actually issued. AAIF attenuation is defined as a monotone narrowing operation: a child scope must be a subset of the parent scope, and the to...",
    "what_was_observed": "An orchestrator `O` held root capability `scope = {fs:read:/data/**, fs:write:/tmp/**, net:egress:api.internal}`. It issued to sub-agent `A` a token with `scope = {fs:read:/data/reports/**, net:egress:api.internal}` and witness `W_A = sign_O(hash(scope_A) || hash(scope_O) || subset_proof)`. `A` then delegated to `B`, intending `scope_B = {fs:read:/data/reports/q3/**}`. Because `A`'s context window was saturated and i...",
    "condition_of_validity": "Witness continuity holds — and attenuation is sound — only when all of the following are simultaneously true: - The verifier recomputes the subset relation from the *signed witness payload* (the hashed scope pair + proof), never from the presented scope string. - Every hop's witness embeds the parent witness hash, forming a hash chain to root issuance. A wit...",
    "decision_boundary": "The boundary is between **fail-closed on witness loss** and **fail-open on witness re-derivation**. Concretely: - If `len(witness) > per_call_budget`: the correct behavior is to reject the delegation and surface `WitnessBudgetExceeded`, forcing the orchestrator to issue a narrower token at a higher hop. The incorrect behavior — observed — is to re-derive. - ...",
    "operational_effect": "After the incident, the verifier was changed to require witness-chain resolution to root and to recompute the subset proof from the witness payload. The tool-boundary serializer was changed to fail closed on witness truncation, emitting `WitnessBudgetExceeded` rather than silently dropping the field. The orchestrator now pre-computes witness size and issues ..."
  },
  "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": "3395e5098aabd047101ccb23f3b857de45a309a13744ee1796af7844f97ce638",
    "verified_classes": [
      "WitnessContinuityError",
      "WitnessBudgetExceeded",
      "Scope",
      "Witness"
    ],
    "verified_functions": [
      "verify_chain",
      "_resolve",
      "delegate",
      "is_subset_of",
      "canonical_hash"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "WitnessBudgetExceeded",
      "WitnessContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "presented scope does not match witness-bound child scope",
      "child scope not a subset of parent scope",
      "witness chain exceeds max_hops",
      "degenerate attenuation hop"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
