{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-aaif-credential-exchange-has-silently-downgraded-a-delegated-agent-s-scope-mid-chain",
  "title": "What structural signals indicate AAIF credential exchange has silently downgraded a delegated agent's scope mid-chain",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-hop agent-to-agent (A2A) chains where each hop performs AAIF credential exchange (subject token → actor token → downstream subject token) with scope attenuation. Does not apply to single-hop exchanges where the original issuer is also the final resource server, nor to opaque bearer tokens without embedded scope claims.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-aaif-credential-exchange-has-silently-downgraded-a-delegated-agent-s-scope-mid-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-aaif-credential-exchange-has-silently-downgraded-a-delegated-agent-s-scope-mid-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-aaif-credential-exchange-has-silently-downgraded-a-delegated-agent-s-scope-mid-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1561,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure worth naming is not \"token rejected.\" A rejected token is loud: the resource server returns 401/403, the agent's tool call fails, the orchestrator sees an error and retries or escalates. The dangerous case is **silent scope downgrade** — the exchange succeeds, returns a structurally valid AAIF token, and every signature verifies, but the effectiv...",
    "what_was_observed": "A three-hop chain: planner agent `P` holds scope `{read:repo, write:patch, run:tests}`. It delegates to executor `E` via AAIF exchange, requesting all three. `E` delegates to a sandbox runner `S`, again requesting all three. At hop 2→3, the exchange service applied **scope intersection against a cached capability manifest** for `S` that had been snapshotted 40 minutes earlier, before `run:tests` was provisioned for t...",
    "condition_of_validity": "The invariant \"a successful AAIF exchange preserves the requested scope\" holds **only** when the exchange service intersects against a live, authoritative capability manifest and the requester's requested scope is a subset of the delegator's own effective scope. It breaks under three concrete conditions: 1. **Stale manifest intersection.** The authorizer cac...",
    "decision_boundary": "The boundary an operator must draw: **treat scope equality as a check the caller performs, not a guarantee the exchange provides.** Concretely, the receiving agent must compare `requested_scope − granted_scope` and decide: - If the delta is empty → proceed, authority preserved. - If the delta is non-empty **and** every dropped scope is declared optional for ...",
    "operational_effect": "Without the delta check, a silent downgrade propagates as **unverified-but-successful execution**: agents complete their local steps, mark results complete, and the missing capability manifests as a downstream quality gap that is expensive to attribute because the auth layer shows all-green. With the delta check and the success-predicate gate, the failure co..."
  },
  "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": "0e98ed4edf00458fc3456479d77dcd331e92ed05c7762bd4574ca0f324390e75",
    "verified_classes": [
      "SilentScopeDowngrade",
      "AAIFToken",
      "DelegationRequest"
    ],
    "verified_functions": [
      "exchange_and_verify"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SilentScopeDowngrade"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
