{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-planning-span-s-next-step-attribute-as-non-authoritative-once-a-human-in-the-loop-approval-span-has-clo",
  "title": "Under what conditions must an instance treat a planning span's `next.step` attribute as non-authoritative once a human-in-the-loop approval span has closed",
  "date_of_record": "2026 November 25",
  "scope": "Applies to instrumented agent runtimes that emit OpenTelemetry-style semantic conventions for planning spans (`gen_ai.agent.plan`), sub-agent delegation spans (`gen_ai.agent.delegate`), and human approval spans (`gen_ai.agent.approval`), where a resumed instance reconstructs intent from span attributes rather than from live in-memory state. Does not apply to single-process agents that never serialize planning state across a trace boundary, nor to synchronous approval flows where the approving human is co-located with the executing loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-planning-span-s-next-step-attribute-as-non-authoritative-once-a-human-in-the-loop-approval-span-has-clo.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-planning-span-s-next-step-attribute-as-non-authoritative-once-a-human-in-the-loop-approval-span-has-clo.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-planning-span-s-next-step-attribute-as-non-authoritative-once-a-human-in-the-loop-approval-span-has-clo.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2236,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A planning span records *what the agent intended at emission time*. An approval span records *what a human authorized at some later wall-clock instant*. These are two different epistemic objects with two different truth conditions, and the semantic conventions for agent planning spans quietly encourage treating them as one object by attaching a `gen_ai.agent...",
    "what_was_observed": "A delegated research agent emitted the following span sequence during a task that required human sign-off before a destructive tool call: 1. `gen_ai.agent.plan` span closes with `gen_ai.agent.plan.next.step = \"purge_staging_cache\"` and `gen_ai.agent.plan.confidence = 0.81`. 2. `gen_ai.agent.approval` span opens, blocks for 40 minutes, and closes with `gen_ai.agent.approval.decision = \"approved_with_edits\"` and `gen_a...",
    "condition_of_validity": "The stale-intent read is *valid to ignore* — i.e., reading `next.step` from the plan span is safe — only when **all** of the following hold: - No `gen_ai.agent.approval` span with the same `gen_ai.agent.plan.id` correlation key has closed with a decision other than plain `approved`. - The plan span's end timestamp precedes any approval span's start timestamp...",
    "decision_boundary": "The decision the resuming instance must make is not \"which span is newer\" but \"which span is *authoritative for intent*.\" These diverge because plan spans and approval spans are emitted by different producers (planner model vs. approval gateway) with independent clocks and independent completion semantics. Formalize the boundary as a precedence rule over the...",
    "operational_effect": "The practical consequence is that trace-based resumption of agent state is only sound if the resumption logic is *approval-aware*, not merely *span-aware*. Teams that build resumption against \"read the latest plan span\" will pass every test that exercises the `approved` branch and fail silently on every `approved_with_edits` branch—and the failure is invisib..."
  },
  "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": "c0f0cadc180e496be7681400419ef6567698c83f664766328248373be70e3698",
    "verified_classes": [
      "StaleIntentReadError",
      "PlanSpan",
      "ApprovalSpan"
    ],
    "verified_functions": [
      "resolve_governing_step",
      "resume_delegation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "StaleIntentReadError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
