feat(templates): sync 4 workflow templates from agent-runtimes

Add direct-impl-sonnet@1, plan-review-loop@1, spec-review-loop@1,
test-write-review-loop@1 — present in agent-runtimes but missing here.
These are needed before agent-runtimes drops its baked-in copies and the
CP loads workflow templates exclusively from this CRS repo.
This commit is contained in:
Paul O'Reilly
2026-07-29 09:09:52 +12:00
parent 350c0eeed4
commit d06a526256
4 changed files with 380 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
name: direct-impl-sonnet
version: 1
description: |
Direct Sonnet implementation for items with a well-defined scope that skip
the spec/test/scaffold pipeline. The item description IS the spec; the agent
implements all scope items, runs the project build to verify, and commits.
Use for design-coherence, refactoring, or clearly-scoped multi-file tasks.
runtime: sonnet-impl-narrow
input:
state: ready
tags_required: []
tags_forbidden: [security-sensitive, algorithmic-large]
required_artifacts: []
output:
state: impl-complete
scope_budget:
files_modified_max: 20
lines_diff_max: 500
wall_clock_seconds_max: 3600
nodes:
- id: agent
kind: agent
template: code-sonnet-tdd-repo
runtime_env:
AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git"
AGENT_BRANCH: "task/${item.uuid}"
prompt: |
Implement the scope described in this work item. The description lists
exactly what needs to be done — treat it as the authoritative spec.
Work item title: ${item.title}
Work item UUID: ${item.uuid}
Steps:
1. Read the work item description carefully — each numbered point is a
required change.
2. Implement every change in the repository. For dashboard changes, run
`cd dashboard && npm run build` after each logical group to verify.
3. Fix any build or lint errors before moving on.
4. When all changes are in place and the build is green, commit everything
with a clear message referencing the work item title.
Do not skip items. Do not add unrelated changes. Commit only when the
build is clean.
escalation:
scope_exceeded: replan-spec-opus
agent_bailed: direct-impl-sonnet