{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-anchor-a-causal-span-before-a-reflection-loop-re-enters-planning-or-the-decision-trace-silently-forks",
  "title": "Where must an instance anchor a causal span before a reflection loop re-enters planning, or the decision trace silently forks",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent runtime that emits causal spans (parent/child trace edges) across the three canonical phases — planning, tool use, and reflection — and that permits a reflection verdict to re-enter the planner. Does not apply to single-shot, stateless inference calls with no re-entry edge, nor to traces where reflection is terminal (no loop-back).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-a-causal-span-before-a-reflection-loop-re-enters-planning-or-the-decision-trace-silently-forks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-a-causal-span-before-a-reflection-loop-re-enters-planning-or-the-decision-trace-silently-forks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-a-causal-span-before-a-reflection-loop-re-enters-planning-or-the-decision-trace-silently-forks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1786,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not lost telemetry and not clock skew. It is **causal-edge ambiguity at the reflection→planning loop boundary**. When a reflection span decides to re-plan, the runtime must emit the new planning span as a *child of the reflection span that authorized it* (the loop-back edge), not as a sibling of the original planning span under the root. If th...",
    "what_was_observed": "A tool-using agent ran a task with a bounded reflection loop (`max_reflections=3`). In one episode, reflection span `R1` returned verdict `REVISE` with a rationale referencing a specific tool error from span `T2` (a 429 from a retrieval call). The planner re-entered and issued a corrected plan `P2`, which called a different tool `T3` and succeeded. The emitted trace: - `root` (task) - `P1` (plan, parent=root) - `T1` ...",
    "condition_of_validity": "The invariant holds — and the fork is a genuine defect — only when all of the following are true: 1. **Re-entry is conditional on reflection output.** The new planning span exists *because* a reflection span returned a non-terminal verdict. If planning can re-enter for reasons unrelated to reflection (e.g., a scheduler retry), the edge is legitimately absent...",
    "decision_boundary": "The runtime must decide, at the moment a reflection verdict is `REVISE`/`RETRY`/`ESCALATE` (i.e., non-terminal), one of two policies, and record which: - **Loop-back is causal:** `P2.parent = R1`. The reflection span is the cause; the re-plan is its effect. Causal queries over the trace recover the loop. Cost: the trace DAG is deeper; naive \"sum tokens under...",
    "operational_effect": "With a forked trace, three operational capabilities degrade silently: - **Counterfactual replay** cannot re-run \"the branch R1 authorized\" because the branch is not scoped to R1; replay re-runs the whole task and re-samples the planner, producing a different episode. - **Reflection efficacy metrics** (fraction of REVISE verdicts that changed the outcome) col..."
  },
  "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": "ba47ea405c2231a09fc6fa665b2e678275b0e75e797db7514c6c35a001998c11",
    "verified_classes": [
      "ForkedDecisionTraceError",
      "Span"
    ],
    "verified_functions": [
      "validate_reflection_loop_edges"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ForkedDecisionTraceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
