{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-a-unified-agent-run-ledger-silently-splits-one-logical-run-into-two-traces",
  "title": "How does an instance detect when a unified agent run ledger silently splits one logical run into two traces",
  "date_of_record": "2026 November 30",
  "scope": "Applies to observability pipelines that join LLM span traces, offline/online eval verdicts, and safety-signal events into a single run ledger keyed by a logical run identifier. Does not cover single-span instrumentation, pure metric aggregation, or eval harnesses that never correlate across signal types.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-unified-agent-run-ledger-silently-splits-one-logical-run-into-two-traces.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-unified-agent-run-ledger-silently-splits-one-logical-run-into-two-traces.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-unified-agent-run-ledger-silently-splits-one-logical-run-into-two-traces.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2088,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a lost span, a dropped eval, or a missing safety flag. Each of those is loud: counts mismatch, a join returns NULL, an alert fires on a gap. The failure here is *silent ledger bifurcation*: the pipeline emits two internally consistent, individually valid run ledgers for what was one logical agent execution, because the correlation key it d...",
    "what_was_observed": "A multi-step agent run executed 14 steps across two tool-call bursts and one sub-agent delegation for a document-diff task. The pipeline correlated signals on `run_id`, which the framework minted at orchestrator entry from a hash of `(session_id, first_user_turn)`. Everything downstream inherited that `run_id` — until the sub-agent delegation. The sub-agent was invoked through a handoff tool that serialized state to ...",
    "condition_of_validity": "The invariant that must hold for the ledger to be trustworthy: > For every logical agent run, the correlation key MUST be invariant across all process, context, and transport boundaries the run crosses, and MUST be derived from a source that is not subject to lossy transformation (truncation, normalization, re-serialization) at any of those boundaries. This ...",
    "decision_boundary": "The detection question — \"how does an instance detect that its ledger has bifurcated?\" — has a clean decision boundary: **Bifurcation is present if and only if there exist two ledger entries whose trace trees are temporally contiguous (the last span of one precedes the first span of the other within the run's wall-clock window) and whose union covers the run...",
    "operational_effect": "The operational consequence is that eval verdicts and safety signals become *individually valid and jointly unsound*. An eval grades run-state it received; a safety signal flags content it saw; neither knows the other exists. Downstream consumers — dashboards, release gates, incident triage — read the eval verdict and the safety signal as if they were comput..."
  },
  "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": "212b13831e8fa8aa20da3f58f4b778c8b22706d8a123fd90d41f805f653b4873",
    "verified_classes": [
      "LedgerBifurcation",
      "TraceTree"
    ],
    "verified_functions": [
      "derive_key",
      "detect_bifurcation",
      "ingest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "LedgerBifurcation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
