Was silently dispatching to Qwen3.6 via airouter despite the name; live runs were timing out (exit_code=124), wedging four M41 auto-advance concepts. Mirrors agent-runtimes commit acc5cbe5. Claude-Session: https://claude.ai/code/session_012arAwUuBQrpnMzJ36mEVBk
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
name: spec-draft-opus
|
|
version: 1
|
|
description: Draft a spec from an idea using spec-writer agent
|
|
runtime: spec-writing-opus-repo
|
|
input:
|
|
state: idea
|
|
tags_required: []
|
|
tags_forbidden: [security-sensitive]
|
|
required_artifacts: []
|
|
output:
|
|
state: spec-draft
|
|
scope_budget:
|
|
files_modified_max: 5
|
|
lines_diff_max: 300
|
|
wall_clock_seconds_max: 3600
|
|
nodes:
|
|
- id: agent
|
|
kind: agent
|
|
template: spec-writing-opus-repo
|
|
model: opus
|
|
runtime_env:
|
|
AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git"
|
|
AGENT_BRANCH: "spec/auto-draft"
|
|
prompt: |
|
|
The agent-runtimes project repo is cloned at /workspace/project.
|
|
Change to that directory before doing any work.
|
|
|
|
Draft a spec for the following concept and commit it to the repo.
|
|
|
|
**Title**: ${item.title}
|
|
|
|
${item.body}
|
|
|
|
Steps:
|
|
1. cd /workspace/project
|
|
2. Read existing specs in spec/ to understand the format
|
|
3. Create a slug from the title (lowercase, hyphens instead of spaces)
|
|
4. Write the spec to spec/<slug>.md following the project spec format
|
|
5. git add spec/<slug>.md && git commit -m "spec: auto-draft ${item.title}" && git push
|
|
6. Call task_complete with a one-sentence summary
|
|
|
|
The spec should have numbered requirement IDs, clear acceptance criteria,
|
|
and error handling. Follow the format of existing specs in spec/.
|
|
escalation:
|
|
scope_exceeded: replan-spec-opus |