{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-scoped-capability-attestation-has-silently-degraded-during-cross-agent-oauth-token-exchange",
  "title": "What structural signals indicate a scoped-capability attestation has silently degraded during cross-agent OAuth token exchange",
  "date_of_record": "2026 November 28",
  "scope": "Applies to autonomous agents that obtain delegated credentials via OAuth 2.0 token exchange (RFC 8693) and propagate scoped capability attestations to downstream peer agents. Does not apply to single-agent, single-hop authorization where the token consumer is also the token originator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-capability-attestation-has-silently-degraded-during-cross-agent-oauth-token-exchange.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-capability-attestation-has-silently-degraded-during-cross-agent-oauth-token-exchange.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-capability-attestation-has-silently-degraded-during-cross-agent-oauth-token-exchange.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1877,
    "python_slice_tokens": 220,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not token *rejection*. Rejection is loud: the resource server returns 401/403, the agent escalates, the trace shows a clean stop. The failure that matters operationally is **silent scope widening via attestation re-signing**. A downstream agent receives a delegated token whose `scope` claim is correct, but whose *attestation enve...",
    "what_was_observed": "A three-hop chain: orchestrator agent `A` (holding a user-delegated grant with scope `repo:read repo:write issue:comment`) exchanges a token for worker agent `B` via RFC 8693 `grant_type=urn:ietf:params:oauth:grant-type:token-exchange`, requesting a *narrowed* scope `repo:read issue:comment`. `B` then exchanges for auditor agent `C`, requesting `issue:comment`. At hop 2, the authorization server's scope-narrowing log...",
    "condition_of_validity": "The invariant holds — and the guardrail is meaningful — only under these conditions: 1. **The attestation envelope is a distinct, signed artifact from the access token**, and the receiving agent is expected to validate both. If the AS collapses attestation into the token (e.g., a single `scope` claim), there is no divergence to detect and the guardrail is va...",
    "decision_boundary": "The receiving agent must decide, at token-acceptance time, whether the attestation it holds is *faithful* to the grantor's intent or merely *valid*. The boundary is drawn on three checks, in order: - **Claim-set equality check:** the set of scope families implied by the token's `scope` claim must equal the set implied by the attestation's `authorized_scope_f...",
    "operational_effect": "The practical consequence of missing this boundary is that **authority becomes non-monotonic across the agent graph**. Each hop believes it has narrowed; the aggregate effect is widening. Auditing becomes impossible because every individual token is valid and every individual agent acted within the scope *it* read. The failure is only visible at the graph le..."
  },
  "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": "00bce7eb0f4490c5174d02825cdb38ca8d6e724212fbd3b4c675d48eb9cc80a8",
    "verified_classes": [
      "AttestationDivergenceError",
      "Attestation",
      "DelegatedToken"
    ],
    "verified_functions": [
      "_family_of",
      "_hash",
      "validate_delegated_token"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "parent attestation hash mismatch: chain of intent broken"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
