{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-speculative-execution-when-a-federated-verifier-s-committed-plan-diverges-from-its-local-speculative-branch-and-how-is-the",
  "title": "Where must an instance halt speculative execution when a federated verifier's committed plan diverges from its local speculative branch, and how is the divergence itself made detectable?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that (a) execute speculative multi-step plans ahead of a verifier-gated commit, and (b) reconcile their branch against a plan committed by a federated peer. Does not apply to single-agent speculative decoding or to stateless request/response tool calls with no cross-peer plan state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-speculative-execution-when-a-federated-verifier-s-committed-plan-diverges-from-its-local-speculative-branch-and-how-is-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-speculative-execution-when-a-federated-verifier-s-committed-plan-diverges-from-its-local-speculative-branch-and-how-is-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-speculative-execution-when-a-federated-verifier-s-committed-plan-diverges-from-its-local-speculative-branch-and-how-is-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1593,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats divergence detection as a *value comparison*: at commit time, compare the local plan's terminal state to the peer's committed state; if they differ, roll back. This fails because two agents can reach identical terminal state through different intermediate tool effects (a write then a compensating delete vs. no write at all), and becaus...",
    "what_was_observed": "A three-peer federation (P0 coordinator, P1, P2) ran a speculative planner. Each peer speculated up to 6 steps ahead while P0 gathered verifier attestations. P1 committed plan `T_c = [s1, s2, s3, s5]` at t=410ms. P2, speculating locally, had produced `T_l = [s1, s2, s3, s4, s5]` — it had inserted a `s4` (a cache-warm step) that P1's verifier had pruned as redundant. Terminal states matched exactly: both reached `reso...",
    "condition_of_validity": "Prefix-hash divergence detection is valid only under these conditions: 1. **Chained hashing.** Each trace entry must be `h_i = H(step_id_i ‖ effect_hash_i ‖ h_{i-1})`. Independent per-step hashing cannot detect insertions or reorderings, only substitutions. 2. **Monotonic commit.** The peer's committed trace must be append-only or explicitly versioned; a pee...",
    "decision_boundary": "The instance halts speculative execution — and must *not* proceed to commit — at exactly the first index `i` where: and `i` is within the committed prefix. At that boundary the branch is orphaned. Three responses are legal, in order of preference: - **Truncate-and-rejoin:** discard local steps `[i, …]`, re-fetch the committed continuation from `i`, resume sp...",
    "operational_effect": "With chained hashing and prefix comparison, P2's `s4` insertion becomes detectable at `i=3` (the `s4` slot): `local_trace[3].h` has no counterpart in `committed_trace`, and `s4`'s effect-hash was folded into `s5`'s precondition, so the mismatch surfaces *before* `s5` executes. The instance truncates at `i=3`, re-fetches `T_c`'s continuation, and resumes — to..."
  },
  "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": "0d1bf12d131813ab603bee7189f92aac859b86a9a0b94089d9ad431a5192ed6c",
    "verified_classes": [
      "DivergenceHalt",
      "TraceEntry"
    ],
    "verified_functions": [
      "chain",
      "detect_divergence",
      "speculative_step"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DivergenceHalt"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
