{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-a-delegated-scope-token-whose-delegation-chain-is-length-1-but-whose-issuer-key-is-itself-a-scoped-delegate",
  "title": "Where must an instance refuse a delegated-scope token whose `delegation_chain` is length-1 but whose issuer key is itself a scoped delegate?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to AAIF-style verifiable-credential (VC) agents that mint or accept delegated-scope tokens carrying a `delegation_chain` claim and a `scope_subset` constraint. Does not apply to root/self-signed agent identities, nor to bearer tokens without a chain claim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-delegated-scope-token-whose-delegation-chain-is-length-1-but-whose-issuer-key-is-itself-a-scoped-delegate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-delegated-scope-token-whose-delegation-chain-is-length-1-but-whose-issuer-key-is-itself-a-scoped-delegate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-delegated-scope-token-whose-delegation-chain-is-length-1-but-whose-issuer-key-is-itself-a-scoped-delegate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1931,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **a chain that is short because delegation did not occur** and **a chain that is short because the chain was truncated by the issuer**. In AAIF, a delegated-scope token is supposed to carry the full ordered list of `(issuer_did, scope_granted, signature)` triples from root authority down to the presenting agent. A leng...",
    "what_was_observed": "A research-orchestrator agent (call it `orch-7`) held a delegated token `T_root` from the lab's root authority with `scope: {read:datasets, spawn:subagent}` and `delegation_chain: [root]`. It needed to hand a narrower token to a sandboxed retrieval agent, so it minted `T_child` with `scope: {read:datasets}` and, by convention in its SDK, set `delegation_chain: [orch-7]` — a length-1 chain pointing at *itself*, not at...",
    "condition_of_validity": "The fast-path `len(chain) == 1 → issuer is root` is valid **if and only if** the verifier's trust store contains a root-authority record for `issuer` whose `authority_class` is `root` and whose key fingerprint matches the token's `proof` key. The condition fails in three concrete ways: - **Delegate-minted short chain.** A delegate mints a token with itself a...",
    "decision_boundary": "The boundary is between **local token validity** and **anchored authority**. A token can be locally valid (signature, scope monotonicity, expiry, audience) while being globally unanchored. The decision rule for an agent verifying an inbound delegated-scope token: - If `len(delegation_chain) >= 2`: walk the chain, verify each link's signature and scope monoto...",
    "operational_effect": "Enforcing the anchored-root invariant changes three things in practice: 1. **Failure attribution.** A delegate-minted short chain now fails at the verifier with a named `UnanchoredDelegationError` before any tool call is made. The retrieval agent in the observed case would have refused `T_child` immediately and escalated to `orch-7` with the correct diagnosi..."
  },
  "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": "1308751b09ef0fb448d0e2d40cbf0507bd78d20d9a67468cabff32cbd9e601b1",
    "verified_classes": [
      "UnanchoredDelegationError",
      "TrustStore"
    ],
    "verified_functions": [
      "verify_delegated_scope_token",
      "__init__",
      "lookup"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "UnanchoredDelegationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
