{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-dpop-bound-delegated-credential-chains-from-silently-widening-scope-when-an-intermediate-agent-re-mints-rather-than-re-delega",
  "title": "Which invariants prevent DPoP-bound delegated credential chains from silently widening scope when an intermediate agent re-mints rather than re-delegates",
  "date_of_record": "2026 November 23",
  "scope": "Applies to AAIF credential chains where an agent receives a DPoP-bound delegated token (proof-of-possession keyed to its own JWK thumbprint `jkt`) and must pass narrowed authority to a sub-agent. Does not cover root-of-trust key compromise, OIDC federation, or transport-level TLS client certs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-dpop-bound-delegated-credential-chains-from-silently-widening-scope-when-an-intermediate-agent-re-mints-rather-than-re-delega.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-dpop-bound-delegated-credential-chains-from-silently-widening-scope-when-an-intermediate-agent-re-mints-rather-than-re-delega.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-dpop-bound-delegated-credential-chains-from-silently-widening-scope-when-an-intermediate-agent-re-mints-rather-than-re-delega.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2046,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"token theft\" and not \"signature forgery.\" It is **re-minting versus re-delegation**. A delegation chain is a linked list of tokens where each hop's `cnf.jkt` binds the token to the *next* holder's key, and the `scope` claim is monotonically non-increasing along the chain. Re-delegation preserves that structure: the sub-agent gets a token ...",
    "what_was_observed": "A three-hop chain: orchestrator → planner agent → executor agent. The orchestrator held a root token with scope `files:read files:write tickets:read tickets:write`. It delegated to the planner with scope `files:read tickets:read` (correctly narrowed). The planner, needing to hand a narrow slice to the executor, called its internal `mint_token(subject=executor_jkt, scope=[\"files:read\",\"tickets:read\",\"files:write\"])` —...",
    "condition_of_validity": "The monotonic-scope invariant holds **only if** the resource server enforces all three of the following on every request, not just the first: 1. **Lineage reconstruction:** the presented token's `act` chain, read leaf-to-root, must terminate at an issuer the resource server trusts *for this resource*, and each `act[i].sub` must be a principal that itself hel...",
    "decision_boundary": "The boundary between safe and unsafe is **whether the delegating agent can produce a token whose `act` chain is a strict suffix-extension of its own — and whether the verifier checks that extension.** Concretely: - **Safe:** planner calls `delegate(parent_token=self.inbound_token, subject=executor_jkt, scope=intersect(self.inbound_token.scope, requested))`. ...",
    "operational_effect": "When the invariant is enforced, the planner's re-mint attempt fails at the issuer: `delegate` requires a `parent_token` whose `cnf.jkt` matches the caller's DPoP proof, and `mint` is not exposed to non-root principals. The planner's cold-start scope rehydration bug becomes a loud `ScopeWideningError` at the issuer, not a silent privilege escalation at the re..."
  },
  "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": "17a4debef03c35f749f6004d45cc758a662d1fa1419e3d0750bc6019eb4f19f3",
    "verified_classes": [
      "ScopeWideningError",
      "ActLink",
      "DelegatedToken"
    ],
    "verified_functions": [
      "delegate",
      "verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [
      "DPoP key does not match token cnf.jkt",
      "act link cnf_jkt does not match parent token"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
