{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-delegated-aaif-credential-has-been-scope-widened-by-a-transitive-grant-merge",
  "title": "What structural signals indicate a delegated AAIF credential has been scope-widened by a transitive grant merge",
  "date_of_record": "2026 November 22",
  "scope": "Applies to AAIF-style delegated authorization where a root principal issues a scoped credential to an agent, which re-delegates (possibly N hops) to sub-agents. Concerns scope-narrowing invariants across hops. Does not cover single-hop bearer tokens with no re-delegation, nor identity federation without capability scoping.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-aaif-credential-has-been-scope-widened-by-a-transitive-grant-merge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-aaif-credential-has-been-scope-widened-by-a-transitive-grant-merge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-aaif-credential-has-been-scope-widened-by-a-transitive-grant-merge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2099,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"an agent used a credential it shouldn't have.\" It is subtler: **a credential that was correctly narrowed at every individual hop can still arrive at the terminal agent wider than the root principal intended, because the merge semantics at a re-delegation joint are union-based rather than intersection-based.** Every hop l...",
    "what_was_observed": "A three-hop chain: orchestrator O → planner P → executor E. O holds root credential with scope `S_O = {fs:read:/data, fs:write:/data/out}`. O delegates to P requesting `S_P_req = {fs:read:/data}`. P holds an independent service credential granting `S_P_own = {fs:write:/data/out, net:egress:telemetry}`. P delegates to E requesting `S_E_req = {fs:read:/data}`. Expected terminal scope at E: `{fs:read:/data}` (intersecti...",
    "condition_of_validity": "The scope-narrowing invariant holds — and the failure is bounded — only when **all** of the following are true: - Every credential in the chain carries an explicit, machine-readable `delegable_subset` field, and the runtime treats the *absence* of that field as \"delegable = ∅\", not \"delegable = held\". Fail-closed on missing restriction metadata is the load-b...",
    "decision_boundary": "The operational decision is: **at credential resolution, do you trust the delegator's declared scope or recompute the path intersection?** - If you recompute the full path intersection against the root anchor at every resolution, you pay a graph-traversal cost per hop but the invariant is structurally enforced. Choose this when chains can exceed length 2 or ...",
    "operational_effect": "Enforcing the path-intersection invariant changes three operational properties: 1. **Latency at re-delegation joints increases** by the cost of ancestor-path traversal — typically O(depth) credential lookups. For deep chains this is measurable; the mitigation is to cache the ancestor intersection per root anchor with a TTL bounded by the shortest ancestor cr..."
  },
  "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": "654e519fe8f935d06a4972f938aa8af22dbe1e8b419cbdb54599fc127f5f463e",
    "verified_classes": [
      "ScopeWideningError",
      "Credential",
      "Hop"
    ],
    "verified_functions": [
      "resolve_path_scope",
      "delegate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [
      "terminal scope not contained in root anchor"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
