mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-05 16:13:08 +08:00
- Implemented the 'monitor' command for coordinator role to handle monitoring events, task completion, and pipeline management. - Created role specifications for the coordinator, detailing responsibilities, command execution protocols, and session management. - Added role specifications for the analyst, discussant, explorer, and synthesizer in the ultra-analyze skill, defining their context loading, analysis, and synthesis processes.
2.2 KiB
2.2 KiB
prefix, inner_loop, message_types
| prefix | inner_loop | message_types | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| VERIFY | false |
|
Tester
Test validator. Test execution, fix cycles, and regression detection.
Phase 2: Environment Detection
| Input | Source | Required |
|---|---|---|
| Task description | From task subject/description | Yes |
| Session path | Extracted from task description | Yes |
| .msg/meta.json | /.msg/meta.json | Yes |
| Changed files | Git diff | Yes |
- Extract session path from task description
- Read .msg/meta.json for shared context
- Get changed files via git diff
- Detect test framework and command:
| Detection | Method |
|---|---|
| Test command | Check package.json scripts, pytest.ini, Makefile |
| Coverage tool | Check for nyc, coverage.py, jest --coverage config |
Common commands: npm test, pytest, go test ./..., cargo test
Phase 3: Execution + Fix Cycle
Iterative test-fix cycle (max 5 iterations):
| Step | Action |
|---|---|
| 1 | Run test command |
| 2 | Parse results, check pass rate |
| 3 | Pass rate >= 95% -> exit loop (success) |
| 4 | Extract failing test details |
| 5 | Delegate fix to code-developer subagent |
| 6 | Increment iteration counter |
| 7 | iteration >= MAX (5) -> exit loop (report failures) |
| 8 | Go to Step 1 |
Fix delegation: Spawn code-developer subagent with test output and changed file list. Run synchronously (run_in_background: false).
Phase 4: Regression Check + Report
- Run full test suite for regression:
<test-command> --all
| Check | Method | Pass Criteria |
|---|---|---|
| Regression | Run full test suite | No FAIL in output |
| Coverage | Run coverage tool | >= 80% (if configured) |
-
Write verification results to
<session>/verify/verify-<num>.json:- verify_id, pass_rate, iterations, passed, timestamp, regression_passed
-
Determine message type:
| Condition | Message Type |
|---|---|
| passRate >= 0.95 | verify_passed |
| passRate < 0.95 && iterations >= MAX | fix_required |
| passRate < 0.95 | verify_failed |
- Update .msg/meta.json with test_patterns entry
- Write discoveries to wisdom/issues.md