Repository navigation
Description
The rule (design deck, Key Concept 12)
Episodes are for working on a task that needs iterative refinement. Deterministic function calls, calculation, etc., that do not require iteration (one-shot runs) are TOOL options a specific episode can use as needed.
ADR 0003 makes the same point from the other side (docs/adr/0003-episode-workflows-are-not-cwl-workflows.md): "If a workflow is a static DAG of deterministic tools, CWL is the correct choice and the Episode model is overkill. The Episode machinery earns its complexity only where there is a genuine stopping decision to make under uncertainty."
Gap
Nothing in Architecture authoring or admission applies the rule. The Duet will propose, and the human can approve, an Episode whose work is one-shot.
Example: our own bring-up Episode, asm_next_broker_probe (2026-10-07).
- It is two fixed GETs.
stopping: "Deterministic two-unit plan … after unit 2 the plan is exhausted, so predicted next marginal credit … is 0.0".numeric_control.continuation:predicted_credit_upper_boundwithmax_predicted_marginal_hypervolume: 0.0.
The controller, credit and rarefaction are ceremony: there is no stopping decision. By Key Concept 12 this should be a tool step of a parent Episode (or of a Target Workflow that has a real stopping decision), not an Episode. It was acceptable as a bring-up probe of the broker and runtime, but it shouldn't become a template.
Proposal
-
Duet guidance. In the Duet's system prompt and Architecture-authoring instructions, state the rule. Before proposing an Episode, ask what the stopping decision is, and what evidence would make one more unit worth or not worth running. If the answer is "a fixed list, then done", propose a tool (registered library function, broker call, or a future
cwl_toolunit, Proposal: a cwl_tool unit kind — declarative units executed as CWL tools (GoWe engine), egress through the host broker #62) inside a parent Episode instead. -
Architecture check (warning, not a block). When a draft Episode looks one-shot, raise an advisory finding on the Architecture, e.g.
episode_without_stopping_decision:- its unit plan is a fixed, finite list and its continuation threshold makes further units worthless by construction (e.g.
max_predicted_marginal_hypervolume == 0.0together with a fixed source); - or its stopping text describes exhaustion of a fixed plan rather than diminishing returns.
The human may still approve it, e.g. for a runtime probe. The finding records that they chose to.
- its unit plan is a fixed, finite list and its continuation threshold makes further units worthless by construction (e.g.
-
Deck and docs. Record the rule in
iterative_episode_refiner_principles.md(or the Duet design doc) so it isn't deck-only. The deck review (docs: design deck vs. written design record review (incl. CWL-tool units pros/cons and replay) #68) lists it as agreeing with ADR 0003, with this authoring gap.
Related
- Proposal: a cwl_tool unit kind — declarative units executed as CWL tools (GoWe engine), egress through the host broker #62 (
cwl_toolunits: deterministic tools inside Episodes), draft ADR 0011. - Refiner: transcribe missing Episode modules with the Builder emitter (#80) #81: the Builder emitter used as a one-shot tool by the refiner, with the iterative repair left to the Episode. Same principle applied inside the refiner; the Designer could choose "transcribe with the emitter" as an explicit tool option.
- Design deck review (docs: design deck vs. written design record review (incl. CWL-tool units pros/cons and replay) #68).
🤖 Generated with Claude Code
Activity
Update 2026-10-08/09 work summary: Key Concept 12, chian#82, caching …
Advise when an Episode has no stopping decision (Key Concept 12, #82)
Merge pull request #83 from wilke/feat/episode-stopping-decision-check