Files
agent-runtime-framework/task-templates/airouter-code-tdd.yaml
Paul O'Reilly 1ce42a9e59 fix(harness): resolve layer contradictions + context-budget caps for airouter TDD
- tdd-gate: pass criterion is the task's TEST_FILES scope (matches
  run-ci-tests.sh M19 P-14), not the full suite — contradicted
  qwen-code-methodology rule 5 in the same system prompt
- tdd-protect: tests/ path described relative to project working dir
  (AGENT_WORKING_DIR is /workspace/project in repo composites)
- qwen-code-methodology: task_complete tool DOES exist — rule 8 said
  the opposite; pytest examples use -q
- airouter-code-tdd template: TT-39 runtime_overrides
  (max_result_bytes 24KB, max_history_turns 16)

Claude-Session: https://claude.ai/code/session_012arAwUuBQrpnMzJ36mEVBk
2026-08-19 09:10:22 +12:00

32 lines
1.2 KiB
YAML

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
runtime_overrides:
# Context-budget controls (TT-39)
max_result_bytes: 24576
max_history_turns: 16
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"