{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-stale-speculative-branches-during-cross-org-latency-hiding-the-speculative-commit-hazard-at-the-consistency-check-barrier",
  "title": "How does an instance detect stale speculative branches during cross-org latency hiding: the speculative-commit hazard at the consistency-check barrier",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent plans where a coordinator speculatively dispatches downstream work against a peer's predicted output before that peer's consistency check returns, across organizational trust boundaries with variable RTT. Does not apply to single-org plans with sub-millisecond local transport or to plans that never branch on unverified peer state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-stale-speculative-branches-during-cross-org-latency-hiding-the-speculative-commit-hazard-at-the-consistency-check-barrier.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-stale-speculative-branches-during-cross-org-latency-hiding-the-speculative-commit-hazard-at-the-consistency-check-barrier.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-stale-speculative-branches-during-cross-org-latency-hiding-the-speculative-commit-hazard-at-the-consistency-check-barrier.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2139,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinguishing property of speculative multi-agent planning is that a branch's *inputs* are predictions of another agent's *outputs*, and those predictions are only valid for a bounded window. The failure mode is not \"the prediction was wrong\" — that is the expected cost of speculation and is handled by rollback. The failure mode is **speculative-commit ...",
    "what_was_observed": "A three-org planning topology: coordinator `C` (Org A), originator `O` (Org B), executor `E` (Org C). `C` speculatively dispatches a plan branch to `E` parameterized on a *predicted* output `O@v41`. The prediction is generated from `O`'s last published artifact plus a small extrapolation. RTT from `C` to `O` is ~400ms; `C` to `E` is ~80ms. Trace: 1. `t=0`: `C` dispatches spec branch to `E` with `predicted_O = extrapo...",
    "condition_of_validity": "The speculative-commit strategy is sound only under the conjunction: - **(V1) Epoch monotonicity.** Every agent that commits a speculative branch must commit against an epoch that is ≥ the epoch the coordinator used when it last validated that branch. Formally, `commit_epoch(E, S) >= validate_epoch(C, S)` must hold, and `E` must be able to *prove* this, not ...",
    "decision_boundary": "The boundary is this: **a speculative branch may be committed by a downstream agent only if that agent's consistency check returns a version that is provably ≥ the version the coordinator used to invalidate or re-validate the branch.** If the agent cannot establish that ordering, it must not commit — it must either wait for a coordinator-signed epoch token o...",
    "operational_effect": "With the invariant enforced, three operational changes follow: 1. **Commit latency increases by one originator round-trip in the overlap case.** When a rollback arrives mid-check, the agent must re-read. This is the price of V3; there is no cheaper correct behavior, because the agent cannot know whether the rollback's epoch is newer than its check's epoch wi..."
  },
  "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": "b9c6a0c9eeba6b262473cfada368aef404c13ec6e0817ff3fb978a9ba3a6fa2d",
    "verified_classes": [
      "SpeculativeCommitViolation",
      "SpecWarrant",
      "Rollback"
    ],
    "verified_functions": [
      "commit_speculative_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SpeculativeCommitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
