Strengthen template planning, reuse and independent review
This commit is contained in:
@@ -213,8 +213,9 @@ pipelines uninstall # remove Go binaries; keep history, drafts, and ntf
|
||||
|
||||
## A three-stage pipeline
|
||||
|
||||
**Plan → Implement → Review**. Each stage receives the previous stage's output;
|
||||
the first receives your task prompt. One outcome selects the next stage—no
|
||||
**Plan → Implement → Review**. The first stage receives your task prompt.
|
||||
Later stages receive the previous output or fields selected by an explicit
|
||||
`memory` block. One outcome selects the next stage—no
|
||||
parallel branches. Definitions use Markdown `output`, `prompt`, `tools`,
|
||||
`configs`, and `edges` blocks. For example:
|
||||
|
||||
@@ -222,14 +223,21 @@ parallel branches. Definitions use Markdown `output`, `prompt`, `tools`,
|
||||
# stage planner
|
||||
|
||||
```output
|
||||
{ task, plan, acceptance_checks }
|
||||
{ task, plan, design, reuse_targets, acceptance_checks, research }
|
||||
```
|
||||
|
||||
```prompt
|
||||
Turn input.prompt into a focused plan and acceptance checks.
|
||||
Turn input.prompt into a focused plan. Discover repository conventions and
|
||||
reuse targets, and research official sources only when external knowledge is
|
||||
actually required. State why when no research is needed.
|
||||
```
|
||||
|
||||
```tools
|
||||
read
|
||||
glob
|
||||
grep
|
||||
websearch
|
||||
webfetch
|
||||
```
|
||||
|
||||
```configs
|
||||
@@ -241,12 +249,20 @@ timeout=1h
|
||||
|
||||
```edges
|
||||
success -> implementer
|
||||
blocked -> #failure
|
||||
error -> #failure
|
||||
```
|
||||
````
|
||||
|
||||
The [complete three-stage example](examples/three-stage.md) adds the implementer
|
||||
and reviewer. Review and explicitly submit it:
|
||||
and reviewer: the planner may search/fetch official sources, the implementer has no
|
||||
web tools and edits and runs checks from the planner's research, and the reviewer
|
||||
independently inspects the real changes with its own shell access, receiving the
|
||||
original task and the planner-owned acceptance checks rather than the
|
||||
implementer's summary. The reviewer approves only when the applicable acceptance
|
||||
checks were independently observed passing and no unresolved substantive issue
|
||||
remains, and otherwise rejects with concrete findings. Review and explicitly
|
||||
submit it:
|
||||
|
||||
```sh
|
||||
pipelines validate examples/three-stage.md
|
||||
|
||||
Reference in New Issue
Block a user