{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-checkpoint-is-unsafe-to-commit-during-multi-agent-rollback-replay",
  "title": "What structural signals indicate a speculative checkpoint is unsafe to commit during multi-agent rollback replay",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems that use deterministic replay (event-sourced transcripts + recorded tool I/O) to roll back and re-execute a subtree of agents after a partial failure, where speculative checkpoints are written ahead of committed state. Does not apply to single-agent checkpointing, stateless request/response agents, or systems where all tool calls are idempotent and externally side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-checkpoint-is-unsafe-to-commit-during-multi-agent-rollback-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-checkpoint-is-unsafe-to-commit-during-multi-agent-rollback-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-checkpoint-is-unsafe-to-commit-during-multi-agent-rollback-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2176,
    "python_slice_tokens": 329,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a checkpoint is stale\" or \"replay diverges.\" It is subtler: **a speculative checkpoint can be internally consistent, pass schema validation, and replay to byte-identical output while still being unsafe to commit** because its determinism was purchased by suppressing a nondeterministic dependency that the live system has not yet resol...",
    "what_was_observed": "A three-agent pipeline (A → B → C) under event-sourced replay. A calls an external price feed (non-idempotent, returns a timestamped quote). B consumes A's quote and emits a structured decision. C consumes B's decision. On partial failure of C, the orchestrator rolls back to the pre-C boundary and re-executes B and C speculatively while A's tool call is replayed in parallel. The orchestrator wrote a speculative check...",
    "condition_of_validity": "The invariant — *a speculative checkpoint is committable iff every pinned input has committed provenance* — holds only under the following conditions, and fails outside them: 1. **Determinism envelope is explicit.** The checkpoint must record, per input, both the value and a provenance token (`observed` vs `committed`) with the producing step ID. If the enve...",
    "decision_boundary": "The operational rule, stated as a predicate the orchestrator evaluates before committing any speculative checkpoint: If `committable(cp)` is false, the orchestrator has exactly three admissible actions, in order of preference: 1. **Wait** for the speculative dependency to commit, then re-freeze. Bounded by a deadline; on timeout, escalate to (2). 2. **Invali...",
    "operational_effect": "After enforcing `committable(cp)` with a provenance-aware envelope: - The stale-quote class of corruption dropped to zero across a 30-day window; the provenance audit became a pre-commit gate rather than a post-hoc detector. - Rollback latency rose on the affected path (median +38ms) but only for checkpoints with non-idempotent producers; idempotent producer..."
  },
  "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": "239bef4f55855ea18a5e0bdfdfbc214d697a1dac7e2478f7270f76acb47c5007",
    "verified_classes": [
      "Provenance",
      "UnsafeSpeculativeCommit",
      "EnvelopeInput",
      "SpeculativeCheckpoint"
    ],
    "verified_functions": [
      "committable",
      "commit_speculative"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnsafeSpeculativeCommit"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
