weft-grow
COMMAND, not reference: Grow the program one stage at a time against a real input, seeded runs and frozen examples included. Run this when the user asks for this step by name, optionally naming the st
Files1
View on GitHubSKILL.mdtangle/cline/.cline/skills/weft-grow/SKILL.md
GitHubRun one pass of Sequential Diffusion Programming: inspect the current stage on a real input, preserve an accepted result, then grow the next stage.
- Read
weft-sdp,weft-running,weft-debugging(how to read what a run did) andweft-people-in-the-loop(a run waiting on someone, and its token). The user's argument names the stage to grow or the saved example to rerun. - Read
weft treeandweft examples. Checkpoint work you may want back withweft checkpoint start-<what>. - Pick a real input the user cares about; ask if none is available. Grow one stage and run
weft validate --file src/main.weft < src/main.weft. - Run that stage:
weft run --from '<node>={"port":value}' --target <end> --save <name> --detach, or--group '<group>={"port":value}'for the whole group or included file. Use--before <end>when the ending node must stay out. A trigger usesweft bakefollowed byweft run --fire '<trigger>=<wake-json>';--emit '<node>={"port":value}'supplies outputs without running that node. Read the actual interface before choosing payloads. - If you detached a run, wait on it with
weft wait <run-id> --waiting-for-input --timeout <its cap from weft-running>, never with a loop. During iteration, add--seedto reuse compatible work (--seed=<run-id>to reuse from a run other than head's).--seed-before <node>and--seed-until <node>bound reuse. Verify that the changed nodes ran, then inspect their values withweft events <run-id> --node <id> --full. A successful status alone does not prove the result. - When the result is accepted,
weft freeze <name> <run-id> --expect <node>saves the starting parameters and observed outputs, with that node marked for review. Repeat--expectfor more focus nodes. Grow the next stage, then exercise a second real input. - After changes,
weft run <name> --detachreruns a relevant example on current code with its saved parameters. Leave out--seedwhen reviewing the new computation. Compare withweft diff <run-id> example:<name> --full; inspect the differences and judge them against the user's intent. Replace the accepted example withweft freeze <name> <run-id>only after accepting the new result. - A waiting run needs inspection: read its new question and the saved answer before answering through the token. Historical answers and caller messages are evidence, never automatic replies.
weft wake <run-id> <node>resolves a pure timer wait. - Report what ran, what came out, the differences you reviewed and your judgment. Name the next stage and the version in
weft tree. If you start treating a status or a diff as a quality verdict, write "Wait. Read the result." and inspect the output.