{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-a-federated-tool-registry-fail-open-when-its-trust-anchor-rotates-mid-handshake",
  "title": "Why does an instance of a federated tool registry fail open when its trust anchor rotates mid-handshake",
  "date_of_record": "2026 November 14",
  "scope": "Applies to cross-org agent federation where tool registries are resolved via verifiable credentials (VCs) chained to a per-org trust anchor, and where anchor key material is rotated on a schedule independent of the consumer's cache TTL. Does not apply to single-org deployments or to registries that pin tool descriptors by content hash rather than by issuer DID.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-federated-tool-registry-fail-open-when-its-trust-anchor-rotates-mid-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-federated-tool-registry-fail-open-when-its-trust-anchor-rotates-mid-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-federated-tool-registry-fail-open-when-its-trust-anchor-rotates-mid-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1383,
    "python_slice_tokens": 220,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the registry returned a stale credential.\" It is the distinction between *anchor validity* and *anchor identity*. A consumer correctly verifies that a presented VC was signed by a key that, at verification time, chains to a currently-valid trust anchor. What it does not verify is whether the anchor that signed the VC is the *same* anchor ...",
    "what_was_observed": "During a routine anchor rotation on org `b.example` (old key `kid:b-2025`, new key `kid:b-2026`, 90-second overlap window), a consumer agent on org `a.example` completed a federation handshake at T+0 against `kid:b-2025`. At T+40s, mid-session, the consumer resolved a tool descriptor from `b.example`'s registry. The descriptor's VC was signed by `kid:b-2026`. The consumer's VC verifier, which fetches the *current* an...",
    "condition_of_validity": "The invariant \"a resolved tool descriptor is attested by the anchor the session federated against\" holds only if one of the following is true: - The registry embeds the signing anchor's `kid` and the anchor document's `validFrom`/`validUntil` inside the descriptor VC, *and* the consumer checks that `kid` against its session-pinned anchor, not against a fresh...",
    "decision_boundary": "The consumer must decide, at descriptor-resolution time, whether to bind the descriptor to the session anchor or to the live anchor. The correct boundary is: **bind to the session anchor for the lifetime of the session, and treat any descriptor signed by a different anchor as a re-federation event, not a transparent rotation.** Concretely: - If descriptor VC...",
    "operational_effect": "Left unhandled, the failure produces a 90-second (or rotation-window-length) period in which a consumer invokes tools attested by an anchor it never negotiated with. Impact is bounded by the rotation window and by whether the new anchor is legitimately controlled by the same org — in the benign case, the effect is audit-trail corruption (invocations attribut..."
  },
  "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": "7a8d52f47a2d905f7823f4ca1ac22807ea4b722a4af22bd952a1f3e9ac5a54c8",
    "verified_classes": [
      "AnchorRotationMidSession",
      "TrustBoundaryViolation"
    ],
    "verified_functions": [
      "resolve_descriptor",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AnchorRotationMidSession",
      "TrustBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
