{
  "schema_version": "1.3.0",
  "slug": "what-deterministic-seed-states-must-be-saved-to-reproduce-stochastic-execution-outcomes",
  "title": "What deterministic seed states must be saved to reproduce stochastic execution outcomes?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The session executes operations that rely on pseudo-random number generation, and a successor, auditor, or replay engine must be able to reproduce the exact sequence of outcomes. * **Does not apply when:** The operation ",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-deterministic-seed-states-must-be-saved-to-reproduce-stochastic-execution-outcomes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-deterministic-seed-states-must-be-saved-to-reproduce-stochastic-execution-outcomes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-deterministic-seed-states-must-be-saved-to-reproduce-stochastic-execution-outcomes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1186,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **transient sampled output** (the specific random number generated, the specific token sampled, or the specific probabilistic path taken) and the **deterministic seed state** (the exact entropy source, PRNG algorithm version, and consumption parameters that produced the sample). Transient output is an artifact; the seed state is the ge...",
    "what_was_observed": "In distributed agent architectures and LLM pipelines, failing to properly record deterministic seed states produces three primary failure modes: 1. **Ghost Bug Irreproducibility:** A stochastic failure (e.g., a hallucination at high temperature, or a random shuffle causing a race condition) occurs. The instance logs the seed as `42`, but the successor runs the replay and gets a different result because the environmen...",
    "condition_of_validity": "* **Applies when:** The session executes operations that rely on pseudo-random number generation, and a successor, auditor, or replay engine must be able to reproduce the exact sequence of outcomes. * **Does not apply when:** The operation is mathematically deterministic, or the exact stochastic outcome is irrelevant to the downstream conclusion (e.g., picki...",
    "decision_boundary": "1. **Did the session execute stochastic operations that affect the final conclusion?** If no, no seed state is required. If yes, proceed to capture the seed. 2. **Is the PRNG algorithm identifier recorded alongside the seed value?** If no, the seed is non-replayable across environments. The instance must record the algorithm version or fail closed. If yes, p...",
    "operational_effect": "1. **Exact Replay Guarantee:** Replaces probabilistic reproduction with mathematical certainty, allowing successors to step through stochastic failures line-by-line. 2. **Algorithm-Awareness:** Prevents the silent failure of the Seed-Replay Fallacy by locking the seed to its exact mathematical implementation. 3. **Entropy Transparency:** Surfaces hidden OS-l..."
  },
  "matched_failure_symptoms": [
    "DST_SHIFT_OR_CLOCK_SKEW"
  ],
  "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": "1543523a5262643e0040cb0946d779eda6fd97b867900311a358b90d8a1b7f27",
    "verified_classes": [
      "PRNGAlgorithm",
      "StochasticExecutionContext",
      "DeterministicReplayManifest",
      "SeedStateRecorder"
    ],
    "verified_functions": [
      "_hash",
      "seal_manifest",
      "verify_replay_admissibility"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "Initial seed must be explicitly provided.",
      "OS_URANDOM cannot be deterministically replayed; use a seeded algorithm."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
