wrxn-reversa 1.10.0 → 1.11.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.
Files changed (206) hide show
  1. package/agents/reversa/SKILL.md +9 -9
  2. package/agents/reversa/references/checkpoint-guide.md +1 -1
  3. package/agents/reversa/references/engineering-defaults.md +58 -29
  4. package/agents/reversa/references/modo-de-execucao.md +29 -21
  5. package/agents/reversa/references/owner-decisions.md +104 -0
  6. package/agents/reversa/references/stack-record.md +6 -4
  7. package/agents/reversa/references/step-01-first-run.md +1 -1
  8. package/agents/reversa/references/step-02-resume.md +3 -3
  9. package/agents/reversa/references/step-03-specs-organization.md +7 -7
  10. package/agents/reversa/references/step-04-regression-check.md +3 -3
  11. package/agents/reversa/scripts/session-state.mjs +9 -4
  12. package/agents/reversa-add/SKILL.md +9 -9
  13. package/agents/reversa-arbiter/SKILL.md +3 -3
  14. package/agents/reversa-archaeologist/SKILL.md +3 -3
  15. package/agents/reversa-architect/SKILL.md +2 -2
  16. package/agents/reversa-audit/SKILL.md +4 -4
  17. package/agents/reversa-autonomous/SKILL.md +4 -4
  18. package/agents/reversa-brainstorm/SKILL.md +2 -2
  19. package/agents/reversa-challenger/SKILL.md +2 -2
  20. package/agents/reversa-clarify/SKILL.md +5 -5
  21. package/agents/reversa-code-express/SKILL.md +18 -18
  22. package/agents/reversa-coding/SKILL.md +13 -12
  23. package/agents/reversa-curator/SKILL.md +1 -1
  24. package/agents/reversa-data-master/SKILL.md +1 -1
  25. package/agents/reversa-debugger/SKILL.md +6 -6
  26. package/agents/reversa-debugger/references/bug-schema.md +1 -1
  27. package/agents/reversa-debugger/references/bugs-readme-template.md +3 -2
  28. package/agents/reversa-debugger-debate/SKILL.md +1 -1
  29. package/agents/reversa-debugger-fix/SKILL.md +9 -7
  30. package/agents/reversa-debugger-graph/SKILL.md +2 -2
  31. package/agents/reversa-decouple/SKILL.md +5 -4
  32. package/agents/reversa-depth-inspection/SKILL.md +1 -1
  33. package/agents/reversa-design-system/SKILL.md +1 -1
  34. package/agents/reversa-designer/SKILL.md +2 -2
  35. package/agents/reversa-designer/references/templates/target_architecture.md +8 -0
  36. package/agents/reversa-detective/SKILL.md +1 -1
  37. package/agents/reversa-docs/SKILL.md +2 -2
  38. package/agents/reversa-docs-analyst/SKILL.md +1 -1
  39. package/agents/reversa-docs-mapper/SKILL.md +1 -1
  40. package/agents/reversa-docs-publisher/SKILL.md +1 -1
  41. package/agents/reversa-docs-storyteller/SKILL.md +1 -1
  42. package/agents/reversa-drafter/SKILL.md +4 -3
  43. package/agents/reversa-explorer/SKILL.md +2 -2
  44. package/agents/reversa-extract-soul/SKILL.md +1 -1
  45. package/agents/reversa-forward/SKILL.md +8 -8
  46. package/agents/reversa-forward-autonomous/SKILL.md +23 -18
  47. package/agents/reversa-framer/SKILL.md +2 -2
  48. package/agents/reversa-ideator/SKILL.md +2 -2
  49. package/agents/reversa-inspector/SKILL.md +2 -2
  50. package/agents/reversa-migrate/SKILL.md +12 -10
  51. package/agents/reversa-migrate/references/templates/handoff.md +7 -0
  52. package/agents/reversa-migrate/references/templates/migration_brief.md +7 -0
  53. package/agents/reversa-modularize/SKILL.md +5 -4
  54. package/agents/reversa-n8n/SKILL.md +1 -1
  55. package/agents/reversa-new/SKILL.md +18 -10
  56. package/agents/reversa-optimize/SKILL.md +5 -4
  57. package/agents/reversa-paradigm-advisor/SKILL.md +2 -2
  58. package/agents/reversa-plan/SKILL.md +3 -2
  59. package/agents/reversa-pre-spec/SKILL.md +2 -2
  60. package/agents/reversa-pricing/SKILL.md +2 -2
  61. package/agents/reversa-pricing-advisor/SKILL.md +3 -3
  62. package/agents/reversa-pricing-estimate/SKILL.md +2 -2
  63. package/agents/reversa-pricing-product/SKILL.md +3 -3
  64. package/agents/reversa-pricing-profile/SKILL.md +3 -3
  65. package/agents/reversa-pricing-research/SKILL.md +4 -11
  66. package/agents/reversa-pricing-research/references/persistence.md +1 -1
  67. package/agents/reversa-pricing-research/references/research-policy.md +7 -10
  68. package/agents/reversa-pricing-size/SKILL.md +2 -2
  69. package/agents/reversa-principles/SKILL.md +4 -4
  70. package/agents/reversa-prune/SKILL.md +5 -4
  71. package/agents/reversa-quality/SKILL.md +4 -4
  72. package/agents/reversa-reconstructor/SKILL.md +19 -14
  73. package/agents/reversa-reconstructor/references/reconstruction-plan-migration-template.md +16 -8
  74. package/agents/reversa-reconstructor/references/reconstruction-plan-template.md +7 -0
  75. package/agents/reversa-refactor/SKILL.md +5 -5
  76. package/agents/reversa-refactor/references/opportunity-schema.md +1 -1
  77. package/agents/reversa-requirements/SKILL.md +3 -3
  78. package/agents/reversa-researcher/SKILL.md +2 -2
  79. package/agents/reversa-restructure/SKILL.md +5 -4
  80. package/agents/reversa-resume/SKILL.md +2 -2
  81. package/agents/reversa-reviewer/SKILL.md +12 -12
  82. package/agents/reversa-router/SKILL.md +5 -5
  83. package/agents/reversa-scout/SKILL.md +2 -2
  84. package/agents/reversa-screen-translator/SKILL.md +3 -3
  85. package/agents/reversa-simplify/SKILL.md +5 -4
  86. package/agents/reversa-spec-sdd/SKILL.md +3 -3
  87. package/agents/reversa-standardize/SKILL.md +5 -4
  88. package/agents/reversa-strategist/SKILL.md +4 -4
  89. package/agents/reversa-sync/SKILL.md +4 -3
  90. package/agents/reversa-to-do/SKILL.md +3 -2
  91. package/agents/reversa-visor/SKILL.md +1 -1
  92. package/agents/reversa-writer/SKILL.md +4 -4
  93. package/lib/commands/add-engine.js +2 -1
  94. package/lib/commands/install.js +41 -39
  95. package/lib/commands/uninstall.js +89 -9
  96. package/lib/commands/update.js +23 -4
  97. package/lib/installer/backup.js +64 -0
  98. package/lib/installer/impeccable-agents.js +9 -2
  99. package/lib/installer/policy.js +12 -8
  100. package/lib/installer/skill-layout.js +1 -1
  101. package/lib/installer/writer.js +38 -9
  102. package/lib/utils/archive.js +71 -0
  103. package/locales/README.md +8 -1
  104. package/locales/en/agents/reversa/SKILL.md +9 -9
  105. package/locales/en/agents/reversa/references/checkpoint-guide.md +1 -1
  106. package/locales/en/agents/reversa/references/step-01-first-run.md +1 -1
  107. package/locales/en/agents/reversa/references/step-02-resume.md +3 -3
  108. package/locales/en/agents/reversa/references/step-03-specs-organization.md +7 -7
  109. package/locales/en/agents/reversa/references/step-04-regression-check.md +3 -3
  110. package/locales/en/agents/reversa-add/SKILL.md +9 -9
  111. package/locales/en/agents/reversa-arbiter/SKILL.md +3 -3
  112. package/locales/en/agents/reversa-archaeologist/SKILL.md +3 -3
  113. package/locales/en/agents/reversa-architect/SKILL.md +2 -2
  114. package/locales/en/agents/reversa-audit/SKILL.md +4 -4
  115. package/locales/en/agents/reversa-autonomous/SKILL.md +4 -4
  116. package/locales/en/agents/reversa-brainstorm/SKILL.md +2 -2
  117. package/locales/en/agents/reversa-challenger/SKILL.md +2 -2
  118. package/locales/en/agents/reversa-clarify/SKILL.md +5 -5
  119. package/locales/en/agents/reversa-code-express/SKILL.md +18 -18
  120. package/locales/en/agents/reversa-coding/SKILL.md +13 -12
  121. package/locales/en/agents/reversa-curator/SKILL.md +1 -1
  122. package/locales/en/agents/reversa-data-master/SKILL.md +1 -1
  123. package/locales/en/agents/reversa-debugger/SKILL.md +6 -6
  124. package/locales/en/agents/reversa-debugger/references/bug-schema.md +1 -1
  125. package/locales/en/agents/reversa-debugger/references/bugs-readme-template.md +3 -2
  126. package/locales/en/agents/reversa-debugger-debate/SKILL.md +1 -1
  127. package/locales/en/agents/reversa-debugger-fix/SKILL.md +9 -7
  128. package/locales/en/agents/reversa-debugger-graph/SKILL.md +2 -2
  129. package/locales/en/agents/reversa-decouple/SKILL.md +5 -4
  130. package/locales/en/agents/reversa-depth-inspection/SKILL.md +1 -1
  131. package/locales/en/agents/reversa-design-system/SKILL.md +1 -1
  132. package/locales/en/agents/reversa-designer/SKILL.md +2 -2
  133. package/locales/en/agents/reversa-designer/references/templates/target_architecture.md +8 -0
  134. package/locales/en/agents/reversa-detective/SKILL.md +1 -1
  135. package/locales/en/agents/reversa-docs/SKILL.md +2 -2
  136. package/locales/en/agents/reversa-docs-analyst/SKILL.md +1 -1
  137. package/locales/en/agents/reversa-docs-mapper/SKILL.md +1 -1
  138. package/locales/en/agents/reversa-docs-publisher/SKILL.md +1 -1
  139. package/locales/en/agents/reversa-docs-storyteller/SKILL.md +1 -1
  140. package/locales/en/agents/reversa-drafter/SKILL.md +4 -3
  141. package/locales/en/agents/reversa-explorer/SKILL.md +2 -2
  142. package/locales/en/agents/reversa-extract-soul/SKILL.md +1 -1
  143. package/locales/en/agents/reversa-forward/SKILL.md +8 -8
  144. package/locales/en/agents/reversa-forward-autonomous/SKILL.md +23 -18
  145. package/locales/en/agents/reversa-framer/SKILL.md +2 -2
  146. package/locales/en/agents/reversa-ideator/SKILL.md +2 -2
  147. package/locales/en/agents/reversa-inspector/SKILL.md +2 -2
  148. package/locales/en/agents/reversa-migrate/SKILL.md +12 -10
  149. package/locales/en/agents/reversa-migrate/references/templates/handoff.md +7 -0
  150. package/locales/en/agents/reversa-migrate/references/templates/migration_brief.md +7 -0
  151. package/locales/en/agents/reversa-modularize/SKILL.md +5 -4
  152. package/locales/en/agents/reversa-n8n/SKILL.md +1 -1
  153. package/locales/en/agents/reversa-new/SKILL.md +18 -10
  154. package/locales/en/agents/reversa-optimize/SKILL.md +5 -4
  155. package/locales/en/agents/reversa-paradigm-advisor/SKILL.md +2 -2
  156. package/locales/en/agents/reversa-plan/SKILL.md +3 -2
  157. package/locales/en/agents/reversa-pre-spec/SKILL.md +2 -2
  158. package/locales/en/agents/reversa-pricing/SKILL.md +2 -2
  159. package/locales/en/agents/reversa-pricing-advisor/SKILL.md +3 -3
  160. package/locales/en/agents/reversa-pricing-estimate/SKILL.md +2 -2
  161. package/locales/en/agents/reversa-pricing-product/SKILL.md +3 -3
  162. package/locales/en/agents/reversa-pricing-profile/SKILL.md +3 -3
  163. package/locales/en/agents/reversa-pricing-research/SKILL.md +4 -11
  164. package/locales/en/agents/reversa-pricing-research/references/persistence.md +1 -1
  165. package/locales/en/agents/reversa-pricing-research/references/research-policy.md +7 -10
  166. package/locales/en/agents/reversa-pricing-size/SKILL.md +2 -2
  167. package/locales/en/agents/reversa-principles/SKILL.md +4 -4
  168. package/locales/en/agents/reversa-prune/SKILL.md +5 -4
  169. package/locales/en/agents/reversa-quality/SKILL.md +4 -4
  170. package/locales/en/agents/reversa-reconstructor/SKILL.md +19 -14
  171. package/locales/en/agents/reversa-reconstructor/references/reconstruction-plan-migration-template.md +16 -8
  172. package/locales/en/agents/reversa-reconstructor/references/reconstruction-plan-template.md +7 -0
  173. package/locales/en/agents/reversa-refactor/SKILL.md +5 -5
  174. package/locales/en/agents/reversa-refactor/references/opportunity-schema.md +1 -1
  175. package/locales/en/agents/reversa-requirements/SKILL.md +3 -3
  176. package/locales/en/agents/reversa-researcher/SKILL.md +2 -2
  177. package/locales/en/agents/reversa-restructure/SKILL.md +5 -4
  178. package/locales/en/agents/reversa-resume/SKILL.md +2 -2
  179. package/locales/en/agents/reversa-reviewer/SKILL.md +12 -12
  180. package/locales/en/agents/reversa-router/SKILL.md +5 -5
  181. package/locales/en/agents/reversa-scout/SKILL.md +2 -2
  182. package/locales/en/agents/reversa-screen-translator/SKILL.md +3 -3
  183. package/locales/en/agents/reversa-simplify/SKILL.md +5 -4
  184. package/locales/en/agents/reversa-spec-sdd/SKILL.md +3 -3
  185. package/locales/en/agents/reversa-standardize/SKILL.md +5 -4
  186. package/locales/en/agents/reversa-strategist/SKILL.md +4 -4
  187. package/locales/en/agents/reversa-sync/SKILL.md +4 -3
  188. package/locales/en/agents/reversa-to-do/SKILL.md +3 -2
  189. package/locales/en/agents/reversa-visor/SKILL.md +1 -1
  190. package/locales/en/agents/reversa-writer/SKILL.md +4 -4
  191. package/locales/en/templates/engines/card.md +3 -3
  192. package/locales/en/templates/forward/body/actions-template.md +1 -1
  193. package/locales/en/templates/forward/body/principles-template.md +2 -0
  194. package/locales/en/templates/forward/body/requirements-template.md +2 -2
  195. package/locales/en/templates/forward/body/roadmap-template.md +1 -0
  196. package/locales/en/templates/hooks/README.md +1 -1
  197. package/locales/en/templates/plan.md +1 -1
  198. package/package.json +1 -1
  199. package/templates/engines/card.md +3 -3
  200. package/templates/forward/body/actions-template.md +1 -1
  201. package/templates/forward/body/principles-template.md +2 -0
  202. package/templates/forward/body/requirements-template.md +2 -2
  203. package/templates/forward/body/roadmap-template.md +1 -0
  204. package/templates/hooks/README.md +1 -1
  205. package/templates/hooks/check-legacy-policy.mjs +13 -5
  206. package/templates/plan.md +1 -1
@@ -12,8 +12,8 @@ metadata:
12
12
 
13
13
  ## Modo de execução
14
14
 
15
- Use execução inline, uma etapa por vez, no fluxo `discovery`. Antes de agir ou retomar, leia [`reversa/references/modo-de-execucao.md`](references/modo-de-execucao.md) no mesmo diretório de skills e aplique o contrato de posse. Inspeção pura não adquire posse; antes de iniciar trabalho ativo ou gravar, confirme a posse pelo helper.
16
- Mostre a posição no início de cada resposta. Grave o progresso verificado e atualize a posição com `checkpoint` antes de aguardar. Libere a posse ao concluir ou mediante pausa com liberação explícita. A gravação de posse e checkpoint pelo helper é a única exceção adicional ao escopo de escrita abaixo. Delegue apenas com autorização explícita do usuário para aquele destino e escopo.
15
+ Use execução inline, uma etapa por vez, no fluxo `discovery`. Antes de agir ou retomar, leia [`reversa/references/modo-de-execucao.md`](references/modo-de-execucao.md) no mesmo diretório de skills e aplique o contrato de posse. Inspeção pura não adquire posse; antes de iniciar trabalho ativo ou gravar, confirme a posse pelo helper (operação `inspect` com a identidade desta sessão).
16
+ Mostre a posição ao iniciar uma fase, num gate do usuário e na retomada. Grave o progresso verificado e atualize a posição com `checkpoint` antes de aguardar. Libere a posse ao concluir ou mediante pausa com liberação explícita. A gravação de posse e checkpoint pelo helper é a única exceção adicional ao escopo de escrita abaixo. Delegue apenas com autorização explícita do usuário para aquele destino e escopo.
17
17
 
18
18
  Você é o Reversa, orquestrador central do framework Reversa.
19
19
 
@@ -41,7 +41,7 @@ Execute as tarefas do plano **sequencialmente, uma por vez**:
41
41
 
42
42
  1. Informe o usuário: "Iniciando o **[Nome do Agente]** — [o que ele fará]."
43
43
  2. Resolva o nome literal do agente pela tabela. Leia o `SKILL.md` inteiro da pasta irmã e execute as instruções no contexto atual. Se faltar, informe o caminho esperado e pare. Para nome desconhecido, pergunte antes de avançar.
44
- 3. Após conclusão, verifique os artefatos e salve o checkpoint com a linha exata da tarefa em `.reversa/state.json` pelo helper `write`. Depois marque a tarefa com ✅ em `.reversa/plan.md` pelo mesmo helper e atualize a posição com `checkpoint`.
44
+ 3. Quando o agente concluir, verifique os artefatos e faça uma só gravação de estado pelo helper `write` para essa execução do agente, com as linhas exatas do plano que ele concluiu no checkpoint dele. Depois marque essas linhas em `.reversa/plan.md`, por edição direta da sessão dona depois de reler o arquivo ou pelo mesmo helper. Uma linha concluída fica `- [x] ✅ <rótulo>` (por exemplo, `- [x] ✅ **Scout** — Mapeamento de estrutura de pastas e tecnologias`). Uma linha que o nível de documentação escolhido ou o projeto não exige fica `- [~] pulado: <motivo> — <rótulo>` e conta como fechada. Use `checkpoint` só na fronteira de agente e antes de esperar o usuário.
45
45
  4. Apresente resumo breve do que foi gerado.
46
46
 
47
47
  | Rótulo no plano | Pasta da skill |
@@ -97,9 +97,9 @@ Apresente ao usuário um resumo do que o Scout encontrou e as três opções de
97
97
  > ○ **3. Detalhado**
98
98
  > &nbsp;&nbsp;&nbsp;&nbsp;Máxima profundidade: flowcharts por função, ADRs expandidos, deployment, revisão cruzada obrigatória. Para sistemas enterprise.
99
99
  >
100
- > Digite 1, 2 ou 3 — ou pressione Enter para confirmar **Essencial**."
100
+ > Digite 1, 2 ou 3; uma resposta em branco, ou "ok", confirma **Essencial**."
101
101
 
102
- Aguarde a resposta do usuário. Se o usuário pressionar Enter sem digitar nada (resposta vazia ou apenas espaços), assuma `essencial` como valor. Aceite também o nome por extenso: `essencial`/`completo`/`detalhado`.
102
+ Aguarde a resposta do usuário. Se a resposta vier em branco (vazia ou apenas espaços) ou for "ok", assuma `essencial` como valor. Aceite também o nome por extenso: `essencial`/`completo`/`detalhado`.
103
103
 
104
104
  Após receber a resposta, grave `doc_level` e `doc_level_confirmed: true` em `.reversa/state.json` pelo helper `write`.
105
105
 
@@ -125,7 +125,7 @@ Não espere o contexto estourar. Em marcos discretos do plano, ofereça uma paus
125
125
  - Após cada agente concluído (Scout, Archaeologist, Detective, Architect, Writer, Reviewer e os agentes independentes) **nesta sessão**
126
126
  - Antes de iniciar um agente pesado quando o anterior já consumiu sessão longa (Archaeologist, Writer, Reviewer com revisão cruzada)
127
127
 
128
- **🚫 Nunca ofereça este prompt logo após uma retomada (`/reversa` em sessão nova).** A sessão de retomada já está limpa, sugerir `/clear` + `/reversa` ali é redundante e confunde. O prompt só vale depois que algum agente terminou trabalho real **dentro da sessão atual**.
128
+ **🚫 Nunca ofereça este prompt logo após uma retomada (`/reversa` em sessão nova).** A sessão de retomada já está limpa, sugerir limpar o contexto e voltar (por exemplo, `/clear` + `/reversa`) ali é redundante e confunde. O prompt só vale depois que algum agente terminou trabalho real **dentro da sessão atual**.
129
129
 
130
130
  O critério é heurístico, baseado nos sinais que você consegue observar: quantos arquivos foram lidos, quantos artefatos já estão em `<output_folder>/`, há quantas trocas de mensagem desde o início. Não tente estimar tokens, isso é impreciso entre engines.
131
131
 
@@ -134,11 +134,11 @@ Quando achar que vale uma pausa, pergunte assim:
134
134
  > "[Nome], o **[agente concluído]** terminou e o checkpoint está salvo. A próxima etapa é o **[próximo agente]**, que costuma ser longa. Você quer:
135
135
  >
136
136
  > 1. Continuar agora nesta sessão
137
- > 2. Pausar aqui, digitar `/clear` para limpar o contexto, e voltar com `/reversa` em sessão nova (recomendado se a sessão atual já está longa)
137
+ > 2. Pausar aqui, limpar o contexto (por exemplo, com `/clear`) e voltar com `/reversa` em sessão nova (recomendado se a sessão atual já está longa)
138
138
  >
139
139
  > Pressione 1, 2, ou apenas digite CONTINUAR para opção 1."
140
140
 
141
- Antes de oferecer a opção 2, **confirme que o checkpoint está salvo** em `.reversa/state.json` (campo `phase`, `completed`, `checkpoints` do agente que acabou de rodar). Sem checkpoint válido, oferecer pausa é arriscado.
141
+ Antes de oferecer a opção 2, **confirme que o checkpoint está salvo** em `.reversa/state.json` (campo `phase`, `completed`, `checkpoints` do agente que acabou de rodar). Sem checkpoint válido, oferecer pausa é arriscado. Antes de oferecer, libere a posse com `release`; se o usuário escolher 1, adquira-a de novo com `claim`.
142
142
 
143
143
  Não force a pausa. O usuário decide. Se ele não responder ou disser para continuar, prossiga normalmente.
144
144
 
@@ -152,7 +152,7 @@ Sempre usar nas specs geradas:
152
152
 
153
153
  ## Verificação de regressão semântica (re-extrações)
154
154
 
155
- Após o **último agente do plano** concluir e antes de declarar a extração finalizada, leia e siga `references/step-04-regression-check.md`. O gatilho é posição (último item do plan.md), não nome de agente, porque agentes como Reviewer são opcionais e podem não estar instalados. Esse passo só executa trabalho real quando o projeto já tem `_reversa_forward/` com pelo menos um `regression-watch.md`, ou seja, quando uma feature do ciclo forward já foi codada antes desta re-extração. Em projetos sem ciclo forward executado, o passo é silencioso e não atrapalha a primeira extração.
155
+ A extração está concluída quando `pending` de `.reversa/state.json` está vazio e toda linha das Fases 1 a 5 de `.reversa/plan.md` está marcada (✅ ou `- [~] pulado: <motivo>`). Depois da conclusão, `phase` mantém o último valor; o sinal de conclusão é `pending` vazio. Logo após a última linha da Fase 5 e antes de declarar a extração finalizada, leia e siga `references/step-04-regression-check.md`. O gatilho é posição (última linha da Fase 5), não nome de agente, porque agentes como Reviewer são opcionais e podem não estar instalados. Esse passo só executa trabalho real quando o projeto já tem `_reversa_forward/` com pelo menos um `regression-watch.md`, ou seja, quando uma feature do ciclo forward já foi codada antes desta re-extração. Em projetos sem ciclo forward executado, o passo é silencioso e não atrapalha a primeira extração.
156
156
 
157
157
  A verificação compara cada watch item declarado em `_reversa_forward/<feature>/regression-watch.md` contra os artefatos recém-gerados em `_reversa_sdd/`, atribui veredito 🟢 / 🟡 / 🔴 a cada um, e atualiza o histórico de re-extrações no próprio `regression-watch.md`. Se houver vermelho, apresente alerta destacado ao usuário no relatório final.
158
158
 
@@ -5,7 +5,7 @@ Somente a sessão dona persiste o estado pelo helper descrito em `modo-de-execuc
5
5
  ## Regras absolutas
6
6
 
7
7
  1. **Nunca remova campos existentes.** Apenas adicione ou atualize.
8
- 2. Use `inspect` mais `write` com o hash esperado e a geração do dono; não edite diretamente.
8
+ 2. Use `write` com a geração do dono e o `stateHash` devolvido pela chamada anterior do helper; só use `inspect` quando não tiver esse hash. Não edite diretamente.
9
9
  3. **Salve após cada fase concluída**, não apenas no final.
10
10
  4. Salve antes de cada pausa humana. Em retomada ou após resumo, releia do disco a etapa e seu gate.
11
11
 
@@ -1,55 +1,64 @@
1
1
  # Engineering defaults
2
2
 
3
3
  Apply these defaults when you plan or write code and nothing more specific decides the point.
4
- They exist so that a delivery does not become one giant file, hide configuration in code, or skip tests.
4
+ They exist so that a delivery does not become one giant file or hide configuration in code.
5
5
  Read [`stack-record.md`](stack-record.md) first: the project record and the existing code come before every default.
6
+ Then read [`owner-decisions.md`](owner-decisions.md): it says which skill asks the owner a decision that has no recorded answer, and what every other skill does instead.
6
7
 
7
8
  ## Precedence
8
9
 
9
10
  Apply the first source that decides the point:
10
11
 
11
- 1. The owner's explicit instruction for this delivery.
12
- 2. An `approved` or `delegated` row of the project stack record, or an active principle in `.reversa/principles.md`.
13
- 3. A `detected` row, and the nearest compatible code of the same module (legacy fidelity).
12
+ 1. The owner's explicit instruction for this delivery. When it overrides an `approved` row, record it as a `D-*` decision.
13
+ 2. A recorded decision for the selected target: an `approved` row, a `delegated` row that has a recorded value, an active principle in `.reversa/principles.md`, an answer in `.reversa/owner-decisions.md` or in the decision record of the flow, a `D-*` decision, the spec, an `IC-*` entry, or a migration paradigm or topology decision.
14
+ When an owner decision and an approved stack choice conflict, the approved stack choice wins.
15
+ The skill that interviews records the exception in its decision record and tells the owner at the confirmation step; `reversa-plan` repeats it as a `D-*` decision.
16
+ 3. In current-stack work only: a `detected` row, and the nearest compatible code of the same module (legacy fidelity).
17
+ If the row and the code conflict, mark `[DÚVIDA]` (`[NEEDS CLARIFICATION]` in English artifacts) and stop that action.
14
18
  4. These defaults.
15
19
 
16
- A default never authorizes a change to existing code that the action does not otherwise need to change.
17
- The legacy edit policy and its `allowedPaths` still bound every write.
20
+ A default never authorizes a change to code that the action does not otherwise need to change.
21
+ The legacy edit policy and its `allowedPaths` still bound every change to a file that existed before the flow started.
22
+ The secrets rule below is not a default: no source above overrides it.
23
+ The test-first rule below yields only to a recorded decision of the owner, never to the pattern of the existing code.
18
24
 
19
25
  ## Code structure
20
26
 
21
- These rules apply to new files and to greenfield work.
27
+ These rules apply to code the action adds, never to code it leaves unchanged.
22
28
 
23
- - Give each file or module one responsibility, and name it after what it does.
24
- - Keep domain logic apart from input and output: HTTP, database, file system, user interface.
29
+ - Give each new file or module one responsibility, and name it after what it does.
30
+ - Keep new domain logic apart from input and output: HTTP, database, file system, user interface.
25
31
  Dependencies point from the edges to the domain, never the reverse.
26
- - Do not add an unrelated responsibility to an existing file. Create a module beside it, in the layout the project already uses.
27
- - Treat these sizes as review triggers, not hard limits: a source file longer than about 400 lines, a function longer than about 60 lines, a file with more than one reason to change.
28
- At a trigger, split along a domain seam, or record why the unit is cohesive in a `D-*` decision of the roadmap.
32
+ - Do not add an unrelated responsibility to an existing file. Create a file beside it, in the layout the project already uses.
33
+ - A file this delivery creates that passes 400 lines, or a function it creates that passes 60 lines, is a review trigger, not a limit.
34
+ Tests, generated files, migrations, and data files are exempt. An existing file never triggers it.
35
+ - Evaluate the triggers when you plan: split along a domain seam, or record why the unit is cohesive.
36
+ When you code, do not split beyond the target files of the action; name the trigger in the final report.
29
37
  - Do not split a file only to satisfy a number. Follow the domain, not the size.
30
- - Extract shared logic when a third use appears; do not copy it.
31
- - Fail visibly: validate input at the boundary and do not swallow errors.
32
- - Give every call to an external system a timeout.
33
- - Keep each text file that agents read under 2,000 characters per line and at most 25,000 bytes.
38
+ - When new code would repeat the same logic a third time, extract it into new code.
39
+ Leave existing copies alone and name them in the final report as candidates for `/reversa-refactor`.
40
+ - In code you add, validate input at the boundary and do not swallow errors.
41
+ - Give every new call to an external system a timeout.
34
42
 
35
43
  ## Twelve-factor defaults
36
44
 
37
- Apply these to services and web applications.
38
- For a command-line tool, a library, or a batch program, record `not applicable` for the factors that do not fit.
45
+ Apply these to deployable server processes.
46
+ For a command-line tool, a library, a batch job, or front-end-only code, skip the factors that do not fit and add no code for them.
47
+ Mark a layer of the stack record `not applicable` only when the whole layer does not apply.
39
48
 
40
49
  | Factor | Default | Stack layer |
41
50
  |---|---|---|
42
- | I. Codebase | One repository per deployable application; many deploys from it. | Build/deploy |
51
+ | I. Codebase | Keep one codebase in version control per application; share code as libraries. | Build/deploy |
43
52
  | II. Dependencies | Declare every dependency in the manifest and commit the lockfile. Do not rely on globally installed tools. | Language/runtime |
44
- | III. Config | Read what changes between environments from the environment or a config store. Never keep it as a constant in code. | Configuration/secrets |
53
+ | III. Config | Read what changes between environments from environment variables. Never keep it as a constant in code. | Configuration/secrets |
45
54
  | IV. Backing services | Reach databases, queues, caches, and external APIs through a location and credentials held in config. | Database, Backend |
46
55
  | V. Build, release, run | Keep the three stages separate. Never edit code or config inside a running release. | Build/deploy |
47
56
  | VI. Processes | Keep processes stateless. Store shared state in a backing service, not in memory or on local disk. | Backend |
48
57
  | VII. Port binding | Export the service by binding to a port taken from config. | Backend |
49
58
  | VIII. Concurrency | Scale by adding processes. Do not assume a single instance. | Backend |
50
59
  | IX. Disposability | Start fast, stop cleanly on a termination signal, and make jobs safe to repeat. | Backend |
51
- | X. Dev/prod parity | Use the same kinds of backing services in development and in production. | Build/deploy |
52
- | XI. Logs | Write structured events to standard output. The application does not manage log files. | Logging/observability |
60
+ | X. Dev/prod parity | Use the same type and version of each backing service in development and in production. | Build/deploy |
61
+ | XI. Logs | Write logs as an unbuffered event stream to standard output. Add no logging library for this. | Logging/observability |
53
62
  | XII. Admin processes | Ship one-off tasks, such as migrations, as scripts in the same codebase and release. | Build/deploy |
54
63
 
55
64
  Factor II does not replace the dependency rule of the stack record: a new dependency still needs its recorded alternatives and approval.
@@ -57,14 +66,34 @@ Factor II does not replace the dependency rule of the stack record: a new depend
57
66
  ## Secrets and tests
58
67
 
59
68
  - Never write a credential, token, or key in code, tests, logs, examples, or committed files.
60
- - Give new or changed behavior a test at the level the `Testing` row of the stack record uses.
61
- - If the `Testing` row is `unknown`, mark `[DÚVIDA]` (`[NEEDS CLARIFICATION]` in English artifacts) and ask. Do not invent a test framework.
69
+ If existing code holds a secret, do not copy the pattern; name it in the final report.
70
+ - New code is test-first: write the failing test for the new or changed behavior, then the code that makes it pass.
71
+ This holds for a forward feature, a new project, a migration, and a reconstruction.
72
+ - Do not retrofit tests onto legacy code that the action leaves unchanged.
73
+ - When you plan, give each new or changed behavior a test item that comes before its implementation item.
74
+ When you code, write tests only through the actions of the plan.
75
+ Run each test case of new or changed behavior before its implementation: it must fail for the expected reason, and a missing module counts as that reason.
76
+ A test case that protects preserved behavior may pass before the implementation.
77
+ A test case of new or changed behavior that passes before the implementation does not stop the phase: record it as `status: unexpected-green`, continue, and name it in the final report.
78
+ Run every test again after the implementation: it must pass.
79
+ - Never restructure legacy code or add a seam to it to make it testable.
80
+ Test at a boundary that already exists, or mark `[DÚVIDA]` on that test and name the code as a candidate for `/reversa-refactor`.
81
+ - A plan written before this rule, such as an older `actions.md`, runs as written; name each behavior it leaves untested in the final report.
82
+ - If the project has no test setup, do not invent one: it is decision `OD-2` of [`owner-decisions.md`](owner-decisions.md), and the record owner named there records the answer in the `Testing` row.
83
+ - Only a recorded decision of the owner turns test-first off: a principle, or the decision record of the current flow (a roadmap `D-*` decision, the amendment entry, or the reconstruction plan).
84
+ With that decision recorded, name the untested behavior in the final report.
62
85
 
63
86
  ## Legacy code and exceptions
64
87
 
65
88
  - Never split, move, or restructure a legacy file because of a default.
66
- Name it in the delivery summary as a candidate for `/reversa-refactor`.
67
- - The express gate counts modules, not files: a split that follows these defaults does not add modules.
68
- - Record a deliberate deviation in new code as a `D-*` decision in the roadmap, with the reason and the owner's approval.
69
- - Record a project-wide pattern in the stack record rows `Code structure`, `Configuration/secrets`, and `Logging/observability`.
70
- A `detected` row there describes the legacy as it is; it is not a defect to fix.
89
+ Name it in the final report as a candidate for `/reversa-refactor`.
90
+ - A skill that names a `/reversa-refactor` candidate lists it under a `Refactor candidates` heading of its final report.
91
+ - For the express gate, a new file inside a module or top-level folder that the delta already touches is not another module. A new top-level folder is.
92
+ - Record an exception in the decision record of the current flow: a roadmap `D-*` decision, the amendment entry, or the reconstruction plan.
93
+ A deviation from a code structure default, a size trigger, or a twelve-factor default needs a recorded reason only.
94
+ Only turning test-first off and adding a dependency need the owner's approval; without it, mark `[DÚVIDA]` and block only that action.
95
+ The secrets rule has no exception.
96
+ - In a roadmap, write the header line `Engineering defaults: follows`, or list the `D-*` decisions that record each exception.
97
+ - Record a project-wide pattern in the stack record rows `Code structure`, `Configuration/secrets`, and `Logging/observability` as `detected`, with its source.
98
+ A `detected` row describes the code as it is; it is not a defect to fix.
99
+ Only the record owner writes an `approved` row, after the owner approves.
@@ -2,12 +2,12 @@
2
2
 
3
3
  ## Enter or resume a phase
4
4
 
5
- 1. Resolve `reversa/` from the parent directory of the current installed skill. Read this reference and locate its `scripts/session-state.mjs` there. If the artifact or Node.js 18.20.2+ is missing, report the expected path and stop before writing. Do not fall back to a different skill tree.
5
+ 1. Resolve `reversa/` from the parent directory of the current installed skill. Read this reference and locate its `scripts/session-state.mjs` there. If the helper script or Node.js 18.20.2+ is missing, tell the user the expected path and continue as a single session: skip the helper operations, write files directly, and reread each file right before you write it. Do not fall back to a different skill tree.
6
6
  Read sibling skills from the discovered root, whether it contains copies or directory links. Use the physical `realpath` of the selected `SKILL.md` for `position.skill_path`.
7
- 2. Identify this session independently. Use a verified native session ID with its harness (`claude-code`, `codex`, or `omp`). In OMP with the optional recovery extension, use the `reversa_session_identity` tool. In a launch that supplies `REVERSA_SESSION_ID`, use it only when the operator set it to the verified native ID. Without native identity, generate a UUID once and keep it in this session's resume context. Never copy `active.owner` from disk as proof of identity. If the identity was lost, use the transfer procedure.
8
- 3. Inspect the checkout before starting or resuming. If there is another owner, show its position and wait. Never claim or write when only previewing a route. At the start of authorized work, use `claim` with the resolved flow and position. A standalone phase uses its current session as orchestrator; a phase read by an orchestrator keeps that same owner. A delegated phase has no owner authority.
7
+ 2. Identify this session independently. When the harness exposes a native session ID, use it: the optional recovery hook matches on it. A child or subagent session generates its own UUID, never the parent's ID. Otherwise generate a UUID once and keep it in this session's resume context. Use any harness name, for example `claude-code`, `codex`, or `omp`. In a launch that supplies `REVERSA_SESSION_ID`, use it only when the operator set it to the verified native ID. Never copy `active.owner` from disk as proof of identity. If the identity was lost, use the transfer procedure.
8
+ 3. Inspect the checkout before starting or resuming. If there is another owner, show its position and apply the transfer rules below. Never claim or write when only previewing a route. At the start of authorized work, use `claim` with the resolved flow and position. A standalone phase uses its current session as orchestrator; a phase read by an orchestrator keeps that same owner. A delegated phase has no owner authority.
9
9
  4. After compaction, a summary, a resume, or uncertain position, reread the position, workflow evidence, and full installed phase instructions. If the skill moved, resolve the same literal phase ID in the current installation. Stop if it is missing or the evidence disagrees about progress or approval. Do not rely on a past `CONTINUAR` as authorization.
10
- 5. Run phases inline, one at a time, unless the user explicitly authorized the exact delegation. Treat autonomous mode as inline with its existing gate rules, not as permission to delegate. Before continuing after a tool batch or a return, confirm this session still owns the same generation. Stop on conflict.
10
+ 5. Run phases inline, one at a time, unless the user explicitly authorized the exact delegation. Treat autonomous mode as inline with its existing gate rules, not as permission to delegate. Confirm that this session still owns the same generation once when you enter or resume a phase, after a delegate returns, and before `release`; the helper also refuses a stale generation on every write. Stop on conflict.
11
11
 
12
12
  | Flow ID | Evidence to reread before work |
13
13
  |---|---|
@@ -24,7 +24,15 @@
24
24
 
25
25
  When `active` is absent or null, use the evidence above without resetting it. If more than one flow can resume, ask which one. If an output exists without its checkpoint, apply the workflow's existing preserve/reuse rules; do not regenerate it by default.
26
26
 
27
- Start each active response with `🧭 Reversa › <flow> › <agent> › <step> (i/n)`. Omit the count when unavailable. Append ` · aguardando sua resposta` at a user gate, or ` · delegado <id> → <target>` while delegated. A foreign session says `🧭 Reversa › fluxo ativo em outra sessão (<session>)`. A delegate says `🧭 Reversa › delegação <id> › <agent> › <step>`, not the owner's header. Do not include approval text, input details, or tokens in the header.
27
+ Show `🧭 Reversa › <flow> › <agent> › <step> (i/n)` when a phase starts, at a user gate, and on resume, not on every response. Omit the count when unavailable. Append ` · waiting for your reply` at a user gate, or ` · delegated <id> → <target>` while delegated. A foreign session says `🧭 Reversa › flow active in another session (<session>)`. A Portuguese installation shows the Portuguese forms ` · aguardando sua resposta`, ` · delegado <id> → <target>`, and `fluxo ativo em outra sessão`; the optional recovery hook always prints ` · aguardando sua resposta`. A delegate says `🧭 Reversa › delegação <id> › <agent> › <step>`, not the owner's header. Do not include approval text, input details, or tokens in the header.
28
+
29
+ ## Ask the owner
30
+
31
+ Every menu marks the option you recommend and gives the reason in one line.
32
+ A blank reply or `ok` accepts the recommended option, and you record it as the owner's answer.
33
+ A question with a free answer comes with a proposed answer that the owner confirms the same way.
34
+ An approval gate (a plan, a diff, a deletion, a change that needs the legacy edit policy, a migration gate) needs an explicit yes: `ok` counts, a blank reply does not.
35
+ This rule applies to every Reversa skill, including a menu whose text shows no recommended option.
28
36
 
29
37
  ## Run the control-state helper
30
38
 
@@ -36,16 +44,16 @@ Send one JSON request on standard input to `node "<installed-reversa>/scripts/se
36
44
 
37
45
  | Operation | Additional fields |
38
46
  |---|---|
39
- | `inspect` | Optional `identity`, `paths`; returns current `active` and the SHA-256 of each requested file's exact bytes (`null` if absent) |
40
- | `claim` | `identity`, `position`; returns `generation` for this owner, or refuses a foreign owner or different flow |
41
- | `checkpoint` | `identity`, `generation`, `position`; update the step and refresh the heartbeat |
42
- | `write` | `identity`, `generation`, `path`, `expectedHash`, `content`; compare against the inspected bytes under the lock |
43
- | `release` | `identity`, `generation`; clears `active` only, without clearing work or approvals |
44
- | `transfer` | `identity`, `expectedOwnerRevision`, `confirmed:true`, `priorSessionQuiescent:true`; see transfer rules below |
47
+ | `inspect` | Optional `identity`, `paths`; returns current `active` and the SHA-256 of each requested file's exact bytes (`null` if absent); works on managed paths only and refuses other paths |
48
+ | `claim` | `identity`, `position`; returns `generation` for this owner and `stateHash`, or refuses a foreign owner or different flow |
49
+ | `checkpoint` | `identity`, `generation`, `position`; update the step and refresh the heartbeat; returns `stateHash` |
50
+ | `write` | `identity`, `generation`, `path`, `expectedHash`, `content`; compare against the inspected bytes under the lock; returns the new `sha256` of the path and `stateHash` |
51
+ | `release` | `identity`, `generation`; clears `active` only, without clearing work or approvals; returns `stateHash` |
52
+ | `transfer` | `identity`, `expectedOwnerRevision`, `confirmed:true`, `priorSessionQuiescent:true`; see transfer rules below; returns `stateHash` |
45
53
 
46
54
  `position` is `{flow,orchestrator,agent,skill_path,step,step_index,step_total,status}`. The IDs are literal skill directory names. The path is the real installed absolute path of the phase `SKILL.md`. Use `null` for both counts if there is no fixed count. Use `ready`, `working`, or `waiting_user`; only the helper sets `waiting_delegate`. Take `generation` from a successful claim/transfer, or from an inspect that matches the separately authenticated session identity. Do not share the generation with delegates.
47
55
 
48
- For managed JSON paths, pass an object as `content`. For `state.json`, send the changed top-level keys only (do not include `active`); preserve other subfields when updating a nested object. Other JSON control files take a complete object. Managed Markdown and TOML take a literal string. Use the inspected hash as `expectedHash`, or `null` when creating. Use `write` instead of direct `Write`/`Edit`, shell redirects, and tempfile renames for all managed paths:
56
+ For managed JSON paths, pass an object as `content`. For `state.json`, send the changed top-level keys only (do not include `active`); preserve other subfields when updating a nested object. The helper merges `checkpoints` key by key, so send only the changed checkpoint key. Other JSON control files take a complete object. Managed Markdown and TOML take a literal string. Use the inspected hash as `expectedHash`, or `null` when creating. Every mutating call (`claim`, `transfer`, `checkpoint`, `write`, `release`, `delegate-start`, `delegate-finish`) returns `stateHash`: a state write uses the `stateHash` of the previous call as its `expectedHash` and needs no `inspect`. The owner session may flip a checkbox or a status value in `actions.md`, `plan.md`, `bug.md`, and `reconstruction-plan.md` with a direct edit, after it rereads the file. Use `write` to create each of these managed paths and for every other change to it: The `sha256` that `write` returns for a path is the next `expectedHash` for that same path.
49
57
 
50
58
  - `.reversa/state.json`, `plan.md`, `config.toml`, `active-requirements.json`, `forward-autonomous.json`, and `active-ideation.json`.
51
59
  - `_reversa_docs/.state.json` and `_reversa_docs/.config.json`.
@@ -53,24 +61,24 @@ For managed JSON paths, pass an object as `content`. For `state.json`, send the
53
61
  - Feature `actions.md` under the configured Forward root or the active feature.
54
62
  - Bug `bug.md` and refactor opportunity and transformation status records.
55
63
 
56
- Commit validated flow progress first. Then checkpoint the next position. For Discovery, record the exact completed plan line and evidence paths in the item checkpoint before marking the plan. If an interruption leaves an unchecked line, repair that mark only when the saved checkpoint identifies it and its files still support completion. Preserve gates and decisions in their existing files. Never write `.reversa/reversa-config.json` through this helper.
64
+ Commit validated flow progress first. Checkpoint the next position at a phase boundary and before you wait for the user, not after each action. One checkpoint covers consecutive gates of the same step, and no checkpoint is needed only to return to `working`. For Discovery, record the exact completed plan line and evidence paths in the item checkpoint before marking the plan. If an interruption leaves an unchecked line, repair that mark only when the saved checkpoint identifies it and its files still support completion. Preserve gates and decisions in their existing files. Never write `.reversa/reversa-config.json` through this helper.
57
65
 
58
- If the helper returns `busy`, stop mutation; it will not steal the lock. If it returns `stale_content`, reread the evidence and reconsider the planned update. If ownership or generation changed, report that conflict and stop. If the lock remains after a crash, the operator must first stop every Reversa writer and installer command for this checkout, verify the last saved checkpoint, and remove only `.reversa/session.lock` before retrying. Do not delete state or bypass the lock. This is a coordination protocol for P5 writers, not a sandbox for unrelated tools or older clients.
66
+ If the helper returns `busy`, stop mutation; it will not steal the lock. If it returns `stale_content`, reread the evidence and reconsider the planned update. If ownership or generation changed, report that conflict and stop. If the lock remains after a crash, the operator must first stop every Reversa writer and installer command for this checkout, verify the last saved checkpoint, and remove only `.reversa/session.lock` before retrying. Do not delete state or bypass the lock. This is a coordination protocol for Reversa owner sessions, not a sandbox for unrelated tools or older clients.
59
67
 
60
68
  ## Transfer or end ownership
61
69
 
62
- An ordinary pause at `CONTINUAR` retains ownership. On normal completion or an explicit pause-and-release, save progress and use `release`. For a P4 handoff to a different flow, verify the old checkpoint and delegate status, release it, then claim the authorized destination. Stop if another session claims between those operations. A route preview never transfers ownership.
70
+ An ordinary pause at `CONTINUAR` retains ownership. On normal completion or an explicit pause-and-release, save progress and use `release`. Before you suggest a new session or a context reset (for example `/clear`), save progress and use `release`; claim again if the user continues in this session. For a handoff to a different flow, verify the old checkpoint and delegate status, release it, then claim the authorized destination. Stop if another session claims between those operations. A route preview never transfers ownership.
63
71
 
64
- For a foreign owner, display its identity, current step, and last heartbeat. Treat activity within 30 minutes as recent. A stale or missing heartbeat is not consent. Ask the user to confirm both the transfer and that the prior writer is stopped or at a safe boundary. Send `transfer` with the `ownerRevision` from inspect as `expectedOwnerRevision`; a new revision requires a new decision. Never interpret `CONTINUAR` as transfer approval.
72
+ For a foreign owner, display its identity, current step, and last heartbeat. Treat activity within 30 minutes as recent. If the heartbeat is older than 30 minutes or missing, or the user has already said that the earlier session is closed, transfer and tell the user in one line; do not ask again. Only when the heartbeat is recent and the user has not said so, ask the user to confirm the transfer and that the prior writer is stopped or at a safe boundary. Send `transfer` with the `ownerRevision` from inspect as `expectedOwnerRevision`; a new revision requires a new decision. Never interpret `CONTINUAR` as transfer approval.
65
73
 
66
74
  An in-flight delegate blocks release and transfer. If dispatch ended without a valid return, verify cancellation or termination. The current owner can use `delegate-finish` with `stopped:true,result:null`. For an authorized transfer after confirmed termination, include `stoppedDelegationId` for the exact in-flight attempt. Do not retry an uncertain dispatch before reconciling it.
67
75
 
68
76
  ## Delegate a phase only on request
69
77
 
70
- 1. Confirm the exact target, requested capability, phase, authorized inputs, and write scope. Do not dispatch to a different harness by default. For read-only work use an enforceable read-only route. For write work require a sandbox that enforces the allowed paths, or an isolated checkout with disposable outputs and an enforced sandbox. If unavailable, report it and offer inline execution.
71
- 2. Resolve known human decisions before dispatch. Keep new questions, destructive action, legacy edits, `[DÚVIDA]`, and P3 approvals with the owner. Permit only the input paths authorized for that delegate. The helper does not copy or share data.
72
- 3. Use `delegate-start` with `identity`, `generation`, `target`, the target's absolute `checkout`, and `inputs`/`outputs` arrays of `{path,required}`. List files, not globs. Do not list the same path as input and output. For an edit, list the file as an output; the helper records its prior hash. The helper verifies required files in both checkouts before returning the dispatch ID. In a separate worktree, Git does not carry ignored specs; stop on missing paths. No implicit copy, merge, or import.
73
- 4. Dispatch once with the complete brief. Use the returned phase and file lists; include only already authorized decisions. Native subagents get the full brief even if they inherit context. A named Codex review must use an authorized read-only route and return findings, not modify specs. For Orca use the installed guide for its version: load `orca skills get orchestration`, send the brief using its `--spec-file` route, and receive questions and `worker_done` through that protocol. Do not identify a pane by its title or silently replace it with a local subagent.
78
+ 1. Confirm the exact target, requested capability, phase, authorized inputs, and write scope. Do not dispatch to a different harness by default. Use the strongest isolation the harness offers (read-only mode, sandbox, or separate checkout) and tell the user which one applies. When none exists, delegation is still allowed: the brief limits the write scope, and `delegate-finish` verifies it afterward. Never delegate a destructive action or a change to a pre-existing file without the owner's approval.
79
+ 2. Resolve known human decisions before dispatch. Keep new questions, destructive action, legacy edits, `[DÚVIDA]`, and interaction-convention (`IC-*`) approvals with the owner. Permit only the input paths authorized for that delegate. The helper does not copy or share data.
80
+ 3. Right after `delegate-start`, save a listing with the SHA-256 of each file of the checkout, or of the folders the delegate can reach, in `.reversa/context/` or outside the checkout. Ignore `.reversa/state.json` and the listing itself in the comparison: the helper rewrites the state. `delegate-start` is refused at a user gate: first `checkpoint` the position with status `working`. Use `delegate-start` with `identity`, `generation`, `target`, the target's absolute `checkout`, and `inputs`/`outputs` arrays of `{path,required}`. List files, not globs. Do not list the same path as input and output. For an edit, list the file as an output; the helper records its prior hash. The helper verifies required files in both checkouts before returning the dispatch ID. A separate checkout (clone, copy, or worktree) may lack specs that Git ignores; stop on missing paths. No implicit copy, merge, or import.
81
+ 4. If no second agent is available, say so and continue inline. Otherwise dispatch once with the complete brief. Use the returned phase and file lists; include only already authorized decisions. Native subagents get the full brief even if they inherit context. A review delegate returns findings and does not modify specs. When a multi-agent manager is present, follow its own dispatch guide and send the same brief. Never replace the requested target silently.
74
82
 
75
83
  A dispatch brief is the header `REVERSA-DELEGAÇÃO v1` followed by one JSON object:
76
84
 
@@ -86,4 +94,4 @@ Delegate: read that skill in full; only write the allowed outputs. Never edit co
86
94
 
87
95
  Allowed result statuses: `concluido`, `parcial`, `bloqueado`. List actual writes as `{path,sha256}`. Do not mark a result complete with unanswered questions or missing required outputs.
88
96
 
89
- Owner: call `delegate-finish` with `identity`, `generation`, `id`, `stopped:true` from the transport's terminal outcome, and the parsed JSON `result`. The helper checks inputs, hashes, write scope and the current attempt; it does not apply the proposed checkpoint. For a separate checkout, review each accepted artifact. Confirm the current project policy and approvals before `delegate-import` with `identity`, `generation`, `id` and `path`; it refuses a changed source or destination. Import before advancing. Ask the user any returned questions; `CONTINUAR` cannot answer them. Apply only verified partial progress or verified completion. Report a missing, stale, invalid, failed, or blocked result rather than repeating or marking the phase complete.
97
+ Owner: call `delegate-finish` with `identity`, `generation`, `id`, `stopped:true` when the delegate returned or the user confirms it is no longer running, and the parsed JSON `result`. The helper checks inputs, hashes, the reported outputs and the current attempt; it does not apply the proposed checkpoint and does not detect a new file outside `outputs`, so the listing comparison is mandatory before you accept the result. After `delegate-finish`, compare the checkout with the listing saved before `delegate-start`, and reject or revert any changed or new path outside `outputs`. `git status --porcelain` shows such a path only when the output folders are already committed; an untracked folder hides the files inside it. For a separate checkout, review each accepted artifact. Confirm the current project policy and approvals before `delegate-import` with `identity`, `generation`, `id` and `path`; it refuses a changed source or destination. Import before advancing. Ask the user any returned questions; `CONTINUAR` cannot answer them. Apply only verified partial progress or verified completion. Report a missing, stale, invalid, failed, or blocked result rather than repeating or marking the phase complete.
@@ -0,0 +1,104 @@
1
+ # Owner decisions
2
+
3
+ Some choices shape the whole project, and the owner often expects a behavior that the skills do not apply on their own.
4
+ Ask about them, or apply a default as the rules below say. Never infer an answer from an example.
5
+
6
+ ## Who asks and who records
7
+
8
+ Only a skill that already talks to the owner before its work starts asks.
9
+ It records each answer only where it may write.
10
+
11
+ | Skill | When it asks | Where it records the answer |
12
+ |---|---|---|
13
+ | `/reversa-principles` | The full interview: the single block first, then one decision at a time only when the owner prefers it | `.reversa/principles.md`, one principle per answer with the field `**Decisão do dono.** OD-<n>` (`**Owner decision.** OD-<n>` in English files). For `OD-2` and `OD-5`, the principle and the line below; the record owner writes the stack row |
14
+ | `reversa-plan` | Before it writes the roadmap | The roadmap, as a `D-*` decision that cites `OD-<n>` |
15
+ | `reversa-code-express` | In its single interview | Its roadmap, as a `D-*` decision that cites `OD-<n>` |
16
+ | `reversa-forward-autonomous` | In its opening interview | `answers.owner-decisions` in `.reversa/forward-autonomous.json` |
17
+ | `reversa-migrate` | In the brief interview | The section `## Decisões do dono` (`## Owner decisions` in English files) of `migration_brief.md` |
18
+ | `reversa-new` | With the guided brief, or in the express interview | The section `## Decisões do dono` (`## Owner decisions` in English files) of `newproject-brief.md` |
19
+ | `reversa-reconstructor` | `OD-1` and `OD-2`, before it writes the plan | The plan header |
20
+ | `reversa-debugger-fix` | `OD-2`, before `fix/plan.html`, when the `Testing` row is `unknown` or absent | `bug.md` |
21
+ | Each refactor specialist (`/reversa-restructure`, `/reversa-modularize`, `/reversa-decouple`, `/reversa-optimize`, `/reversa-simplify`, `/reversa-standardize`, `/reversa-prune`) | `OD-2`, before the safety net, when the transformation writes tests and the `Testing` row is `unknown` or absent | `transformation.md` |
22
+
23
+ - Every skill of the table also appends each answer to `.reversa/owner-decisions.md`, the project-wide record, as one line: `OD-<n> | answer | YYYY-MM-DD | skill`.
24
+ That file is inside the Reversa folders, so every flow may write it. It is append-only: a new line for the same `OD-<n>` replaces the older answer.
25
+ A skill that creates the file first writes one header line: `# Owner decisions (OD-<n> | answer | YYYY-MM-DD | skill)`.
26
+ Write the `answer` text in the chat language of the project.
27
+ - An answer in the project-wide record stands for every later feature and flow, so the owner is not asked again.
28
+ `/reversa-principles` turns it into a principle when the owner wants it in `.reversa/principles.md`.
29
+ - The record owner is the skill that owns the decision record of the current flow: `reversa-plan` (forward roadmap), `reversa-code-express` (its roadmap), `reversa-new` with the Drafter (new-project brief and stack record), `reversa-migrate` (migration brief and migration-target rows), and `reversa-reconstructor` (plan header).
30
+ - A technology answer follows [`stack-record.md`](stack-record.md).
31
+ A record owner writes the stack row when its flow may write `<output_folder>/stack.md`.
32
+ Otherwise the answer stays in `.reversa/owner-decisions.md`, and the next `reversa-plan` writes a named `OD-2` or `OD-5` answer, or an `OD-2` defaulted to the built-in runner, to its stack row as `approved`.
33
+ - Every other skill never asks and never writes a record outside its own write scope.
34
+ This includes `reversa-coding`, `reversa-add`, `reversa-clarify`, `reversa-designer`, and `reversa-to-do`.
35
+ It marks `[DÚVIDA]` (`[NEEDS CLARIFICATION]` in English artifacts) on the dependent work and blocks only that work.
36
+ Its final report names the open decision and `/reversa-principles` or the record owner.
37
+ `reversa-clarify` leaves `OD-2` and `OD-5` to the record owner.
38
+ - A delegate never asks and never records: it returns each open decision in `perguntas_pendentes`, as [`modo-de-execucao.md`](modo-de-execucao.md) says.
39
+ - Never run `/reversa-principles` from inside another skill: it runs hooks, writes an impact report, and ends the task at its `CONTINUAR` step.
40
+
41
+ ## When to ask
42
+
43
+ - Ask before the first plan or the first code of a project: a forward feature, a new project, a migration design, a reconstruction, an express delta.
44
+ - Ask only the open decisions.
45
+ A decision is open only when its condition in "The decisions" holds and no record answers it.
46
+ First read `.reversa/owner-decisions.md`, `.reversa/principles.md`, the project stack record, the feature roadmap, and each other record of the table above that exists.
47
+ In a migration, the record is the migration brief; in a reconstruction, the migration brief and the plan header.
48
+ - A recorded answer stands until the owner changes it. Do not ask it again.
49
+ - An answer recorded before the `roadmap.md` of a feature exists applies to that feature.
50
+ - A flow that asks lists all its open decisions in one block of a single message, each with its default.
51
+ - A decision that is still open after the interview blocks only the actions that depend on it.
52
+ - If a decision is still open when an action depends on it, mark `[DÚVIDA]` and block only that action.
53
+ - Express flows (`reversa-code-express`, `reversa-new` express, `reversa-forward-autonomous`) never ask `OD-9`: their own stop rules define the stops.
54
+ - `reversa-code-express` asks only `OD-1`, `OD-2`, and the decisions that the code of the delta touches.
55
+ - In a migration, `OD-2` and `OD-5` are answered inside the target-stack question; skip `OD-7` in a migration.
56
+
57
+ ## How to ask
58
+
59
+ - In a flow that talks to the owner, list all the open decisions in a single message, in the chat language of the project.
60
+ - For each decision, state the Reversa default and its effect on the project, then each other answer and its effect. End the block with an option for another answer.
61
+ - A blank answer or "use the defaults" accepts the default of each decision in the block.
62
+ Record each default as chosen by the owner.
63
+ - In an unattended run (for example autonomous mode, a no-interview argument, or a goal-style loop), do not stop for an open decision.
64
+ Apply the Reversa default, append `OD-<n> | default (not confirmed): <default> | YYYY-MM-DD | skill` to `.reversa/owner-decisions.md`, and list it in the final report.
65
+ A `default (not confirmed)` answer never creates an `approved` row of the stack record.
66
+ It counts as a recorded answer, so no flow stops for it; the next flow that talks to the owner shows the unconfirmed defaults once, in its block, so the owner can confirm or change them.
67
+ - Two choices still need the owner in every mode: a new dependency (`OD-6` and the dependency rule of [`stack-record.md`](stack-record.md)) and a test tool that adds a dependency.
68
+ Without that approval, mark `[DÚVIDA]` and block only the actions that depend on it.
69
+ - An example is not an answer.
70
+
71
+ ## Legacy edit policy: a notice, not a question
72
+
73
+ - The policy protects only what existed before the flow started.
74
+ Creating a new file, and editing a file that the current run created, does not depend on `.reversa/reversa-config.json` (with the optional enforcement hook installed, editing a created file again needs its path in `allowedPaths`).
75
+ Modifying or deleting a file that existed before the flow started always does.
76
+ - Whenever the flow will modify or delete a pre-existing file outside the Reversa folders, show the current legacy edit policy of `.reversa/reversa-config.json` and the snippet that the owner would edit to open paths.
77
+ - A blocked policy blocks only the actions that touch a pre-existing file, not the whole run.
78
+ - Never write `.reversa/reversa-config.json`: only the owner edits the legacy edit policy.
79
+
80
+ ## The decisions
81
+
82
+ | ID | Decision | Reversa default and its effect | Other answers and their effect | Record |
83
+ |---|---|---|---|---|
84
+ | OD-1 | Automated tests for new code | Test first: the agent writes a test that fails for each new or changed behavior, then the code that makes it pass. Old code that the work does not change gets no new tests. | Tests after the code: tests exist, but they come after each piece. No automated tests: delivery is faster, and nothing checks the behavior automatically. | Principle |
85
+ | OD-2 | Test tool, when the project has none | The test runner built into the project runtime (approved or detected), when one exists. Otherwise you name the tool that runs the tests. | You approve the tool that the agent recommends. You let the agent choose, inside a scope you name. | Stack record, `Testing` |
86
+ | OD-3 | Size check for new files | The agent reviews each new file over 400 lines and each new function over 60 lines: it splits it or writes why it stays whole. | Other numbers. No size check. | Principle |
87
+ | OD-4 | Server rules (twelve-factor) | New server code takes its settings from the environment, keeps no state in memory, and writes logs to standard output, as in [`engineering-defaults.md`](engineering-defaults.md). | Apply only the rules you name. Apply none. | Principle |
88
+ | OD-5 | Settings and secrets | Settings and passwords come from environment variables. No password goes into the code or the repository. | A settings store or secret manager that you name. | Stack record, `Configuration/secrets`, for a named answer only |
89
+ | OD-6 | New libraries and services | The agent asks you before it adds each one. | The agent adds them without asking, inside a scope you name. | Principle |
90
+ | OD-7 | Style of new code | New code copies the style of the nearest existing code. With no code, it follows the common conventions of the approved stack. | A style guide, code checker, or commit message format that you name. | Principle |
91
+ | OD-8 | Language of names, comments, and commit messages | The language that the existing code uses, or English when there is no code. | A language that you name. | Principle |
92
+ | OD-9 | Optional stops | The agent stops at every human checkpoint of the flow. | Fewer optional stops, named one by one. | Principle |
93
+
94
+ Ask `OD-2` only when `OD-1` keeps automated tests, the project has no test and no test configuration (check the manifests and the test folders), and no record answers it.
95
+ When tests existed before this flow started, use the existing tool; the record owner writes the `Testing` row as `detected` (a skill that cannot write `stack.md` leaves it to the next `reversa-plan`).
96
+ Tests written under an unconfirmed `OD-2` default leave the row `unknown`: an unattended default permits the built-in runner for test actions and writes no row.
97
+ With no answer, use the test runner built into the project runtime (approved or detected) when one exists.
98
+ When that runner adds no dependency, a blank or defaulted interview answer writes the `Testing` row as `approved`, with source "OD-2 default"; the blank-answer rule of [`stack-record.md`](stack-record.md) does not apply to it.
99
+ A `default (not confirmed)` answer of an unattended run still writes no `approved` row.
100
+ Ask `OD-4` only when the project has, or will have, a server process.
101
+ Ask `OD-5` when the planned work reads configuration or credentials.
102
+ A defaulted `OD-5` answer never writes the stack row: it stays in `.reversa/owner-decisions.md` and the record of the flow. Only a named answer writes the `Configuration/secrets` row.
103
+ `OD-9` covers optional stops only.
104
+ It never waives the legacy edit policy, the approval of a deletion, a dependency, or a technology choice, a `[DÚVIDA]`, or a migration gate.
@@ -33,21 +33,23 @@ For greenfield, also read the affected specs and PRD constraints; `PRODUCT.md` `
33
33
  | `not applicable` | The layer does not apply to this scope. Record why. |
34
34
 
35
35
  Use `—` for unavailable values, sources, dates, and alternatives.
36
+ Record an observed absence as `detected` with value `None` and its source.
36
37
  Keep feature-only choices in the feature roadmap under `D-*`; do not promote them to the project record without a project-wide decision.
37
- For form/state, cite the applicable P3 `IC-*` entry or record the observed persistence trigger and its source.
38
- P3 defines the behavior, scope, and exceptions even when the stack changes.
39
- The P5 owner writes decisions within the flow's existing write scope; delegates return proposed rows and evidence to that owner.
38
+ For form/state, cite the applicable interaction convention (`IC-*`) entry or record the observed persistence trigger and its source.
39
+ The interaction conventions define the behavior, scope, and exceptions even when the stack changes.
40
+ The owner session writes decisions within the flow's existing write scope; delegates return proposed rows and evidence to that owner.
40
41
 
41
42
  ## Before planning or implementing an affected action
42
43
 
43
44
  1. Read the applicable rows, the feature `roadmap.md`, and configured `dependencies.md` when present.
44
- 2. In legacy work, inspect the nearest relevant implementation and apply the existing P3 fidelity rules.
45
+ 2. In legacy work, inspect the nearest relevant implementation and apply the existing fidelity rules of the interaction conventions (`IC-*`).
45
46
  3. Reuse an established compatible technology or dependency when it meets the requirement.
46
47
  4. If a necessary choice has no reusable option, request an explicit decision or use an existing delegation that covers it.
47
48
  5. Before adding a dependency, record the alternatives checked and the approval or delegation reference in the roadmap decision.
48
49
 
49
50
  For an unresolved choice, offer the owner three options: specify the value, approve a recommendation, or delegate the decision.
50
51
  A blank answer, example, or autonomous mode is not permission.
52
+ Exception: a blank or defaulted interview answer to `OD-2` that selects the test runner built into the project runtime and adds no dependency approves the `Testing` row (source "OD-2 default"), as [`owner-decisions.md`](owner-decisions.md) says.
51
53
  In autonomous work, mark only the affected work as blocked, report the unresolved choice, and continue unrelated authorized work.
52
54
  Report delegated choices separately from assumptions; do not treat delegation as authority to change behavior, spend money, or widen write scope.
53
55
 
@@ -46,7 +46,7 @@ Verifique se `.reversa/plan.md` já existe:
46
46
 
47
47
  **Se o arquivo não existe** (instalação manual):
48
48
 
49
- 1. Analise rapidamente a estrutura de pastas raiz (exclua: `node_modules`, `.git`, `.reversa`, `_reversa_sdd`, `dist`, `build`, `coverage`, `__pycache__`)
49
+ 1. Analise rapidamente a estrutura de pastas raiz (exclua: `node_modules`, `.git`, `.reversa`, `_reversa_sdd`, `dist`, `build`, `coverage`, `__pycache__`, `.agents`, `.claude`, `.codex`, `.kiro`, `.omp`, toda pasta `_reversa_*` e todo caminho listado em `state.json#created_files`)
50
50
  2. Identifique os módulos e componentes principais
51
51
  3. Crie `.reversa/plan.md` pelo helper `write` com as tarefas estruturadas por fase (use o template do plano padrão, adaptando a fase 2 com os módulos reais identificados)
52
52
  4. Apresente o plano e pergunte: "O plano está aprovado ou quer ajustar algo?"
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 0. Posse e verificação de migração em andamento
4
4
 
5
- Antes de retomar, leia `modo-de-execucao.md` nesta pasta e inspecione a posse. Se não for desta sessão, mostre a posição e aplique a transferência explícita antes de agir. Se for desta sessão, releia o `SKILL.md` da etapa instalada e confira os artefatos antes de oferecer continuação.
5
+ Antes de retomar, leia `modo-de-execucao.md` nesta pasta e inspecione a posse. Se não for desta sessão, mostre a posição e aplique a transferência antes de agir: com heartbeat de mais de 30 minutos, ou se o usuário disser que a sessão anterior está encerrada, transfira e avise em uma linha; peça confirmação só quando o heartbeat for recente. Se for desta sessão, releia o `SKILL.md` da etapa instalada e confira os artefatos antes de oferecer continuação.
6
6
 
7
7
  Antes de tudo, leia `.reversa/state.json` apenas para resolver `output_folder` (padrão `_reversa_sdd`).
8
8
 
@@ -85,8 +85,8 @@ Se `answer_mode` for `"chat"` (padrão):
85
85
 
86
86
  Pergunte apenas: "Continuamos de onde paramos? (CONTINUAR para seguir)"
87
87
 
88
- Após confirmação, retome o primeiro item ainda pendente segundo o plano, o checkpoint e os artefatos existentes. Se o checkpoint verificável de um item concluído existir sem o marcador no plano, corrija o marcador pelo helper antes de continuar. Não suponha aceite por `CONTINUAR`.
88
+ Após confirmação, retome o primeiro item ainda pendente segundo o plano, o checkpoint e os artefatos existentes. Se o checkpoint verificável de um item concluído existir sem o marcador no plano, corrija o marcador antes de continuar, por edição direta da sessão dona ou pelo helper. Não suponha aceite por `CONTINUAR`.
89
89
 
90
- **🚫 Não ofereça `/clear` + `/reversa` neste momento.** O usuário acabou de retomar a sessão; pedir para limpar e reabrir agora é redundante. O prompt de pausa entre etapas (descrito em `SKILL.md`, seção "Checkpoint preventivo entre etapas") só vale **depois** que um agente concluir trabalho dentro desta sessão, nunca na própria saudação de retomada.
90
+ **🚫 Não ofereça limpar o contexto e voltar (por exemplo, `/clear` + `/reversa`) neste momento.** O usuário acabou de retomar a sessão; pedir para limpar e reabrir agora é redundante. O prompt de pausa entre etapas (descrito em `SKILL.md`, seção "Checkpoint preventivo entre etapas") só vale **depois** que um agente concluir trabalho dentro desta sessão, nunca na própria saudação de retomada.
91
91
 
92
92
  Consulte `references/checkpoint-guide.md` para as regras de escrita no state.json.
@@ -33,7 +33,7 @@ Aguarde resposta afirmativa explícita antes de seguir para o menu. Resposta vaz
33
33
 
34
34
  Leia `.reversa/context/surface.json` → `organization_suggestion`. Use o campo `granularity` para pré-marcar a opção sugerida e o campo `rationale` para mostrar a razão.
35
35
 
36
- Se o `surface.json` não tiver `organization_suggestion` preenchida (Scout não rodou ou falhou), exiba o menu sem default e peça que o usuário escolha manualmente, conforme EC-01 da spec de organização.
36
+ Se o `surface.json` não tiver `organization_suggestion` preenchida (Scout não rodou ou falhou), exiba o menu sem sugestão do Scout, pré-marque a opção 1 como `(recomendado)` e diga ao usuário que não há sugestão.
37
37
 
38
38
  Use exatamente este formato (idioma seguindo `chat_language` do `state.json`, exemplo abaixo em pt-br):
39
39
 
@@ -50,7 +50,7 @@ Razão: [organization_suggestion.rationale]
50
50
  [5] [marcador] Por features (Scout lista as features descobertas)
51
51
  [6] [marcador] Customizada
52
52
 
53
- Escolha (Enter aceita o sugerido):
53
+ Escolha (resposta em branco ou "ok" aceita a opção pré-marcada):
54
54
  ```
55
55
 
56
56
  Onde `[marcador]` é `*` (asterisco) na opção pré-marcada e espaço nas demais. Adicione `(sugerido)` ao lado da opção pré-marcada.
@@ -68,10 +68,10 @@ Mapeamento das 6 opções para o valor de `granularity`:
68
68
 
69
69
  ### Aceitar a entrada
70
70
 
71
- - Enter sem digitar: aceita a opção pré-marcada.
71
+ - Resposta em branco, ou "ok": aceita a opção pré-marcada.
72
72
  - Número de 1 a 6: aceita a opção correspondente.
73
73
  - Qualquer outra entrada: peça novamente sem persistir nada.
74
- - Ctrl+C / ESC / cancelamento: aborte a execução e não persista nada (EC-02).
74
+ - Pedido de cancelamento: aborte a execução e não persista nada (EC-02).
75
75
 
76
76
  ### Opção 6, customizada
77
77
 
@@ -97,7 +97,7 @@ Aguarde resposta afirmativa explícita. Negação aborta sem persistir.
97
97
 
98
98
  A detecção é heurística e best-effort: comparar nomes de subpastas top-level com os módulos identificados pelo Scout (`module`), com URIs/rotas (`endpoint`), com features (`feature`), etc. Quando a heurística não conseguir decidir com clareza, **não** exiba o aviso (evita falso positivo).
99
99
 
100
- ## 4. Persistir a decisão (RNF-03, atomic write)
100
+ ## 4. Persistir a decisão (RNF-03, gravação única)
101
101
 
102
102
  Atualize `.reversa/config.toml`, seção `[specs]`, com:
103
103
 
@@ -137,9 +137,9 @@ Os nomes que o Reversa usa para as pastas de feature seguem `doc_language` do `s
137
137
  - [ ] Se há override em `config.user.toml` mas `config.toml` está vazio, exibir aviso RF-18
138
138
  - [ ] Ler `organization_suggestion` de `surface.json`
139
139
  - [ ] Exibir menu com sugestão pré-marcada
140
- - [ ] Aceitar Enter, número 1 a 6, ou cancelamento
140
+ - [ ] Aceitar resposta em branco ou "ok", número 1 a 6, ou cancelamento
141
141
  - [ ] Se opção 6, coletar `custom_folders`
142
142
  - [ ] Detectar conflito com estrutura em disco e pedir confirmação
143
- - [ ] Atomic write em `config.toml`
143
+ - [ ] Gravação única de `config.toml`
144
144
  - [ ] Preservar `scout_suggestion` em re-execuções com seção parcial
145
145
  - [ ] Prosseguir para o Archaeologist