Skip to main content

Module dag

Module dag 

Source
Expand description

The JSON DAG: the plan the loop executes (CONTEXT.md §10).

Nodes plus dependency edges. A generator-evaluator pair is not a separate structure — it is two nodes with a loop-back policy. Phase 3 parses and executes the full shape; the evaluator/loop-back/checkpoint semantics land in Phase 5, but the fields are modeled here so a complete plan.json round trips losslessly.

Structs§

Acceptance
A tool evaluator’s acceptance check (CONTEXT.md §10).
Node
One node in the DAG (CONTEXT.md §10 field reference).
NodeBudget
Per-node loop cap (CONTEXT.md §10).
Plan
A complete plan (CONTEXT.md §10).
PlanBudget
Run-level budget (CONTEXT.md §10).

Enums§

Checkpoint
A human checkpoint position (CONTEXT.md §10).
ComplexityTier
Task complexity tier for routing (CONDUCTOR_LOOP_PLAN.md §3.1).
EvaluatorKind
The kind of evaluator on a node (CONTEXT.md §10, §11).
OnFail
A parsed failure policy (CONTEXT.md §10 on_fail).

Functions§

parse_on_fail
Parse an on_fail expression such as: loop_back(n2, critique=artifacts/review.md), loop_back(n2), loop_with(n3), fixer, or replan.