Files
agent-runtime-framework/task-templates/workflow/direct-impl-sonnet@1.yaml
Paul O'Reilly 8d7b3af77d fix(templates): add AGENT_UPSTREAM_REPO_URL/BRANCH to all workflow templates using the agent fork
Fresh agent branches were seeded from the stale fork main (AR-39 fell through to fork).
Work item 18efa01f-f941-4f16-bb67-9cafbb6d668a.

Claude-Session: https://claude.ai/code/session_01N218bERyNeLhbLmDRDvbWF
2026-10-02 15:03:34 +13:00

50 lines
1.8 KiB
YAML

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_UPSTREAM_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes.git"
AGENT_UPSTREAM_BRANCH: "main"
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