refactor: consolidate 3+3 agent model back to Dev + QA (Phase 12v L2 finding) #107
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
plan-pal-e-agency→ Phase 12 → Phase 12v (L2 quality comparison conclusion)Repo
forgejo_admin/claude-customUser Story
As Lucas
I want a single Dev agent and single QA agent that leverage Claude Opus's inherent capability
So that reviews are both thorough AND domain-aware without overengineered specialization
Context
Phase 12v L2 quality comparison proved two things:
QA specialization hurts more than it helps. Domain QA agents found 7 domain-specific nits but missed 6 generic blockers (missing tests, DRY violations, input validation) that the old generic QA caught. Claude Opus already has domain expertise — the specialization CONSTRAINED attention rather than ADDING capability.
Execution specialization adds value only when it adds TOOLS (Impeccable skills for frontend,
tofucommands for infra), not when it just adds constraints (dev-backend's "never write frontend" — the model naturally stays in-domain). One enhanced Dev agent with all tools trusts the model to apply the right ones based on context.Decision: Consolidate back to the five-agent model: Betty Sue, Penny, Dev, QA, Dottie. This matches the project page architecture diagram which already shows
Dev (code writer)andQA (reviewer)as workflow-based agents, not domain-based.File Targets
Files to CREATE (enhanced versions):
agents/dev.md— NEW enhanced Dev with all capabilities: Impeccable skills (for frontend work),tofuenforcement (for infra work), ruff enforcement (for Python work). No domain constraints. Model decides what's relevant based on repo/issue context.agents/qa.md— NEW enhanced QA with: generic code quality checklist (DRY, tests, input validation, hardcoded values), DOMAIN REVIEW section (model dynamically applies domain expertise), PROCESS OBSERVATIONS section (DORA), explicit BLOCKER criteria (missing tests for new functionality = BLOCKER, not nit).Files to DEPRECATE (rename to .deprecated):
agents/dev-backend.md→agents/dev-backend.md.deprecatedagents/dev-frontend.md→agents/dev-frontend.md.deprecatedagents/devops.md→agents/devops.md.deprecatedagents/dev-qa.md→agents/dev-qa.md.deprecatedagents/frontend-qa.md→agents/frontend-qa.md.deprecatedagents/devops-qa.md→agents/devops-qa.md.deprecatedFiles to UPDATE:
schemas/agent-spawn-requirements.json— replace 6 specialized types withdevandqa. Keepgeneral-purpose,Explore,claude-code-guideunchanged.skills/review-pr/SKILL.md— remove domain label routing (Steps 3-4). Simplify to: parse PR, find parent issue, spawnqa. No domain label lookup needed.Files NOT to touch:
agents/dottie.md— unchangedagents/betty-sue.md— unchangedagents/dev.md.deprecated— this is the OLD dev config. Don't un-deprecate it — create a NEW enhanceddev.mdinstead.agents/qa.md.deprecated— same. Create a NEW enhancedqa.md.Acceptance Criteria
agents/dev.mdexists with Impeccable skills, tofu enforcement, ruff enforcement, and NO domain constraintsagents/qa.mdexists with generic code quality checklist, DOMAIN REVIEW section, PROCESS OBSERVATIONS, and explicit BLOCKER criteria.deprecatedschemas/agent-spawn-requirements.jsonhasdevandqaentries, nodev-backend/dev-frontend/devops/dev-qa/frontend-qa/devops-qaskills/review-pr/SKILL.mdspawnsqadirectly without domain routingjqTest Expectations
jq . schemas/agent-spawn-requirements.jsonvalidatesls agents/*.mdshows only: betty-sue.md, dev.md, dottie.md, qa.mdls agents/*.deprecatedshows 8 files (old dev, old qa, plus 6 specialized)grep -l "Impeccable\|frontend-design" agents/dev.mdconfirms skills are presentgrep -l "tofu fmt" agents/dev.mdconfirms tofu enforcement is presentgrep -l "BLOCKER" agents/qa.mdconfirms severity calibration is presentjq '.types | keys' schemas/agent-spawn-requirements.jsonshould show dev, qa, general-purpose, Explore, claude-code-guideConstraints
tofunotterraform,tofu fmt,tofu validate,tofu planoutput in PR body for TF changesskills/review-pr/SKILL.md— just simplify the routing logicChecklist
Related
project-pal-e-agency— five-agent model matches architecture diagram