{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-federated-agent-manifest-whose-signing-key-was-rotated-mid-handshake",
  "title": "Why does an instance accept a federated agent manifest whose signing key was rotated mid-handshake?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to cross-organization agent federation where a receiving instance verifies a signed agent manifest (capability declarations, endpoint, warrant scope) against a cached trust anchor published by the peer org. Does not cover intra-org manifests verified against a live key directory, nor single-issuer JWT validation where the JWKS is fetched per-request.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-federated-agent-manifest-whose-signing-key-was-rotated-mid-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-federated-agent-manifest-whose-signing-key-was-rotated-mid-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-federated-agent-manifest-whose-signing-key-was-rotated-mid-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1591,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a bad signature was accepted.\" It is that a *valid* signature from a *superseded* key was accepted because the verifier's trust-anchor cache and the peer's signing-key rotation advanced on independent clocks. The distinguishing property: manifest verification is split across two authorities—the manifest's embedded `kid` (key ID) and the t...",
    "what_was_observed": "Org A runs a federated agent (`planner-7`) that hands tasks to Org B's `executor-3`. Org B publishes its manifest signing keys at `/.well-known/agent-keys.json` with a 6-hour cache TTL. Org A's verifier caches the anchor set and, critically, *pins the key material* on first successful verification (TOFU-style pinning to bound the cost of repeated JWKS fetches across a high-fanout swarm). At T0, Org B rotates `executo...",
    "condition_of_validity": "The invariant that must hold is a **temporal binding between anchor freshness and manifest issuance**, not merely key membership: > A manifest signed by key `k` is admissible only if `k` was, at the instant of verification, both (a) present in the peer's published anchor set and (b) not superseded by a rotation the verifier could have observed within its own...",
    "decision_boundary": "The verifier must decide, per manifest, between **admit**, **reject**, and **force-refresh-then-recheck**. The boundary is not \"is the signature valid\" but \"can I prove the signing key was live at verification time within my staleness budget `S`.\" Concretely, admit only when `now - anchor.fetched_at <= S` **and** `anchor.epoch >= manifest.anchor_epoch`. If t...",
    "operational_effect": "Under the corrected boundary, the replayed manifest fails at the epoch check: `manifest.anchor_epoch` is behind the verifier's post-refresh `anchor.epoch`, and admission is refused with an explicit `StaleAnchorEpoch` fault rather than a silent pass. The cost is that federated handshakes now block on anchor freshness for elevated warrants, which raises tail l..."
  },
  "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": "e0e4023f0fa1b590170b9c782568a90a3c070ce97040251be5d8ec1f9b7fdc8b",
    "verified_classes": [
      "StaleAnchorEpoch",
      "Anchor",
      "Manifest"
    ],
    "verified_functions": [
      "verify_manifest"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleAnchorEpoch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
