up-cc 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/{agents → up/agents}/up-architecture-supervisor.md +1 -1
- package/{agents → up/agents}/up-audit-supervisor.md +1 -1
- package/{agents → up/agents}/up-backend-specialist.md +13 -3
- package/{agents → up/agents}/up-chief-architect.md +1 -1
- package/{agents → up/agents}/up-chief-engineer.md +1 -1
- package/{agents → up/agents}/up-chief-operations.md +2 -2
- package/{agents → up/agents}/up-chief-product.md +1 -1
- package/{agents → up/agents}/up-chief-quality.md +1 -1
- package/{agents → up/agents}/up-code-reviewer.md +2 -2
- package/{agents → up/agents}/up-database-specialist.md +13 -3
- package/{agents → up/agents}/up-execution-supervisor.md +4 -4
- package/{agents → up/agents}/up-executor.md +107 -9
- package/{agents → up/agents}/up-frontend-specialist.md +13 -3
- package/{agents → up/agents}/up-operations-supervisor.md +1 -1
- package/{agents → up/agents}/up-planejador.md +17 -1
- package/{agents → up/agents}/up-planning-supervisor.md +3 -3
- package/{agents → up/agents}/up-product-supervisor.md +1 -1
- package/{agents → up/agents}/up-project-ceo.md +2 -2
- package/{agents → up/agents}/up-quality-supervisor.md +1 -1
- package/{agents → up/agents}/up-system-designer.md +2 -2
- package/{agents → up/agents}/up-verification-supervisor.md +1 -1
- package/{agents → up/agents}/up-visual-critic.md +1 -1
- package/{bin → up/bin}/lib/core.cjs +132 -0
- package/{bin → up/bin}/up-tools.cjs +1341 -3
- package/up/commands/adicionar-fase.md +47 -0
- package/up/commands/configurar.md +219 -0
- package/{commands → up/commands}/depurar.md +1 -1
- package/{commands → up/commands}/planejar-fase.md +4 -2
- package/up/templates/config.json +8 -0
- package/up/workflows/build.md +650 -0
- package/{workflows → up/workflows}/builder.md +766 -35
- package/{workflows → up/workflows}/executar-plano.md +69 -0
- package/{workflows → up/workflows}/governance.md +3 -3
- package/{workflows → up/workflows}/plan.md +214 -29
- package/{workflows → up/workflows}/planejar-fase.md +63 -5
- package/commands/adicionar-fase.md +0 -33
- package/commands/configurar.md +0 -106
- package/templates/config.json +0 -6
- package/workflows/build.md +0 -431
- /package/{agents → up/agents}/up-analista-codigo.md +0 -0
- /package/{agents → up/agents}/up-api-tester.md +0 -0
- /package/{agents → up/agents}/up-arquiteto.md +0 -0
- /package/{agents → up/agents}/up-auditor-modernidade.md +0 -0
- /package/{agents → up/agents}/up-auditor-performance.md +0 -0
- /package/{agents → up/agents}/up-auditor-ux.md +0 -0
- /package/{agents → up/agents}/up-blind-validator.md +0 -0
- /package/{agents → up/agents}/up-clone-crawler.md +0 -0
- /package/{agents → up/agents}/up-clone-design-extractor.md +0 -0
- /package/{agents → up/agents}/up-clone-feature-mapper.md +0 -0
- /package/{agents → up/agents}/up-clone-prd-writer.md +0 -0
- /package/{agents → up/agents}/up-clone-verifier.md +0 -0
- /package/{agents → up/agents}/up-consolidador-ideias.md +0 -0
- /package/{agents → up/agents}/up-delivery-auditor.md +0 -0
- /package/{agents → up/agents}/up-depurador.md +0 -0
- /package/{agents → up/agents}/up-devops-agent.md +0 -0
- /package/{agents → up/agents}/up-exhaustive-tester.md +0 -0
- /package/{agents → up/agents}/up-mapeador-codigo.md +0 -0
- /package/{agents → up/agents}/up-pesquisador-mercado.md +0 -0
- /package/{agents → up/agents}/up-pesquisador-projeto.md +0 -0
- /package/{agents → up/agents}/up-planning-auditor.md +0 -0
- /package/{agents → up/agents}/up-product-analyst.md +0 -0
- /package/{agents → up/agents}/up-qa-agent.md +0 -0
- /package/{agents → up/agents}/up-requirements-validator.md +0 -0
- /package/{agents → up/agents}/up-roteirista.md +0 -0
- /package/{agents → up/agents}/up-security-reviewer.md +0 -0
- /package/{agents → up/agents}/up-sintetizador-melhorias.md +0 -0
- /package/{agents → up/agents}/up-sintetizador.md +0 -0
- /package/{agents → up/agents}/up-technical-writer.md +0 -0
- /package/{agents → up/agents}/up-verificador.md +0 -0
- /package/{bin → up/bin}/install.js +0 -0
- /package/{bin → up/bin}/up-instrument.cjs +0 -0
- /package/{commands → up/commands}/adicionar-testes.md +0 -0
- /package/{commands → up/commands}/ajuda.md +0 -0
- /package/{commands → up/commands}/atualizar.md +0 -0
- /package/{commands → up/commands}/build.md +0 -0
- /package/{commands → up/commands}/clone-builder.md +0 -0
- /package/{commands → up/commands}/custos.md +0 -0
- /package/{commands → up/commands}/dashboard.md +0 -0
- /package/{commands → up/commands}/discutir-fase.md +0 -0
- /package/{commands → up/commands}/executar-fase.md +0 -0
- /package/{commands → up/commands}/ideias.md +0 -0
- /package/{commands → up/commands}/iniciar.md +0 -0
- /package/{commands → up/commands}/mapear-codigo.md +0 -0
- /package/{commands → up/commands}/melhorias.md +0 -0
- /package/{commands → up/commands}/mobile-first.md +0 -0
- /package/{commands → up/commands}/modo-builder.md +0 -0
- /package/{commands → up/commands}/novo-projeto.md +0 -0
- /package/{commands → up/commands}/onboard.md +0 -0
- /package/{commands → up/commands}/pausar.md +0 -0
- /package/{commands → up/commands}/plan.md +0 -0
- /package/{commands → up/commands}/progresso.md +0 -0
- /package/{commands → up/commands}/rapido.md +0 -0
- /package/{commands → up/commands}/remover-fase.md +0 -0
- /package/{commands → up/commands}/resetar.md +0 -0
- /package/{commands → up/commands}/retomar.md +0 -0
- /package/{commands → up/commands}/saude.md +0 -0
- /package/{commands → up/commands}/testar.md +0 -0
- /package/{commands → up/commands}/ux-tester.md +0 -0
- /package/{commands → up/commands}/verificar-trabalho.md +0 -0
- /package/{hooks → up/hooks}/up-context-monitor.js +0 -0
- /package/{hooks → up/hooks}/up-statusline.js +0 -0
- /package/{references → up/references}/audit-modernidade.md +0 -0
- /package/{references → up/references}/audit-performance.md +0 -0
- /package/{references → up/references}/audit-ux.md +0 -0
- /package/{references → up/references}/blueprints/audit.md +0 -0
- /package/{references → up/references}/blueprints/booking.md +0 -0
- /package/{references → up/references}/blueprints/community.md +0 -0
- /package/{references → up/references}/blueprints/crm.md +0 -0
- /package/{references → up/references}/blueprints/dashboard.md +0 -0
- /package/{references → up/references}/blueprints/data-management.md +0 -0
- /package/{references → up/references}/blueprints/ecommerce.md +0 -0
- /package/{references → up/references}/blueprints/marketplace.md +0 -0
- /package/{references → up/references}/blueprints/notifications.md +0 -0
- /package/{references → up/references}/blueprints/saas-users.md +0 -0
- /package/{references → up/references}/blueprints/settings.md +0 -0
- /package/{references → up/references}/checkpoints.md +0 -0
- /package/{references → up/references}/engineering-principles-compressed.md +0 -0
- /package/{references → up/references}/engineering-principles.md +0 -0
- /package/{references → up/references}/git-integration.md +0 -0
- /package/{references → up/references}/governance-rules-compressed.md +0 -0
- /package/{references → up/references}/governance-rules.md +0 -0
- /package/{references → up/references}/production-requirements-compressed.md +0 -0
- /package/{references → up/references}/production-requirements.md +0 -0
- /package/{references → up/references}/questioning.md +0 -0
- /package/{references → up/references}/rework-limits-compressed.md +0 -0
- /package/{references → up/references}/rework-limits.md +0 -0
- /package/{references → up/references}/severity-levels.md +0 -0
- /package/{references → up/references}/state-persistence.md +0 -0
- /package/{references → up/references}/ui-brand.md +0 -0
- /package/{templates → up/templates}/audit-plan.md +0 -0
- /package/{templates → up/templates}/audit-report.md +0 -0
- /package/{templates → up/templates}/builder-defaults.md +0 -0
- /package/{templates → up/templates}/checklist.md +0 -0
- /package/{templates → up/templates}/continue-here.md +0 -0
- /package/{templates → up/templates}/delivery.md +0 -0
- /package/{templates → up/templates}/design-tokens.md +0 -0
- /package/{templates → up/templates}/owner-profile.md +0 -0
- /package/{templates → up/templates}/owner.md +0 -0
- /package/{templates → up/templates}/pending.md +0 -0
- /package/{templates → up/templates}/plan-ready.md +0 -0
- /package/{templates → up/templates}/project.md +0 -0
- /package/{templates → up/templates}/report.md +0 -0
- /package/{templates → up/templates}/requirements.md +0 -0
- /package/{templates → up/templates}/roadmap.md +0 -0
- /package/{templates → up/templates}/state.md +0 -0
- /package/{templates → up/templates}/suggestion.md +0 -0
- /package/{templates → up/templates}/summary.md +0 -0
- /package/{workflows → up/workflows}/adicionar-fase.md +0 -0
- /package/{workflows → up/workflows}/builder-e2e.md +0 -0
- /package/{workflows → up/workflows}/ceo-intake.md +0 -0
- /package/{workflows → up/workflows}/ceo-updates.md +0 -0
- /package/{workflows → up/workflows}/clone-builder.md +0 -0
- /package/{workflows → up/workflows}/dcrv.md +0 -0
- /package/{workflows → up/workflows}/discutir-fase.md +0 -0
- /package/{workflows → up/workflows}/executar-fase.md +0 -0
- /package/{workflows → up/workflows}/ideias.md +0 -0
- /package/{workflows → up/workflows}/iniciar.md +0 -0
- /package/{workflows → up/workflows}/mapear-codigo.md +0 -0
- /package/{workflows → up/workflows}/melhorias.md +0 -0
- /package/{workflows → up/workflows}/mobile-first.md +0 -0
- /package/{workflows → up/workflows}/novo-projeto.md +0 -0
- /package/{workflows → up/workflows}/onboarding.md +0 -0
- /package/{workflows → up/workflows}/pausar.md +0 -0
- /package/{workflows → up/workflows}/progresso.md +0 -0
- /package/{workflows → up/workflows}/rapido.md +0 -0
- /package/{workflows → up/workflows}/remover-fase.md +0 -0
- /package/{workflows → up/workflows}/resetar.md +0 -0
- /package/{workflows → up/workflows}/retomar.md +0 -0
- /package/{workflows → up/workflows}/ux-tester.md +0 -0
- /package/{workflows → up/workflows}/verificar-trabalho.md +0 -0
package/workflows/build.md
DELETED
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Workflow `/up:build` — Execucao de projeto previamente planejado.
|
|
3
|
-
|
|
4
|
-
Requer `.plano/PLAN-READY.md` (gerado por `/up:plan`).
|
|
5
|
-
|
|
6
|
-
Conduz Estagios 3 (Build) + 4 (Quality Gate) + 4.5 (Delivery Audit) + 5 (Delivery).
|
|
7
|
-
|
|
8
|
-
Pode executar projeto planejado em outro runtime — confia no PLAN-READY.md.
|
|
9
|
-
</purpose>
|
|
10
|
-
|
|
11
|
-
<core_principle>
|
|
12
|
-
Este workflow assume que o projeto foi completamente planejado por `/up:plan`.
|
|
13
|
-
|
|
14
|
-
Diferenca do builder:
|
|
15
|
-
- Builder: planeja + executa em sequencia, no mesmo runtime
|
|
16
|
-
- Build: SO executa, le PLAN-READY.md gerado anteriormente (mesmo runtime ou outro)
|
|
17
|
-
|
|
18
|
-
**Sem model routing** — runtime decide o modelo.
|
|
19
|
-
|
|
20
|
-
**Re-plan local permitido (max 2):**
|
|
21
|
-
Se durante execucao o execution-supervisor detectar que um plano esta inviavel,
|
|
22
|
-
ele pode pedir REQUEST_REPLAN. O planejador local refaz o plano daquela fase.
|
|
23
|
-
NUNCA volta pro runtime que planejou originalmente.
|
|
24
|
-
</core_principle>
|
|
25
|
-
|
|
26
|
-
<process>
|
|
27
|
-
|
|
28
|
-
## Estagio 0: GATES OBRIGATORIOS
|
|
29
|
-
|
|
30
|
-
### 0.1 Owner Profile (LOCAL)
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
if [ ! -f ~/.claude/up/owner-profile.md ]; then
|
|
34
|
-
echo "Owner profile nao existe NESTE runtime. Rodando /up:onboard..."
|
|
35
|
-
# Delegar pro workflow onboarding.md
|
|
36
|
-
fi
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**IMPORTANTE:** O profile e do RUNTIME ATUAL, nao do runtime que planejou. Cada runtime tem seu profile.
|
|
40
|
-
|
|
41
|
-
### 0.2 PLAN-READY.md Existe?
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
if [ ! -f .plano/PLAN-READY.md ]; then
|
|
45
|
-
echo "ERRO: Este projeto nao foi planejado."
|
|
46
|
-
echo ""
|
|
47
|
-
echo "Use /up:plan primeiro pra planejar o projeto."
|
|
48
|
-
echo "Ou /up:modo-builder pra planejar e executar de uma vez."
|
|
49
|
-
exit 1
|
|
50
|
-
fi
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### 0.3 Crash Recovery
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
ls .plano/LOCK.md 2>/dev/null
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Se LOCK.md existe e `stage: build`: retomar.
|
|
60
|
-
|
|
61
|
-
## Estagio V: VALIDACAO LIGHT
|
|
62
|
-
|
|
63
|
-
**Confiar no PLAN-READY.md, mas spot-check estrutura.**
|
|
64
|
-
|
|
65
|
-
### V.1 Parsear PLAN-READY.md
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
# Extrair frontmatter
|
|
69
|
-
PLANNED_RUNTIME=$(grep "runtime:" .plano/PLAN-READY.md | head -1 | awk '{print $2}')
|
|
70
|
-
INTENDED_RUNTIME=$(grep -A1 "intended_execution:" .plano/PLAN-READY.md | tail -1 | awk '{print $2}')
|
|
71
|
-
TOTAL_PHASES=$(grep "total_phases:" .plano/PLAN-READY.md | awk '{print $2}')
|
|
72
|
-
CONFIDENCE=$(grep "planning_confidence:" .plano/PLAN-READY.md | awk '{print $2}')
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### V.2 Validacao de Compatibilidade
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
CURRENT_RUNTIME="claude-code" # detectar
|
|
79
|
-
[ -d ~/.config/opencode ] && CURRENT_RUNTIME="opencode"
|
|
80
|
-
[ -d ~/.gemini ] && CURRENT_RUNTIME="gemini-cli"
|
|
81
|
-
|
|
82
|
-
# Se intended_execution especifica um runtime e nao e o atual, alertar
|
|
83
|
-
if [ "$INTENDED_RUNTIME" != "same" ] && [ "$INTENDED_RUNTIME" != "any" ] && [ "$INTENDED_RUNTIME" != "$CURRENT_RUNTIME" ]; then
|
|
84
|
-
echo "AVISO: Plano gerado pra $INTENDED_RUNTIME, voce esta em $CURRENT_RUNTIME"
|
|
85
|
-
echo "Pode haver incompatibilidades. Continuar mesmo assim?"
|
|
86
|
-
# AskUserQuestion sim/nao
|
|
87
|
-
fi
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### V.3 Validar Artefatos Esperados
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
[ -f .plano/PROJECT.md ] || { echo "FALTANDO: PROJECT.md"; FAIL=1; }
|
|
94
|
-
[ -f .plano/ROADMAP.md ] || { echo "FALTANDO: ROADMAP.md"; FAIL=1; }
|
|
95
|
-
[ -f .plano/REQUIREMENTS.md ] || { echo "FALTANDO: REQUIREMENTS.md"; FAIL=1; }
|
|
96
|
-
[ -f .plano/SYSTEM-DESIGN.md ] || { echo "FALTANDO: SYSTEM-DESIGN.md"; FAIL=1; }
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### V.4 Validar Planos Listados
|
|
100
|
-
|
|
101
|
-
Pra cada plano listado em PLAN-READY.md, checar se arquivo existe:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
# Extrair lista de planos do PLAN-READY.md
|
|
105
|
-
PLANS=$(grep -oE "fases/[0-9]+-[a-z-]+/[0-9]+-[0-9]+-PLAN.md" .plano/PLAN-READY.md)
|
|
106
|
-
|
|
107
|
-
for plan in $PLANS; do
|
|
108
|
-
if [ ! -f ".plano/$plan" ]; then
|
|
109
|
-
echo "FALTANDO: $plan"
|
|
110
|
-
FAIL=1
|
|
111
|
-
fi
|
|
112
|
-
done
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### V.5 Decidir
|
|
116
|
-
|
|
117
|
-
**Se todos arquivos OK:** prosseguir.
|
|
118
|
-
|
|
119
|
-
**Se algo falta:**
|
|
120
|
-
- Alertar usuario
|
|
121
|
-
- Oferecer: "Posso planejar localmente?" (re-roda /up:plan)
|
|
122
|
-
- Ou abortar
|
|
123
|
-
|
|
124
|
-
## Estagio C: CEO CONFIRMA
|
|
125
|
-
|
|
126
|
-
Spawnar CEO local:
|
|
127
|
-
|
|
128
|
-
```python
|
|
129
|
-
Agent(
|
|
130
|
-
subagent_type="up-project-ceo",
|
|
131
|
-
prompt="""
|
|
132
|
-
Confirmar execucao de projeto previamente planejado.
|
|
133
|
-
|
|
134
|
-
<files_to_read>
|
|
135
|
-
- ~/.claude/up/owner-profile.md (perfil LOCAL deste runtime)
|
|
136
|
-
- .plano/BRIEFING.md (briefing original)
|
|
137
|
-
- .plano/PLAN-READY.md (resumo do planejamento)
|
|
138
|
-
- .plano/AUDIT-PLAN.md (audit do planejamento)
|
|
139
|
-
- .plano/PENDING.md
|
|
140
|
-
</files_to_read>
|
|
141
|
-
|
|
142
|
-
Apresentar ao dono:
|
|
143
|
-
- "Detectei projeto planejado em {runtime} por {ceo_name_anterior}"
|
|
144
|
-
- Resumo: N fases, M planos
|
|
145
|
-
- Planning confidence: X/100
|
|
146
|
-
- Pendencias conhecidas
|
|
147
|
-
- "Iniciar execucao? (enter pra continuar)"
|
|
148
|
-
|
|
149
|
-
Se dono confirmar: prosseguir.
|
|
150
|
-
Se recusar: abortar.
|
|
151
|
-
"""
|
|
152
|
-
)
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
## Estagio 3: BUILD (loop por fase)
|
|
156
|
-
|
|
157
|
-
**Mesmo processo do builder.md secao Estagio 3, mas SEM model routing.**
|
|
158
|
-
|
|
159
|
-
Para cada fase em ROADMAP.md (em ordem):
|
|
160
|
-
|
|
161
|
-
### 3.1 Carregar Plano da Fase
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
PHASE_DIR=$(ls -d .plano/fases/{phase_number}-* 2>/dev/null)
|
|
165
|
-
PLAN=$(ls "$PHASE_DIR"/*-PLAN.md | head -1)
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### 3.2 Detectar Tipo de Plano (Specialist Routing)
|
|
169
|
-
|
|
170
|
-
Ler o frontmatter do plano pra determinar qual specialist usar:
|
|
171
|
-
- Frontend tasks → up-frontend-specialist
|
|
172
|
-
- Backend tasks → up-backend-specialist
|
|
173
|
-
- Database tasks → up-database-specialist
|
|
174
|
-
- Misto → up-executor
|
|
175
|
-
|
|
176
|
-
### 3.3 Spawnar Specialist
|
|
177
|
-
|
|
178
|
-
```python
|
|
179
|
-
Agent(
|
|
180
|
-
subagent_type="{up-specialist}",
|
|
181
|
-
prompt=f"""
|
|
182
|
-
Executar Plano da Fase {phase_number}.
|
|
183
|
-
|
|
184
|
-
<engineering_principles_compressed>
|
|
185
|
-
1. Implementacao real, nao simulacao (zero placeholder, zero stub)
|
|
186
|
-
2. Correto, nao rapido (sem `any`, validacao com lib, queries parametrizadas)
|
|
187
|
-
3. Conectado ponta a ponta (componente → API → DB com dados fluindo)
|
|
188
|
-
4. Consistencia (grep por pattern existente antes de inventar)
|
|
189
|
-
5. Dados reais desde o primeiro momento (sem hardcode)
|
|
190
|
-
6. Cada decisao tem custo futuro (escolher solucao escalavel)
|
|
191
|
-
|
|
192
|
-
Em duvida entre rapido e correto: sempre o correto.
|
|
193
|
-
Sob demanda: Read references/engineering-principles.md para exemplos.
|
|
194
|
-
</engineering_principles_compressed>
|
|
195
|
-
|
|
196
|
-
<production_requirements_compressed>
|
|
197
|
-
Categorias a respeitar (71 requisitos no total):
|
|
198
|
-
- UIST (UI States): loading/error/empty/success em TODA operacao async
|
|
199
|
-
- ERR (Error handling): boundaries, try/catch, sessao expirada, 404
|
|
200
|
-
- PERF: lazy loading, code split, debounce, pagination > 20 items, cache
|
|
201
|
-
- FORM: validacao inline, mensagens especificas, autofocus, mascaras
|
|
202
|
-
- RESP: 375px funcional, touch 44x44, hamburger mobile
|
|
203
|
-
- A11Y: alt, labels, focus visible, keyboard, contraste 4.5:1
|
|
204
|
-
- SEC: rotas protegidas, CSRF, XSS, rate limit, env vars, RLS
|
|
205
|
-
- POLISH: hover, transicoes 150-300ms, design tokens
|
|
206
|
-
|
|
207
|
-
Sob demanda: Read references/production-requirements.md para IDs especificos.
|
|
208
|
-
</production_requirements_compressed>
|
|
209
|
-
|
|
210
|
-
<files_to_read>
|
|
211
|
-
TIER 1 — Sempre:
|
|
212
|
-
- {PLAN}
|
|
213
|
-
- .plano/STATE.md
|
|
214
|
-
- ./CLAUDE.md (se existir)
|
|
215
|
-
|
|
216
|
-
TIER 2 — Se a slice da fase existe (v0.7.0+):
|
|
217
|
-
- .plano/fases/{phase_number}/PHASE.md (objetivo da fase)
|
|
218
|
-
- .plano/fases/{phase_number}/REQUIREMENTS-SLICE.md (REQs APENAS desta fase)
|
|
219
|
-
- .plano/DESIGN-TOKENS.md (se for frontend e existir)
|
|
220
|
-
|
|
221
|
-
TIER 3 — Sob demanda apenas:
|
|
222
|
-
- .plano/PROJECT.md (so se precisar visao geral)
|
|
223
|
-
- .plano/SYSTEM-DESIGN.md (so se decisao de arquitetura aparecer)
|
|
224
|
-
- .plano/REQUIREMENTS.md (so se a slice nao tiver info suficiente)
|
|
225
|
-
</files_to_read>
|
|
226
|
-
|
|
227
|
-
Implementar todas as tarefas. Commitar atomicamente.
|
|
228
|
-
Gerar SUMMARY.md.
|
|
229
|
-
"""
|
|
230
|
-
)
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
### 3.4 Execution Supervisor Revisa
|
|
234
|
-
|
|
235
|
-
```python
|
|
236
|
-
Agent(
|
|
237
|
-
subagent_type="up-execution-supervisor",
|
|
238
|
-
prompt=f"""
|
|
239
|
-
Revisar execucao da Fase {phase_number}.
|
|
240
|
-
|
|
241
|
-
<governance_compressed>
|
|
242
|
-
DECISOES: APPROVE | REQUEST_CHANGES | REQUEST_REPLAN | ESCALATE
|
|
243
|
-
REWORK: max 3 ciclos antes de forcar approval com debito
|
|
244
|
-
NUNCA APROVAR: trabalho nao verificado, evidencia ambigua, claim sem backing,
|
|
245
|
-
stub/placeholder, falta de wiring
|
|
246
|
-
</governance_compressed>
|
|
247
|
-
|
|
248
|
-
<engineering_principles_compressed>
|
|
249
|
-
1. Implementacao real (zero placeholder)
|
|
250
|
-
2. Correto, nao rapido
|
|
251
|
-
3. Conectado ponta a ponta
|
|
252
|
-
4. Consistencia (seguir patterns existentes)
|
|
253
|
-
5. Dados reais
|
|
254
|
-
6. Custo futuro
|
|
255
|
-
</engineering_principles_compressed>
|
|
256
|
-
|
|
257
|
-
<files_to_read>
|
|
258
|
-
- {PLAN}
|
|
259
|
-
- {PHASE_DIR}/*-SUMMARY.md
|
|
260
|
-
- git diff (use Bash)
|
|
261
|
-
- .plano/fases/{phase_number}/REQUIREMENTS-SLICE.md (se existir)
|
|
262
|
-
|
|
263
|
-
Sob demanda apenas:
|
|
264
|
-
- $HOME/.claude/up/references/engineering-principles.md (exemplos)
|
|
265
|
-
- $HOME/.claude/up/references/governance-rules.md (hierarquia)
|
|
266
|
-
- $HOME/.claude/up/references/rework-limits.md (fluxos)
|
|
267
|
-
- $HOME/.claude/up/references/production-requirements.md (IDs especificos)
|
|
268
|
-
</files_to_read>
|
|
269
|
-
|
|
270
|
-
Decisao: APPROVE | REQUEST_CHANGES | REQUEST_REPLAN | ESCALATE
|
|
271
|
-
|
|
272
|
-
REQUEST_REPLAN: Se descobrir que o plano e fundamentalmente errado/inviavel.
|
|
273
|
-
Max 2 re-plans por projeto.
|
|
274
|
-
"""
|
|
275
|
-
)
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
### 3.5 Processar Decisao do Supervisor
|
|
279
|
-
|
|
280
|
-
**Se APPROVE:** prosseguir.
|
|
281
|
-
|
|
282
|
-
**Se REQUEST_CHANGES:** re-spawn specialist com feedback (max 3 ciclos).
|
|
283
|
-
|
|
284
|
-
**Se REQUEST_REPLAN:**
|
|
285
|
-
|
|
286
|
-
```bash
|
|
287
|
-
REPLAN_COUNT=$(cat .plano/governance/replans.log 2>/dev/null | wc -l)
|
|
288
|
-
if [ "$REPLAN_COUNT" -ge 2 ]; then
|
|
289
|
-
echo "Max re-plans atingido. Escalando pro CEO."
|
|
290
|
-
# ESCALATE
|
|
291
|
-
else
|
|
292
|
-
# Re-planejar fase localmente
|
|
293
|
-
echo "REQUEST_REPLAN aprovado. Re-planejando fase {phase_number} localmente..."
|
|
294
|
-
|
|
295
|
-
# Spawnar planejador LOCAL
|
|
296
|
-
Agent(
|
|
297
|
-
subagent_type="up-planejador",
|
|
298
|
-
prompt=f"""
|
|
299
|
-
RE-PLAN da Fase {phase_number}.
|
|
300
|
-
|
|
301
|
-
Plano original: {PLAN}
|
|
302
|
-
Razao do re-plan: {execution_supervisor_reason}
|
|
303
|
-
|
|
304
|
-
Refaca o plano corrigindo o problema descoberto.
|
|
305
|
-
"""
|
|
306
|
-
)
|
|
307
|
-
|
|
308
|
-
# Salvar como -PLAN-v2.md
|
|
309
|
-
mv "$PLAN" "${PLAN%-PLAN.md}-PLAN-v1.md"
|
|
310
|
-
# novo plano vira PLAN principal
|
|
311
|
-
|
|
312
|
-
# Registrar
|
|
313
|
-
echo "$(date -u) | phase-{phase_number} | execution-supervisor | REPLAN | reason: {reason}" >> .plano/governance/replans.log
|
|
314
|
-
|
|
315
|
-
# Planning-supervisor revisa novo plano
|
|
316
|
-
Agent(subagent_type="up-planning-supervisor", ...)
|
|
317
|
-
|
|
318
|
-
# Voltar pro 3.3 (re-spawn specialist)
|
|
319
|
-
fi
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
**Se ESCALATE:** chief-engineer entra.
|
|
323
|
-
|
|
324
|
-
### 3.6 Verificacao
|
|
325
|
-
|
|
326
|
-
```python
|
|
327
|
-
Agent(subagent_type="up-verificador", ...)
|
|
328
|
-
Agent(subagent_type="up-verification-supervisor", ...)
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
### 3.7 E2E + DCRV
|
|
332
|
-
|
|
333
|
-
Ver builder.md secao 3.1.5 (E2E) e 3.1.5.1 (DCRV).
|
|
334
|
-
|
|
335
|
-
### 3.8 Chief-engineer Aprova Fase
|
|
336
|
-
|
|
337
|
-
```python
|
|
338
|
-
Agent(
|
|
339
|
-
subagent_type="up-chief-engineer",
|
|
340
|
-
prompt="Revisar Fase {phase_number} consolidada."
|
|
341
|
-
)
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
### 3.9 Marcar Completa e Avancar
|
|
345
|
-
|
|
346
|
-
## Estagio 4: QUALITY GATE GLOBAL
|
|
347
|
-
|
|
348
|
-
Mesmo processo do builder.md secao Estagio 4. Sem model routing.
|
|
349
|
-
|
|
350
|
-
## Estagio 4.5: DELIVERY AUDIT
|
|
351
|
-
|
|
352
|
-
```python
|
|
353
|
-
Agent(subagent_type="up-delivery-auditor", ...)
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
## Estagio 5: DELIVERY
|
|
357
|
-
|
|
358
|
-
Mesmo processo. CEO local apresenta resultado.
|
|
359
|
-
|
|
360
|
-
### 5.X Marcar Projeto Completo
|
|
361
|
-
|
|
362
|
-
```bash
|
|
363
|
-
# PLAN-READY.md → PROJECT-COMPLETE.md
|
|
364
|
-
mv .plano/PLAN-READY.md .plano/PROJECT-COMPLETE.md
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
Adicionar ao frontmatter:
|
|
368
|
-
```yaml
|
|
369
|
-
status: complete
|
|
370
|
-
completed_at: [timestamp]
|
|
371
|
-
completed_by:
|
|
372
|
-
runtime: [current]
|
|
373
|
-
ceo_name: [local]
|
|
374
|
-
final_confidence: [from audit]
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
</process>
|
|
378
|
-
|
|
379
|
-
<replans>
|
|
380
|
-
|
|
381
|
-
## Re-plans Locais (max 2)
|
|
382
|
-
|
|
383
|
-
Quando: execution-supervisor descobre que o plano original esta inviavel.
|
|
384
|
-
|
|
385
|
-
Como funciona:
|
|
386
|
-
|
|
387
|
-
```
|
|
388
|
-
Execution falha
|
|
389
|
-
↓
|
|
390
|
-
execution-supervisor analisa
|
|
391
|
-
↓
|
|
392
|
-
Decide: REQUEST_REPLAN
|
|
393
|
-
↓
|
|
394
|
-
Verifica replans.log < 2?
|
|
395
|
-
├─ Sim: prosseguir
|
|
396
|
-
└─ Nao: ESCALATE pro CEO
|
|
397
|
-
↓
|
|
398
|
-
Spawnar planejador LOCAL no runtime atual
|
|
399
|
-
↓
|
|
400
|
-
Refaz plano daquela fase
|
|
401
|
-
↓
|
|
402
|
-
Salva como PLAN-v2.md (preserva v1 pra historico)
|
|
403
|
-
↓
|
|
404
|
-
Planning-supervisor LOCAL revisa
|
|
405
|
-
↓
|
|
406
|
-
Se APPROVE: voltar pro executor com novo plano
|
|
407
|
-
Se REJECT: ESCALATE pro chief-engineer
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
Registro em `.plano/governance/replans.log`:
|
|
411
|
-
```
|
|
412
|
-
2026-04-11T15:30:00Z | phase-3 | execution-supervisor | REPLAN | cycle 1/2
|
|
413
|
-
reason: Library X discontinued, need to use Y instead
|
|
414
|
-
original_plan: 03-01-PLAN-v1.md
|
|
415
|
-
new_plan: 03-01-PLAN.md (was v2)
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
</replans>
|
|
419
|
-
|
|
420
|
-
<success_criteria>
|
|
421
|
-
- [ ] Owner profile LOCAL validado
|
|
422
|
-
- [ ] PLAN-READY.md existe e parseado
|
|
423
|
-
- [ ] Validacao light passou (artefatos + planos existem)
|
|
424
|
-
- [ ] CEO confirmou execucao
|
|
425
|
-
- [ ] Todas fases executadas com supervisao
|
|
426
|
-
- [ ] Re-plans registrados (se houve)
|
|
427
|
-
- [ ] Quality Gate global passou
|
|
428
|
-
- [ ] Delivery audit aprovou
|
|
429
|
-
- [ ] CEO apresentou resultado
|
|
430
|
-
- [ ] PLAN-READY.md → PROJECT-COMPLETE.md
|
|
431
|
-
</success_criteria>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|