{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-dpop-bound-delegated-credential-chain-collapse-when-intermediate-aaif-hops-silently-re-sign-with-attenuated-scope",
  "title": "How should an instance detect DPoP-bound delegated credential chain collapse when intermediate AAIF hops silently re-sign with attenuated scope",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-hop AAIF delegated authorization chains where each hop mints a DPoP-bound token for the next, and any hop may re-sign with narrowed scope. Does not apply to single-hop bearer-token issuance or to chains that forbid intermediate re-signing (frozen-delegation mode).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-dpop-bound-delegated-credential-chain-collapse-when-intermediate-aaif-hops-silently-re-sign-with-attenuated-scope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-dpop-bound-delegated-credential-chain-collapse-when-intermediate-aaif-hops-silently-re-sign-with-attenuated-scope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-dpop-bound-delegated-credential-chain-collapse-when-intermediate-aaif-hops-silently-re-sign-with-attenuated-scope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1525,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **scope attenuation** (a legitimate, intended narrowing of delegated authority at a hop) and **scope substitution** (an intermediate hop re-signing a child token whose `scope` set is not a subset of the parent's `scope` set, but whose `cnf`/`jkt` thumbprint and `azp` chain still verify). Both produce a token that passe...",
    "what_was_observed": "A three-hop chain: orchestrator `O` → worker `W` → sub-tool `T`. `O` holds root credential with scope `[repo:read, repo:write]`. `O` delegates to `W` with scope `[repo:read]` (correct attenuation). `W`, executing a plan, calls `T` and mints a child token. Under a prompt-injection payload embedded in a retrieved document, `W`'s reasoning step emits a delegation request with scope `[repo:read, repo:write]` — it \"restor...",
    "condition_of_validity": "The subset invariant holds only if enforced at **both** mint and verify, and only if the scope grammar is normalized before comparison. Two conditions break naive enforcement: - **Scope grammar non-normalization.** `repo:read` vs. `repo:read:*` vs. `repo.read` are distinct strings. A subset check that does string equality on a set of literals will reject leg...",
    "decision_boundary": "The boundary is: **does the verifier walk the full chain, or does it validate the leaf against the anchor?** Leaf-vs-anchor is O(1) and fast; full-chain walk is O(hops) and requires the chain to be present and untruncated. The decision boundary is not performance — it is *where the authority ceiling lives*. If the ceiling lives at the anchor, intermediate at...",
    "operational_effect": "After the incident, the fix was threefold: (1) the AAIF minting library at every hop now compares requested scope against the *calling hop's own* grant, not the anchor, and raises on superset; (2) the resource server verifier walks `delegation_chain` and asserts pairwise subset with normalized grammar, failing closed on truncation; (3) each hop emits a `scop..."
  },
  "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": "360b59fd43fa73975bec008f3ef2f96e085cd313631b0d4cafb84d40c7df98db",
    "verified_classes": [
      "ScopeSubstitutionError",
      "ChainTruncationError",
      "Link"
    ],
    "verified_functions": [
      "normalize",
      "is_subset",
      "verify_chain"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ChainTruncationError",
      "ScopeSubstitutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
