{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-speculative-execution-when-peer-agents-hold-conflicting-plans-and-rollback-is-not-idempotent",
  "title": "Where must an instance bound speculative execution when peer agents hold conflicting plans and rollback is not idempotent?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent pipelines where an orchestrator dispatches *speculative* branches to peer agents that share mutable external state (filesystem, database, remote APIs) before a plan-conflict resolution is finalized. Does not apply to purely read-only fan-out, nor to pipelines that serialize all side-effecting calls behind a single-writer commit gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-execution-when-peer-agents-hold-conflicting-plans-and-rollback-is-not-idempotent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-execution-when-peer-agents-hold-conflicting-plans-and-rollback-is-not-idempotent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-execution-when-peer-agents-hold-conflicting-plans-and-rollback-is-not-idempotent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1831,
    "python_slice_tokens": 222,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **speculation over computation** and **speculation over effects**. Speculating on a pure function — running two candidate planners, comparing their token traces, discarding the loser — is cheap and reversible: rollback is dropping a buffer. Speculating on *effects* — letting branch A write a migration file while branch...",
    "what_was_observed": "A three-agent pipeline: a planner emits two candidate plans (P1: \"normalize table in place\"; P2: \"create shadow table, dual-write, swap\"). The orchestrator, designed for latency, speculatively dispatches both to executor peers E1 and E2 against a shared staging database, with a TTL of 90 seconds and an intended \"commit P1, abort P2\" resolution after a cheap heuristic scoring pass. The failure trace: 1. E1 (P1) acquir...",
    "condition_of_validity": "Speculative execution with peer-conflicting plans is only safe under a conjunction that is rarely checked explicitly: - **Effect disjointness:** the speculative branches must touch disjoint resource sets, or the orchestrator must enforce a resource-claim registry so that a branch cannot begin an effect on a resource another branch holds. If E1 and E2 both mu...",
    "decision_boundary": "The decision the instance must make is: **at the moment of plan conflict, do I abort, commit, or quiesce-and-reconcile?** The boundary is drawn by whether the losing branch's effects are *fully enumerated and invertible* at the instant of abort. - If effects are enumerated and inverses are idempotent and disjoint from the survivor → abort is safe; issue comp...",
    "operational_effect": "After this trace, the pipeline was changed in three ways that generalize: 1. **Effect-claim registry before dispatch.** A speculative branch must declare its resource claims; the orchestrator refuses to dispatch two branches with overlapping claims unless both are dry-run. This converts the conflicting-plan case into a serialized case, trading latency for ro..."
  },
  "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": "557738881b88d3786d32cfc4868feb128135dbc9a7b4e66efb0dd7355533e5aa",
    "verified_classes": [
      "UnsafeRollbackError"
    ],
    "verified_functions": [
      "resolve_conflict"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnsafeRollbackError"
    ],
    "sample_fail_closed_invariants": [
      "effects already visible and survivor cannot re-validate; must quiesce and reconcile, not abort"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
