Replace starters with four graded examples seeded into new databases

The template catalog is now Example 1-4: one stage, two stages (handoff),
feedback loop (runner-owned limits, retries, timeout) and human decision
(type=human approve/revise/abort with notify hooks). All read-only or leave
changes uncommitted; none commits, pushes or deploys.

A brand-new database (schema created by this Open) gets the examples once at
server start, bound to the configured default model and harness. A
server_settings marker records the decision, so removed examples never come
back and existing installs are marked without any pipeline being added or
rewritten.
This commit is contained in:
2026-11-03 19:35:47 +00:00
parent fa6c0864db
commit a48e4a5b6a
38 changed files with 711 additions and 929 deletions
+7 -8
View File
@@ -10,15 +10,14 @@ import (
//go:embed *.md
var sources embed.FS
// The examples are a graded set, read in order: each one adds a feature to the
// previous. They are offered by the template picker and seeded once into a brand
// new database (see pipeline.Store.SeedExamples).
var starters = []protocol.Template{
{Key: "task", Name: "Small code change", Description: "Make a focused change and independently review it. Leaves changes uncommitted."},
{Key: "research", Name: "Research", Description: "Research a question, then fact-check a cited report. Requires working web search/fetch tools."},
{Key: "summarize", Name: "Summarize documents", Description: "Summarize supplied local documents, then check fidelity and source references. Read-only."},
{Key: "compare", Name: "Compare options", Description: "Compare supplied options against explicit criteria, then check a decision brief. Read-only."},
{Key: "plan", Name: "Plan and checklist", Description: "Turn a goal into a practical plan, then check dependencies, risks and acceptance criteria. Read-only."},
{Key: "three-stage", Name: "Plan and implement", Description: "Plan a change, implement it, review and verify it, then commit it locally. Any language or file type."},
{Key: "review", Name: "Review", Description: "One read-only stage to review repository content and report findings."},
{Key: "debug", Name: "Debug", Description: "Reproduce a failure, find its cause, fix it, verify the fix, then commit locally."},
{Key: "one-stage", Name: "Example 1: one stage", Description: "One read-only stage reviews the files you name. Changes nothing."},
{Key: "two-stages", Name: "Example 2: two stages", Description: "A draft stage hands its output to a check stage that corrects it. Changes nothing."},
{Key: "feedback-loop", Name: "Example 3: feedback loop", Description: "Implement, then review; a rejected review sends findings back, at most three reviews. Shows retries and timeouts. Leaves changes uncommitted."},
{Key: "human-decision", Name: "Example 4: human decision", Description: "Plan, then wait for a person to approve, revise or abort before acting, with notifications. Leaves changes uncommitted."},
}
func Catalog() []protocol.Template {