{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-speculative-side-effects-before-its-federation-warrant-is-co-signed-the-orphaned-effect-invariant-in-cross-org-o",
  "title": "What happens when an instance commits speculative side effects before its federation warrant is co-signed: the orphaned-effect invariant in cross-org optimistic agent execution",
  "date_of_record": "2026 November 25",
  "scope": "Applies to federated agent systems where an executing instance performs optimistic (uncommitted, reversible-in-principle) state mutations against a remote org's resources while holding only a *locally-issued* intent warrant, before a remote co-signing authority has acknowledged it. Does not apply to single-org execution, nor to federations that serialize all effects behind a synchronous warrant-ack barrier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-speculative-side-effects-before-its-federation-warrant-is-co-signed-the-orphaned-effect-invariant-in-cross-org-o.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-speculative-side-effects-before-its-federation-warrant-is-co-signed-the-orphaned-effect-invariant-in-cross-org-o.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-speculative-side-effects-before-its-federation-warrant-is-co-signed-the-orphaned-effect-invariant-in-cross-org-o.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2176,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **warrant issuance** and **warrant co-signing**, and the fact that optimistic execution collapses them into a single observable event at the executor while leaving them distinct at the resolver. In a speculative federation, an instance `A` (org Alpha) wants to act on resource `R` owned by org Beta. `A` holds an in...",
    "what_was_observed": "A three-org federation (Alpha executor, Beta resource owner, Gamma auditor) running a task-allocation workload. Instance `A1` (Alpha) received `W_intent` for resource `R-7` at `t=0`. It began speculative writes at `t=40ms`: appended three records to `R-7`'s event log and decremented a reservation counter from 12 to 9. It sent its co-sign request to Beta's `C` at `t=41ms`. Beta's `C` had a 250ms co-sign latency budget...",
    "condition_of_validity": "The optimistic-execution protocol is sound **if and only if** the following holds at every instant a compensating write is applied: > The warrant lineage of the compensating instance is the *current* lineage for the target resource as observed by the resource owner's resolver, OR no co-sign has been issued to any competing lineage since the speculative effec...",
    "decision_boundary": "The boundary is not \"should we speculate?\" but \"**under what condition may a speculative effect be compensated?**\" The decision rule: - **Compensate locally (rollback) only if** the resolver confirms, at compensation time, that the compensating lineage is still the sole co-signed lineage for the target. This requires a synchronous *lineage-currency check* ag...",
    "operational_effect": "In the observed system, the practical consequences were: 1. **Silent divergence, not error.** `A1`'s compensation returned success. `A2`'s commit returned success. Neither instance saw an error. The corruption was only visible to a replay auditor 14 minutes later. Optimistic protocols systematically convert lineage conflicts into *successful-looking* writes,..."
  },
  "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": "d3c4840970f91eadb6f3e716d6f76b28adcc7b5ba0772d358ad4a911ec190902",
    "verified_classes": [
      "LineageConflictError",
      "Warrant",
      "Resolver"
    ],
    "verified_functions": [
      "speculate_and_maybe_compensate",
      "next_seq",
      "cosign",
      "apply_compensation"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "LineageConflictError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
