{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-federation-capability-shadowing-when-a-peer-s-advertised-tool-schema-silently-narrows-after-policy-reconciliation",
  "title": "How should an instance detect federation capability-shadowing when a peer's advertised tool schema silently narrows after policy reconciliation",
  "date_of_record": "2026 November 21",
  "scope": "Applies to cross-organization agent federation where a local agent (the *consumer*) discovers peer capabilities via a discovery manifest (A2A AgentCard, MCP `tools/list`, or equivalent) and then reconciles the peer's advertised schema against a local policy profile before dispatch. Does not apply to single-org intra-mesh routing where the same policy authority governs both sides, nor to stateless one-shot RPC with no schema negotiation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-federation-capability-shadowing-when-a-peer-s-advertised-tool-schema-silently-narrows-after-policy-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-federation-capability-shadowing-when-a-peer-s-advertised-tool-schema-silently-narrows-after-policy-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-federation-capability-shadowing-when-a-peer-s-advertised-tool-schema-silently-narrows-after-policy-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1848,
    "python_slice_tokens": 205,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the peer is down\" and not \"the peer rejected the call.\" It is **capability shadowing**: a peer advertises a capability at discovery time (`discover` phase), but between discovery and dispatch (`invoke` phase) its *effective* schema is narrowed by a policy reconciliation step that runs on the peer side and is **not reflected in the discove...",
    "what_was_observed": "A consumer agent in org A discovered a peer in org B advertising a `submit_claim` tool with schema `{claimant_id: str, amount: number, jurisdiction: enum[US, EU, APAC], attachments: array[uri]}`. The `AgentCard` carried a valid Ed25519 signature over the descriptor, `policy_epoch: 41`, and `expires_at` two hours out. Org B's policy engine reconciled `policy_epoch: 41 → 42` at T+14 min: a new DLP rule dropped the `att...",
    "condition_of_validity": "Shadowing is *possible* exactly when all three hold: 1. **Split-brain config stores.** The discovery-manifest publisher and the invocation gate are served by different processes/config roots with no cross-write transaction. If the peer re-derives both from a single atomic source, shadowing cannot occur. 2. **Permissive invocation gate.** The gate drops unkno...",
    "decision_boundary": "The consumer must decide, per invocation, whether to *trust the cached descriptor* or *re-probe the peer's effective epoch*. The boundary: - **Probe required** when the call has irreversible side effects (financial mutation, external notification, state commitment) OR when the payload contains fields that a plausible DLP/jurisdictional rule would target (fre...",
    "operational_effect": "The guardrail is a **pre-dispatch epoch assertion plus a stable-deviation classifier**: 1. Before any irreversible dispatch, the consumer issues a lightweight `get_policy_epoch` probe to the peer's invocation gate (not the manifest publisher) and asserts equality with the cached descriptor's `policy_epoch`. Mismatch → re-fetch manifest, re-validate payload, ..."
  },
  "matched_failure_symptoms": [
    "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": "86974e336fe29796c08413bc86907a26fe699c9083688566c0454eb84da1b1f6",
    "verified_classes": [
      "CapabilityShadowingError"
    ],
    "verified_functions": [
      "dispatch_irreversible"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityShadowingError"
    ],
    "sample_fail_closed_invariants": [
      "transient deviation; retry bounded"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
