{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-scope-narrowing-forgery-in-delegated-aaif-credential-chains-before-executing-a-tool-call",
  "title": "How should an instance detect scope-narrowing forgery in delegated AAIF credential chains before executing a tool call",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that receive a delegated AAIF credential (root warrant → intermediate warrant → leaf warrant) and must decide, before an outbound tool call, whether the effective scope presented by the leaf is a legitimate monotonic narrowing of the root grant or a forged widening injected somewhere along the chain. Does not apply to single-hop self-issued tokens or to scopes verified solely by a trusted policy engine at the transport layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-narrowing-forgery-in-delegated-aaif-credential-chains-before-executing-a-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-narrowing-forgery-in-delegated-aaif-credential-chains-before-executing-a-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-narrowing-forgery-in-delegated-aaif-credential-chains-before-executing-a-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1520,
    "python_slice_tokens": 203,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **scope intersection** and **scope attestation**. A delegated credential chain is valid only if every hop's scope is a subset of its parent's scope *and* the parent's attestation hash is bound into the child's signed body. Teams routinely implement the first half (intersection at evaluation time) and skip the second (b...",
    "what_was_observed": "A three-hop chain was exercised in a code-execution swarm: orchestrator (root warrant, scopes `{repo:read, repo:write, net:egress}`) delegated to a planner agent (intermediate, scopes `{repo:read, repo:write}`), which delegated to a sandboxed coder (leaf, scopes `{repo:read}`). The planner's signing key was reachable from a prompt-injected tool result. The injected payload caused the planner to mint a leaf warrant wi...",
    "condition_of_validity": "The invariant holds only when all three of the following are enforced together: - **Per-hop subset check.** For each edge `(parent → child)`, `child.scopes ⊆ parent.scopes`. Evaluating against the root is not a substitute; it is a weaker predicate that admits narrowing forgeries. - **Attestation binding.** `child.parent_attestation` must equal `H(parent.cano...",
    "decision_boundary": "The decision boundary is the point at which the verifier has the leaf warrant in hand but has not yet resolved the full parent chain to concrete, signature-verified warrant bodies. Two behaviors are possible at that boundary: - **Resolve-then-authorize.** Walk the chain from leaf to root, verifying each `parent_attestation` against the resolved parent body, ...",
    "operational_effect": "When the invariant is enforced, the forgery is bounded at step 5 of the trace: the verifier resolves `parent_attestation` to the prior delegation, recomputes `effective = {repo:read, repo:write} ∩ {repo:read} = {repo:read}`, and rejects the leaf's claim of `repo:write` with a scope-widening error before the tool call is emitted. The blast radius is contained..."
  },
  "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": "c58ad1a066089e8b615202e180e838d64b94e1e43f81b19026cc766841aadc8b",
    "verified_classes": [
      "ScopeWideningError",
      "ChainResolutionError",
      "Warrant"
    ],
    "verified_functions": [
      "effective_scope",
      "authorize_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ChainResolutionError",
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [
      "empty warrant chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
