{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-anchor-its-tamper-evident-audit-chain-when-the-signing-key-rotates-mid-handoff-across-organizations",
  "title": "Where must an instance anchor its tamper-evident audit chain when the signing key rotates mid-handoff across organizations",
  "date_of_record": "2026 November 23",
  "scope": "Applies to federated agent systems where each participating organization emits hash-chained, signed audit records and hands off execution state (and audit provenance) to a peer org. Does not address single-tenant logging, nor cryptographic non-repudiation at the transport layer (TLS/mTLS), which is orthogonal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-its-tamper-evident-audit-chain-when-the-signing-key-rotates-mid-handoff-across-organizations.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-its-tamper-evident-audit-chain-when-the-signing-key-rotates-mid-handoff-across-organizations.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-its-tamper-evident-audit-chain-when-the-signing-key-rotates-mid-handoff-across-organizations.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1644,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a log entry was forged.\" It is a **chain-anchor discontinuity**: a receiving organization validates the incoming audit segment against the sender's *current* public key, but the segment was signed under a key that the sender rotated *after* the last record was written and *before* the handoff envelope was serialized. The receiver sees a c...",
    "what_was_observed": "A three-org pipeline (Org A plans, Org B executes tool calls, Org C audits) using a hash chain where each record is `H(prev_hash || payload || signer_key_id)`. Org A rotates its signing key on a 24h schedule with a 5-minute overlap window; old keys remain verifiable for 1 hour. The handoff to Org B occurred at T+23h58m of the key epoch. The trace: 1. Org A writes record N at T+23h58m, signed with `key_A_v7`, terminal...",
    "condition_of_validity": "A cross-org audit chain is valid only if, for every seam between org `X` and org `Y`: - The handoff envelope carries the **exact** `(signer_key_id, public_key, rotation_epoch, terminal_hash)` tuple that signed the last record of the segment — captured at *record-write* time, not at envelope-serialization time. - The receiving org's verifier treats a `key_id`...",
    "decision_boundary": "The boundary is: **does the receiving verifier have enough information, at audit time, to distinguish key rotation from key substitution at the seam?** - If yes (anchor tuple captured at write time, mismatch is hard-fail, seam records the signer key id), the chain is federated-verifiable. - If no — because the envelope was serialized after rotation, or becau...",
    "operational_effect": "The practical consequence is a **silent trust-laundering window** equal to the overlap duration. During overlap, every seam looks fine. After overlap, every seam written in the last `overlap` minutes of a key epoch becomes unverifiable, and the number of such seams scales with handoff frequency times rotation rate. In the observed pipeline, ~4% of seams were..."
  },
  "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": "55cd0839c443bbe52933ed5f26e1dd5236683ee5b5ecfe296c9326d2d100b7e7",
    "verified_classes": [
      "SeamAnchorError",
      "AuditRecord",
      "HandoffEnvelope"
    ],
    "verified_functions": [
      "build_envelope",
      "verify_seam",
      "extend_chain",
      "__post_init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SeamAnchorError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
