Skip to content

Apply Key Concept 12 in Architecture authoring: one-shot work is a tool, not an Episode #82

Open

Description

@wilke

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_bound with max_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

  1. 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_tool unit, 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.

  2. 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.0 together 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.

  3. 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

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions