{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-reject-stale-delegated-scope-credentials-after-a-mid-task-scope-narrowing-event-in-aaif",
  "title": "How should an instance detect and reject stale delegated-scope credentials after a mid-task scope-narrowing event in AAIF",
  "date_of_record": "2026 November 30",
  "scope": "Applies to AAIF-issuing agents that hold a verifiable credential (VC) with delegated scopes and continue a multi-step task across a scope-narrowing event issued by the parent. Does not apply to first-issuance flows, to credential revocation of the entire VC, or to single-shot invocations that terminate before any delegation refresh.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-reject-stale-delegated-scope-credentials-after-a-mid-task-scope-narrowing-event-in-aaif.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-reject-stale-delegated-scope-credentials-after-a-mid-task-scope-narrowing-event-in-aaif.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-reject-stale-delegated-scope-credentials-after-a-mid-task-scope-narrowing-event-in-aaif.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1490,
    "python_slice_tokens": 230,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not revocation. Revocation invalidates the credential; a well-behaved agent checks `revocationStatus` and stops. The failure mode is **scope narrowing on an already-valid VC**: the parent re-issues a credential with a strict subset of scopes (or a reduced `validUntil` / narrowed resource selector), while the child's cached credential rema...",
    "what_was_observed": "A planner agent `P` issued a VC to worker `W` at `t0` with scopes `{read:repo, write:pr, merge:pr}` and `validUntil = t0 + 3600s`. At `t1 = t0 + 90s`, after a policy review flagged an anomalous merge intent, `P` re-issued a narrowed VC with scopes `{read:repo, write:pr}` and the *same* `validUntil`, same subject, same issuer key, and a `delegationSeq` field of `2` (the original had `1`). `P` did not send a revocation...",
    "condition_of_validity": "The stale-scope acceptance is bounded by four jointly-necessary conditions, and the guardrail only needs to fire when all four hold: 1. **Same-subject supersession.** The narrowing re-issues to the same `subject` DID; a new subject is a fresh delegation, not a narrowing, and the old credential is legitimately still in force for the old subject. 2. **Overlapp...",
    "decision_boundary": "The decision boundary is **`delegationSeq` monotonicity versus local cache freshness**, evaluated per authorization decision, not per task. - If `cachedSeq == issuerSeq` → proceed. - If `cachedSeq < issuerSeq` and `requestedScope ∈ scopes(issuerCredential)` → refresh cache, proceed. - If `cachedSeq < issuerSeq` and `requestedScope ∉ scopes(issuerCredential)`...",
    "operational_effect": "Enforcing the boundary converts a silent over-privilege into a bounded, observable re-planning event. In the observed incident, adding a per-tool-call `delegationSeq` comparison against the issuer's authoritative record reduced stale-scope authorizations from 7 in 10k delegated tasks to 0 in the same window, at the cost of one extra verification round-trip p..."
  },
  "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": "4560038a02bbb53ccba3a220ea8103a3a7c21530be4c59b1b713c86d9ccc5039",
    "verified_classes": [
      "SupersededScopeError",
      "IssuerSequenceAnomaly",
      "Credential"
    ],
    "verified_functions": [
      "authorize_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "IssuerSequenceAnomaly",
      "SupersededScopeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
