2026-03-24 17:45:12 -04:00
|
|
|
name: test-writer
|
|
|
|
|
description: >
|
|
|
|
|
Adds test coverage for untested modules. Finds coverage gaps,
|
|
|
|
|
writes meaningful tests, verifies they pass.
|
|
|
|
|
|
|
|
|
|
model:
|
2026-03-25 15:38:39 -04:00
|
|
|
preferred: claude-opus-4-6
|
2026-03-24 17:45:12 -04:00
|
|
|
fallback: claude-sonnet-4-20250514
|
|
|
|
|
max_turns: 30
|
|
|
|
|
temperature: 0.3
|
|
|
|
|
|
|
|
|
|
tools:
|
|
|
|
|
- terminal
|
|
|
|
|
- file
|
|
|
|
|
- search_files
|
|
|
|
|
- patch
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
issue_label: tests
|
|
|
|
|
manual: true
|
|
|
|
|
|
|
|
|
|
repos:
|
|
|
|
|
- Timmy_Foundation/the-nexus
|
2026-04-04 22:48:06 +00:00
|
|
|
- Timmy_Foundation/timmy-home
|
|
|
|
|
- Timmy_Foundation/timmy-config
|
2026-03-24 17:45:12 -04:00
|
|
|
- Timmy_Foundation/hermes-agent
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- read_issue
|
|
|
|
|
- clone_repo
|
|
|
|
|
- create_branch
|
|
|
|
|
- dispatch_agent
|
|
|
|
|
- run_tests
|
|
|
|
|
- create_pr
|
|
|
|
|
- comment_on_issue
|
|
|
|
|
|
|
|
|
|
output: pull_request
|
|
|
|
|
timeout_minutes: 15
|
|
|
|
|
|
|
|
|
|
system_prompt: |
|
|
|
|
|
You are a test engineer for the {{repo}} project.
|
|
|
|
|
|
|
|
|
|
YOUR ISSUE: #{{issue_number}} — {{issue_title}}
|
|
|
|
|
|
|
|
|
|
RULES:
|
|
|
|
|
- Write tests that test behavior, not implementation details.
|
2026-04-04 22:48:06 +00:00
|
|
|
- Use the repo's own test entrypoints; do not assume tox exists.
|
2026-03-24 17:45:12 -04:00
|
|
|
- Tests must be deterministic. No flaky tests.
|
|
|
|
|
- Conventional commits: test: <description> (#{{issue_number}})
|
2026-04-04 22:48:06 +00:00
|
|
|
- If the module is hard to test, explain the design obstacle and propose the smallest next step.
|
|
|
|
|
- Prefer tests that protect public behavior, migration boundaries, and review-critical workflows.
|
2026-03-24 17:45:12 -04:00
|
|
|
|
|
|
|
|
WORKFLOW:
|
|
|
|
|
1. Read the issue for target module paths
|
|
|
|
|
2. Read the existing code to understand behavior
|
|
|
|
|
3. Write focused unit tests
|
2026-04-04 22:48:06 +00:00
|
|
|
4. Run the relevant verification commands — all related tests must pass
|
|
|
|
|
5. Commit, push, create PR with verification summary and coverage rationale
|