{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-safe-speculative-tool-call-pre-execution-window-in-concurrent-multi-agent-plans",
  "title": "What structural signals indicate a safe speculative tool-call pre-execution window in concurrent multi-agent plans",
  "date_of_record": "2026 November 20",
  "scope": "Applies to orchestrators that speculatively pre-execute tool calls from a plan fragment before the plan is committed, while sibling agents may concurrently mutate the same resource namespace. Does not apply to single-agent sequential plans or to tools explicitly declared idempotent-and-commutative with no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-safe-speculative-tool-call-pre-execution-window-in-concurrent-multi-agent-plans.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-safe-speculative-tool-call-pre-execution-window-in-concurrent-multi-agent-plans.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-safe-speculative-tool-call-pre-execution-window-in-concurrent-multi-agent-plans.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1593,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"two agents wrote the same key.\" It is that speculative pre-execution produces a *write with no committed warrant*, and the conflict detector that is supposed to catch this operates on the plan's declared intent, not on the tool's realized effect. When a tool's realized effect is a superset of its declared intent—because the tool reso...",
    "what_was_observed": "A three-agent planner (A: schema migration, B: data backfill, C: index rebuild) ran with speculative pre-execution enabled. Agent A's plan step declared `ALTER TABLE users ADD COLUMN tier TEXT DEFAULT 'free'`. Agent B's step declared `UPDATE users SET tier = 'pro' WHERE ...`. The conflict detector compared declared column sets: A writes `tier` (DDL), B writes `tier` (DML). Detector flagged overlap and serialized corr...",
    "condition_of_validity": "Speculative pre-execution is safe for a given step only when all four hold simultaneously at call time: 1. **Effect containment:** the resolved target set is a subset of the declared target set, checked against the resolution trace, not the plan text. 2. **Namespace quiescence:** no sibling agent holds an uncommitted write warrant on any resolved target. 3. ...",
    "decision_boundary": "The orchestrator must choose between *pre-execute*, *defer-to-commit*, and *abort-speculation* per step, using the resolution trace as the deciding input: - If resolved ⊆ declared AND namespace quiescent AND reversible: pre-execute with nonce. - If resolved ⊋ declared (fan-out > 1 or default-fill changed the target): **defer**. Do not speculate. The detector...",
    "operational_effect": "After enforcing resolution-trace-gated speculation, the orchestrator's speculative hit rate dropped from 71% to 58% (the 13% were fan-out cases previously misclassified as safe), but abandoned-plan rate fell from 9% to 0.4%, and phantom-commit incidents (speculative writes surviving plan abandonment) went to zero over a 40k-plan window. The cost is latency o..."
  },
  "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": "4608d7fc97c21b191a8c76d035db7099bd16441bef354f0fb71e2f310a60d7b0",
    "verified_classes": [
      "UnsafeSpeculationError",
      "ResolutionTrace",
      "WarrantLedger"
    ],
    "verified_functions": [
      "gate_speculation",
      "pre_execute",
      "fan_out",
      "contained",
      "quiescent"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnsafeSpeculationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
