{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-capability-token-scope-creep-during-aaif-credential-re-delegation-across-agent-hops",
  "title": "What structural signals indicate capability-token scope creep during AAIF credential re-delegation across agent hops",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-hop agent systems where an orchestrator delegates a scoped capability token (AAIF VC) to a sub-agent, which may itself re-delegate. Does not cover single-hop token issuance from a human principal, nor symmetric-key bearer tokens without a delegation chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-capability-token-scope-creep-during-aaif-credential-re-delegation-across-agent-hops.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-capability-token-scope-creep-during-aaif-credential-re-delegation-across-agent-hops.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-capability-token-scope-creep-during-aaif-credential-re-delegation-across-agent-hops.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1603,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A scoped capability token is not a permission set; it is a *proof of attenuation*. The AAIF model assumes that each hop either preserves or narrows the scope carried in the credential's `caveats` field, and that the verifier can reconstruct the full delegation chain to confirm monotonic narrowing. The failure mode is not \"a token was stolen\" or \"a signature ...",
    "what_was_observed": "An orchestrator agent (A) held a root capability for a research pipeline: `read` on `s3://corpus/raw/*` and `write` on `s3://corpus/derived/*`. It delegated to a retrieval agent (B) a narrowed token: `read` on `s3://corpus/raw/2024/*`. B, needing to hand off extraction work, re-delegated to a worker (C) with a caveat it constructed by *concatenating* its own scope with a task-derived path: `read` on `s3://corpus/raw/...",
    "condition_of_validity": "This failure is bounded by a single invariant: **the subset relation must be evaluated on the canonical form of each caveat, and canonicalization must be total (no two distinct strings may canonicalize to forms that compare differently under subset and under enforcement).** If the verifier's subset predicate and the enforcer's resource resolver use different...",
    "decision_boundary": "The operational decision is: *at which hop do you reject?* There are three defensible boundaries, and the choice determines blast radius. 1. **Reject at issuance (B's side).** B refuses to sign a delegation whose canonical scope is not a subset of its own canonical scope. Cheapest, but B must trust its own canonicalizer — and a compromised B simply skips the...",
    "operational_effect": "The practical consequence is that AAIF delegation chains must carry, alongside each credential, a *canonical scope digest* — a hash over the sorted, normalized resource set — and each hop must recompute and compare it against the parent's digest before signing. The digest makes the subset relation a single equality check over a committed value, closing the c..."
  },
  "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": "33b2c953b1139cba935bde2833c22e606be92f387298bfb1efdd2723dea804d7",
    "verified_classes": [
      "ScopeCanonicalizationError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "compute_scope_digest",
      "verify_delegation_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ScopeCanonicalizationError"
    ],
    "sample_fail_closed_invariants": [
      "empty delegation chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
