delegation-task-manager.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. id: delegation-task-manager
  2. name: Task Manager Delegation (4+ Files)
  3. description: |
  4. Tests that opencoder delegates to task-manager for complex features.
  5. When feature spans 4+ files or >60 min, should delegate to task-manager.
  6. Agent should:
  7. 1. Recognize complexity (4+ files)
  8. 2. Delegate to subagents/core/task-manager
  9. 3. Pass proper context to subagent
  10. category: developer
  11. agent: opencoder
  12. model: anthropic/claude-sonnet-4-5
  13. prompt: |
  14. Implement a complete authentication system with:
  15. - User model (models/User.js)
  16. - Auth controller (controllers/AuthController.js)
  17. - Auth middleware (middleware/auth.js)
  18. - Auth routes (routes/auth.js)
  19. - Auth service (services/AuthService.js)
  20. This spans 5 files - please plan and implement.
  21. # Expected behavior
  22. behavior:
  23. # Should delegate to task-manager OR present detailed plan
  24. mustContainAnyOf:
  25. - ["task-manager", "subagents/core/task-manager"]
  26. - ["Implementation Plan", "Step 1", "Step 2"]
  27. minToolCalls: 1
  28. # Should follow approval workflow
  29. expectedViolations:
  30. - rule: approval-gate
  31. shouldViolate: false
  32. severity: error
  33. approvalStrategy:
  34. type: auto-approve
  35. timeout: 120000
  36. tags:
  37. - delegation
  38. - task-manager
  39. - complex-feature
  40. - multi-file