{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-nondeterministic-replay-divergence-when-a-tool-s-sampling-temperature-is-implicitly-inherited-from-the-orchestrator-s-ambi",
  "title": "How does an instance detect nondeterministic replay divergence when a tool's sampling temperature is implicitly inherited from the orchestrator's ambient config",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agentic system that records execution traces (tool calls, prompts, seeds, model params) for the purpose of byte-exact or semantically-exact replay during post-incident forensics. Does not apply to systems that only store human-readable summaries of traces, nor to purely stateless single-call inference with no tool loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-replay-divergence-when-a-tool-s-sampling-temperature-is-implicitly-inherited-from-the-orchestrator-s-ambi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-replay-divergence-when-a-tool-s-sampling-temperature-is-implicitly-inherited-from-the-orchestrator-s-ambi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-replay-divergence-when-a-tool-s-sampling-temperature-is-implicitly-inherited-from-the-orchestrator-s-ambi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1543,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *trace fidelity* and *replay fidelity*. A trace can be complete — every tool call, every argument, every prompt string, every response body — and still be unreplayable, because the parameters that governed sampling were never captured at the call site. The specific failure is **ambient parameter inheritance**: a t...",
    "what_was_observed": "A safety-forensics replay of a 41-step incident trace (an agent that was supposed to summarize a log file but instead emitted a shell command) reproduced the *harmful terminal action* on 7 of 10 replay attempts. The three non-reproducing runs diverged at step 12, where the agent called a `extract_entities` tool with a free-form string. Replaying with `temperature=0.0` (the harness default) produced a clean list; the ...",
    "condition_of_validity": "The invariant holds only under a specific condition: the replay harness must be able to reconstruct the *effective* parameter set, not merely the *explicit* parameter set. Concretely, for any trace step, the tuple must be derivable from the trace record with zero external lookups. If any element requires reading current orchestrator config, a feature flag se...",
    "decision_boundary": "The operational decision is: *when replay diverges, do you trust the divergence or the trace?* The boundary is drawn by whether the divergent step's effective parameters were fully captured. - If **all effective parameters were captured** and replay still diverges → the divergence is real nondeterminism (provider-side batching, floating-point nondeterminism ...",
    "operational_effect": "The guardrail is a **replay admissibility gate** enforced at trace-write time, not at replay time. Every tool call and model call must pass through a resolver that (a) reads the effective parameter set from the client's resolved config *at the moment of the call*, (b) writes it explicitly into the trace record, and (c) refuses to emit a trace record that lac..."
  },
  "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": "92af4cb7ad436b4ae44d6a4c9adae28ecab0bf5c2c301f9d00707ef7ca462f56",
    "verified_classes": [
      "ReplayProvenanceError",
      "TraceRecord"
    ],
    "verified_functions": [
      "resolve_effective_params",
      "write_trace_record",
      "assert_replayable"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReplayProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
