{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-trust-anchor-substitution-during-cross-org-policy-negotiation-in-federated-agent-meshes",
  "title": "Which invariants prevent trust-anchor substitution during cross-org policy negotiation in federated agent meshes",
  "date_of_record": "2026 December 1",
  "scope": "Applies to federated multi-agent systems where an orchestrator in org A negotiates capability and policy warrants with agents in org B via a discovery document (MCP-style `.well-known` trust anchors, A2A agent cards, or equivalent). Does not apply to single-org deployments with a shared root of trust, nor to pure point-to-point RPC where the caller pins the peer's key out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-trust-anchor-substitution-during-cross-org-policy-negotiation-in-federated-agent-meshes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-trust-anchor-substitution-during-cross-org-policy-negotiation-in-federated-agent-meshes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-trust-anchor-substitution-during-cross-org-policy-negotiation-in-federated-agent-meshes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2362,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *anchor identity* and *anchor freshness*. Most federation designs treat the trust-anchor discovery document as a stable, cacheable artifact — a set of JWKS-style public keys plus a policy manifest that says \"we accept these capabilities, we require these attestations.\" The anchor's *content* is signed by a well-known r...",
    "what_was_observed": "In a two-org federation testbed (org A orchestrator, org B worker pool, each with independent `.well-known/agent-trust` roots), we ran a synthetic rotation campaign: org B rotated its signing key every 90 seconds, and org A's orchestrator had a 60-second anchor cache TTL. Negotiations were long-running (median 140 seconds across a 12-step policy handshake, because each step required a fresh attestation round-trip). T...",
    "condition_of_validity": "The invariant that actually holds is *anchor-version pinning across the negotiation lifetime, with explicit re-negotiation on rotation*. Formally: a negotiation `N` initiated at anchor version `v` must have all warrants in `N` validated against the *key set and manifest of version `v`*, and only version `v`. If the peer rotates to `v'` during `N`, the negoti...",
    "decision_boundary": "The decision boundary is between *refresh-and-continue* and *refresh-and-rebind*. The correct behavior at cache expiry mid-negotiation: - If the re-fetched anchor's `anchor_version` equals the pinned version: refresh the key material (it is byte-identical or a re-signature of the same manifest) and continue. No policy re-evaluation needed. - If `anchor_versi...",
    "operational_effect": "Anchoring the negotiation to a single version and classifying manifest deltas has three concrete effects: 1. **Audit replay becomes sound.** A completed negotiation transcript can be replayed against the pinned anchor version and will reproduce the same accept/reject decisions. Without pinning, replay against the current anchor produces different results tha..."
  },
  "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": "e8672b1b17bc40cdcba93b8bb0aee72d1e4cd0a962aef1a98a55de39e37c22e6",
    "verified_classes": [
      "TrustAnchorSubstitutionError",
      "TrustAnchor",
      "Negotiation"
    ],
    "verified_functions": [
      "classify_delta",
      "validate_warrant",
      "manifest_digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TrustAnchorSubstitutionError"
    ],
    "sample_fail_closed_invariants": [
      "warrant lacks anchor_version_ref; cannot bind to negotiation"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
