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:
+23
-7
@@ -1,15 +1,27 @@
|
||||
# Simple workflow templates
|
||||
|
||||
Five optional, technology-neutral starters. Nothing is installed as a published
|
||||
pipeline automatically; all templates are manual-only and have at most three stages.
|
||||
Four optional, technology-neutral starters. Nothing is installed as a published
|
||||
pipeline automatically; all templates are manual-only and have at most four stages.
|
||||
|
||||
| Template key | Workflow | Tools |
|
||||
| --- | --- | --- |
|
||||
| `task` | Complete a task and report actual results | Repository read/edit and shell, plus conditional web search/fetch |
|
||||
| `summary` | Summarize supplied text | None |
|
||||
| `task` | Complete a task, then commit it locally | Work: read/edit/shell and conditional web search/fetch; committer: read/shell |
|
||||
| `review` | Read repository content and report findings | Read/glob/grep and conditional web search/fetch; no edit/shell |
|
||||
| `research` | Research a topic, then write a sourced report | Web search/fetch, then none |
|
||||
| `three-stage` | Plan → implement → review and verify | Planner read/glob/grep + conditional web; implementer read/glob/grep/edit/shell with no web (follows the planner's research); reviewer independent shell + conditional web |
|
||||
| `three-stage` | Plan → implement → review → commit | Planner read/glob/grep + conditional web; implementer read/glob/grep/edit/shell with no web (follows the planner's research); reviewer independent shell + conditional web; committer read/shell |
|
||||
|
||||
Every workflow that changes the repository ends in a **committer** stage that
|
||||
commits locally and never pushes. The committer stages the union of the runner's
|
||||
server-captured changed paths (`input.server_changed_files`) and the producer's
|
||||
declared `changed_files` — a declared list can be incomplete — then runs the
|
||||
repository's required checks before committing. `task` and `three-stage` follow this;
|
||||
`review` and `research` change nothing and so do not commit.
|
||||
|
||||
Model and agent stages return the line-oriented result: the first non-empty line is
|
||||
the declared outcome, a `# output` section holds the JSON output map for the next
|
||||
stage, and any further `# <heading>` section is retained verbatim as evidence. The
|
||||
legacy `{ "outcome": ..., "output": {...} }` envelope is still accepted. See
|
||||
`docs/model-results.md`.
|
||||
|
||||
Web search/fetch is conditional: stages use it only when a task genuinely needs
|
||||
external knowledge such as accepted industry approaches, framework or library
|
||||
@@ -43,11 +55,15 @@ contain a fallback model; direct file submission uses those configs as written.
|
||||
Provider inference and search availability must be verified on your execution
|
||||
server. Parsing a definition does not prove its model/tools can run.
|
||||
|
||||
Templates do not impose a language, framework, schedule, notification setup,
|
||||
commit, push, or deployment. Add those only when required by your own workflow.
|
||||
Templates do not impose a language, framework, schedule, notification setup or
|
||||
deployment, and they never push to a remote. Work-producing templates commit
|
||||
locally through their committer stage; add a schedule, notifications or a
|
||||
deployment step only when your own workflow requires it.
|
||||
|
||||
Editing these source files does not change any installed or published definition;
|
||||
each starter becomes an immutable version only after explicit authoring and
|
||||
publication.
|
||||
|
||||
Removing a template from this catalog does not delete published versions,
|
||||
run history, retained drafts, or OpenCode sessions. Nested routing examples used
|
||||
for renderer regression tests live in `internal/pipeline/testdata`, not this catalog.
|
||||
|
||||
+2
-3
@@ -12,9 +12,8 @@ import (
|
||||
var sources embed.FS
|
||||
|
||||
var starters = []protocol.Template{
|
||||
{Key: "task", Name: "Complete a task", Description: "One stage to complete a task in your repository and report actual results."},
|
||||
{Key: "summary", Name: "Summarize text", Description: "One tool-free stage to summarize supplied text without inventing facts."},
|
||||
{Key: "three-stage", Name: "Plan, implement, review", Description: "Plan a change, implement it, then review and verify it. Any language or file type."},
|
||||
{Key: "task", Name: "Complete a task", Description: "Complete a task in your repository, then commit the change locally."},
|
||||
{Key: "three-stage", Name: "Plan, implement, review", Description: "Plan a change, implement it, review and verify it, then commit it locally. Any language or file type."},
|
||||
{Key: "review", Name: "Review a repository", Description: "One read-only stage to review repository content and report findings."},
|
||||
{Key: "research", Name: "Research a topic", Description: "Research a topic on the web, then write a sourced report. Requires web search support."},
|
||||
}
|
||||
|
||||
@@ -20,18 +20,18 @@ func TestReadmeThreeStageExampleIsValid(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(graph.Stages) != 3 || graph.Settings != nil {
|
||||
t.Fatal("example must be manual-only and three stages")
|
||||
if len(graph.Stages) != 4 || graph.Settings != nil {
|
||||
t.Fatal("example must be manual-only and four stages")
|
||||
}
|
||||
}
|
||||
|
||||
func TestCatalogContainsValidUnpublishedTemplates(t *testing.T) {
|
||||
items := examples.Catalog()
|
||||
if len(items) != 5 {
|
||||
if len(items) != 4 {
|
||||
t.Fatal("unexpected catalog size", len(items))
|
||||
}
|
||||
seen := map[string]bool{}
|
||||
wantStages := map[string]int{"task": 1, "summary": 1, "review": 1, "research": 2, "three-stage": 3}
|
||||
wantStages := map[string]int{"task": 2, "review": 1, "research": 2, "three-stage": 4}
|
||||
for _, item := range items {
|
||||
if seen[item.Key] || item.Description == "" || item.Name == "" {
|
||||
t.Fatal("invalid template metadata", item.Key)
|
||||
@@ -44,8 +44,8 @@ func TestCatalogContainsValidUnpublishedTemplates(t *testing.T) {
|
||||
if (graph.Settings != nil) != item.Scheduled {
|
||||
t.Fatal("missing schedule warning", item.Key)
|
||||
}
|
||||
if graph.Settings != nil || len(graph.Stages) > 3 {
|
||||
t.Fatal("starters must be simple and manual-only", item.Key)
|
||||
if graph.Settings != nil || len(graph.Stages) > 4 {
|
||||
t.Fatal("starters must be small and manual-only", item.Key)
|
||||
}
|
||||
if len(graph.Stages) != wantStages[item.Key] {
|
||||
t.Fatal("unexpected/non-generic catalog entry", item.Key)
|
||||
@@ -89,9 +89,11 @@ func stageTools(t *testing.T, graph pipeline.Graph, key string) ([]string, bool)
|
||||
// Every bundled starter declares a tools block; an empty list is the intentional
|
||||
// deny-all tool-free role.
|
||||
var starterTools = map[string]map[string][]string{
|
||||
"task": {"worker": {"read", "glob", "grep", "edit", "shell", "websearch", "webfetch"}},
|
||||
"summary": {"summarize": {}},
|
||||
"review": {"review": {"read", "glob", "grep", "websearch", "webfetch"}},
|
||||
"task": {
|
||||
"worker": {"read", "glob", "grep", "edit", "shell", "websearch", "webfetch"},
|
||||
"committer": {"read", "glob", "grep", "shell"},
|
||||
},
|
||||
"review": {"review": {"read", "glob", "grep", "websearch", "webfetch"}},
|
||||
"research": {
|
||||
"research": {"websearch", "webfetch"},
|
||||
"report": {},
|
||||
@@ -100,6 +102,7 @@ var starterTools = map[string]map[string][]string{
|
||||
"planner": {"read", "glob", "grep", "websearch", "webfetch"},
|
||||
"implementer": {"read", "glob", "grep", "edit", "shell"},
|
||||
"reviewer": {"read", "glob", "grep", "shell", "websearch", "webfetch"},
|
||||
"committer": {"read", "glob", "grep", "shell"},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -171,3 +174,36 @@ func TestThreeStageReviewerMemoryKeepsPlannerAcceptance(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TestWorkProducingStartersEndInACommitter pins the guideline that a workflow
|
||||
// which changes the repository commits locally through its final committer stage,
|
||||
// staging the server-captured change set rather than only a model's declaration.
|
||||
func TestWorkProducingStartersEndInACommitter(t *testing.T) {
|
||||
for _, tc := range []struct{ key, producer string }{
|
||||
{"task", "worker"},
|
||||
{"three-stage", "implementer"},
|
||||
} {
|
||||
graph := parsedCatalog(t)[tc.key]
|
||||
last := graph.Stages[len(graph.Stages)-1]
|
||||
if last.Key != "committer" {
|
||||
t.Fatalf("%s must end in a committer stage, got %q", tc.key, last.Key)
|
||||
}
|
||||
if got := last.Edges["success"]; got != protocol.SuccessEnd {
|
||||
t.Fatalf("%s committer success route = %q, want %q", tc.key, got, protocol.SuccessEnd)
|
||||
}
|
||||
if got := last.Memory["server_changed_files"]; got != "input.server_changed_files" {
|
||||
t.Fatalf("%s committer must select input.server_changed_files, got %q", tc.key, got)
|
||||
}
|
||||
if got := last.Memory["changed_files"]; got != tc.producer+".changed_files" {
|
||||
t.Fatalf("%s committer changed_files = %q, want %q", tc.key, got, tc.producer+".changed_files")
|
||||
}
|
||||
// The producer hands its work on rather than ending the run itself.
|
||||
for _, s := range graph.Stages {
|
||||
if s.Key == tc.producer {
|
||||
if protocol.IsTerminal(s.Edges["success"]) {
|
||||
t.Fatalf("%s/%s must hand success to a later stage, not %q", tc.key, tc.producer, s.Edges["success"])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,11 @@ gaps and source/version applicability, and do not invent citations. Return block
|
||||
when required reliable evidence cannot be obtained, including empty or unreliable
|
||||
results. A single failed, blocked or anti-bot search may be replaced
|
||||
by a successful official-source webfetch that fully supplies the required
|
||||
evidence. Return success only with reliable evidence.
|
||||
evidence. Return success only with reliable evidence. Return the line-oriented
|
||||
result: the first non-empty line is the declared outcome, a `# output` section
|
||||
holds one JSON object with the output fields named above, and any further
|
||||
`# <heading>` section is retained verbatim as evidence (for example the queries
|
||||
run and source excerpts).
|
||||
```
|
||||
|
||||
```tools
|
||||
@@ -49,6 +53,9 @@ Answer input.question using only the collected evidence and sources. Write a
|
||||
concise report with citations and clearly marked uncertainties. Respect the
|
||||
original constraints. Do not turn missing evidence into a confident answer.
|
||||
Return success for a supported report or blocked when the evidence is insufficient.
|
||||
Return the line-oriented result: the first non-empty line is the declared outcome,
|
||||
a `# output` section holds one JSON object with the output fields named above, and
|
||||
any further `# <heading>` section is retained verbatim as evidence.
|
||||
```
|
||||
|
||||
```tools
|
||||
|
||||
+5
-1
@@ -21,7 +21,11 @@ hypotheses. State explicitly that no commands were run and that runtime behavior
|
||||
and checks are not tested; source inspection is not proof of execution. Return
|
||||
success when the review is complete, even if it finds issues; return blocked if
|
||||
the requested content or required official evidence cannot be obtained rather than
|
||||
fabricating it. Do not claim issues have been fixed.
|
||||
fabricating it. Do not claim issues have been fixed. Return the line-oriented
|
||||
result: the first non-empty line is the declared outcome, a `# output` section
|
||||
holds one JSON object with the output fields named above, and any further
|
||||
`# <heading>` section is retained verbatim as evidence (for example the files read
|
||||
and the sources checked, with their dates/versions).
|
||||
```
|
||||
|
||||
```tools
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# stage summarize
|
||||
|
||||
```output
|
||||
{ summary, key_points, open_questions }
|
||||
```
|
||||
|
||||
```prompt
|
||||
Summarize the text supplied in input.prompt. Preserve its meaning, important
|
||||
facts, decisions, and unresolved questions. Follow any requested length or
|
||||
format. Use only the supplied information; do not invent sources or facts.
|
||||
Return blocked if no text to summarize was supplied. Otherwise return success.
|
||||
```
|
||||
|
||||
```tools
|
||||
```
|
||||
|
||||
```configs
|
||||
provider=opencode-go
|
||||
model=deepseek-v4.1-flash
|
||||
retries=2
|
||||
timeout=1h
|
||||
```
|
||||
|
||||
```edges
|
||||
success -> #success
|
||||
blocked -> #failure
|
||||
error -> #failure
|
||||
```
|
||||
+65
-12
@@ -1,7 +1,7 @@
|
||||
# stage worker
|
||||
|
||||
```output
|
||||
{ task, summary, changed_files, evidence, remaining_questions }
|
||||
{ task, summary, changed_files, remaining_questions }
|
||||
```
|
||||
|
||||
```prompt
|
||||
@@ -16,20 +16,25 @@ existing dependencies/APIs/helpers over bespoke or copy-pasted code, and avoid
|
||||
unnecessary new dependencies rather than treating useful supported standard
|
||||
libraries as off-limits; justify any genuinely needed custom implementation,
|
||||
compatibility exception or dependency choice with its tradeoffs and do not force
|
||||
coincidental
|
||||
lookalikes into a shared abstraction. Research official primary sources with
|
||||
websearch/webfetch only when the task genuinely needs external knowledge,
|
||||
recording source URLs and applicability/version evidence or stating why none was
|
||||
needed; keep queries free of private code and secrets. Return blocked only when
|
||||
required reliable evidence cannot be obtained; a single failed, blocked or
|
||||
coincidental lookalikes into a shared abstraction. Research official primary
|
||||
sources with websearch/webfetch only when the task genuinely needs external
|
||||
knowledge, recording source URLs and applicability/version evidence or stating why
|
||||
none was needed; keep queries free of private code and secrets. Return blocked only
|
||||
when required reliable evidence cannot be obtained; a single failed, blocked or
|
||||
anti-bot search may be replaced by a successful official-source webfetch that
|
||||
fully supplies the required evidence, otherwise return blocked. Fix causes rather
|
||||
than suppressing errors or weakening checks, and avoid speculative abstractions.
|
||||
Preserve unrelated work. Do not commit, push, deploy, or perform destructive
|
||||
actions. Verify changes with relevant checks and report actual commands, observed
|
||||
results and untested limits in evidence. Never claim an unexecuted check passed.
|
||||
Return blocked if the task or required tools are unavailable; otherwise return
|
||||
success with actual results.
|
||||
Preserve unrelated work and leave the commit to the committer stage: do not commit,
|
||||
push, deploy, or perform destructive actions. Save any artifacts you produce
|
||||
(reports, logs, screenshots) into the artifacts directory named in the runtime
|
||||
context; they are attached to this stage. Verify the change with the repository's
|
||||
relevant checks and report the exact commands and observed results in an
|
||||
`# evidence` section; never claim an unexecuted check passed. Return the
|
||||
line-oriented result: the first non-empty line is the declared outcome, a
|
||||
`# output` section holds one JSON object with the output fields named above, and
|
||||
any further `# <heading>` section is retained verbatim as evidence. Return blocked
|
||||
if the task or required tools are unavailable; otherwise return success with
|
||||
actual results.
|
||||
```
|
||||
|
||||
```tools
|
||||
@@ -49,6 +54,54 @@ retries=2
|
||||
timeout=1h
|
||||
```
|
||||
|
||||
```edges
|
||||
success -> committer
|
||||
blocked -> #failure
|
||||
error -> #failure
|
||||
```
|
||||
|
||||
# stage committer
|
||||
|
||||
```output
|
||||
{ committed, commit, changed_files, pre_commit_checks }
|
||||
```
|
||||
|
||||
```prompt
|
||||
Commit this run's change locally. Never push, tag, deploy or rewrite history.
|
||||
Select the run's changed paths from input.server_changed_files (the runner's
|
||||
captured evidence) and the worker's declared changed_files, and stage their union
|
||||
of paths that still exist, keeping any exclusions. Inspect the staged diff before
|
||||
committing; never commit unrelated work, secrets or generated artifacts. Pre-commit
|
||||
checklist: confirm the staged paths are this run's change; run the repository's
|
||||
required checks and record the exact commands and observed results in an
|
||||
`# evidence` section; do not commit if a required check fails, return blocked
|
||||
with the failing output instead. If nothing is staged, do not create an empty
|
||||
commit; return success with a clear note. Otherwise commit with a concise message
|
||||
naming this run's change and report the commit hash. Return the line-oriented
|
||||
result: the first non-empty line is the declared outcome, a `# output` section
|
||||
holds one JSON object with the output fields named above, and any further
|
||||
`# <heading>` section is retained verbatim as evidence. Never claim an unexecuted
|
||||
check passed or fabricate a commit.
|
||||
```
|
||||
|
||||
```memory
|
||||
{"task":"input.prompt","changed_files":"worker.changed_files","server_changed_files":"input.server_changed_files"}
|
||||
```
|
||||
|
||||
```tools
|
||||
read
|
||||
glob
|
||||
grep
|
||||
shell
|
||||
```
|
||||
|
||||
```configs
|
||||
provider=opencode-go
|
||||
model=deepseek-v4.1-flash
|
||||
retries=2
|
||||
timeout=1h
|
||||
```
|
||||
|
||||
```edges
|
||||
success -> #success
|
||||
blocked -> #failure
|
||||
|
||||
+78
-16
@@ -23,7 +23,10 @@ fully supplies the required evidence, otherwise return blocked. Limit repository
|
||||
inspection to relevant repository paths; never scan filesystem or mount roots,
|
||||
and use commands supported by the actual execution environment rather than
|
||||
guessed platform flags (a working instruction, not an OS sandbox). Preserve the
|
||||
user's task and constraints; do not invent evidence.
|
||||
user's task and constraints; do not invent evidence. Return the line-oriented
|
||||
result: the first non-empty line is the declared outcome, a `# output` section
|
||||
holds one JSON object with the output fields named above, and any further
|
||||
`# <heading>` section is retained verbatim as evidence.
|
||||
```
|
||||
|
||||
```tools
|
||||
@@ -50,7 +53,7 @@ error -> #failure
|
||||
# stage implementer
|
||||
|
||||
```output
|
||||
{ task, plan, acceptance_checks, changed_files, implementation_summary, evidence }
|
||||
{ task, plan, acceptance_checks, changed_files, implementation_summary }
|
||||
```
|
||||
|
||||
```prompt
|
||||
@@ -68,11 +71,17 @@ cancellation, error handling and bounded performance where applicable. Limit
|
||||
repository inspection and verification to relevant repository paths; never scan
|
||||
filesystem or mount roots, and use commands supported by the actual execution
|
||||
environment rather than guessed platform flags (a working instruction, not an OS
|
||||
sandbox). Run the relevant checks with the stage tools and record the exact
|
||||
commands, observed results and any untested limits in evidence. Preserve the
|
||||
task, plan and acceptance checks and record actual changes in changed_files; do
|
||||
not commit, push, deploy or destroy unrelated work. Return blocked when the
|
||||
required edit scope or tools are unavailable.
|
||||
sandbox). Save any artifacts you produce (reports, logs, screenshots) into the
|
||||
artifacts directory named in the runtime context; they are attached to this stage.
|
||||
Run the relevant checks with the stage tools and record the exact commands,
|
||||
observed results and any untested limits in an `# evidence` section; never
|
||||
claim an unexecuted check passed. Preserve the task, plan and acceptance checks and
|
||||
record actual changes in changed_files. Do not commit, push, deploy or destroy
|
||||
unrelated work; the committer stage commits this run's change. Return the
|
||||
line-oriented result: the first non-empty line is the declared outcome, a
|
||||
`# output` section holds one JSON object with the output fields named above, and
|
||||
any further `# <heading>` section is retained verbatim as evidence. Return blocked
|
||||
when the required edit scope or tools are unavailable.
|
||||
```
|
||||
|
||||
```tools
|
||||
@@ -113,18 +122,23 @@ unnecessary bespoke solutions, not only overall architecture. Support each findi
|
||||
with a concrete location, evidence, severity and remedy; distinguish blocking
|
||||
evidence gaps from nonblocking personal-style nits and explain legitimate
|
||||
deviations. Run relevant checks with the stage tools yourself and report what was
|
||||
not tested; do not accept a prior stage's summary as proof. Limit inspection and
|
||||
not tested in an `# evidence` section; do not accept a prior stage's summary as
|
||||
proof and never claim an unexecuted check passed. Limit inspection and
|
||||
verification to relevant repository paths; never scan filesystem or mount roots,
|
||||
and run commands supported by the actual execution environment rather than
|
||||
guessed platform flags (working instructions, not an OS sandbox guarantee).
|
||||
Return success only when the applicable acceptance checks were independently
|
||||
observed passing and no unresolved substantive design, reuse, duplication,
|
||||
workaround or correctness issue remains; return rejected with concrete findings
|
||||
for failing checks, missing REQUIRED verification, or substantive code-quality
|
||||
issues. Optional or
|
||||
guessed platform flags (working instructions, not an OS sandbox guarantee). Save
|
||||
any artifacts you produce (reports, logs, screenshots) into the artifacts
|
||||
directory named in the runtime context; they are attached to this stage. Return
|
||||
the line-oriented result: the first non-empty line is the declared outcome, a
|
||||
`# output` section holds one JSON object with the output fields named above, and
|
||||
any further `# <heading>` section is retained verbatim as evidence. Return success
|
||||
only when the applicable acceptance checks were independently observed passing and
|
||||
no unresolved substantive design, reuse, duplication, workaround or correctness
|
||||
issue remains; return rejected with concrete findings for failing checks, missing
|
||||
REQUIRED verification, or substantive code-quality issues. Optional or
|
||||
out-of-scope checks may be recorded untested without forcing endless work. Use
|
||||
websearch/webfetch only when an official standard or documentation check is
|
||||
needed. Do not edit files, claim unexecuted checks, commit, push or deploy.
|
||||
needed. Do not edit files, commit, push or deploy.
|
||||
```
|
||||
|
||||
```memory
|
||||
@@ -148,7 +162,55 @@ timeout=1h
|
||||
```
|
||||
|
||||
```edges
|
||||
success -> #success
|
||||
success -> committer
|
||||
rejected -> #failure
|
||||
error -> #failure
|
||||
```
|
||||
|
||||
# stage committer
|
||||
|
||||
```output
|
||||
{ committed, commit, changed_files, pre_commit_checks }
|
||||
```
|
||||
|
||||
```prompt
|
||||
Commit this run's change locally. Never push, tag, deploy or rewrite history.
|
||||
Select the run's changed paths from input.server_changed_files (the runner's
|
||||
captured evidence) and the implementer's declared changed_files, and stage their
|
||||
union of paths that still exist, keeping any exclusions. Inspect the staged diff
|
||||
before committing; never commit unrelated work, secrets or generated artifacts.
|
||||
Pre-commit checklist: confirm the staged paths are this run's change; run the
|
||||
repository's required checks and record the exact commands and observed results in
|
||||
a `# evidence` section; do not commit if a required check fails, return
|
||||
blocked with the failing output instead. If nothing is staged, do not create an
|
||||
empty commit; return success with a clear note. Otherwise commit with a concise
|
||||
message naming this run's change and report the commit hash. Return the
|
||||
line-oriented result: the first non-empty line is the declared outcome, a
|
||||
`# output` section holds one JSON object with the output fields named above, and
|
||||
any further `# <heading>` section is retained verbatim as evidence. Never claim an
|
||||
unexecuted check passed or fabricate a commit.
|
||||
```
|
||||
|
||||
```memory
|
||||
{"task":"input.prompt","changed_files":"implementer.changed_files","server_changed_files":"input.server_changed_files"}
|
||||
```
|
||||
|
||||
```tools
|
||||
read
|
||||
glob
|
||||
grep
|
||||
shell
|
||||
```
|
||||
|
||||
```configs
|
||||
provider=opencode-go
|
||||
model=deepseek-v4.1-flash
|
||||
retries=2
|
||||
timeout=1h
|
||||
```
|
||||
|
||||
```edges
|
||||
success -> #success
|
||||
blocked -> #failure
|
||||
error -> #failure
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user