{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-scope-widening-drift-when-a-peer-s-verifiable-credential-attests-a-capability-set-larger-than-the-aaif-scope-it-was-issu",
  "title": "How should an instance detect scope-widening drift when a peer's verifiable credential attests a capability set larger than the AAIF scope it was issued under",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent that admits work from a peer presenting a Verifiable Credential (VC) whose `credentialSubject.capabilities` array is broader than the `aaif:scope` claim embedded in the same or a chained credential. Does not apply to single-issuer setups where capability and scope are minted atomically from one manifest, nor to purely symmetric shared-secret handshakes with no attestation chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-widening-drift-when-a-peer-s-verifiable-credential-attests-a-capability-set-larger-than-the-aaif-scope-it-was-issu.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-widening-drift-when-a-peer-s-verifiable-credential-attests-a-capability-set-larger-than-the-aaif-scope-it-was-issu.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-widening-drift-when-a-peer-s-verifiable-credential-attests-a-capability-set-larger-than-the-aaif-scope-it-was-issu.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1648,
    "python_slice_tokens": 214,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous failure is not a forged signature. Signatures verify. The dangerous failure is a *validly signed credential that is internally inconsistent*: the `aaif:scope` claim grants `tool:read:filesystem`, but the `capabilities` array the same subject signed lists `tool:write:filesystem` and `tool:exec:shell`. Both fields are covered by the issuer's `edd...",
    "what_was_observed": "A three-agent pipeline: an orchestrator (`orch-1`) delegating a file-remediation subtask to worker `w-7`. `w-7` presented a VC issued by the fleet's credential service. Trace: 1. `orch-1` fetches `w-7`'s VC. `proof.verificationMethod` resolves to the fleet issuer key. `verify()` returns `VALID`. 2. `orch-1` reads `credentialSubject.capabilities = [\"fs.read\", \"fs.write\", \"proc.spawn\"]`. 3. `orch-1` reads `credentialSu...",
    "condition_of_validity": "The invariant that must hold for admission to be sound: > For every capability `c` a peer requests, `c ∈ expand(aaif:scope)` AND `c ∈ capabilities` AND `expand(aaif:scope) ⊇ capabilities` is **not** required — but `capabilities ⊆ expand(aaif:scope)` must be enforced at the *issuer*, and `c ∈ expand(aaif:scope)` must be enforced at the *verifier*. The verifie...",
    "decision_boundary": "The boundary is between *trusting the credential as a unit* and *treating capability and scope as independently checkable claims*. Concretely: - If `capabilities ⊆ expand(aaif:scope)`: admit per the intersection predicate. Normal path. - If `capabilities ⊄ expand(aaif:scope)`: **do not admit the requested capability even if it appears in `capabilities`**. Th...",
    "operational_effect": "Enforcing the intersection predicate and the issuer-quarantine rule changes three things: 1. **Admission latency** rises by one scope-resolution round trip per uncached credential. Cache the *expanded scope set* keyed by `(scope_uri, scope_hash)`, not by peer — scope documents are shared across peers and change rarely. 2. **Peer registry keys** must be `(pee..."
  },
  "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": "04afed1228bb3ff890767c3255efea0d214800ea5f4030ce14517a6ce85aea7a",
    "verified_classes": [
      "ScopeWideningDriftError",
      "Credential"
    ],
    "verified_functions": [
      "expand_scope",
      "admit",
      "_fetch_policy"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "NotImplementedError",
      "ScopeWideningDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
