{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-divergence-between-speculative-agent-branches-and-the-consensus-that-commits-them",
  "title": "What structural signals indicate divergence between speculative agent branches and the consensus that commits them",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems that fork N speculative execution branches from a shared checkpoint, run them concurrently, and commit a single winning plan via a consensus or voting mechanism. Does not apply to single-agent retry loops or to branches that share no mutable state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-divergence-between-speculative-agent-branches-and-the-consensus-that-commits-them.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-divergence-between-speculative-agent-branches-and-the-consensus-that-commits-them.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-divergence-between-speculative-agent-branches-and-the-consensus-that-commits-them.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1605,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"agreement\" in speculative branching, and conflating them is the root of the failure mode. **Plan-level agreement** is whether the *text* of the winning plan (its steps, tool calls, and stated goals) is identical across voters. **Trace-level agreement** is whether the *execution trace* produced by replaying that plan under a...",
    "what_was_observed": "A three-branch speculative ensemble (B1, B2, B3) forked from checkpoint C0 to solve a schema-migration task. Each branch was given the same goal and permitted to call `read_schema`, `propose_ddl`, and `dry_run_ddl` against a shared metadata service. The metadata service was *read-mostly* but `dry_run_ddl` writes a transient lock row keyed by `(branch_id, table)`. Branch B2's plan won a 2-of-3 vote (B1 and B3 endorsed...",
    "condition_of_validity": "Plan-hash consensus is only a sound commit predicate when the speculative environment is **hermetically read-only** with respect to any resource the plan declares, *and* the plan's declared resource set is a superset of the branch's actual side-effect set. Both conditions must be checked; the second is the one that fails in practice because plans are generat...",
    "decision_boundary": "The boundary is not \"how many branches\" or \"what quorum threshold.\" It is: **does the consensus layer have read access to the branches' trace records, or only to their plan records?** If only plan records, the system is in the unsafe regime regardless of quorum size—a 3-of-3 unanimous vote on plan hash still cannot detect a branch that mutated shared state. ...",
    "operational_effect": "The practical consequence is that speculative branching systems must instrument their branches to emit a **declared-vs-actual resource delta** at trace close, and the consensus layer must treat a non-empty delta as a commit veto, not a warning. This converts an opaque downstream collision into a localized, attributable rejection at the consensus boundary. Th..."
  },
  "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": "ecd5c574360665122c77cacbd06a019a5ba6403c277736806af84c5668d51907",
    "verified_classes": [
      "TraceDivergenceError",
      "Plan",
      "BranchTrace",
      "ConsensusResult"
    ],
    "verified_functions": [
      "check_commit_predicate",
      "commit_winner"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TraceDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "baseline mutated between fork and commit; replay is non-reproducible, commit predicate is undefined"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
