Files
pipelines/docs/workflows/cli.md
T

146 lines
3.7 KiB
Markdown

# stage implement
```prompt
Implement the task and supplied plan, following AGENTS.md and the area map. Reuse existing code; preserve unrelated and earlier task work. On re-entry, fix only the located must-fix findings, reading history only when the handoff lacks necessary detail.
Run focused, quiet tests for the touched area and report actual commands and results. Never run full suites, commit, push or deploy; the server delivery gate runs integration checks. Use blocked_retryable only for an evidenced transient prerequisite, otherwise blocked.
```
```tools
read
glob
grep
edit
shell
```
```configs
provider=openai
model=gpt-5.6-luna
retries=1
timeout=30m
```
```checks
none: focused tests only; the land delivery gate runs the integration checks
```
```limits
{"max_visits":5,"on":["blocked_retryable"]}
```
```edges
blocked -> #failure
blocked_retryable -> implement
error -> #failure
success -> review
```
# stage review
```prompt
Review the task diff, including earlier task changes. Start from the server's changed-file list and git diff --stat against the branch base; read only changed hunks and relevant surrounding code. Follow AGENTS.md and the area map. Check correctness, compatibility, migration safety, duplication, performance and meaningful test coverage.
Run no test suites or analyzers; assess the implementer's reported checks and name missing coverage. Do not edit or commit. Return rejected only for must-fix defects with path, evidence and fix; advisory for nonblocking notes; otherwise success. Rendered acceptance belongs to ui-review.
```
```tools
read
glob
grep
shell
```
```configs
provider=openai
model=gpt-5.6-luna
retries=1
timeout=45m
```
```checks
none: read-only review; shell reads git diffs only
```
```limits
{"max_visits":3,"on":["rejected"]}
```
```edges
advisory -> ui-review
error -> #failure
rejected -> implement
success -> ui-review
```
# stage ui-review
```prompt
Check the task's rendered behavior against acceptance criteria and native platform conventions. If there is no rendered change, return skipped with the reason. Otherwise use the repository's capture tools, interact with affected states, capture narrow and wide layouts, inspect every cited image, and keep evidence in the shared public directory. Follow device safety and cleanup rules; never use a delivery-only personal device for tests.
Do not edit, commit or run test suites. Return rejected for a concrete visual or interaction defect with capture and fix, blocked for an evidenced capture failure, advisory for nonblocking notes, otherwise approved.
```
```tools
read
glob
grep
shell
```
```configs
provider=openai
model=gpt-5.6-luna
retries=1
timeout=45m
```
```checks
none: rendered acceptance only; the land delivery gate runs test suites
```
```limits
{"max_visits":3,"on":["rejected"]}
```
```edges
advisory -> land
approved -> land
blocked -> #failure
error -> #failure
rejected -> implement
skipped -> land
```
# stage land
```prompt
Commit only this task's reviewed changes, including preserved earlier task work. Inspect git status, the staged file list and per-file staged diffs for unrelated work, secrets and generated files. Do not create an empty commit; report a clear no-op if nothing changed.
Use a plain imperative commit subject and report the hash. Leave a clean candidate. Do not push, amend, rebase, merge into main or run suites/analyzers: the server delivery gate merges a moved main, runs the declared checks, and lands the candidate. Return blocked if a clean candidate cannot be produced safely.
```
```tools
read
glob
grep
shell
```
```configs
provider=openai
model=gpt-5.6-luna
retries=1
timeout=45m
delivery=true
```
```checks
git diff --check
go build ./...
go vet ./...
go test ./...
```
```edges
success -> #success
blocked -> #failure
error -> #failure
```