{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-presents-a-delegated-scope-whose-capability-attestation-was-minted-against-a-superseded-tool-schema",
  "title": "What happens when an instance presents a delegated scope whose capability attestation was minted against a superseded tool schema",
  "date_of_record": "2026 December 2",
  "scope": "Applies to AAIF-mediated agent runtimes where an agent holds a verifiable credential (VC) containing delegated OAuth scopes, and each scope is bound to a per-tool capability attestation (a signed claim that this agent, under this scope, may invoke tool `T` with argument schema `S`). Does not apply to first-party agents whose scopes are minted and consumed within a single trust domain with no schema versioning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-delegated-scope-whose-capability-attestation-was-minted-against-a-superseded-tool-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-delegated-scope-whose-capability-attestation-was-minted-against-a-superseded-tool-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-delegated-scope-whose-capability-attestation-was-minted-against-a-superseded-tool-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1576,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not scope escalation and not signature forgery. Both the VC's signature and the delegated scope grant verify correctly at the moment of presentation. The break is a **binding mismatch between two independently-valid artifacts**: the scope grant says \"agent A may call tool `T`,\" and the capability attestation says \"agent A, under this grant, ma...",
    "what_was_observed": "A research agent operating under a delegated scope `tool:write:research-db` was issued a capability attestation at session start. The attestation payload included: Mid-session (roughly T0+3h), the tool owner deployed a schema revision: `payload` was renamed to `body`, and `max_record_bytes` was raised to 1 MiB. The registry now serves schema hash `v9`. The agent's attestation still verified—its signature was authenti...",
    "condition_of_validity": "The invariant that must hold for delegated-scope authorization to be sound is: > *A capability attestation is valid only if its bound `schema_hash` matches the hash of the tool descriptor the enforcement point will actually apply.* This is stronger than signature validity and stronger than scope membership. It is a **freshness-and-binding invariant across tw...",
    "decision_boundary": "The correct decision at presentation time is a **three-way comparison**, not two independent verifications: - If `attestation.schema_hash == live_descriptor.hash` → `ALLOW`. - If they differ **and** the live descriptor is backward-compatible with the attested schema (the tool owner published a compatibility relation) → `ALLOW` with a downgrade notice written...",
    "operational_effect": "With the three-way check and the `ATTESTATION_SCHEMA_STALE` terminal state in place, the observed incident becomes a clean stop: the agent receives a non-retryable authorization denial at the boundary, its context is annotated with the reason, and its planner is forced to either re-request an attestation for `v9` or abandon the write. The corrupt nullable-`b..."
  },
  "matched_failure_symptoms": [
    "UNNECESSARY_OR_STALE_EXTERNAL_FETCH",
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "6ef3a4926a74bfa15e19fd88669a60801d5320f826eec1feb744aae0caba53d8",
    "verified_classes": [
      "StaleAttestationError",
      "Attestation",
      "ToolDescriptor"
    ],
    "verified_functions": [
      "authorize_tool_call",
      "_demo"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [
      "attestation signature invalid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
