Hipótese: sessão contínua com skills carregadas no momento de uso substitui
9 nós de planejamento fragmentado e 7 nós de review fragmentado.
29 nós (v1) → 12 nós (v2).
┌─────────────────────────────────────────────────────────────────────┐
│ BOOTSTRAP bash nodes │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ pre-flight ──► read-jira (haiku, cached) ──► embed-context │
│ │ │
│ injeta context/ │
│ refinement.md se │
│ existir no jira-card │
└────────────────────────────────────────────────────┼────────────────┘
│
┌────────────────────────────────────────────────────▼────────────────┐
│ IMPLEMENT SESSION (session_group: impl) sonnet │
│ xp-implement-v2 │
│ │
│ Step 1 ── Load task + codebase-context (parallel reads) │
│ Step 2 ── Skills: NOT loaded upfront │
│ Step 3 ── Read source files em paralelo (guided by jira-card) │
│ Step 4 ── Investigate GOTCHAs before writing │
│ Step 5 ── Implement + lint inline após cada edit │
│ ┌──────────────────────────────────────────────────┐ │
│ Step 6 ── │ cat clojure-guidelines → check → fix violations │ │
│ Step 7 ── │ cat clojure-testing → check → fix violations │ │
│ Step 8 ── │ cat diplomat-arch → check → fix violations │ │
│ └──────────────────────────────────────────────────┘ │
│ Step 9 ── lein test <targeted namespace> │
│ Step 10 ─ git commit -S │
│ │
│ ↳ cada skill carregada fresh imediatamente antes de ser usada │
└─────────────────────────────────────────────────────────────────────┘
│
┌────────────────▼────────────────┐
│ test-fix-planner (sonnet) │
│ analisa falhas, cria fix tasks │
└────────────────┬────────────────┘
│
┌────────────────▼────────────────┐
│ test-gate (bash, goal_gate) │◄──┐
│ lein test (full suite) │ │
│ falha → rewind test-fix-planner│───┘
└────────────────┬────────────────┘
│ PASS
┌────────────────────────────────────────────────────▼────────────────┐
│ REVIEW SESSION (session_group: review) sonnet │
│ xp-review-v2 ← sessão NOVA, sem conhecimento do impl │
│ (bias prevention) │
│ │
│ Step 1 ── git diff (lê o diff completo) │
│ Step 2 ── Lê todos os arquivos mudados em paralelo │
│ Step 3 ── Classifica: SIMPLE | COMPLEX │
│ ┌──────────────────────────────────────────────────┐ │
│ Step 4 ── │ cat clojure-guidelines → verifica → registra FAILs│ │
│ Step 5 ── │ cat clojure-testing → verifica → registra FAILs│ │
│ Step 6 ── │ cat diplomat-arch → verifica → registra FAILs│ │
│ Step 7 ── │ senior pass (só se COMPLEX) │ │
│ └──────────────────────────────────────────────────┘ │
│ Step 8 ── Escreve review-findings.md (unificado, deduplicado) │
│ Output ── APPROVED | REQUEST_CHANGES │
│ │
│ ↳ sessão contínua: sem concat, sem synthesize, sem re-leitura │
└─────────────────────────────────────────────────────────────────────┘
│ APPROVED │ REQUEST_CHANGES
│ ┌────────▼────────────────────────┐
│ │ fix (sonnet) │
│ │ CONTINUA sessão do review │
│ │ skills + diff + findings já │
│ │ em contexto — zero re-leitura │
│ │ │
│ │ Para cada finding elegível: │
│ │ · propõe fix │
│ │ · cross-check skills │
│ │ · aplica → lint → validate │
│ │ · git commit -S │
│ └────────┬────────────────────────┘
│ │
│ ┌────────▼────────────────────────┐
│ │ test-gate-review (goal_gate) │◄──┐
│ │ falha → rewind fix │───┘
│ └────────┬────────────────────────┘
│ │ PASS
└────────────────┬────────┘
│
┌────────────────▼────────────────┐
│ lint-gate (bash, goal_gate) │◄──┐
│ lein lint │ │
│ falha → fix-lint (haiku) ──────────┘
└────────────────┬────────────────┘
│ PASS
┌────────────────▼────────────────┐
│ create-pr (haiku) │
└─────────────────────────────────┘
| Decisão |
Motivo |
| Skills carregadas no step que as usa, não no início |
Atenção do transformer decai com distância. Skill fresh = máxima atenção |
| Sessão impl contínua (sem context:fresh entre steps) |
Re-leitura dos mesmos arquivos entre nós = overhead puro |
| Sessão review começa fresh |
Bias prevention: reviewer não pode herdar contexto do implementador |
| Sessão fix continua o review |
Fix já tem skills + diff + findings em contexto — zero re-leitura |
| Sem explore / plan-roadmap / task-manager |
Tarefas bem refinadas não precisam de orquestração de planejamento |
| Leituras de arquivo em paralelo |
Claude Code faz isso nativamente — é o que gera a eficiência observada no chat |
|
v1 |
v2 |
| Total nós |
29 |
12 |
| Nós de planejamento |
9 |
0 |
| Nós de review |
11 |
3 |
| Resets de contexto (context:fresh) |
18+ |
3 |
| Commands novos |
— |
xp-implement-v2, xp-review-v2, xp-fix-v2 |