Add tdd-gate context, *-code-tdd-repo composites, and TDD task templates
Adds the tdd-gate harness context (TEST_PASS_REQUIRED=true + CLAUDE.md methodology) and five provider-specific TDD composites that layer tdd-protect + tdd-gate + python-dev + tdd-file-lock on top of the existing code-* layer stacks. Matching task templates for sonnet, opus, haiku, minimax, and airouter. allowed_failing_tests support noted in warnings pending M19 pre-test hook implementation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
27
task-templates/airouter-code-tdd.yaml
Normal file
27
task-templates/airouter-code-tdd.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: airouter-code-tdd
|
||||
description: "Airouter Qwen3.6 code agent with TDD enforcement — agentic runner, tests read-only, must pass before finish"
|
||||
harness: code-airouter-tdd-repo/v1
|
||||
model: Qwen3.6
|
||||
runtime_cli: agentic
|
||||
requires_tags: [agentic-runner, coding-agent, git-access, project-repo, best-practices, tdd-gate]
|
||||
required_params: [repo_url, agent_repo_url]
|
||||
labels: [airouter]
|
||||
defaults:
|
||||
timeout: 3600
|
||||
max_turns: 100
|
||||
pre_actions:
|
||||
- type: clone
|
||||
repo: "{{ repo_url }}"
|
||||
branch: main
|
||||
depth: 1
|
||||
blocked_combinations:
|
||||
- field: on_success
|
||||
contains_type: commit_pr
|
||||
message: "Use agent_repo instead of commit_pr — avoids F77 SSH alias URL bug"
|
||||
warnings:
|
||||
- "Airouter agents have no web search — all context must be in the repo or prompt"
|
||||
- "Hard cap: 3 concurrent airouter tasks (DISPATCHER_MAX_TASKS=3 on airouter dispatcher)"
|
||||
- "Test files are locked read-only at the OS level — agent cannot modify them"
|
||||
- "Task will be marked failed if the test suite is not green on completion"
|
||||
- "Use narrow, single-file or single-requirement tasks for best results"
|
||||
- "allowed_failing_tests support requires M19 (pre-test hook) to be deployed"
|
||||
22
task-templates/haiku-code-tdd.yaml
Normal file
22
task-templates/haiku-code-tdd.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: haiku-code-tdd
|
||||
description: "Haiku code agent with TDD enforcement — tests are read-only and must pass before the task finishes"
|
||||
model: haiku
|
||||
harness: code-haiku-tdd-repo/v1
|
||||
requires_tags: [claude-code, coding-agent, git-access, project-repo, tdd-gate]
|
||||
required_params: [repo_url, agent_repo_url]
|
||||
defaults:
|
||||
timeout: 1800
|
||||
pre_actions:
|
||||
- type: clone
|
||||
repo: "{{ repo_url }}"
|
||||
branch: main
|
||||
depth: 1
|
||||
blocked_combinations:
|
||||
- field: on_success
|
||||
contains_type: commit_pr
|
||||
message: "Use agent_repo instead of commit_pr — avoids F77 SSH alias URL bug"
|
||||
warnings:
|
||||
- "Test files are locked read-only at the OS level — agent cannot modify them"
|
||||
- "Task will be marked failed if the test suite is not green on completion"
|
||||
- "Haiku is best for narrow, well-scoped TDD tasks — avoid broad refactors"
|
||||
- "allowed_failing_tests support requires M19 (pre-test hook) to be deployed"
|
||||
23
task-templates/minimax-code-tdd.yaml
Normal file
23
task-templates/minimax-code-tdd.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: minimax-code-tdd
|
||||
description: "MiniMax code agent with TDD enforcement — tests are read-only and must pass before the task finishes"
|
||||
model: minimax
|
||||
harness: code-minimax-tdd-repo/v1
|
||||
requires_tags: [coding-agent, git-access, project-repo, tdd-gate]
|
||||
required_params: [repo_url, agent_repo_url]
|
||||
defaults:
|
||||
timeout: 3600
|
||||
pre_actions:
|
||||
- type: clone
|
||||
repo: "{{ repo_url }}"
|
||||
branch: main
|
||||
depth: 1
|
||||
blocked_combinations:
|
||||
- field: on_success
|
||||
contains_type: commit_pr
|
||||
message: "Use agent_repo instead of commit_pr — avoids F77 SSH alias URL bug"
|
||||
warnings:
|
||||
- "MiniMax agents have no web search — all context must be in the repo or prompt"
|
||||
- "Test files are locked read-only at the OS level — agent cannot modify them"
|
||||
- "Task will be marked failed if the test suite is not green on completion"
|
||||
- "Keep prompts directive and specific — MiniMax works best with tightly scoped tasks"
|
||||
- "allowed_failing_tests support requires M19 (pre-test hook) to be deployed"
|
||||
21
task-templates/opus-code-tdd.yaml
Normal file
21
task-templates/opus-code-tdd.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: opus-code-tdd
|
||||
description: "Opus code agent with TDD enforcement — tests are read-only and must pass before the task finishes"
|
||||
model: opus
|
||||
harness: code-opus-tdd-repo/v1
|
||||
requires_tags: [claude-code, coding-agent, git-access, project-repo, tdd-gate]
|
||||
required_params: [repo_url, agent_repo_url]
|
||||
defaults:
|
||||
timeout: 3600
|
||||
pre_actions:
|
||||
- type: clone
|
||||
repo: "{{ repo_url }}"
|
||||
branch: main
|
||||
depth: 1
|
||||
blocked_combinations:
|
||||
- field: on_success
|
||||
contains_type: commit_pr
|
||||
message: "Use agent_repo instead of commit_pr — avoids F77 SSH alias URL bug"
|
||||
warnings:
|
||||
- "Test files are locked read-only at the OS level — agent cannot modify them"
|
||||
- "Task will be marked failed if the test suite is not green on completion"
|
||||
- "allowed_failing_tests support requires M19 (pre-test hook) to be deployed"
|
||||
21
task-templates/sonnet-code-tdd.yaml
Normal file
21
task-templates/sonnet-code-tdd.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: sonnet-code-tdd
|
||||
description: "Sonnet code agent with TDD enforcement — tests are read-only and must pass before the task finishes"
|
||||
model: sonnet
|
||||
harness: code-sonnet-tdd-repo/v1
|
||||
requires_tags: [claude-code, coding-agent, git-access, project-repo, tdd-gate]
|
||||
required_params: [repo_url, agent_repo_url]
|
||||
defaults:
|
||||
timeout: 3600
|
||||
pre_actions:
|
||||
- type: clone
|
||||
repo: "{{ repo_url }}"
|
||||
branch: main
|
||||
depth: 1
|
||||
blocked_combinations:
|
||||
- field: on_success
|
||||
contains_type: commit_pr
|
||||
message: "Use agent_repo instead of commit_pr — avoids F77 SSH alias URL bug"
|
||||
warnings:
|
||||
- "Test files are locked read-only at the OS level — agent cannot modify them"
|
||||
- "Task will be marked failed if the test suite is not green on completion"
|
||||
- "allowed_failing_tests support requires M19 (pre-test hook) to be deployed"
|
||||
Reference in New Issue
Block a user