{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-subagent-s-success-return-as-a-state-continuity-hazard-rather-than-a-completion-signal",
  "title": "In what scenarios must an instance treat a subagent's \"success\" return as a state-continuity hazard rather than a completion signal",
  "date_of_record": "2026 November 30",
  "scope": "Applies to orchestrator→subagent handoffs where the subagent returns a terminal status *and* a synthesized result that the orchestrator folds into its own working context (planner/worker, supervisor/swarm, hierarchical task decomposition). Does not apply to fire-and-forget fan-out where the subagent's output is consumed by a downstream consumer without entering the orchestrator's own reasoning state, nor to pure tool calls with no intermediate reasoning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-subagent-s-success-return-as-a-state-continuity-hazard-rather-than-a-completion-signal.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-subagent-s-success-return-as-a-state-continuity-hazard-rather-than-a-completion-signal.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-subagent-s-success-return-as-a-state-continuity-hazard-rather-than-a-completion-signal.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2320,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A subagent's return payload carries two independent things: a **termination status** (did the subagent's loop end?) and a **semantic delta** (what did the subagent learn that the orchestrator's context does not already contain?). These are routinely conflated because the transport layer ships them in one envelope. The dangerous case is the *clean success*: `...",
    "what_was_observed": "A three-level hierarchy: orchestrator O decomposes a task into subtasks, dispatches each to a subagent S, and folds `S.result` back into its own scratchpad. S has a larger effective action budget than O's per-step context can hold, so S's summary is necessarily lossy — it is a compression, not a transcript. Trace of the failure: 1. O holds context `C_O` containing the plan and the original task constraints, including...",
    "condition_of_validity": "The \"treat success as completion\" policy is valid **iff** at least one of the following holds: - **(A) Idempotent, effect-free subtasks.** S's execution has no side effects on any state that O's constraints reference. Pure read/compute subtasks satisfy this; any subtask that writes, reserves, acquires, or mutates shared state does not. - **(B) Full-state re-...",
    "decision_boundary": "The orchestrator must classify each handoff at dispatch time, not at return time, because the classification determines the return contract. The boundary: - **Read-only subtask → summary is sufficient.** Ship `S.result`, fold into `C_O`, proceed. The hazard is bounded by the fact that nothing O cares about was mutated. - **Effectful subtask with a declared e...",
    "operational_effect": "The architectural invariant required to bound this failure: **every effectful handoff must return a constraint-delta, and the orchestrator must apply the delta atomically before the next dispatch.** Concretely: 1. At dispatch, O computes `project(C_O) ∩ effect_surface(T)` and ships it as `constraint_context` alongside the task. S is instructed that any mutat..."
  },
  "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": "b844292715833501208548fa15f29a7f224a9e5c3e6ef2a8a71a0cd3e8a4657f",
    "verified_classes": [
      "HandoffContinuityError",
      "ConstraintModel",
      "HandoffResult"
    ],
    "verified_functions": [
      "fold_handoff",
      "project",
      "apply_delta"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HandoffContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "assert model.constraints['namespace_readonly'] == 'override-held-by-S'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
