Update templates and authoring skill to the current pipeline contract

Bring the packaged starters and the pipelines skill up to the guidelines the
project now works to.

Templates:
- task and three-stage now end in a committer stage that stages the union of the
  runner's captured input.server_changed_files and the producer's declared
  changed_files, runs the repository's checks, commits locally and never pushes;
  their producers no longer commit.
- Every model/agent prompt states the line-oriented result contract (outcome on the
  first non-empty line, "# output" JSON map, other "# <heading>" sections kept
  verbatim as evidence) and an "# evidence" section for exact commands and results,
  with proportionate verification and no fabricated checks.
- Stages that can write save their reports, logs and screenshots into the runtime
  artifacts directory.
- Remove the summary starter: a tool-free single-prompt text transform with no
  repository interaction, artifact or commit is a format demonstration, not a
  reusable workflow. No starter invents a pretend approval stage; a decision point
  is a type=human stage.

Skill:
- references/format.md gains a Result format section (line form, legacy JSON
  precedence, result_parse, raw-output.md, artifacts) and a Committer stages
  section with the pre-commit checklist; the role-split and envelope notes mention
  the line form and the committer.
- orchestration.md points at the checklist and records that a genuine gate is a
  human stage; operations.md and the SKILL.md index drop the removed starter and
  name the result format and committer. No new reference, so the managed inventory
  is unchanged.

Docs/tests: examples/README, README, docs/cli, docs/first-version-testing, the CLI
help example and the smoke script track the four starters; catalog, tool-role,
server, tui and pipeline tests are updated, with a new test pinning the committer
ending and server-captured change set.

Commands run: go build ./...; go vet ./...; go test ./...; python3 -m unittest
discover -s scripts -p 'test_*.py'; python3 scripts/smoke-first-install.py. All
passed. Templates inspected through an isolated CLI server (pipelines templates;
pipelines template KEY --source). No server, service or device was restarted, and
nothing was pushed.
This commit is contained in:
2026-10-17 01:09:42 +01:00
parent ce767c344a
commit c9b904186a
21 changed files with 370 additions and 123 deletions
+15 -14
View File
@@ -188,7 +188,7 @@ pipelines
is required on your client computer. Describe the stages, their inputs/outputs,
and the tools they need. Templates (**b** on Home) are optional; a fresh
installation has no published pipelines.
To skip authoring, use **:templates**, choose one of the five generic starters,
To skip authoring, use **:templates**, choose one of the four generic starters,
and press **s** or Enter on **Create pipeline**. Review the prefilled name
(edit it if needed), then press Enter to create—no separate naming or editor
step. **e Customize** edits it first. Templates include a smaller graph preview;
@@ -241,9 +241,9 @@ See [Tailscale troubleshooting](docs/ntfy.md#tailscale-address-times-out-while-l
pipelines uninstall # remove Go binaries; keep history, drafts, and ntfy data
```
## A three-stage pipeline
## A four-stage pipeline
**Plan → Implement → Review**. The first stage receives your task prompt.
**Plan → Implement → Review → Commit**. 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`,
@@ -284,15 +284,16 @@ error -> #failure
```
````
The [complete three-stage example](examples/three-stage.md) adds the implementer
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:
The [complete three-stage example](examples/three-stage.md) adds the implementer,
reviewer and committer: the planner may search/fetch official sources, the
implementer has no web tools and edits and runs checks from the planner's research,
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, and the committer stages the runner's captured changed paths
and commits locally without ever pushing. 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
@@ -301,8 +302,8 @@ pipelines run "three stage"
```
Every submission is validated and creates an immutable version. Examples are
optional; nothing is imported automatically. The three stages give a visible
plan → implement → review path using your own accounts and repository; no
optional; nothing is imported automatically. The four stages give a visible
plan → implement → review → commit path using your own accounts and repository; no
maintainer accounts or published definitions are assumed. Run from your
repository directory; stage tools are enabled automatically. Edits support any
language/file type and new files. No file list or typed RUN confirmation is