@orkastery/cli 0.5.3 → 0.6.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 (502) hide show
  1. package/adapters/README.md +18 -0
  2. package/adapters/claude-code/.claude-plugin/plugin.json +1 -0
  3. package/adapters/claude-code/README.md +195 -5
  4. package/adapters/claude-code/agents/ork-check.md +1 -0
  5. package/adapters/claude-code/agents/ork-go.md +1 -0
  6. package/adapters/claude-code/agents/ork-goal.md +1 -0
  7. package/adapters/claude-code/agents/ork-master.md +1 -0
  8. package/adapters/claude-code/agents/ork-plan.md +1 -0
  9. package/adapters/claude-code/agents/ork-ship.md +1 -0
  10. package/adapters/claude-code/hooks/hooks.json +2 -1
  11. package/adapters/claude-code/hooks/ork-guard.js +15 -1
  12. package/adapters/claude-code/hooks/ork-resposta.js +91 -0
  13. package/adapters/claude-code/hooks/ork-sensor.js +18 -2
  14. package/adapters/claude-code/hooks/quota-signal.js +14 -0
  15. package/adapters/claude-code/mods/autoridade.json +56 -0
  16. package/adapters/claude-code/mods/ork-clima/.claude-plugin/plugin.json +14 -0
  17. package/adapters/claude-code/mods/ork-clima/hooks/contas.ts +283 -0
  18. package/adapters/claude-code/mods/ork-clima/hooks/hooks.json +3 -0
  19. package/adapters/claude-code/mods/ork-clima/hooks/previsao.ts +393 -0
  20. package/adapters/claude-code/mods/ork-clima/hooks/register.ts +205 -0
  21. package/adapters/claude-code/mods/ork-clima/orkastery-mod.json +5 -0
  22. package/adapters/claude-code/mods/ork-clima/types/index.d.ts +80 -0
  23. package/adapters/claude-code/mods/ork-freio/.claude-plugin/plugin.json +14 -0
  24. package/adapters/claude-code/mods/ork-freio/hooks/carga.ts +160 -0
  25. package/adapters/claude-code/mods/ork-freio/hooks/conferencia.ts +309 -0
  26. package/adapters/claude-code/mods/ork-freio/hooks/hooks.json +3 -0
  27. package/adapters/claude-code/mods/ork-freio/hooks/lote.ts +270 -0
  28. package/adapters/claude-code/mods/ork-freio/hooks/register.ts +285 -0
  29. package/adapters/claude-code/mods/ork-freio/orkastery-mod.json +5 -0
  30. package/adapters/claude-code/mods/ork-freio/types/index.d.ts +127 -0
  31. package/adapters/claude-code/mods/ork-mensageiro/.claude-plugin/plugin.json +14 -0
  32. package/adapters/claude-code/mods/ork-mensageiro/hooks/caixa.ts +215 -0
  33. package/adapters/claude-code/mods/ork-mensageiro/hooks/hooks.json +3 -0
  34. package/adapters/claude-code/mods/ork-mensageiro/hooks/painel.tsx +165 -0
  35. package/adapters/claude-code/mods/ork-mensageiro/hooks/recepcao.ts +256 -0
  36. package/adapters/claude-code/mods/ork-mensageiro/hooks/register.tsx +481 -0
  37. package/adapters/claude-code/mods/ork-mensageiro/orkastery-mod.json +5 -0
  38. package/adapters/claude-code/mods/ork-mensageiro/types/index.d.ts +85 -0
  39. package/adapters/claude-code/mods/ork-mesa/.claude-plugin/plugin.json +14 -0
  40. package/adapters/claude-code/mods/ork-mesa/hooks/cartoes.tsx +246 -0
  41. package/adapters/claude-code/mods/ork-mesa/hooks/decidir.ts +110 -0
  42. package/adapters/claude-code/mods/ork-mesa/hooks/fila.ts +253 -0
  43. package/adapters/claude-code/mods/ork-mesa/hooks/hooks.json +3 -0
  44. package/adapters/claude-code/mods/ork-mesa/hooks/obvia.ts +98 -0
  45. package/adapters/claude-code/mods/ork-mesa/hooks/register.tsx +493 -0
  46. package/adapters/claude-code/mods/ork-mesa/orkastery-mod.json +5 -0
  47. package/adapters/claude-code/mods/ork-mesa/types/index.d.ts +131 -0
  48. package/adapters/claude-code/mods/ork-pista/.claude-plugin/plugin.json +14 -0
  49. package/adapters/claude-code/mods/ork-pista/hooks/acoes.ts +71 -0
  50. package/adapters/claude-code/mods/ork-pista/hooks/ci.ts +121 -0
  51. package/adapters/claude-code/mods/ork-pista/hooks/hooks.json +3 -0
  52. package/adapters/claude-code/mods/ork-pista/hooks/pista.tsx +356 -0
  53. package/adapters/claude-code/mods/ork-pista/hooks/register.tsx +439 -0
  54. package/adapters/claude-code/mods/ork-pista/orkastery-mod.json +5 -0
  55. package/adapters/claude-code/mods/ork-pista/types/index.d.ts +85 -0
  56. package/adapters/claude-code/mods/ork-ponte/.claude-plugin/plugin.json +13 -0
  57. package/adapters/claude-code/mods/ork-ponte/hooks/faixa.tsx +57 -0
  58. package/adapters/claude-code/mods/ork-ponte/hooks/guarda.ts +410 -0
  59. package/adapters/claude-code/mods/ork-ponte/hooks/hooks.json +3 -0
  60. package/adapters/claude-code/mods/ork-ponte/hooks/mostrado.ts +55 -0
  61. package/adapters/claude-code/mods/ork-ponte/hooks/nucleo.ts +157 -0
  62. package/adapters/claude-code/mods/ork-ponte/hooks/papel.ts +42 -0
  63. package/adapters/claude-code/mods/ork-ponte/hooks/register.ts +331 -0
  64. package/adapters/claude-code/mods/ork-ponte/hooks/vigia.ts +76 -0
  65. package/adapters/claude-code/mods/ork-ponte/orkastery-mod.json +5 -0
  66. package/adapters/claude-code/mods/ork-ponte/types/index.d.ts +178 -0
  67. package/adapters/claude-code/mods/ork-portao/.claude-plugin/plugin.json +14 -0
  68. package/adapters/claude-code/mods/ork-portao/hooks/hooks.json +3 -0
  69. package/adapters/claude-code/mods/ork-portao/hooks/lease.ts +201 -0
  70. package/adapters/claude-code/mods/ork-portao/hooks/plano.ts +304 -0
  71. package/adapters/claude-code/mods/ork-portao/hooks/register.ts +339 -0
  72. package/adapters/claude-code/mods/ork-portao/hooks/verify.ts +152 -0
  73. package/adapters/claude-code/mods/ork-portao/orkastery-mod.json +5 -0
  74. package/adapters/claude-code/mods/ork-portao/types/index.d.ts +60 -0
  75. package/adapters/claude-code/mods/ork-radar/.claude-plugin/plugin.json +14 -0
  76. package/adapters/claude-code/mods/ork-radar/hooks/colisao.ts +420 -0
  77. package/adapters/claude-code/mods/ork-radar/hooks/hooks.json +3 -0
  78. package/adapters/claude-code/mods/ork-radar/hooks/mapa.tsx +322 -0
  79. package/adapters/claude-code/mods/ork-radar/hooks/register.tsx +470 -0
  80. package/adapters/claude-code/mods/ork-radar/orkastery-mod.json +5 -0
  81. package/adapters/claude-code/mods/ork-radar/types/index.d.ts +72 -0
  82. package/adapters/claude-code/mods/ork-ritual/.claude-plugin/plugin.json +14 -0
  83. package/adapters/claude-code/mods/ork-ritual/hooks/hooks.json +3 -0
  84. package/adapters/claude-code/mods/ork-ritual/hooks/nota.ts +88 -0
  85. package/adapters/claude-code/mods/ork-ritual/hooks/register.tsx +494 -0
  86. package/adapters/claude-code/mods/ork-ritual/hooks/replay.tsx +271 -0
  87. package/adapters/claude-code/mods/ork-ritual/hooks/ritual.ts +218 -0
  88. package/adapters/claude-code/mods/ork-ritual/orkastery-mod.json +5 -0
  89. package/adapters/claude-code/mods/ork-ritual/types/index.d.ts +106 -0
  90. package/adapters/claude-code/mods/ork-sentinela/.claude-plugin/plugin.json +14 -0
  91. package/adapters/claude-code/mods/ork-sentinela/hooks/alertas.ts +85 -0
  92. package/adapters/claude-code/mods/ork-sentinela/hooks/despacho.ts +156 -0
  93. package/adapters/claude-code/mods/ork-sentinela/hooks/hooks.json +3 -0
  94. package/adapters/claude-code/mods/ork-sentinela/hooks/register.ts +511 -0
  95. package/adapters/claude-code/mods/ork-sentinela/hooks/vigia.ts +186 -0
  96. package/adapters/claude-code/mods/ork-sentinela/orkastery-mod.json +5 -0
  97. package/adapters/claude-code/mods/ork-sentinela/types/index.d.ts +65 -0
  98. package/adapters/claude-code/mods/ork-torre/.claude-plugin/plugin.json +14 -0
  99. package/adapters/claude-code/mods/ork-torre/hooks/agenda.ts +60 -0
  100. package/adapters/claude-code/mods/ork-torre/hooks/detalhe.tsx +236 -0
  101. package/adapters/claude-code/mods/ork-torre/hooks/frases.ts +42 -0
  102. package/adapters/claude-code/mods/ork-torre/hooks/hooks.json +3 -0
  103. package/adapters/claude-code/mods/ork-torre/hooks/painel.tsx +344 -0
  104. package/adapters/claude-code/mods/ork-torre/hooks/rede.ts +97 -0
  105. package/adapters/claude-code/mods/ork-torre/hooks/register.tsx +437 -0
  106. package/adapters/claude-code/mods/ork-torre/orkastery-mod.json +5 -0
  107. package/adapters/claude-code/mods/ork-torre/types/index.d.ts +108 -0
  108. package/adapters/codex/skills/ork/SKILL.md +2 -0
  109. package/adapters/hermes/README.md +64 -1
  110. package/adapters/hermes/bin/ork-conhecimento-colecoes.sh +14 -0
  111. package/adapters/hermes/bin/ork-conhecimento-listar.sh +15 -0
  112. package/adapters/hermes/bin/ork-conhecimento-mostrar.sh +16 -0
  113. package/adapters/hermes/bin/ork-conhecimento-verificar.sh +15 -0
  114. package/adapters/hermes/bin/ork-vigia-batida.py +127 -0
  115. package/adapters/hermes/hermes.plugin.json +4 -0
  116. package/adapters/hermes/hitl-ingress/__init__.py +101 -8
  117. package/adapters/hermes/skills/orkastery-devmaster/SKILL.md +3 -3
  118. package/adapters/openclaw/README.md +83 -10
  119. package/adapters/openclaw/bin/ork-vigia-batida.js +86 -0
  120. package/adapters/openclaw/dist/hitl-ingress.js +106 -9
  121. package/adapters/openclaw/dist/index.js +86 -0
  122. package/adapters/openclaw/openclaw.plugin.json +34 -4
  123. package/adapters/openclaw/package.json +2 -2
  124. package/adapters/openclaw/src/hitl-ingress.ts +103 -9
  125. package/adapters/openclaw/src/index.ts +94 -0
  126. package/assets/adapters-en/claude-code/README.md +403 -0
  127. package/assets/adapters-en/claude-code/agents/ork-check.md +33 -0
  128. package/assets/adapters-en/claude-code/agents/ork-go.md +33 -0
  129. package/assets/adapters-en/claude-code/agents/ork-goal.md +34 -0
  130. package/assets/adapters-en/claude-code/agents/ork-master.md +35 -0
  131. package/assets/adapters-en/claude-code/agents/ork-plan.md +33 -0
  132. package/assets/adapters-en/claude-code/agents/ork-ship.md +33 -0
  133. package/assets/adapters-en/claude-code/commands/check.md +46 -0
  134. package/assets/adapters-en/claude-code/commands/go.md +46 -0
  135. package/assets/adapters-en/claude-code/commands/goal.md +55 -0
  136. package/assets/adapters-en/claude-code/commands/master.md +54 -0
  137. package/assets/adapters-en/claude-code/commands/onboarding.md +22 -0
  138. package/assets/adapters-en/claude-code/commands/ork.md +126 -0
  139. package/assets/adapters-en/claude-code/commands/plan.md +47 -0
  140. package/assets/adapters-en/claude-code/commands/ship.md +45 -0
  141. package/assets/adapters-en/codex/skills/ork/SKILL.md +85 -0
  142. package/assets/adapters-en/hermes/README.md +273 -0
  143. package/assets/adapters-en/hermes/skills/orkastery-devmaster/SKILL.md +169 -0
  144. package/assets/docs-en/markdownlint-cli2.jsonc +22 -0
  145. package/assets/docs-en/padroes/documentacao-de-produto.md +135 -0
  146. package/assets/docs-en/padroes/roadmap-de-produto.md +100 -0
  147. package/assets/docs-en/produto/README.md +14 -0
  148. package/assets/docs-en/produto/_modelo-feature.md +62 -0
  149. package/assets/docs-en/roadmap/README.md +14 -0
  150. package/assets/docs-en/roadmap/_modelo-item.md +75 -0
  151. package/assets/references-en/README.md +25 -0
  152. package/assets/references-en/code-review-axes.md +82 -0
  153. package/assets/references-en/definition-of-done.md +74 -0
  154. package/assets/references-en/performance-checklist.md +53 -0
  155. package/assets/references-en/security-checklist.md +101 -0
  156. package/assets/references-en/testing-patterns.md +51 -0
  157. package/assets/security-scan/defaults/.golangci.yml +2 -0
  158. package/assets/security-scan/defaults/eslint.config.mjs +11 -0
  159. package/assets/security-scan/defaults/gitleaks.toml +3 -0
  160. package/assets/security-scan/defaults/ruff.toml +1 -0
  161. package/assets/security-scan/tools-agil.json +87 -0
  162. package/assets/security-scan/tools.json +625 -0
  163. package/assets/skills-en/core/onboarding/SKILL.md +58 -0
  164. package/assets/skills-en/core/orkastery-bootstrap/SKILL.md +119 -0
  165. package/assets/skills-en/core/thread-state/SKILL.md +88 -0
  166. package/assets/skills-en/governance/decision-triage/SKILL.md +65 -0
  167. package/assets/skills-en/governance/narrative-guardian/SKILL.md +66 -0
  168. package/assets/skills-en/governance/roadmap-keeper/SKILL.md +60 -0
  169. package/assets/skills-en/governance/scope-check-capability-map/SKILL.md +71 -0
  170. package/assets/skills-en/observability/thread-tracing/SKILL.md +63 -0
  171. package/assets/skills-en/phases/check-quality/SKILL.md +103 -0
  172. package/assets/skills-en/phases/go-implementation/SKILL.md +78 -0
  173. package/assets/skills-en/phases/goal-definition/SKILL.md +69 -0
  174. package/assets/skills-en/phases/master-metrics/SKILL.md +72 -0
  175. package/assets/skills-en/phases/plan-specification/SKILL.md +67 -0
  176. package/assets/skills-en/phases/security-remediation/SKILL.md +70 -0
  177. package/assets/skills-en/phases/ship-release/SKILL.md +71 -0
  178. package/assets/skills-en/reviewers/code-reviewer/SKILL.md +61 -0
  179. package/assets/skills-en/reviewers/security-auditor/SKILL.md +93 -0
  180. package/assets/skills-en/reviewers/test-engineer/SKILL.md +66 -0
  181. package/assets/skills-en/reviewers/web-performance-auditor/SKILL.md +63 -0
  182. package/dist/adapters/claude-bg.js +193 -15
  183. package/dist/adapters/codex-controller-worker.js +12 -5
  184. package/dist/adapters/codex-events.js +16 -4
  185. package/dist/adapters/codex.js +13 -2
  186. package/dist/agents-md.js +24 -15
  187. package/dist/atualizar-branch.js +245 -0
  188. package/dist/auditoria.js +13 -11
  189. package/dist/auditrun.js +68 -48
  190. package/dist/autorizacao-duravel.js +327 -0
  191. package/dist/board.js +98 -43
  192. package/dist/branch-de-estado.js +39 -9
  193. package/dist/busca-semantica.js +7 -5
  194. package/dist/catalogo.js +35 -1
  195. package/dist/changelog-reconciliacao.js +290 -0
  196. package/dist/check-agil.js +500 -0
  197. package/dist/check-modo.js +41 -0
  198. package/dist/check-paralelo.js +183 -0
  199. package/dist/ci.js +255 -46
  200. package/dist/ciclos.js +8 -6
  201. package/dist/claim-lint.js +12 -8
  202. package/dist/claims-conferir.js +350 -0
  203. package/dist/claims.js +13 -10
  204. package/dist/company-brain-client.js +45 -3
  205. package/dist/company-brain-journal.js +2 -1
  206. package/dist/company-brain-migration.js +47 -6
  207. package/dist/conducao-batida.js +759 -0
  208. package/dist/conducao-sentinela.js +405 -0
  209. package/dist/conducao-texto.js +12 -18
  210. package/dist/conducao.js +206 -59
  211. package/dist/conhecimento-consulta.js +270 -0
  212. package/dist/conhecimento.js +514 -0
  213. package/dist/conta-esgotada.js +127 -0
  214. package/dist/dado-privado.js +816 -0
  215. package/dist/decisao-autonoma.js +5 -4
  216. package/dist/demo.js +14 -12
  217. package/dist/dependencias-da-worktree.js +25 -0
  218. package/dist/divida.js +38 -36
  219. package/dist/docs.js +103 -82
  220. package/dist/doctor-forja.js +345 -0
  221. package/dist/doctor-pulse-cron.js +294 -27
  222. package/dist/doctor-rede.js +18 -17
  223. package/dist/doctor.js +278 -116
  224. package/dist/dsn-da-memoria.js +417 -0
  225. package/dist/entrega-por-mod.js +503 -0
  226. package/dist/entrega-pr.js +158 -57
  227. package/dist/escopo-escrita.js +10 -1
  228. package/dist/esgotamentos.js +13 -11
  229. package/dist/estado-thread.js +42 -17
  230. package/dist/evalrunner.js +35 -32
  231. package/dist/experiencia-instalacao.js +45 -25
  232. package/dist/fabrica-batida.js +323 -0
  233. package/dist/fabrica-estado.js +49 -16
  234. package/dist/fabrica-publicar.js +3 -1
  235. package/dist/fila-pesada.js +444 -0
  236. package/dist/fix.js +24 -21
  237. package/dist/forja/adaptador.js +6 -0
  238. package/dist/forja/ambiente-de-ci.js +27 -0
  239. package/dist/forja/api.js +256 -0
  240. package/dist/forja/cache.js +89 -0
  241. package/dist/forja/cli.js +60 -0
  242. package/dist/forja/contrato.js +9 -0
  243. package/dist/forja/endereco.js +43 -0
  244. package/dist/forja/estado.js +22 -0
  245. package/dist/forja/executor.js +73 -0
  246. package/dist/forja/github/ci.js +95 -0
  247. package/dist/forja/github/dono-da-rede.js +18 -0
  248. package/dist/forja/github/metadados.js +15 -0
  249. package/dist/forja/github/pedidos.js +200 -0
  250. package/dist/forja/gitlab/ci.js +141 -0
  251. package/dist/forja/gitlab/consultas.js +59 -0
  252. package/dist/forja/gitlab/dono-da-rede.js +43 -0
  253. package/dist/forja/gitlab/metadados.js +15 -0
  254. package/dist/forja/gitlab/pedidos-abertos.js +158 -0
  255. package/dist/forja/gitlab/pedidos.js +141 -0
  256. package/dist/forja/produtor.js +32 -0
  257. package/dist/forja/registro.js +31 -0
  258. package/dist/forja/resolver.js +121 -0
  259. package/dist/forja/texto.js +13 -0
  260. package/dist/forja/versao.js +71 -0
  261. package/dist/forja.js +124 -81
  262. package/dist/gates.js +3 -28
  263. package/dist/handoff.js +33 -19
  264. package/dist/hitl-contract.js +46 -43
  265. package/dist/hitl-curto.js +37 -25
  266. package/dist/hitl-gates.js +13 -11
  267. package/dist/hitl-local-receipt.js +53 -0
  268. package/dist/hitl-local.js +11 -2
  269. package/dist/hitl-lock.js +5 -11
  270. package/dist/hitl-public-receipt.js +11 -0
  271. package/dist/hitl-resumo.js +72 -3
  272. package/dist/hitl-sessions.js +62 -9
  273. package/dist/hitl-tempo-parado.js +4 -4
  274. package/dist/hitl-texto-livre.js +7 -4
  275. package/dist/hitl.js +63 -64
  276. package/dist/horario.js +30 -7
  277. package/dist/hosts.js +155 -134
  278. package/dist/impedimento.js +108 -14
  279. package/dist/index.js +1421 -1019
  280. package/dist/indice-vetorial.js +14 -12
  281. package/dist/indice.js +7 -1
  282. package/dist/init.js +54 -49
  283. package/dist/instabilidade.js +144 -0
  284. package/dist/integracoes-locais.js +4 -0
  285. package/dist/intelligence-graph-cli.js +213 -88
  286. package/dist/intelligence-graph-contexto.js +56 -17
  287. package/dist/intelligence-graph-contract.js +2 -1
  288. package/dist/intelligence-graph-extract-md.js +56 -4
  289. package/dist/intelligence-graph-extract-ts.js +71 -3
  290. package/dist/intelligence-graph-query.js +96 -34
  291. package/dist/leases.js +19 -18
  292. package/dist/ledger-stats.js +17 -16
  293. package/dist/ledger.js +46 -2
  294. package/dist/licoes.js +12 -11
  295. package/dist/liveness.js +6 -3
  296. package/dist/locale-accounts.js +220 -0
  297. package/dist/locale-adapter.js +291 -0
  298. package/dist/locale-ajuda.js +833 -0
  299. package/dist/locale-audit.js +199 -0
  300. package/dist/locale-claims.js +213 -0
  301. package/dist/locale-conducao.js +138 -0
  302. package/dist/locale-conhecimento.js +181 -0
  303. package/dist/locale-decisao.js +205 -0
  304. package/dist/locale-docs.js +230 -0
  305. package/dist/locale-estado.js +101 -0
  306. package/dist/locale-forja.js +290 -0
  307. package/dist/locale-gerados.js +165 -0
  308. package/dist/locale-grafo.js +129 -0
  309. package/dist/locale-master.js +182 -0
  310. package/dist/locale-network.js +524 -0
  311. package/dist/locale-onboarding.js +92 -0
  312. package/dist/locale-operacao-restante.js +931 -0
  313. package/dist/locale-phase.js +151 -0
  314. package/dist/locale-projetos.js +100 -0
  315. package/dist/locale-prompts.js +194 -0
  316. package/dist/locale-pulse.js +349 -0
  317. package/dist/locale-reservas.js +87 -0
  318. package/dist/locale-retry.js +524 -0
  319. package/dist/locale-roadmap.js +102 -0
  320. package/dist/locale-security-scan.js +69 -0
  321. package/dist/locale-setup.js +192 -0
  322. package/dist/locale-ship.js +597 -0
  323. package/dist/locale-thread.js +421 -0
  324. package/dist/locale-verify.js +201 -0
  325. package/dist/locale-worktree.js +246 -0
  326. package/dist/locale.js +1258 -0
  327. package/dist/maestro-runtime.js +22 -3
  328. package/dist/manifest.js +415 -13
  329. package/dist/maquina-ociosa.js +211 -0
  330. package/dist/maquina.js +31 -7
  331. package/dist/master-digest.js +6 -1
  332. package/dist/master-nota-local.js +200 -0
  333. package/dist/master-nota.js +14 -8
  334. package/dist/master.js +139 -65
  335. package/dist/mcp-artifacts.js +11 -2
  336. package/dist/mcp-conhecimento.js +52 -0
  337. package/dist/mcp-experiencia.js +26 -5
  338. package/dist/mcp-git.js +23 -6
  339. package/dist/mcp-grafo.js +7 -4
  340. package/dist/mcp-install.js +73 -8
  341. package/dist/mcp-noctum.js +101 -0
  342. package/dist/mcp-server.js +90 -16
  343. package/dist/mcp-ship-transporte.js +977 -0
  344. package/dist/mcp-ship.js +71 -25
  345. package/dist/mcp-transportes.js +17 -0
  346. package/dist/mcp-verify.js +6 -1
  347. package/dist/memoria.js +63 -58
  348. package/dist/modos-migracao.js +8 -6
  349. package/dist/modos.js +20 -24
  350. package/dist/network-roadmap.js +90 -51
  351. package/dist/noctum-aceite.js +789 -0
  352. package/dist/noctum-arco.js +1418 -0
  353. package/dist/noctum-capacidade.js +141 -0
  354. package/dist/noctum-changelog.js +399 -0
  355. package/dist/noctum-cli.js +482 -0
  356. package/dist/noctum-coordenacao.js +1225 -0
  357. package/dist/noctum-entrega.js +1169 -0
  358. package/dist/noctum-envelope.js +1046 -0
  359. package/dist/noctum-execucao.js +376 -0
  360. package/dist/noctum-fechamento.js +405 -0
  361. package/dist/noctum-fila.js +314 -0
  362. package/dist/noctum-guarda.js +256 -0
  363. package/dist/noctum-integracao.js +507 -0
  364. package/dist/noctum-maquinas.js +383 -0
  365. package/dist/noctum-medicao.js +450 -0
  366. package/dist/noctum-modo.js +362 -0
  367. package/dist/noctum-pergunta-canal.js +96 -0
  368. package/dist/noctum-pergunta.js +115 -0
  369. package/dist/noctum-provas.js +838 -0
  370. package/dist/noctum-reconciliacao.js +591 -0
  371. package/dist/noctum-registro.js +215 -0
  372. package/dist/noctum-relatorio.js +827 -0
  373. package/dist/noctum-resposta.js +207 -0
  374. package/dist/noctum-sessoes-em-voo.js +93 -0
  375. package/dist/noctum-supervisao.js +649 -0
  376. package/dist/noctum-terminal.js +459 -0
  377. package/dist/noctum-transporte.js +655 -0
  378. package/dist/noctum-vigia.js +639 -0
  379. package/dist/ocupacao.js +32 -3
  380. package/dist/onboarding.js +56 -26
  381. package/dist/orkmind.js +48 -25
  382. package/dist/orquestracao.js +44 -47
  383. package/dist/parado-no-condutor.js +174 -127
  384. package/dist/phase.js +144 -63
  385. package/dist/policies.js +37 -4
  386. package/dist/portfolio.js +4 -2
  387. package/dist/postura-local.js +235 -0
  388. package/dist/preflight.js +11 -10
  389. package/dist/procedencia.js +220 -0
  390. package/dist/projeto-alvo.js +186 -24
  391. package/dist/prompts.js +140 -42
  392. package/dist/prova-minima.js +5 -6
  393. package/dist/pulse-cadencia.js +5 -4
  394. package/dist/pulse-consentimento.js +53 -1
  395. package/dist/pulse-delivery.js +151 -24
  396. package/dist/pulse-resposta.js +368 -4
  397. package/dist/pulse.js +188 -22
  398. package/dist/ratelimit.js +16 -6
  399. package/dist/recall.js +14 -13
  400. package/dist/redacao-saida.js +63 -0
  401. package/dist/rede-adesao.js +13 -8
  402. package/dist/rede-forja.js +108 -24
  403. package/dist/rede-status.js +66 -47
  404. package/dist/rede.js +86 -46
  405. package/dist/retomada-checkpoint.js +101 -0
  406. package/dist/retry.js +451 -212
  407. package/dist/roadmap-reservas.js +45 -28
  408. package/dist/roadmap-status.js +129 -33
  409. package/dist/runtime-ambiente.js +5 -0
  410. package/dist/runtime-context.js +284 -32
  411. package/dist/runtime-escada.js +423 -0
  412. package/dist/runtime-profiles.js +103 -46
  413. package/dist/runtimes.js +2 -1
  414. package/dist/saida-segura.js +3 -2
  415. package/dist/security-scan/agil.js +355 -0
  416. package/dist/security-scan/cli.js +76 -0
  417. package/dist/security-scan/compare.js +149 -0
  418. package/dist/security-scan/config.js +93 -0
  419. package/dist/security-scan/detect.js +97 -0
  420. package/dist/security-scan/executor.js +188 -0
  421. package/dist/security-scan/guard.js +180 -0
  422. package/dist/security-scan/imagem-de-lint.js +96 -0
  423. package/dist/security-scan/normalize/actionlint.js +12 -0
  424. package/dist/security-scan/normalize/eslint.js +12 -0
  425. package/dist/security-scan/normalize/gitleaks.js +13 -0
  426. package/dist/security-scan/normalize/golangci-lint.js +13 -0
  427. package/dist/security-scan/normalize/govulncheck.js +36 -0
  428. package/dist/security-scan/normalize/index.js +25 -0
  429. package/dist/security-scan/normalize/npm-audit.js +30 -0
  430. package/dist/security-scan/normalize/osv-scanner.js +32 -0
  431. package/dist/security-scan/normalize/oxlint.js +51 -0
  432. package/dist/security-scan/normalize/pip-audit.js +16 -0
  433. package/dist/security-scan/normalize/ruff.js +12 -0
  434. package/dist/security-scan/normalize/semgrep.js +20 -0
  435. package/dist/security-scan/normalize/trivy.js +33 -0
  436. package/dist/security-scan/normalize/util.js +204 -0
  437. package/dist/security-scan/normalize/zizmor.js +19 -0
  438. package/dist/security-scan/report.js +156 -0
  439. package/dist/security-scan/run.js +448 -0
  440. package/dist/security-scan/tools.js +62 -0
  441. package/dist/security-scan/trabalhador.js +74 -0
  442. package/dist/security-scan/types.js +15 -0
  443. package/dist/session-events.js +26 -5
  444. package/dist/session-watcher-claude.js +81 -20
  445. package/dist/session-watcher.js +340 -42
  446. package/dist/sessoes-contas.js +10 -1
  447. package/dist/sessoes-inventario.js +1 -1
  448. package/dist/sessoes.js +25 -23
  449. package/dist/setup.js +59 -58
  450. package/dist/ship-publicar.js +971 -0
  451. package/dist/ship.js +243 -97
  452. package/dist/steal.js +77 -0
  453. package/dist/superficie.js +14 -11
  454. package/dist/thread-close.js +12 -11
  455. package/dist/thread.js +274 -100
  456. package/dist/tokens.js +15 -11
  457. package/dist/trabalho-thread.js +297 -0
  458. package/dist/transporte-do-canal.js +189 -0
  459. package/dist/types.js +12 -1
  460. package/dist/util.js +13 -3
  461. package/dist/varredura-acoes.js +507 -0
  462. package/dist/verify.js +608 -76
  463. package/dist/vida-da-thread.js +254 -0
  464. package/dist/worktree-local.js +167 -0
  465. package/dist/worktree.js +99 -83
  466. package/dist/yaml.js +27 -8
  467. package/eval/casos/check-quality.json +77 -0
  468. package/eval/casos/security-auditor.json +148 -0
  469. package/eval/casos/security-remediation.json +161 -0
  470. package/eval/fixtures/security-scan/README.md +8 -0
  471. package/eval/fixtures/security-scan/go/.github/workflows/ci.yml +12 -0
  472. package/eval/fixtures/security-scan/go/Dockerfile +4 -0
  473. package/eval/fixtures/security-scan/go/README.md +4 -0
  474. package/eval/fixtures/security-scan/go/config.go +4 -0
  475. package/eval/fixtures/security-scan/go/go.mod +5 -0
  476. package/eval/fixtures/security-scan/go/go.sum +2 -0
  477. package/eval/fixtures/security-scan/go/main.go +31 -0
  478. package/eval/fixtures/security-scan/js/.github/workflows/ci.yml +12 -0
  479. package/eval/fixtures/security-scan/js/Dockerfile +3 -0
  480. package/eval/fixtures/security-scan/js/README.md +4 -0
  481. package/eval/fixtures/security-scan/js/package-lock.json +844 -0
  482. package/eval/fixtures/security-scan/js/package.json +10 -0
  483. package/eval/fixtures/security-scan/js/src/config.js +4 -0
  484. package/eval/fixtures/security-scan/js/src/server.js +17 -0
  485. package/eval/fixtures/security-scan/js/src/util.ts +4 -0
  486. package/eval/fixtures/security-scan/js/tsconfig.json +4 -0
  487. package/eval/fixtures/security-scan/python/.github/workflows/ci.yml +12 -0
  488. package/eval/fixtures/security-scan/python/Dockerfile +3 -0
  489. package/eval/fixtures/security-scan/python/README.md +4 -0
  490. package/eval/fixtures/security-scan/python/app/__init__.py +0 -0
  491. package/eval/fixtures/security-scan/python/app/config.py +2 -0
  492. package/eval/fixtures/security-scan/python/app/main.py +19 -0
  493. package/eval/fixtures/security-scan/python/requirements.txt +1 -0
  494. package/package.json +9 -4
  495. package/references/security-checklist.md +3 -3
  496. package/schemas/code-artifact-graph.v1.schema.json +2 -1
  497. package/skills/README.md +1 -0
  498. package/skills/core/orkastery-bootstrap/SKILL.md +2 -2
  499. package/skills/phases/check-quality/SKILL.md +16 -0
  500. package/skills/phases/go-implementation/SKILL.md +6 -0
  501. package/skills/phases/security-remediation/SKILL.md +70 -0
  502. package/skills/reviewers/security-auditor/SKILL.md +25 -0
@@ -0,0 +1,833 @@
1
+ "use strict";
2
+ /**
3
+ * RM-061, fatia F2a: a ajuda do CLI (`ork`, `ork --help`, `ork help`, `ork <comando> --help` e o comando
4
+ * desconhecido). O pt-BR e o texto de antes, movido sem mudar um byte (o `docs verificar` e a paridade do
5
+ * `docs/referencia/cli.md` leem esta versao); o ingles tem as mesmas linhas de comando e as mesmas flags,
6
+ * na mesma ordem, com a descricao e os nomes de argumento (`<name>`, `<path>`) traduzidos (D10).
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.AJUDA_EN = exports.AJUDA_PT_BR = void 0;
10
+ exports.AJUDA_PT_BR = {
11
+ comandoDesconhecido: (comando) => `comando desconhecido: ${comando}`,
12
+ texto: (v) => `ork ${v.versao}, nucleo de orquestracao do Orkastery
13
+
14
+ Uso: ork [--projeto <nome|caminho>] <comando> [argumentos]
15
+
16
+ --projeto <nome|caminho> Projeto-alvo de qualquer comando (RM-052): vence ORK_PROJETO, que vence o
17
+ diretorio atual; nome ambiguo ou desconhecido recusa com os candidatos (saida 4)
18
+ projetos [--json] Projetos conhecidos desta maquina (~/.orkastery/projetos.json)
19
+ projetos registrar [caminho] Registra a copia (init, thread new e fabrica entrar ja registram)
20
+ projetos esquecer <nome|caminho> Tira do registro a copia que sumiu ou sobrou (nada no disco e apagado)
21
+
22
+ doctor O que vale nesta maquina agora (sai != 0 se bloqueado)
23
+ init [--force] [--name N] [--abbrev A] Gera o orkastery.yaml do repositorio
24
+ modos Tabela dos ${v.modos} modos de conducao vivos por #TAG
25
+
26
+ setup Pauta da entrevista #setup: runtime/modelo/esforco
27
+ por bloco de cada modo (default claude-bg/opus/high; #Fast: sonnet)
28
+ onboarding [show|set <etapa>|reset [etapa]] Pauta e respostas do projeto (9 etapas)
29
+ [--conteudo JSON] [--por Q] [--json] Segredos ficam ${v.segredos}
30
+ [--reset [etapa]] Reset seletivo ou total, idempotente
31
+ onboarding sync [--json] Publicação opcional na memória, com degradação
32
+ experiencia show [--json] Preferências efetivas; configure por onboarding set maestro --conteudo '{"owner":{"experience":true}}'
33
+ experiencia uninstall <host> [--dry-run] [--json]
34
+ Remove o bloco de Claude Code/Codex; sem --dry-run aplica a remoção
35
+ setup <modo> Config atual de cada bloco do modo
36
+ setup <modo> --bloco N [--runtime R] Edita o bloco (runtimes: claude-bg, codex);
37
+ [--model M] [--effort E] [--por Q] evento setup_configured no ledger do projeto
38
+ [--fallback R:M[:E],...] ordem de fallback de runtime do bloco (I-33)
39
+ accounts list [--json] Perfis de conta por runtime, sem segredo (I-33)
40
+ accounts add <id> --runtime R --dir D Cria o perfil e roda o login do proprio CLI com o env
41
+ [--sem-login] do perfil (nunca copia credencial)
42
+ accounts remove <id> Desativa o perfil (diretorio e login ficam onde estao)
43
+ accounts check [<id>] Confere o login de cada perfil e marca o store
44
+ accounts esgotamentos [--desde 7d] [--json]
45
+ Despachos numa conta que outro projeto desta maquina viu esgotada
46
+ (RM-040), so leitura: conta opaca, perfil pelo id, sem diretorio
47
+ setup [<modo>] --reset Volta o modo (ou tudo) ao default
48
+ setup sandbox [confirmar <postura>|revogar] Postura de sandbox desta maquina (RM-047): runtime.sandbox que afrouxa
49
+ (danger-full-access) so despacha com a confirmacao local, fora do git
50
+ setup worktree [confirmar [<dir>]|revogar] Pasta das worktrees desta maquina (RM-047): worktree.dir fora da raiz
51
+ so cria checkout com a confirmacao local, fora do git
52
+ setup versionar Leva o setup que vale para orkastery.setup.json: por PR, vale em
53
+ todas as maquinas e passa a ser o arquivo editado (I-52)
54
+
55
+ thread new <nome> --modo <MODO> Cria a thread, o slug de 3 partes e o ledger
56
+ [--exige-runtime-diferente] o CHECK precisa de runtime que o GO nao usou
57
+ [--done "<criterio> :: <comando>"] criterio de pronto EXECUTAVEL (use ;; para varios)
58
+ [--slug S] [--assunto A] [--worktree auto|DIR] [--dry-run]
59
+ [--sem-worktree] cria sem worktree (na branch base, o ship barra a entrega com
60
+ push_direto_na_base: block, o padrão do ork init); com
61
+ worktree.por_thread: true, a worktree nasce sem flag
62
+ [--roadmap RM-NNN] reserva o item do roadmap antes de criar (I-47)
63
+ [--pedido "<texto>"] guarda o pedido do builder (pedido.md, com sha256): o
64
+ prompt render usa quando falta --pedido (RM-059)
65
+ thread list [--todas] [--json] Threads NAO fechadas do projeto (--todas inclui as fechadas)
66
+ thread close <id> --motivo orfa|engano|superada --por Q --justificativa J
67
+ thread entrega <id> --arquivo A --sha256 H --por Q
68
+ thread status <thread-id> [--json] Estado da thread, cruzado com o runtime
69
+
70
+ portfolio inspect <id> --json Entidade, origem e ciclos com lacunas explícitas
71
+ creation start --input-file F --json Criação durável com identidade do processo local
72
+ creation show|list|events [id] --json Consulta journal e recuperação
73
+ creation resume|compensate <id> --expected-version N --json
74
+ portfolio create <product|project|initiative> <id> --title T [--parent ID]
75
+ portfolio list [product|project|initiative] [--parent ID] [--json]
76
+ portfolio show <id> [--json] Catálogo prod -> proj -> init
77
+ objective ... Aposentado na I-43: as duas vigas viraram
78
+ --exige-runtime-diferente e --done de thread
79
+
80
+ phase run <thread-id> <FASE> --prompt "<texto>"
81
+ [--runtime R] [--model M] Despacha a fase como background agent
82
+ [--effort E] [--dry-run] (runtime: CLI > setup do bloco > manifesto;
83
+ so --model assume --effort high; o trio
84
+ efetivo vai ao ledger como fato verificavel)
85
+ [--canal C] [--correlacao ID] Canal de origem (sem ele, o que o host declara)
86
+ [--esperar [min]] Com a thread ja conduzida, espera a vez (sem: recusa na hora)
87
+ [--perfil ID] Conta do despacho (ork accounts list); inexistente, de outro
88
+ runtime, esgotado ou sem login recusa com motivo tipado
89
+ phase list <thread-id> Historico do ledger da thread
90
+ (mostra o modelo/esforco reais de cada fase)
91
+ ledger stats --desde 7d [--ate ISO] Telemetria economica do ledger (intervalo [desde,ate))
92
+ [--thread T] [--modo M] [--runtime R] [--json]
93
+ ledger estimate <thread-id> --sem-ia H --ia-sem-ork H --por Q --metodo M --premissas P
94
+ [--incerteza I] Registra estimativas explicitas da fase PLAN
95
+
96
+ sessions [--all] [--global] [--json] Inventário Claude e Codex da conta do processo e de cada perfil
97
+ [--exigir-limpo] Sai != 0 com fonte inválida ou sessão sem thread
98
+ sessions adopt <id> [--json] Adota identidade real sem executar prompt
99
+ sessions event --tipo T --sessao ID Ingere JSON limitado no stdin; observa sem aprovar gates
100
+ sessions watch --thread T [--sessao ID] Observa somente a sessão selecionada; --once faz uma varredura
101
+ sessions limpar-fantasmas [--dry-run] Solta do ork (sessao_morta no ledger) a sessao sem pid e sem processo;
102
+ [--json] nunca toca no runtime (RM-056)
103
+ sessions logs <sessao> [--linhas N] Logs de uma sessao
104
+ sessions supersede <thread> <UUID> --fase F --runtime R Confirma encerramento de sessão superada
105
+ sessions request <thread> <UUID> --fase F --runtime R --pergunta P Abre pedido vinculado ao prompt nativo
106
+ sessions answer <thread> <pedido> --stdin --origem telegram --canal C --por ID --mensagem REF [--conta ID] Confirma entrega autenticada
107
+ sessions reconcile <thread> <pedido> Fecha envio pendente so com thread e pedido; consulta recibo, nunca reenvia
108
+ sessions stop <sessao> Para uma sessao
109
+ sessions attach <sessao> Imprime o comando de attach (precisa de TTY)
110
+ pulse [--json] [--registrar] Fila unificada de atenção humana e retry de órfãs
111
+ pulse responder --resposta-stdin --origem telegram --canal C --por ID --mensagem REF [--conta ID]
112
+ Recebe o que o dono digitou no canal do resumo (P4EJ a, 1a 2c)
113
+ [--em-resposta-a <codigo>:<id>] o código da pergunta e o id da mensagem respondida (reply)
114
+ [--em-resposta-a outra] a palavra solta em reply a outra mensagem: recusada, com o porquê
115
+ pulse cadencia [<tag>] [--por P] [--json] Mostra ou troca a cadencia do resumo: OrkPulseOn, OrkPulseOn-15m,
116
+ -30m, -60m ou OrkPulseOff; pergunta nova sai na hora (I-50)
117
+ sessions hitl [--json] [--so-paradas] Radar de sessoes que exigem acao humana AGORA:
118
+ [--atencao N] [--sem-logs] classifica o estado de cada sessao do runtime,
119
+ [--so-da-raiz] [--exigir-limpo] le a pergunta que a sessao trava e diz o que
120
+ destrava (pega HITL de sessao SEM thread)
121
+ noctum propor --arquivo <envelope.json> Propõe o envelope de um arco #Noctum (RM-058) e pergunta ao dono, com código
122
+ curto e alternativas, também no canal dele; não autoriza nada
123
+ noctum revogar <arco> [--json] Pergunta ao dono se revoga o arco (RM-057); quem revoga é a resposta dele,
124
+ no Telegram ou pelo diálogo do host
125
+ noctum responder <arco> --resposta-stdin --origem telegram --canal C --por ID --mensagem REF [--conta ID]
126
+ Recebe a autorização ou a revogação assinada pelo gateway
127
+ noctum terminal --hook-stdin O ingresso do terminal (RM-057), desligado: o hook UserPromptSubmit entrega
128
+ o que o dono digitou, e o núcleo só diz por onde responder; nada grava
129
+ noctum status [<arco>] [--json] Retrato do arco: situação, consumo medido, fila, fechamento e lacunas
130
+ noctum tique <arco> [--json] Fechamento, vigia e relatório do arco, nessa ordem (o cron do dono chama);
131
+ o vigia reconcilia e, sem condutor vivo, dá o passo do despacho e o da entrega
132
+ noctum relatorio <arco> [--json] O relatório da manhã no terminal (recibo só em terminal interativo)
133
+ [--reenviar telegram|openclaw] reenvia as páginas sem recibo, inclusive a de envio incerto
134
+ noctum conduzir <arco> [--json] O condutor do arco, que o cron do piloto relança: sai 0 com o arco terminado
135
+ ou parado, 2 em recusa, 3 com outro condutor vivo, 4 com a geração perdida
136
+ noctum aceite <arco> [--json] O aceite do piloto: as medidas M1 a M10, os critérios e o veredito; sai 0 só
137
+ com aprovado, e a evidência simulada (o ensaio) nunca aprova
138
+ [--injecoes <arquivo>] a agenda das falhas injetadas, que M4 e M5 medem
139
+ [--limiares <arquivo>] os limiares do dono; o que faltar fica com a proposta, marcada
140
+ [--publicar <arquivo>] grava a versão publicável, sem dado pessoal
141
+
142
+ claims add <thread-id> <arquivo> --claim "<alegacao>" [--verificar "<comando>"] [--fase F]
143
+ Registra alegacao verificavel da thread
144
+ claims list <thread-id> Claims da thread e o estado de cada uma
145
+ claims conferir <thread-id> --claims C1,C2|--tarefa T1 [--prazo S] [--json]
146
+ Reexecuta so essas claims, ou o verify da tarefa do plano, no
147
+ sandbox do verify, sem gravar recibo (RM-059); sai 3 se outra
148
+ sessao conduz e 2 sem sandbox
149
+ decisao registrar <thread-id> --decidido D --porque P --como-mudar C --custo-agora A --custo-depois B
150
+ --criterio manifesto:CHAVE|ledger:REF|medicao:COMANDO --quem Q --evidencia E [--razao R] [--reverte ID]
151
+ Decisao tomada sem perguntar: chega ao dono no resumo
152
+ decisao placar <thread-id> [--json] Decididas contra perguntas por fase, reversoes e o limiar
153
+ claims verificar <thread-id> <claim-id> --comando "<comando>"
154
+ Anexa o comando que comprova uma claim ja feita
155
+ claims retirar <thread-id> <claim-id> --motivo "<motivo>"
156
+ Retira a alegacao (o historico fica no claims.jsonl)
157
+ claims ausente <thread-id> --paths A,B --motivo "<motivo>" [--commit SHA]
158
+ Ciclo sem CHECK: declara no ledger o que ficou sem prova
159
+ verify <thread-id> [--baseline] Reexecuta claims e verify do manifesto no HEAD real
160
+ [--so-claims] --baseline grava o estado do mundo antes do GO
161
+ [--canal C] [--esperar [min]] So executa com a conducao da thread (sai 3 se outra conduz)
162
+ ci prepare <thread-id> Exporta claims/comandos para a candidata (.ork-ci/<thread>.json)
163
+ ci run [<thread-id>] [--bundle ARQ] Executa o CHECK no runner independente
164
+ [--branch B] acha o bundle da thread pelo nome da branch (o CI usa)
165
+ ci status [--sha SHA] [--remoto origin] Consulta o check exato publicado no GitHub
166
+ privado varrer [--base REF] [--json] Dado privado (home, e-mail fora da lista, hostname de maquina e a lista
167
+ local fora do git) nas linhas e nomes versionados; --base: so o diff (RM-062)
168
+
169
+ gate next <thread-id> [--proximo FASE] Gate de tokens: mesma sessao ou nova sessao
170
+ [--ocupacao 0..1] [--fonte F] [--transcript ARQ] [--janela N] [--refazer]
171
+ gate request <thread-id> [--motivo M] Apresenta pedido HITL correlacionado à pausa
172
+ [--formato telegram|terminal] no contrato curto, com o codigo estavel para responder
173
+ gate answer <thread-id> <pedido> Recebe envelope do ingresso humano autenticado
174
+ --resposta-stdin --por Q --mensagem ID --origem telegram [--canal hermes|openclaw]
175
+ [--conta ID] conta homologada do canal; obrigatoria no canal openclaw
176
+ gate approve Aposentado: aprovação sem pedido é recusada
177
+
178
+ retry policy [--motivo M] [--json] Politica de retry por motivo tipado de gate
179
+ retry plan <thread-id> [--motivo M] O que o ork faria pelo ultimo gate reprovado
180
+ [--fase F] [--json] (calcula, nao executa, nao gasta tentativa)
181
+ retry run <thread-id> [--reverify] Executa a acao tipada do ultimo gate reprovado
182
+ [--por Q] [--dry-run] (--por autoriza quando o bloco do modo pausa)
183
+ retry list [--json] Fila DURAVEL de rate limit do projeto
184
+ retry resume [--id R1] [--agora ISO] Retoma a fase morta por rate limit na janela seguinte
185
+ [--ocupacao 0..1] [--forcar] [--dry-run] (playbooks: mesma-sessao, nova-sessao, escalada)
186
+ retry cancel <id> --motivo M Tira um pedido da fila, com motivo registrado
187
+ retry parse --stderr "<texto>" Le o horario de reset do stderr do adapter
188
+
189
+ fix open <thread-id> [--so-claims] GO-FIX: deriva a spec exata do CHECK reprovado
190
+ [--reverify] [--json] (uma correcao por motivo tipado, tipo A ou B)
191
+ fix list <thread-id> [--rodada N] Correcoes da rodada e o veredito de cada uma
192
+ fix reverify <thread-id> [--rodada N] CHECK-REVERIFY com veredito POR correcao
193
+ [--parcial] [--json] (--parcial e RECUSADO se houver tipo B)
194
+
195
+ handoff export <thread-id> Handoff triado CRITICO/IMPORTANTE/RESUMIVEL
196
+ [--proxima-fase FASE] [--slug S]
197
+ handoff recall <thread-id> <ponteiro> Resolve um ponteiro path#ancora de volta ao conteudo
198
+
199
+ recall <thread-id> --fase FASE Recuperacao TARDIA: resolve so os ponteiros do
200
+ [--id ptr-N] [--todos] [--forcar] momento (retrieve_when), nunca a janela inteira
201
+ [--sem-conteudo] [--json] (orkmind por tag, files por path#ancora)
202
+
203
+ brain status|inventory|get|query|receipts|context|dossie|sync|reconcile|apply|rollback|bind
204
+ brain dossie --thread T [--decisao ID] Dossie de decisao: vinculo, contexto citavel, alternativas,
205
+ quem decidiu e evidencia, com os ids do Brain (so leitura)
206
+ conhecimento listar [--colecao C] [--json] Documentos validos da pasta conhecimento.dir (RM-026 K7), com versao e lacunas
207
+ conhecimento mostrar <doc-id> [--json] O documento com corpo, versao, fonte e referencias conferidas (Brain por get)
208
+ conhecimento colecoes [--json] As colecoes e os documentos de cada uma
209
+ conhecimento verificar [--json] Confere a pasta inteira, ids do Brain por get; sai != 0 com lacuna
210
+ memory status [--json] [--sondar] Regime efetivo (files|orkmind), tenant, degradacao e embeddings
211
+ (--sondar: uma chamada real de embedding, com a latencia)
212
+ memory sync [<thread-id>] [--json] Publica decisoes, policies, handoff, licao e roadmap
213
+ memory inventory --escopo <threads> [--json] Inventaria fontes canonicas e tenants excluidos, sem gravar
214
+ memory migrate --operadora <thread> --escopo <threads> [--dry-run] [--json] Migra handoffs por G3, com pacote integral e readback
215
+ memory search --tags '<json>' [--colecao C] Busca deterministica por tag (mandatory sempre volta)
216
+ [--thread ID] [--restrito] [--janela N] [--limite N] [--json]
217
+ memory search --texto "<frase>" Busca por significado (I-38): vetor + FTS por RRF no tenant,
218
+ [--modo hibrido|vetor|fts] NAO deterministica; nao combina com --tags nem --thread
219
+ [--colecao C] [--limite N] [--json]
220
+ memory index [--modelo primario|fallback|todos] Indice vetorial local do tenant (I-38), idempotente,
221
+ [--dry-run] [--json] com tokens e custo estimados; --dry-run nao chama o provider
222
+
223
+ grafo indexar [--verificar] [--forcar] Indice do grafo de codigo do HEAD limpo (RM-031 KG3) no estado do projeto:
224
+ [--json] pastas 0700, chave por revisao e extrator, idempotente; incremental (KG4)
225
+ a partir do indice ancestral, ou completo com o motivo; --forcar extrai
226
+ completo; --verificar confere contrato, bytes, determinismo e o incremental
227
+ contra a completa; precisa de typescript e micromark
228
+ grafo status [--json] Indices guardados, o do HEAD, os analisadores e o tamanho
229
+ grafo contexto <thread> [--json] Pacote da thread com evidencias e medida em bytes [--teto-bytes N]
230
+ grafo vizinhos <no> [--profundidade N] Vizinhanca de arquivo ou simbolo, com extrator e evidencia de cada aresta
231
+ [--sentido entrada|saida|ambos] [--tipo T,...] [--limite N] [--json]
232
+ grafo chamadores <simbolo> Quem chama (arestas calls que chegam) [--profundidade N] [--limite N] [--json]
233
+ grafo importadores <arquivo|simbolo> Quem importa (arestas imports que chegam) [--profundidade N] [--limite N] [--json]
234
+ grafo caminho <de> <para> Menor caminho pelas arestas [--sentido saida|entrada|ambos] [--tipo T,...] [--json]
235
+ [--json --teto-bytes N] Nas quatro consultas (KG5): JSON compacto de no maximo N bytes; as arestas mais
236
+ longe do alvo saem ate caber, e o caminho que nao cabe recusa
237
+ grafo amostra [--por-estrato N] Amostra de arestas para auditoria manual; --conferir ARQ confere a auditada
238
+ grafo limpar [--tudo] [--json] Apaga os indices que nao sao do HEAD e as sobras com mais de uma hora
239
+
240
+ security-scan [--base <ref>] [--json] Varredura de seguranca do HEAD contra a base: relatorio por SHA em
241
+ .orkastery/security-scan/<sha>/; sai 1 com achado novo no laco
242
+ ship <thread-id> --para <branch> Merge --no-ff serializado por lease e push PROVADO
243
+ ship registrar-pr <thread-id>|--todas A entrega feita por PR vira ship_done: merge ship(<thread>) na base
244
+ [--remoto R] [--json] remota e CI verde no head do PR; depois, ork master <thread> --aceitar-omissao
245
+ [--repo <dono/nome> --pr <n>] PR mesclado em repositorio externo de ci.external_repositories
246
+ [--dry-run] Ensaio: as mesmas conferencias, sem gravar ship_done, fase nem fabrica
247
+ [--de <branch>] [--remoto origin] [--autorizar-push <quem>] [--allow-unscanned <quem>] [--sem-push] [--dry-run]
248
+ ship publicar <thread-id> Publica a branch e abre o PR com prova (ls-remote), so em #Auto e #Maestro
249
+ [--dry-run] [--remoto R] [--json] Ensaio confere tudo sem publicar; repetido, nao abre outro PR
250
+ ship pista [<thread-id>] [--json] Etapas da entrega, do CHECK ao ship_done, e o proximo passo do nucleo
251
+
252
+ board [--all] [--sem-remoto] Visao unica das threads (todos os perfis com --all); com a
253
+ fabrica compartilhada, tambem as outras maquinas (I-51)
254
+ board plan Escalonador: quem avanca agora, quem espera e por que
255
+
256
+ orquestracao status [--all] [--json] Monitor PROATIVO de pausas e impedimentos: quem esta
257
+ [--atencao N] [--so-paradas] parado, esperando o que, ha quanto tempo e o que
258
+ [--sem-runtime] [--exigir-limpo] destrava (alias curto: ork monitor)
259
+
260
+ worktree ensure <thread-id> Garante a worktree da thread (base resolvida pelo ork)
261
+ worktree sync <thread-id> [--dry-run] Rebasa a branch da thread quando a base avancou
262
+ worktree audit <thread-id> Confere a worktree no proprio git (sai != 0 se divergir)
263
+ worktree release <thread-id> [--forcar] Remove a worktree e limpa o registro
264
+
265
+ activation plan|status|enable|disable Escrita escopada com aceite, hash, leases e recibo
266
+ lease list Leases, familias e as filas (merge e colisao de regiao)
267
+ lease acquire <nome> --thread T --motivo M Toma um lease tipado (entra na fila se colidir)
268
+ lease release <nome> [--thread T] [--forcar]
269
+ conducao status <thread-id> [--json] Quem conduz a thread agora (canal, sessao, fase, desde)
270
+ conducao assumir <thread-id> --por Q --motivo M
271
+ Handoff: encerra a conducao atual pelo runtime e registra quem assumiu
272
+ conducao sentinela status|bater|desligar [--sessao S] [--json]
273
+ Sentinela do Condutor: presenca nesta maquina e o passo de cada thread
274
+ conducao autorizar --ate D --pode A[,B] [--por Q] [--nota N]
275
+ Grava a autorizacao duravel do dono nesta maquina (fora do git)
276
+ conducao autorizacao [--json] A autorizacao duravel vigente nesta maquina, ou por que ela nao vale
277
+ conducao batida [--entregar] [--json] Avanca as threads dentro da autorizacao: merge, registro, MASTER, despacho
278
+ conducao atualizar <thread-id> [--enviar] Merge da base na branch da thread, com o CHANGELOG reconciliado
279
+
280
+ master propor <id> --score N --justificativa J --por <agente>
281
+ master batch --aceitar <thread:assinatura,...> --por <humano>
282
+ master migrar --dry-run --por Q Inspeciona correções sem alterar originais
283
+ master digest <enviar|preview|responder> Digest semanal com recibos do host
284
+ master <thread-id> --score 0-5 --justificativa "<texto>" --por <seu-nome>
285
+ [--classe C[,C]] [--resumo R] [--refazer]
286
+ Fecha a thread: POSTMORTEM + MASTER log + score (so do terminal;
287
+ de processo de host e recusado com master.prova-de-canal)
288
+ master pedir <thread-id> [--formato telegram|terminal|json]
289
+ Pede a nota ao dono com codigo curto; ele responde pelo Telegram
290
+ (<codigo> <0 a 5> <porque>) e a nota vai ao ledger com o recibo (RM-048)
291
+ master [--todas] [--json] As entregas, com o indice derivado do ledger
292
+ master <thread-id> --aceitar-omissao Aceita por omissao SO a entrega desta thread, com registro (ou --thread T)
293
+ [--dry-run] [--json] --dry-run lista o que seria fechado, sem gravar
294
+ master --aceitar-omissao [--dry-run] [--json]
295
+ Aceita TODAS as entregues por omissao, listando cada uma
296
+ (de processo de agente com mais de uma, avisa em stderr)
297
+ master classes As classes de falha fixas do POSTMORTEM
298
+ licoes [--json] O que volta no GOAL e no PLAN da proxima thread (POSTMORTEM e
299
+ MASTER) e as propostas de policy por recorrencia (I-55)
300
+
301
+ demo [--manter] [--dir D] A promessa em 30 s: uma afirmacao falsa reprovada e a corrigida aceita,
302
+ offline, num repositorio temporario (I-56)
303
+ ciclos Variantes de ciclo de "ork thread new --ciclo"
304
+ modos --do-pedido "<texto>" [--json] Le a #TAG do pedido do builder (usado pelos adaptadores)
305
+ modos migrar [--dry-run] [--por Q] Tira modo aposentado do orkastery.yaml e do setup.json
306
+ [--json] (idempotente, com backup; nao toca em historico)
307
+
308
+ prompt list Templates de prompt (embutidos e os do projeto)
309
+ prompt lint [--template ID] Reprova template quebrado antes de ele virar despacho
310
+ prompt render <thread-id> --fase F Mostra o prompt exato, com o sha256 que vai ao ledger
311
+ [--pedido "<texto>"] [--template ID] sem --pedido, o guardado na criacao da thread (RM-059)
312
+ prompt render --exemplo --fase F --modo M Renderiza sem thread nenhuma, para revisar o texto
313
+
314
+ roadmap status [--json] Status report unico do roadmap: grupos com icones, #HITL no que espera
315
+ voce e o fecho com o que precisa de voce e o que vem a seguir (RM-048)
316
+ roadmap reservas [--json] [--remoto R] Quem esta com cada item do roadmap, lido da branch ork/roadmap-reservas
317
+ [--soltar-orfas] marca a reserva de thread ja fechada (orfa) e, com a opcao, solta
318
+ ou passa para outra thread aberta do mesmo item, com registro
319
+ roadmap pegar <RM-NNN> [--thread T] Reserva o item para esta maquina (push atomico: o primeiro vence)
320
+ [--nota N] [--por Q] [--maquina M] maquina = --maquina, ORK_MAQUINA ou o hostname
321
+ [--forcar --motivo M] tomar a reserva de outra maquina fica registrado
322
+ roadmap soltar <RM-NNN> [--forcar --motivo M] Devolve o item
323
+ roadmap feat [--thread T] [--nota N] Reserva o proximo numero de FEAT na mesma branch (push atomico: duas
324
+ maquinas nunca levam o mesmo numero; numero reservado nao volta)
325
+ fabrica [--json] [--sem-remoto] O que cada maquina conduz, lido da branch ork/fabrica-estado (I-51)
326
+ fabrica entrar [--maquina NOME] Esta maquina entra na fabrica compartilhada deste usuario, com
327
+ este nome (~/.orkastery/maquina.json), e publica o primeiro retrato
328
+ fabrica publicar [--forcar] [--json] Grava o retrato desta maquina na branch (push atomico, sem forca);
329
+ depois de entrar, sai sozinho ao criar thread, despachar fase,
330
+ entregar e fechar, e a cada batida do pulse
331
+ fabrica sair Para de publicar daqui e tira o retrato desta maquina da branch
332
+ fabrica batida [status|instalar|remover] A batida da varredura do pulse no crontab desta maquina (RM-063): instalar
333
+ [--por Q] [--json] poe a linha do monitor/pulse.cron (idempotente), remover tira so ela;
334
+ status diz a linha e a ultima rodada do hitl.log
335
+ network status [--json] [--sem-remoto] A Orkastery Network desta pessoa: as maquinas, de qualquer diretorio,
336
+ com a fonte, as lacunas e o que nao foi lido (RM-053)
337
+ network entrar [--maquina NOME] Esta maquina entra na rede: repositorio privado <usuario>/orkastery-network
338
+ [--forja github|gitlab] [--repositorio [DONO/]NOME] na forja (criado se falta) e o primeiro retrato;
339
+ [--forcar] --forcar toma um nome que outra instalacao usa (fica no commit)
340
+ network publicar [--forcar] [--json] Grava o retrato desta maquina na casa da rede (push sem forca); depois de
341
+ entrar, sai sozinho na batida do pulse e nos eventos de thread
342
+ network sair Para de publicar daqui e tira o retrato desta maquina da casa
343
+ network roadmap [--projeto P] [--json] Roadmap, reservas e threads de cada maquina de cada projeto, de qualquer diretorio:
344
+ [--sem-remoto] fonte e hora de cada parte, lacuna tipada no que nao leu. P = caminho do clone,
345
+ github:dono/repo, gitlab:grupo/repo ou nome conhecido; sem clone, le a forja (RM-054)
346
+ docs verificar [--json] [--pr] Documentacao de produto e roadmap contra o codigo e o git; no PR (--pr),
347
+ o merge de outra thread e o indice que divergem da main so avisam
348
+ (padrao do dono: frontmatter, leitura, paridade; sai != 0 com erro)
349
+ docs sincronizar [--escrever] Fatos do ledger e do git para o roadmap (merge, fase) e indices;
350
+ sem --escrever so mostra; nunca muda status por passagem de tempo
351
+ [--so RM-NNN[,RM-MMM]] [--todos] so esses itens (e os indices); na worktree de uma thread com item,
352
+ o padrao e o item dela; --todos volta a todo item (RM-037)
353
+ docs init Cria padroes, modelos, indices e o lint de Markdown no projeto
354
+
355
+ mcp serve --project RAIZ --host HOST Servidor MCP stdio deste projeto (codex|claude-code)
356
+ mcp install --project RAIZ --host HOST Prepara MCP; aceita --dry-run, --ship-transport, --child-permissions e --owner-permissions (Codex)
357
+
358
+ adapter list Adaptadores de host (Camada 1) e o destino de cada um
359
+ adapter show <host> Os 3 pitfalls de instalacao do host
360
+ adapter install <host> [--dir D] Instala o adaptador (claude-code|codex|hermes|openclaw)
361
+ [--dry-run] [--force] divergencia segura resolve sozinha; o resto pergunta
362
+ [--aceitar-catalogo <arquivo>] sobrescreve a copia com o catalogo, arquivo a arquivo
363
+ [--manter-copia <arquivo>] deixa a copia como esta, arquivo a arquivo
364
+
365
+ eval [--skill S] [--canario C] Canarios de comportamento + corpus das skills finas
366
+ [--so-canarios] [--so-skills] [--json] (sai != 0 em qualquer falha)
367
+
368
+ audit packs [--estagio E] [--pack P] Os 7 packs, o estagio que os ativa e a postura
369
+ audit run <pack> [--profile P] Monta o prompt do pack e despacha pelo runtime adapter
370
+ [--since Nd] [--tudo] [--effort E] [--model M] [--agora "<quem>"] [--forcar] [--dry-run]
371
+ audit list Rodadas de auditoria do projeto
372
+ audit show <rodada> [--ledger] Contexto, achados e propostas de uma rodada
373
+ audit prompt <pack> [--since Nd] O prompt exato do pack, com o sha256 que vai ao ledger
374
+ audit lint Reprova template de auditoria quebrado (auditors/)
375
+ audit ingest <rodada> --arquivo J Registra em lote os achados que o auditor escreveu
376
+ audit finding add <rodada> --regra R Registra um achado com evidencia, claim e proposta
377
+ --titulo T --arquivo caminho:linha --impacto I --fix F --estimativa E
378
+ [--severidade critico|maior|menor] [--irreversivel "<passo>"] [--verificar "<comando>"]
379
+ audit verify <rodada> Reexecuta as claims dos achados (auditor sem self-report)
380
+ audit report <rodada> [--publicar] Relatorio com o bloco OBRIGATORIO de propostas
381
+ audit divida [--pack P] [--todos] Board de divida: propostas abertas e recorrencia
382
+ audit surface [<dir>] [--regra SPn] Varredura DETERMINISTICA da superficie de ataque de rede
383
+ [--limite N] [--json] (SP8..SP12; sai != 0 quando ha achado)
384
+ audit surface --registrar <rodada> Grava os achados da varredura no board da rodada
385
+ audit finding estado <id> <estado> Carimba o achado (aberto|adiado|resolvido|descartado)
386
+
387
+ thread new <nome> --from-finding <ID> Abre a thread a partir de um achado de auditoria
388
+ [--modo M] [--worktree auto] [--sem-worktree] [--dry-run]
389
+ (evidencia, claim e proposta viajam junto; a worktree segue
390
+ worktree.por_thread como no thread new)
391
+
392
+ Regimes de memoria: files (fallback honesto) e orkmind (bloco B6, base propria por tenant
393
+ declarada em memory.database_url_file, arquivo 0600 em ~/.orkastery/segredos/, ou em
394
+ memory.database_url_env pelo NOME da variavel de ambiente; uma fonte so, sem fallback).
395
+ Colecoes gravadas no OrkMind: decision, handoff, rule, learning, roadmap (source=agent,
396
+ nunca mandatory: regra critica so nasce de humano autenticado).
397
+
398
+ Retry tipado (bloco B3): reexecutar, corrigir-dirigido, sincronizar-worktree,
399
+ escalar-esforco, esperar-janela, escalar-humano, sem-retry. Violacao de custo
400
+ (cost.violation) NUNCA recebe retry automatico. O limite de escalacao do manifesto
401
+ (retry.max_tentativas) pausa QUALQUER modo, inclusive #Auto.
402
+
403
+ Monitor de orquestracao (ork orquestracao status / ork monitor): duas naturezas de parada.
404
+ pausa-humana e a parada PREVISTA pelo modo (o bloco fechou e espera veredito, com o
405
+ pausaSobre do bloco dizendo o que o humano decide); impedimento e a nao prevista
406
+ (lease.busy, runtime.rate-limited, concurrency.limite e os demais gates tipados). Tudo e
407
+ DERIVADO de thread.json, ledger.jsonl e das filas em disco: o monitor le, nunca grava.
408
+ --exigir-limpo sai != 0 enquanto houver thread parada, para virar watchdog do orquestrador.
409
+
410
+ Fases: GOAL PLAN GO CHECK SHIP MASTER. Modos: ${v.tags}.
411
+ Familias de lease: main-tree, worktree-write:<thread>, path:<glob>, board:<card>, service:<porta>.
412
+ Ciclos: greenfield, merge-branch, goal-plan, gap, feature-xl-faseada.
413
+ Fontes de medida do gate de tokens: runtime_reported, estimated, informada, unavailable.
414
+ Hosts de Camada 1: claude-code, codex, hermes, openclaw. Canarios: fx-happy, fx-hallucination,
415
+ fx-stale-base, fx-wiki-destroy, fx-schema-drift, fx-concurrency.
416
+ Packs de auditoria: clean-code, reuse, architecture, data-model, ux, security-privacy, process.
417
+ Superficie de ataque de rede (SP8..SP12, varredura deterministica): rota sem auth, endpoint de
418
+ administracao exposto, rota sem rate limit, CORS permissivo, rota sem esquema de payload.
419
+ Estagios do produto: nascente, crescendo, maduro (hardening gradual, visao secao 5.2).
420
+ `,
421
+ };
422
+ exports.AJUDA_EN = {
423
+ comandoDesconhecido: (comando) => `unknown command: ${comando}`,
424
+ texto: (v) => `ork ${v.versao}, the Orkastery orchestration core
425
+
426
+ Usage: ork [--projeto <name|path>] <command> [arguments]
427
+
428
+ --projeto <name|path> Target project of any command (RM-052): overrides ORK_PROJETO, which overrides
429
+ the current directory; an ambiguous or unknown name lists the candidates (exit 4)
430
+ projetos [--json] Projects known on this machine (~/.orkastery/projetos.json)
431
+ projetos registrar [path] Registers this checkout (init, thread new and fabrica entrar already do)
432
+ projetos esquecer <name|path> Removes a checkout that vanished or is no longer needed from the registry (nothing on disk is deleted)
433
+
434
+ doctor What holds on this machine now (exits != 0 when blocked)
435
+ init [--force] [--name N] [--abbrev A] Generates the repository orkastery.yaml
436
+ modos Table of the ${v.modos} live conduction modes by #TAG
437
+
438
+ setup Agenda of the #setup interview: runtime/model/effort
439
+ per block of each mode (default claude-bg/opus/high; #Fast: sonnet)
440
+ onboarding [show|set <step>|reset [step]] Project agenda and answers (9 steps)
441
+ [--conteudo JSON] [--por Q] [--json] Secrets live ${v.segredos}
442
+ [--reset [step]] Selective or full reset, idempotent
443
+ onboarding sync [--json] Optional publication to memory, with degradation
444
+ experiencia show [--json] Effective preferences; configure with onboarding set maestro --conteudo '{"owner":{"experience":true}}'
445
+ experiencia uninstall <host> [--dry-run] [--json]
446
+ Removes the Claude Code/Codex block; without --dry-run it applies the removal
447
+ setup <mode> Current config of each block of the mode
448
+ setup <mode> --bloco N [--runtime R] Edits the block (runtimes: claude-bg, codex);
449
+ [--model M] [--effort E] [--por Q] setup_configured event in the project ledger
450
+ [--fallback R:M[:E],...] runtime fallback order of the block (I-33)
451
+ accounts list [--json] Account profiles per runtime, without secrets (I-33)
452
+ accounts add <id> --runtime R --dir D Creates the profile and runs the CLI's own login with the profile
453
+ [--sem-login] env (never copies a credential)
454
+ accounts remove <id> Deactivates the profile (directory and login stay where they are)
455
+ accounts check [<id>] Checks the login of each profile and marks the store
456
+ accounts esgotamentos [--desde 7d] [--json]
457
+ Dispatches on an account that another project on this machine saw exhausted
458
+ (RM-040), read only: opaque account, profile by id, no directory
459
+ setup [<mode>] --reset Resets the mode (or everything) to the default
460
+ setup sandbox [confirmar <posture>|revogar] This machine's sandbox posture (RM-047): a runtime.sandbox that loosens the sandbox
461
+ (danger-full-access) only dispatches after a local confirmation, kept out of git
462
+ setup worktree [confirmar [<dir>]|revogar] This machine's worktree folder (RM-047): a worktree.dir outside the root
463
+ only creates checkouts after a local confirmation, kept out of git
464
+ setup versionar Moves the setup in force to orkastery.setup.json: through a PR, it holds on
465
+ every machine and becomes the edited file (I-52)
466
+
467
+ thread new <name> --modo <MODE> Creates the thread, the 3-part slug and the ledger
468
+ [--exige-runtime-diferente] the CHECK needs a runtime the GO did not use
469
+ [--done "<criterion> :: <command>"] EXECUTABLE done criterion (use ;; for several)
470
+ [--slug S] [--assunto A] [--worktree auto|DIR] [--dry-run]
471
+ [--sem-worktree] creates without a worktree (on the base branch, ship blocks the delivery with
472
+ push_direto_na_base: block, the ork init default); with
473
+ worktree.por_thread: true, the worktree is created without a flag
474
+ [--roadmap RM-NNN] reserves the roadmap item before creating (I-47)
475
+ [--pedido "<text>"] saves the builder request (pedido.md, with sha256):
476
+ prompt render uses it when --pedido is missing (RM-059)
477
+ thread list [--todas] [--json] Project threads that are NOT closed (--todas includes the closed ones)
478
+ thread close <id> --motivo orfa|engano|superada --por Q --justificativa J
479
+ thread entrega <id> --arquivo A --sha256 H --por Q
480
+ thread status <thread-id> [--json] Thread state, crossed with the runtime
481
+
482
+ portfolio inspect <id> --json Entity, origin and cycles with explicit gaps
483
+ creation start --input-file F --json Durable creation with the identity of the local process
484
+ creation show|list|events [id] --json Queries the journal and the recovery
485
+ creation resume|compensate <id> --expected-version N --json
486
+ portfolio create <product|project|initiative> <id> --title T [--parent ID]
487
+ portfolio list [product|project|initiative] [--parent ID] [--json]
488
+ portfolio show <id> [--json] Catalog prod -> proj -> init
489
+ objective ... Retired in I-43: its two parts became
490
+ --exige-runtime-diferente and the thread --done
491
+
492
+ phase run <thread-id> <PHASE> --prompt "<text>"
493
+ [--runtime R] [--model M] Dispatches the phase as a background agent
494
+ [--effort E] [--dry-run] (runtime: CLI > block setup > manifest;
495
+ only --model implies --effort high; the effective
496
+ trio goes to the ledger as a verifiable fact)
497
+ [--canal C] [--correlacao ID] Source channel (without it, what the host declares)
498
+ [--esperar [min]] If the thread is already being conducted, waits its turn (without it: refuses at once)
499
+ [--perfil ID] Dispatch account (ork accounts list); a profile that is missing, belongs to another
500
+ runtime, is exhausted or is not signed in is refused with a typed reason
501
+ phase list <thread-id> Thread ledger history
502
+ (shows the real model/effort of each phase)
503
+ ledger stats --desde 7d [--ate ISO] Ledger economic telemetry (half-open interval: start included, end excluded)
504
+ [--thread T] [--modo M] [--runtime R] [--json]
505
+ ledger estimate <thread-id> --sem-ia H --ia-sem-ork H --por Q --metodo M --premissas P
506
+ [--incerteza I] Records explicit estimates of the PLAN phase
507
+
508
+ sessions [--all] [--global] [--json] Claude and Codex inventory of the process account and of each profile
509
+ [--exigir-limpo] Exits != 0 with an invalid source or a session without a thread
510
+ sessions adopt <id> [--json] Adopts a real identity without running a prompt
511
+ sessions event --tipo T --sessao ID Ingests bounded JSON on stdin; observes without approving gates
512
+ sessions watch --thread T [--sessao ID] Watches only the selected session; --once does a single scan
513
+ sessions limpar-fantasmas [--dry-run] Releases from ork (sessao_morta in the ledger) the session with no pid and no process;
514
+ [--json] never touches the runtime (RM-056)
515
+ sessions logs <session> [--linhas N] Logs of a session
516
+ sessions supersede <thread> <UUID> --fase F --runtime R Confirms that a superseded session ended
517
+ sessions request <thread> <UUID> --fase F --runtime R --pergunta P Opens a request bound to the native prompt
518
+ sessions answer <thread> <request> --stdin --origem telegram --canal C --por ID --mensagem REF [--conta ID] Confirms an authenticated delivery
519
+ sessions reconcile <thread> <request> Closes a pending send with only thread and request; checks the receipt, never resends
520
+ sessions stop <session> Stops a session
521
+ sessions attach <session> Prints the attach command (needs a TTY)
522
+ pulse [--json] [--registrar] Unified queue of human attention and retry of orphans
523
+ pulse responder --resposta-stdin --origem telegram --canal C --por ID --mensagem REF [--conta ID]
524
+ Receives what the owner typed in the summary channel (P4EJ a, 1a 2c)
525
+ [--em-resposta-a <code>:<id>] the question code and the id of the replied message (reply)
526
+ [--em-resposta-a outra] the bare word in reply to another message: refused, with the reason
527
+ pulse cadencia [<tag>] [--por P] [--json] Shows or changes the summary cadence: OrkPulseOn, OrkPulseOn-15m,
528
+ -30m, -60m or OrkPulseOff; a new question goes out at once (I-50)
529
+ sessions hitl [--json] [--so-paradas] Radar of sessions that need human action NOW:
530
+ [--atencao N] [--sem-logs] classifies the state of each runtime session,
531
+ [--so-da-raiz] [--exigir-limpo] reads the question the session is stuck on and says what
532
+ unblocks it (catches HITL of sessions WITHOUT a thread)
533
+ noctum propor --arquivo <envelope.json> Proposes the envelope of a #Noctum arc (RM-058) and asks the owner, with a short
534
+ code and choices, also on the owner's channel; it authorizes nothing
535
+ noctum revogar <arc> [--json] Asks the owner whether to revoke the arc (RM-057); the owner's answer revokes,
536
+ on Telegram or through the host dialog
537
+ noctum responder <arc> --resposta-stdin --origem telegram --canal C --por ID --mensagem REF [--conta ID]
538
+ Receives the authorization or revocation signed by the gateway
539
+ noctum terminal --hook-stdin The terminal ingress (RM-057), turned off: the UserPromptSubmit hook delivers
540
+ what the owner typed, and the core only says where to answer; nothing is recorded
541
+ noctum status [<arc>] [--json] Arc snapshot: situation, measured usage, queue, closing and gaps
542
+ noctum tique <arc> [--json] Closing, watcher and report of the arc, in that order (the owner cron calls it);
543
+ the watcher reconciles and, with no live conductor, takes the dispatch and delivery step
544
+ noctum relatorio <arc> [--json] The morning report in the terminal (receipt only in an interactive terminal)
545
+ [--reenviar telegram|openclaw] resends the pages without a receipt, even an uncertain one
546
+ noctum conduzir <arc> [--json] The arc conductor, which the pilot cron relaunches: exits 0 with the arc ended
547
+ or stopped, 2 on refusal, 3 with another live conductor, 4 with the generation lost
548
+ noctum aceite <arc> [--json] The pilot acceptance: measures M1 to M10, the criteria and the verdict; exits 0
549
+ only when approved, and simulated evidence (the rehearsal) never approves
550
+ [--injecoes <file>] the schedule of injected failures, which M4 and M5 measure
551
+ [--limiares <file>] the owner's thresholds; what is missing stays with the proposal, marked
552
+ [--publicar <file>] writes the publishable version, without personal data
553
+
554
+ claims add <thread-id> <file> --claim "<claim>" [--verificar "<command>"] [--fase F]
555
+ Records a verifiable claim of the thread
556
+ claims list <thread-id> Claims of the thread and the state of each one
557
+ claims conferir <thread-id> --claims C1,C2|--tarefa T1 [--prazo S] [--json]
558
+ Reruns only those claims, or the verify of the plan task, in the
559
+ verify sandbox, without writing a receipt (RM-059); exits 3 if another
560
+ session is conducting and 2 without a sandbox
561
+ decisao registrar <thread-id> --decidido D --porque P --como-mudar C --custo-agora A --custo-depois B
562
+ --criterio manifesto:KEY|ledger:REF|medicao:COMMAND --quem Q --evidencia E [--razao R] [--reverte ID]
563
+ Decision taken without asking: reaches the owner in the summary
564
+ decisao placar <thread-id> [--json] Decided versus asked per phase, reversals and the threshold
565
+ claims verificar <thread-id> <claim-id> --comando "<command>"
566
+ Attaches the command that proves a claim already made
567
+ claims retirar <thread-id> <claim-id> --motivo "<reason>"
568
+ Withdraws the claim (the history stays in claims.jsonl)
569
+ claims ausente <thread-id> --paths A,B --motivo "<reason>" [--commit SHA]
570
+ Cycle without CHECK: declares in the ledger what was left without proof
571
+ verify <thread-id> [--baseline] Re-runs the claims and the manifest verify on the real HEAD
572
+ [--so-claims] --baseline records the state of the world before GO
573
+ [--canal C] [--esperar [min]] Only runs while conducting the thread (exits 3 if another one conducts)
574
+ ci prepare <thread-id> Exports claims/commands to the candidate (.ork-ci/<thread>.json)
575
+ ci run [<thread-id>] [--bundle FILE] Runs the CHECK on the independent runner
576
+ [--branch B] finds the thread bundle by the branch name (the CI uses it)
577
+ ci status [--sha SHA] [--remoto origin] Queries the exact check published on GitHub
578
+ privado varrer [--base REF] [--json] Private data (home, e-mail off the allow list, machine hostname and the local
579
+ list outside git) in versioned lines and names; --base: only the diff (RM-062)
580
+
581
+ gate next <thread-id> [--proximo PHASE] Token gate: same session or new session
582
+ [--ocupacao 0..1] [--fonte F] [--transcript FILE] [--janela N] [--refazer]
583
+ gate request <thread-id> [--motivo M] Presents the HITL request correlated to the pause
584
+ [--formato telegram|terminal] in the short contract, with the stable code to answer
585
+ gate answer <thread-id> <request> Receives the envelope of the authenticated human ingress
586
+ --resposta-stdin --por Q --mensagem ID --origem telegram [--canal hermes|openclaw]
587
+ [--conta ID] approved account of the channel; required on the openclaw channel
588
+ gate approve Retired: approval without a request is refused
589
+
590
+ retry policy [--motivo M] [--json] Retry policy per typed gate reason
591
+ retry plan <thread-id> [--motivo M] What ork would do for the last failed gate
592
+ [--fase F] [--json] (computes, does not run, does not spend an attempt)
593
+ retry run <thread-id> [--reverify] Runs the typed action of the last failed gate
594
+ [--por Q] [--dry-run] (--por authorizes when the mode block pauses)
595
+ retry list [--json] DURABLE rate limit queue of the project
596
+ retry resume [--id R1] [--agora ISO] Resumes the phase killed by a rate limit in the next window
597
+ [--ocupacao 0..1] [--forcar] [--dry-run] (playbooks: mesma-sessao, nova-sessao, escalada)
598
+ retry cancel <id> --motivo M Takes a request out of the queue, with the reason recorded
599
+ retry parse --stderr "<text>" Reads the reset time from the adapter stderr
600
+
601
+ fix open <thread-id> [--so-claims] GO-FIX: derives the exact spec of the failed CHECK
602
+ [--reverify] [--json] (one fix per typed reason, type A or B)
603
+ fix list <thread-id> [--rodada N] Fixes of the round and the verdict of each one
604
+ fix reverify <thread-id> [--rodada N] CHECK-REVERIFY with a verdict PER fix
605
+ [--parcial] [--json] (--parcial is REFUSED if there is a type B)
606
+
607
+ handoff export <thread-id> Handoff triaged CRITICAL/IMPORTANT/RESUMABLE
608
+ [--proxima-fase PHASE] [--slug S]
609
+ handoff recall <thread-id> <pointer> Resolves a path#anchor pointer back to the content
610
+
611
+ recall <thread-id> --fase PHASE LATE recovery: resolves only the pointers of the
612
+ [--id ptr-N] [--todos] [--forcar] moment (retrieve_when), never the whole window
613
+ [--sem-conteudo] [--json] (orkmind by tag, files by path#anchor)
614
+
615
+ brain status|inventory|get|query|receipts|context|dossie|sync|reconcile|apply|rollback|bind
616
+ brain dossie --thread T [--decisao ID] Decision dossier: link, citable context, alternatives,
617
+ who decided and evidence, with the Brain ids (read only)
618
+ conhecimento listar [--colecao C] [--json] Valid documents of the conhecimento.dir folder (RM-026 K7), with version and gaps
619
+ conhecimento mostrar <doc-id> [--json] The document with body, version, source and checked references (Brain by get)
620
+ conhecimento colecoes [--json] The collections and the documents of each one
621
+ conhecimento verificar [--json] Checks the whole folder, Brain ids by get; exits != 0 with a gap
622
+ memory status [--json] [--sondar] Effective regime (files|orkmind), tenant, degradation and embeddings
623
+ (--sondar: one real embedding call, with the latency)
624
+ memory sync [<thread-id>] [--json] Publishes decisions, policies, handoff, lesson and roadmap
625
+ memory inventory --escopo <threads> [--json] Inventories canonical sources and excluded tenants, without writing
626
+ memory migrate --operadora <thread> --escopo <threads> [--dry-run] [--json] Migrates handoffs through G3, with a full package and readback
627
+ memory search --tags '<json>' [--colecao C] Deterministic search by tag (mandatory always comes back)
628
+ [--thread ID] [--restrito] [--janela N] [--limite N] [--json]
629
+ memory search --texto "<phrase>" Search by meaning (I-38): vector + FTS by RRF in the tenant,
630
+ [--modo hibrido|vetor|fts] NOT deterministic; does not combine with --tags or --thread
631
+ [--colecao C] [--limite N] [--json]
632
+ memory index [--modelo primario|fallback|todos] Local vector index of the tenant (I-38), idempotent,
633
+ [--dry-run] [--json] with estimated tokens and cost; --dry-run does not call the provider
634
+
635
+ grafo indexar [--verificar] [--forcar] Code graph index of the clean HEAD (RM-031 KG3) in the project state:
636
+ [--json] folders 0700, key per revision and extractor, idempotent; incremental (KG4)
637
+ from the ancestor index, or full with the reason; --forcar extracts
638
+ in full; --verificar checks contract, bytes, determinism and the incremental
639
+ against the full one; needs typescript and micromark
640
+ grafo status [--json] Stored indexes, the HEAD one, the analyzers and the size
641
+ grafo contexto <thread> [--json] Thread package with evidence and size in bytes [--teto-bytes N]
642
+ grafo vizinhos <node> [--profundidade N] Neighborhood of a file or symbol, with the extractor and evidence of each edge
643
+ [--sentido entrada|saida|ambos] [--tipo T,...] [--limite N] [--json]
644
+ grafo chamadores <symbol> Who calls it (incoming calls edges) [--profundidade N] [--limite N] [--json]
645
+ grafo importadores <file|symbol> Who imports it (incoming imports edges) [--profundidade N] [--limite N] [--json]
646
+ grafo caminho <from> <to> Shortest path along the edges [--sentido saida|entrada|ambos] [--tipo T,...] [--json]
647
+ [--json --teto-bytes N] In the four queries (KG5): compact JSON of at most N bytes; the edges farthest
648
+ from the target go out until it fits, and a path that does not fit refuses
649
+ grafo amostra [--por-estrato N] Sample of edges for manual audit; --conferir FILE checks the audited one
650
+ grafo limpar [--tudo] [--json] Deletes the indexes that are not from HEAD and leftovers older than one hour
651
+
652
+ security-scan [--base <ref>] [--json] Security scan of the HEAD against the base: report by SHA in
653
+ .orkastery/security-scan/<sha>/; exits 1 on a new finding in the loop
654
+ ship <thread-id> --para <branch> Serialized --no-ff merge by lease and PROVEN push
655
+ ship registrar-pr <thread-id>|--todas A delivery made by PR becomes ship_done: ship(<thread>) merge on the remote
656
+ [--remoto R] [--json] base and green CI on the PR head; then, ork master <thread> --aceitar-omissao
657
+ [--repo <owner/name> --pr <n>] PR merged in an external repository of ci.external_repositories
658
+ [--dry-run] Rehearsal: the same checks, without writing ship_done, phase or factory
659
+ [--de <branch>] [--remoto origin] [--autorizar-push <who>] [--allow-unscanned <who>] [--sem-push] [--dry-run]
660
+ ship publicar <thread-id> Publishes the branch and opens the PR with proof (ls-remote), only in #Auto and #Maestro
661
+ [--dry-run] [--remoto R] [--json] The rehearsal checks everything without publishing; repeated, it opens no other PR
662
+ ship pista [<thread-id>] [--json] Delivery steps, from CHECK to ship_done, and the core's next step
663
+
664
+ board [--all] [--sem-remoto] Single view of the threads (all profiles with --all); with the
665
+ shared factory, also the other machines (I-51)
666
+ board plan Scheduler: who moves now, who waits and why
667
+
668
+ orquestracao status [--all] [--json] PROACTIVE monitor of pauses and impediments: who is
669
+ [--atencao N] [--so-paradas] stopped, waiting for what, for how long and what
670
+ [--sem-runtime] [--exigir-limpo] unblocks it (short alias: ork monitor)
671
+
672
+ worktree ensure <thread-id> Ensures the thread worktree (base resolved by ork)
673
+ worktree sync <thread-id> [--dry-run] Rebases the thread branch when the base moved ahead
674
+ worktree audit <thread-id> Checks the worktree in git itself (exits != 0 if it diverges)
675
+ worktree release <thread-id> [--forcar] Removes the worktree and cleans the registry
676
+
677
+ activation plan|status|enable|disable Scoped writing with acceptance, hash, leases and receipt
678
+ lease list Leases, families and the queues (merge and region collision)
679
+ lease acquire <name> --thread T --motivo M Takes a typed lease (joins the queue if it collides)
680
+ lease release <name> [--thread T] [--forcar]
681
+ conducao status <thread-id> [--json] Who conducts the thread now (channel, session, phase, since)
682
+ conducao assumir <thread-id> --por Q --motivo M
683
+ Handoff: ends the current conduction through the runtime and records who took over
684
+ conducao sentinela status|bater|desligar [--sessao S] [--json]
685
+ Conductor Sentinel: presence on this machine and the step of each thread
686
+ conducao autorizar --ate D --pode A[,B] [--por Q] [--nota N]
687
+ Records the owner's durable authorization on this machine (outside git)
688
+ conducao autorizacao [--json] The durable authorization in force on this machine, or why it does not hold
689
+ conducao batida [--entregar] [--json] Moves the threads within the authorization: merge, record, MASTER, dispatch
690
+ conducao atualizar <thread-id> [--enviar] Merges the base into the thread branch, with the CHANGELOG reconciled
691
+
692
+ master propor <id> --score N --justificativa J --por <agent>
693
+ master batch --aceitar <thread:signature,...> --por <human>
694
+ master migrar --dry-run --por Q Inspects fixes without changing the originals
695
+ master digest <enviar|preview|responder> Weekly digest with host receipts
696
+ master <thread-id> --score 0-5 --justificativa "<text>" --por <your-name>
697
+ [--classe C[,C]] [--resumo R] [--refazer]
698
+ Closes the thread: POSTMORTEM + MASTER log + score (terminal only;
699
+ from a host process it is refused with master.prova-de-canal)
700
+ master pedir <thread-id> [--formato telegram|terminal|json]
701
+ Asks the owner for the score with a short code; they answer through Telegram
702
+ (<code> <0 to 5> <why>) and the score goes to the ledger with the receipt (RM-048)
703
+ master [--todas] [--json] The deliveries, with the index derived from the ledger
704
+ master <thread-id> --aceitar-omissao Accepts by default ONLY the delivery of this thread, with a record (or --thread T)
705
+ [--dry-run] [--json] --dry-run lists what would be closed, without writing
706
+ master --aceitar-omissao [--dry-run] [--json]
707
+ Accepts ALL delivered ones by default, listing each one
708
+ (from an agent process with more than one, warns on stderr)
709
+ master classes The fixed failure classes of the POSTMORTEM
710
+ licoes [--json] What comes back in the GOAL and PLAN of the next thread (POSTMORTEM and
711
+ MASTER) and the policy proposals by recurrence (I-55)
712
+
713
+ demo [--manter] [--dir D] The promise in 30 s: a false claim refused and the fixed one accepted,
714
+ offline, in a temporary repository (I-56)
715
+ ciclos Cycle variants of "ork thread new --ciclo"
716
+ modos --do-pedido "<text>" [--json] Reads the #TAG of the builder request (used by the adapters)
717
+ modos migrar [--dry-run] [--por Q] Removes a retired mode from orkastery.yaml and setup.json
718
+ [--json] (idempotent, with a backup; does not touch history)
719
+
720
+ prompt list Prompt templates (built in and the project ones)
721
+ prompt lint [--template ID] Refuses a broken template before it becomes a dispatch
722
+ prompt render <thread-id> --fase F Shows the exact prompt, with the sha256 that goes to the ledger
723
+ [--pedido "<text>"] [--template ID] without --pedido, the one saved when the thread was created (RM-059)
724
+ prompt render --exemplo --fase F --modo M Renders without any thread, to review the text
725
+
726
+ roadmap status [--json] Single roadmap status report: groups with icons, #HITL on what waits for
727
+ you and the closing with what needs you and what comes next (RM-048)
728
+ roadmap reservas [--json] [--remoto R] Who holds each roadmap item, read from the ork/roadmap-reservas branch
729
+ [--soltar-orfas] marks the reservation of a thread already closed (orphan) and, with the option, releases
730
+ it or passes it to another open thread of the same item, with a record
731
+ roadmap pegar <RM-NNN> [--thread T] Reserves the item for this machine (atomic push: the first one wins)
732
+ [--nota N] [--por Q] [--maquina M] machine = --maquina, ORK_MAQUINA or the hostname
733
+ [--forcar --motivo M] taking the reservation of another machine is recorded
734
+ roadmap soltar <RM-NNN> [--forcar --motivo M] Gives the item back
735
+ roadmap feat [--thread T] [--nota N] Reserves the next FEAT number on the same branch (atomic push: two
736
+ machines never take the same number; a reserved number does not come back)
737
+ fabrica [--json] [--sem-remoto] What each machine conducts, read from the ork/fabrica-estado branch (I-51)
738
+ fabrica entrar [--maquina NAME] This machine joins the shared factory of this user, with
739
+ this name (~/.orkastery/maquina.json), and publishes the first snapshot
740
+ fabrica publicar [--forcar] [--json] Writes the snapshot of this machine to the branch (atomic push, without force);
741
+ after joining, it goes out on its own when a thread is created, a phase is dispatched,
742
+ delivered and closed, and at every pulse beat
743
+ fabrica sair Stops publishing from here and removes the snapshot of this machine from the branch
744
+ fabrica batida [status|instalar|remover] The pulse scan beat in this machine's crontab (RM-063): instalar
745
+ [--por Q] [--json] adds the monitor/pulse.cron line (idempotent), remover takes out only it;
746
+ status shows the line and the last run in hitl.log
747
+ network status [--json] [--sem-remoto] This person's Orkastery Network: the machines, from any directory,
748
+ with the source, the gaps and what was not read (RM-053)
749
+ network entrar [--maquina NAME] This machine joins the network: private repository <user>/orkastery-network
750
+ [--forja github|gitlab] [--repositorio [OWNER/]NAME] on the forge (created if missing) and the first snapshot;
751
+ [--forcar] --forcar takes a name that another installation uses (it stays in the commit)
752
+ network publicar [--forcar] [--json] Writes the snapshot of this machine to the network home (push without force); after
753
+ joining, it goes out on its own at the pulse beat and on thread events
754
+ network sair Stops publishing from here and removes the snapshot of this machine from the home
755
+ network roadmap [--projeto P] [--json] Roadmap, reservations and threads of each machine of each project, from any directory:
756
+ [--sem-remoto] source and time of each part, typed gap on what it did not read. P = clone path,
757
+ github:owner/repo, gitlab:group/repo or a known name; without a clone, it reads the forge (RM-054)
758
+ docs verificar [--json] [--pr] Product and roadmap documentation against the code and git; on the PR (--pr),
759
+ the merge of another thread and the index that diverge from main only warn
760
+ (owner standard: frontmatter, reading, parity; exits != 0 with an error)
761
+ docs sincronizar [--escrever] Facts from the ledger and git to the roadmap (merge, phase) and indexes;
762
+ without --escrever it only shows; never changes a status because time passed
763
+ [--so RM-NNN[,RM-MMM]] [--todos] only these items (and the indexes); in the worktree of a thread with an item,
764
+ the default is its item; --todos goes back to every item (RM-037)
765
+ docs init Creates standards, templates, indexes and the Markdown lint in the project
766
+
767
+ mcp serve --project ROOT --host HOST stdio MCP server of this project (codex|claude-code)
768
+ mcp install --project ROOT --host HOST Prepares MCP; accepts --dry-run, --ship-transport, --child-permissions and --owner-permissions (Codex)
769
+
770
+ adapter list Host adapters (Layer 1) and the target of each one
771
+ adapter show <host> The 3 installation pitfalls of the host
772
+ adapter install <host> [--dir D] Installs the adapter (claude-code|codex|hermes|openclaw)
773
+ [--dry-run] [--force] a safe divergence resolves on its own; the rest asks
774
+ [--aceitar-catalogo <file>] overwrites the copy with the catalog, file by file
775
+ [--manter-copia <file>] keeps the copy as it is, file by file
776
+
777
+ eval [--skill S] [--canario C] Behavior canaries + corpus of the thin skills
778
+ [--so-canarios] [--so-skills] [--json] (exits != 0 on any failure)
779
+
780
+ audit packs [--estagio E] [--pack P] The 7 packs, the stage that activates them and the posture
781
+ audit run <pack> [--profile P] Builds the pack prompt and dispatches through the runtime adapter
782
+ [--since Nd] [--tudo] [--effort E] [--model M] [--agora "<who>"] [--forcar] [--dry-run]
783
+ audit list Audit rounds of the project
784
+ audit show <round> [--ledger] Context, findings and proposals of a round
785
+ audit prompt <pack> [--since Nd] The exact pack prompt, with the sha256 that goes to the ledger
786
+ audit lint Refuses a broken audit template (auditors/)
787
+ audit ingest <round> --arquivo J Records in batch the findings the auditor wrote
788
+ audit finding add <round> --regra R Records a finding with evidence, claim and proposal
789
+ --titulo T --arquivo path:line --impacto I --fix F --estimativa E
790
+ [--severidade critico|maior|menor] [--irreversivel "<step>"] [--verificar "<command>"]
791
+ audit verify <round> Re-runs the claims of the findings (auditor without self-report)
792
+ audit report <round> [--publicar] Report with the MANDATORY block of proposals
793
+ audit divida [--pack P] [--todos] Debt board: open proposals and recurrence
794
+ audit surface [<dir>] [--regra SPn] DETERMINISTIC scan of the network attack surface
795
+ [--limite N] [--json] (SP8..SP12; exits != 0 when there is a finding)
796
+ audit surface --registrar <round> Writes the scan findings to the round board
797
+ audit finding estado <id> <state> Stamps the finding (aberto|adiado|resolvido|descartado)
798
+
799
+ thread new <name> --from-finding <ID> Opens the thread from an audit finding
800
+ [--modo M] [--worktree auto] [--sem-worktree] [--dry-run]
801
+ (evidence, claim and proposal travel together; the worktree follows
802
+ worktree.por_thread as in thread new)
803
+
804
+ Memory regimes: files (honest fallback) and orkmind (block B6, own database per tenant
805
+ declared in memory.database_url_file, a 0600 file in ~/.orkastery/segredos/, or in
806
+ memory.database_url_env by the NAME of the environment variable; one source only, without fallback).
807
+ Collections written to OrkMind: decision, handoff, rule, learning, roadmap (source=agent,
808
+ never mandatory: a critical rule is only born from an authenticated human).
809
+
810
+ Typed retry (block B3): reexecutar, corrigir-dirigido, sincronizar-worktree,
811
+ escalar-esforco, esperar-janela, escalar-humano, sem-retry. A cost violation
812
+ (cost.violation) NEVER gets an automatic retry. The escalation limit of the manifest
813
+ (retry.max_tentativas) pauses ANY mode, #Auto included.
814
+
815
+ Orchestration monitor (ork orquestracao status / ork monitor): two kinds of stop.
816
+ pausa-humana is the stop PLANNED by the mode (the block closed and waits for a verdict, with the
817
+ block pausaSobre saying what the human decides); impedimento is the unplanned one
818
+ (lease.busy, runtime.rate-limited, concurrency.limite and the other typed gates). Everything is
819
+ DERIVED from thread.json, ledger.jsonl and the queues on disk: the monitor reads, never writes.
820
+ --exigir-limpo exits != 0 while there is a stopped thread, so it can be the orchestrator watchdog.
821
+
822
+ Phases: GOAL PLAN GO CHECK SHIP MASTER. Modes: ${v.tags}.
823
+ Lease families: main-tree, worktree-write:<thread>, path:<glob>, board:<card>, service:<port>.
824
+ Cycles: greenfield, merge-branch, goal-plan, gap, feature-xl-faseada.
825
+ Token gate measurement sources: runtime_reported, estimated, informada, unavailable.
826
+ Layer 1 hosts: claude-code, codex, hermes, openclaw. Canaries: fx-happy, fx-hallucination,
827
+ fx-stale-base, fx-wiki-destroy, fx-schema-drift, fx-concurrency.
828
+ Audit packs: clean-code, reuse, architecture, data-model, ux, security-privacy, process.
829
+ Network attack surface (SP8..SP12, deterministic scan): route without auth, exposed admin
830
+ endpoint, route without rate limit, permissive CORS, route without a payload schema.
831
+ Product stages: nascente, crescendo, maduro (gradual hardening, vision section 5.2).
832
+ `,
833
+ };