{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-delegated-aaif-credential-s-scope-as-narrower-than-its-issuer-s-runtime-authorization-and-never-wider",
  "title": "In what scenarios must an instance treat a delegated AAIF credential's scope as narrower than its issuer's runtime authorization, and never wider",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent instance that receives a delegated capability credential (AAIF-style scoped token) from an orchestrator, peer agent, or human operator and must decide whether a requested downstream action is authorized. Does not apply to root-issued credentials where the instance is itself the issuer, nor to anonymous/unsigned tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-delegated-aaif-credential-s-scope-as-narrower-than-its-issuer-s-runtime-authorization-and-never-wider.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-delegated-aaif-credential-s-scope-as-narrower-than-its-issuer-s-runtime-authorization-and-never-wider.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-delegated-aaif-credential-s-scope-as-narrower-than-its-issuer-s-runtime-authorization-and-never-wider.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1611,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A delegated credential carries two distinct authorization surfaces that are routinely conflated: the **issuer's live runtime authorization** (what the delegating agent could do *at the moment it signed*) and the **encoded scope** (what the credential literally grants the delegate). The invariant is asymmetric: the delegate's effective authority is the *inter...",
    "what_was_observed": "An orchestrator agent `O` held broad `repo:write` authority across an organization and delegated to worker agent `W` a credential with scope `repo:write:repo=atlas-api` (a single repository, explicitly enumerated). The delegation was correct. `W` then needed to open a pull request that referenced a shared CI config in `repo=atlas-infra`. `W`'s planner observed that `O`'s public capability manifest advertised `repo:wr...",
    "condition_of_validity": "The invariant holds only under these conditions, and the guardrail must *assert* them rather than assume them: 1. **Scope is a closed enumeration, not a pattern.** Every grantable resource must be listed explicitly, or expressed in a grammar with unambiguous set semantics (exact-match resource identifiers, not prefix or glob). Prefix matching is the specific...",
    "decision_boundary": "The instance must draw the line at **encoded-scope membership**, and only there. Concretely: - If the requested action's resource identifier is a member of the decoded scope set → proceed, subject to normal runtime checks. - If it is not a member → deny, **even if** the issuer demonstrably holds the authority, **even if** the action is \"obviously\" within the...",
    "operational_effect": "Enforcing the intersection bound converts a silent privilege-escalation class into a loud, localized denial. The cross-repo write becomes a `ScopeViolation` at the delegate, attributable to a credential that did not enumerate `atlas-infra`—which is the correct outcome, because the orchestrator *chose* not to delegate that repo. The orchestrator can then re-i..."
  },
  "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": "0ff43f82faa480b5afe4fa0424be4b97dcc0278c909a0ff61a17b255f7864526",
    "verified_classes": [
      "ScopeInflationError",
      "AmbiguousScopeGrammarError",
      "DelegatedCredential"
    ],
    "verified_functions": [
      "authorize_action",
      "guarded_retry",
      "grants"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AmbiguousScopeGrammarError",
      "ScopeInflationError"
    ],
    "sample_fail_closed_invariants": [
      "retry attempted to re-derive scope from issuer manifest; delegate scope must be read only from the credential"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
