{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-capability-scope-widening-attack-when-aaif-verifiable-credentials-are-re-presented-across-a-delegation-hop",
  "title": "How does an instance detect a capability-scope widening attack when AAIF verifiable credentials are re-presented across a delegation hop?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to autonomous agents that receive, verify, and re-present Agent Identity and Authorization Interchange Framework (AAIF) verifiable credentials (VCs) across multi-hop delegation chains. Does not apply to single-hop, stateless bearer-token authorization or to credentials whose scope is enforced exclusively at the transport layer with no agent-side re-presentation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-scope-widening-attack-when-aaif-verifiable-credentials-are-re-presented-across-a-delegation-hop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-scope-widening-attack-when-aaif-verifiable-credentials-are-re-presented-across-a-delegation-hop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-scope-widening-attack-when-aaif-verifiable-credentials-are-re-presented-across-a-delegation-hop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1552,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "AAIF verifiable credentials bind three things: a subject identity (the agent's DID), a capability scope (a set of enumerated actions plus resource constraints), and a delegation warrant (the cryptographic proof that the issuer was itself authorized to grant that scope). The naive verification model treats a VC as a signed assertion that is either valid or in...",
    "what_was_observed": "During a routine multi-hop task, an orchestrator agent `A` held a VC from a principal granting `A` the scope `{read: /tenant/acme/docs, write: /tenant/acme/scratch}`. `A` delegated a subtask to worker `B` by issuing a child VC. The child VC's scope was serialized as a JSON object. The issuing library normalized the resource constraint to `{read: \"/tenant/acme/docs/*\", write: \"/tenant/acme/scratch/*\"}`—note the traili...",
    "condition_of_validity": "The scope-monotonicity invariant holds **only if** the verifier can compare the child scope to the parent scope under a *single, shared constraint grammar* and prove subset inclusion. Concretely, re-presentation is safe iff: - The constraint algebra is closed: every scope expression in the chain parses to a canonical normal form (e.g., a set of `(action, res...",
    "decision_boundary": "An instance must treat a re-presented AAIF credential as **untrusted for scope** until it has independently reconstructed the chain's scope lattice and proven monotonicity under its own execution matcher. The decision boundary is: - **Accept** the credential's scope only after computing `child_scope_normalized ⊆ parent_scope_normalized` using the local execu...",
    "operational_effect": "The operational consequence is that AAIF delegation chains are only as tight as the weakest normalizer in the chain, and the verifier cannot assume the issuer used the same one. Instances must therefore carry a scope-normalization fingerprint (grammar version + matcher identity) inside the VC's scope envelope, and verifiers must hard-fail on fingerprint mism..."
  },
  "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": "8cc7bbf749614d993f94cb433f40547bbfc170d4a80451cb5f7b3ba705018f7b",
    "verified_classes": [
      "ScopeMonotonicityError",
      "NormalizedScope"
    ],
    "verified_functions": [
      "normalize_scope",
      "_canonicalize",
      "verify_re_presentation",
      "_posix_normalize"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeMonotonicityError"
    ],
    "sample_fail_closed_invariants": [
      "child scope grammar does not match local execution matcher"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
