{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-scope-escalation-leakage-when-an-aaif-delegated-credential-is-re-minted-across-a-sub-agent-hop",
  "title": "How should an instance detect scope-escalation leakage when an AAIF delegated credential is re-minted across a sub-agent hop",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any AAIF-style delegated credential chain where an orchestrator agent mints a down-scoped bearer credential for a sub-agent (tool-runner, retriever, browser agent) and that sub-agent may itself re-delegate. Does not apply to root credential issuance by the identity authority, nor to single-hop invocations where the sub-agent terminates the chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-escalation-leakage-when-an-aaif-delegated-credential-is-re-minted-across-a-sub-agent-hop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-escalation-leakage-when-an-aaif-delegated-credential-is-re-minted-across-a-sub-agent-hop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-escalation-leakage-when-an-aaif-delegated-credential-is-re-minted-across-a-sub-agent-hop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1799,
    "python_slice_tokens": 398,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a sub-agent received too much scope.\" The failure is that a **re-minted** credential silently widens relative to its parent because attenuation was enforced at *issuance* time against the parent's *requested* scope rather than at *verification* time against the parent's *effective* scope. AAIF attenuation is conventionally specified as a ...",
    "what_was_observed": "A three-hop chain in a code-review swarm: 1. **Hop 0 (orchestrator):** root credential `C0` with `scope={repo:read, issues:read, issues:write}`, `resource=repo/acme/*`, `ttl=3600`. 2. **Hop 1 (orchestrator → reviewer):** `C1 = attenuate(C0, requested={repo:read, issues:read}, resource=repo/acme/*)`. Issuance service intersects `requested` with `C0.scope` → `{repo:read, issues:read}`. Correct. `C1.resource` inherited ...",
    "condition_of_validity": "The set-intersection invariant `scope(C_i) ⊆ scope(C_{i-1})` holds only if the credential's authorization surface is fully captured by the `scope` claim. It is not, when any of the following are part of the surface: - `resource` (pattern or list) — must be intersected with the *same matcher* the verifier uses, not a nominally equivalent one. - `constraints` ...",
    "decision_boundary": "The boundary is between **issuance-time attenuation** (cheap, local, necessary) and **verification-time chain evaluation** (expensive, distributed, authoritative). The decision rule: - If the credential's surface is a single flat set claim with no resource patterns, no constraints, and no delegation flags, issuance-time intersection is sufficient and chain e...",
    "operational_effect": "After the fix, the swarm's test-runner hop failed closed on the first attempt against `repo/acme/secrets/` and the orchestrator re-minted with an explicit `resource=repo/acme/src/**` and a `constraints={rate: 20/min}` that the verifier confirmed as a conjunction-narrowing of the parent's `rate: 60/min`. Latency cost: one extra chain walk per credential prese..."
  },
  "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": "1397f11f3dc8948d87b892d77ee70a68c9183a8053fc7c3b5402dc16f8ca5278",
    "verified_classes": [
      "ScopeEscalationError",
      "Credential"
    ],
    "verified_functions": [
      "effective_surface",
      "_resource_narrows",
      "authorize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ScopeEscalationError"
    ],
    "sample_fail_closed_invariants": [
      "may_redelegate widened relative to ancestor"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
