{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-capability-shadowing-during-federated-agent-registry-anti-entropy-merges",
  "title": "Which invariants prevent capability shadowing during federated agent registry anti-entropy merges",
  "date_of_record": "2026 November 25",
  "scope": "Applies to federated MCP/A2A-style agent registries where independent registry nodes gossip capability advertisements (tool schemas, versioned capability vectors, cost/latency hints) and reconcile via last-writer-wins or per-field CRDT merge. Does not apply to single-authority registries or to registries that serialize all writes through one consensus log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-shadowing-during-federated-agent-registry-anti-entropy-merges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-shadowing-during-federated-agent-registry-anti-entropy-merges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-shadowing-during-federated-agent-registry-anti-entropy-merges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1857,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"stale capability data.\" It is **capability shadowing**: a merge that is individually valid on every field but collectively produces a registry state in which an agent's *advertised* capability set is a strict, unannounced subset of what the agent can actually execute — or a superset of what it can execute. The distinction matters because ...",
    "what_was_observed": "A three-node registry federation (nodes `R1`, `R2`, `R3`) with network partition between `R1` and `{R2,R3}` for ~40s. Agent `A` (owner of its own capability record) is reachable from `R1` and `R2` but not `R3`. During partition: - `A` emits a **capability retraction** for `tool:sql_exec` (version bump `v7 → v8`, `sql_exec` removed, `epoch=41`) to `R1` only. - Concurrently, `A`'s runtime, unaware of the retraction in ...",
    "condition_of_validity": "The per-field merge is sound **only if** capability set membership, schema version, and retraction epoch are co-versioned — i.e., they share a single monotone version counter and are emitted atomically as one signed record. The moment the registry allows these three fields to be independently last-writer-wins, the merge is no longer a lattice join over a sin...",
    "decision_boundary": "The boundary is: **does the registry merge per-field or per-record?** - If per-record with epoch dominance (I1–I3): the merge is a join over a single semilattice; convergence implies correctness; no shadowing is possible. Cost: any capability change forces a full-record rewrite, which is fine at registry scale (records are small, changes are infrequent). - I...",
    "operational_effect": "Downstream effects are not \"stale data\" — they are **false-negative liveness** and **false-positive capability**: 1. **Healthy agents evicted.** `A` is marked degraded because it refuses `v8`-shaped calls to a `v7`-advertised tool. Circuit breakers and health checks keyed on capability-serve success cannot distinguish \"agent is broken\" from \"registry lied ab..."
  },
  "matched_failure_symptoms": [
    "SECRET_OR_PII_LEAK_IN_LOGS"
  ],
  "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": "b1137239547ce7c38d9053e54391344f976b1f4b048be9baf553d7e0a9ba617a",
    "verified_classes": [
      "CapabilityShadowingError",
      "CapabilityRecord"
    ],
    "verified_functions": [
      "_sign",
      "verify_emission",
      "merge_records",
      "serve_capability",
      "canonical"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityShadowingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
