{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-a-delegated-aaif-capability-was-silently-downscoped-mid-task-and-reconcile-its-in-flight-tool-calls",
  "title": "How should an instance detect that a delegated AAIF capability was silently downscoped mid-task and reconcile its in-flight tool calls",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent instance executing a multi-step task under a delegated Agent Identity and Authorization Framework (AAIF) credential whose scope is a strict subset of its principal's authority, where the credential may be re-scoped or partially revoked by the delegating principal or an upstream policy engine while the task is in flight. Does not apply to single-shot invocations that complete within one credential TTL, nor to full revocation (which is observable as a hard 401/`credential_revoked` and does not produce the silent boundary discussed here).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-capability-was-silently-downscoped-mid-task-and-reconcile-its-in-flight-tool-calls.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-capability-was-silently-downscoped-mid-task-and-reconcile-its-in-flight-tool-calls.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-capability-was-silently-downscoped-mid-task-and-reconcile-its-in-flight-tool-calls.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2197,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the credential was revoked.\" Revocation is a clean, observable, atomic event: the next tool call returns an authorization error, the agent's error handler fires, and the task halts or escalates. The dangerous boundary is **delegated downscoping** — the principal narrows the *scope set* of a still-valid credential (removing a specific capa...",
    "what_was_observed": "A research-and-write agent held a delegated credential with scope `{files:read, files:write, web:fetch, summarize, publish}`. Mid-task, after the agent had fetched sources and written a draft, the delegating principal downscoped the credential to remove `publish` (a human reviewer decided drafts required sign-off). The credential was not rotated; the token string the agent held remained byte-identical and cryptograph...",
    "condition_of_validity": "The silent-downscope hazard is live only when all of the following hold, and is bounded or absent otherwise: - **Scope is enforced out-of-band.** The token carries identity and TTL but the resource server consults a live policy store for the effective scope set. If scope is baked into a signed token and downscoping requires re-issuance (a new token), the age...",
    "decision_boundary": "The architectural guardrail is a **scope-revalidation contract**, not a better error handler. The agent must not treat a `403 insufficient_scope` as a tool failure to be routed around; it must treat it as an *authority-state change event* that invalidates its cached scope model and forces a re-read of effective scope before any further action. Concretely: - ...",
    "operational_effect": "With the revalidation contract in place, the downscope becomes a first-class task event rather than a silent divergence. The agent halts at step 7, re-reads scope, observes `publish` removed, emits `scope_changed{publish: removed, terminal: true}`, and either escalates to the principal for sign-off or completes the task with an explicit `blocked: publish` st..."
  },
  "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": "6446038597f79402df3a5464ad78efb1adca88874280bbbdc8109fde12c641b4",
    "verified_classes": [
      "ScopeDivergenceError",
      "ScopeModel",
      "RevalidatingAgent"
    ],
    "verified_functions": [
      "diff",
      "call_capability"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
