@invictus-group-ai/orchestra 0.5.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 (466) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSING.md +49 -0
  3. package/README.md +507 -0
  4. package/assets/settings-template.json +99 -0
  5. package/bin/invi.js +6 -0
  6. package/content-dist/LICENSE +95 -0
  7. package/content-dist/PIPELINE.md +823 -0
  8. package/content-dist/README.md +128 -0
  9. package/content-dist/agents/README.md +135 -0
  10. package/content-dist/agents/mapping.json +476 -0
  11. package/content-dist/agents/stacks/backend-django.md +66 -0
  12. package/content-dist/agents/stacks/backend-dotnet.md +72 -0
  13. package/content-dist/agents/stacks/backend-fastapi.md +66 -0
  14. package/content-dist/agents/stacks/backend-laravel.md +66 -0
  15. package/content-dist/agents/stacks/backend-node.md +66 -0
  16. package/content-dist/agents/stacks/backend-spring.md +66 -0
  17. package/content-dist/agents/stacks/desktop-delphi.md +73 -0
  18. package/content-dist/agents/stacks/frontend-angular.md +65 -0
  19. package/content-dist/agents/stacks/frontend-react.md +67 -0
  20. package/content-dist/agents/stacks/frontend-svelte.md +67 -0
  21. package/content-dist/agents/stacks/frontend-vue.md +66 -0
  22. package/content-dist/agents/stacks/mobile-flutter.md +68 -0
  23. package/content-dist/agents/stacks/wordpress.md +66 -0
  24. package/content-dist/agents/universal/invi-qa.md +57 -0
  25. package/content-dist/agents/universal/invi-reviewer.md +61 -0
  26. package/content-dist/agents/universal/invi-security.md +55 -0
  27. package/content-dist/agents/universal/invi-tester.md +55 -0
  28. package/content-dist/agents/universal/invi-ui.md +85 -0
  29. package/content-dist/fragments/base.md +37 -0
  30. package/content-dist/fragments/domain/api-publica-rate-limiting.md +83 -0
  31. package/content-dist/fragments/domain/autenticacao-enterprise.md +86 -0
  32. package/content-dist/fragments/domain/busca-elasticsearch.md +86 -0
  33. package/content-dist/fragments/domain/dashboard-admin-rbac.md +80 -0
  34. package/content-dist/fragments/domain/design-system.md +71 -0
  35. package/content-dist/fragments/domain/ecommerce-completo.md +86 -0
  36. package/content-dist/fragments/domain/filas-jobs.md +80 -0
  37. package/content-dist/fragments/domain/integracao-crm-erp.md +82 -0
  38. package/content-dist/fragments/domain/lgpd.md +84 -0
  39. package/content-dist/fragments/domain/multi-tenancy.md +79 -0
  40. package/content-dist/fragments/domain/notificacoes-multicanal.md +81 -0
  41. package/content-dist/fragments/domain/pagamentos-brasil.md +85 -0
  42. package/content-dist/fragments/domain/plataforma-conteudo.md +77 -0
  43. package/content-dist/fragments/domain/realtime-websockets.md +92 -0
  44. package/content-dist/fragments/domain/relatorios-analytics.md +80 -0
  45. package/content-dist/fragments/domain/saas-stripe-billing.md +79 -0
  46. package/content-dist/fragments/domain/sistema-pagamentos.md +81 -0
  47. package/content-dist/fragments/domain/upload-midia.md +81 -0
  48. package/content-dist/fragments/domain/whatsapp-business.md +82 -0
  49. package/content-dist/fragments/index.json +1670 -0
  50. package/content-dist/fragments/references/angular-ngrx/app-config-and-testing.md +81 -0
  51. package/content-dist/fragments/references/angular-ngrx/store-pattern.md +155 -0
  52. package/content-dist/fragments/references/ansible-server-setup/layout-and-config.md +143 -0
  53. package/content-dist/fragments/references/ansible-server-setup/roles.md +238 -0
  54. package/content-dist/fragments/references/api-publica-rate-limiting/patterns.md +68 -0
  55. package/content-dist/fragments/references/astro-static/content-and-islands.md +117 -0
  56. package/content-dist/fragments/references/autenticacao-enterprise/pitfalls.md +70 -0
  57. package/content-dist/fragments/references/busca-elasticsearch/patterns.md +100 -0
  58. package/content-dist/fragments/references/chrome-extension-mv3/messaging-and-storage.md +109 -0
  59. package/content-dist/fragments/references/cli-typescript-commander/commands-and-config.md +136 -0
  60. package/content-dist/fragments/references/cloud-run-gcp/build-and-deploy.md +127 -0
  61. package/content-dist/fragments/references/cloud-run-gcp/iam-secrets-networking.md +65 -0
  62. package/content-dist/fragments/references/computer-vision-yolo/serving-and-export.md +182 -0
  63. package/content-dist/fragments/references/computer-vision-yolo/training-and-validation.md +131 -0
  64. package/content-dist/fragments/references/convex-react/functions.md +117 -0
  65. package/content-dist/fragments/references/convex-react/react-and-storage.md +109 -0
  66. package/content-dist/fragments/references/dashboard-admin-rbac/patterns.md +73 -0
  67. package/content-dist/fragments/references/data-pipeline-airflow/dag-patterns.md +149 -0
  68. package/content-dist/fragments/references/data-pipeline-airflow/operations.md +74 -0
  69. package/content-dist/fragments/references/delphi-object-pascal/legacy-extraction.md +175 -0
  70. package/content-dist/fragments/references/django-drf-celery/celery-tasks.md +47 -0
  71. package/content-dist/fragments/references/django-drf-celery/viewsets-and-serializers.md +92 -0
  72. package/content-dist/fragments/references/docker-compose-dev/compose-files.md +146 -0
  73. package/content-dist/fragments/references/docker-compose-dev/dockerfile-and-proxy.md +108 -0
  74. package/content-dist/fragments/references/dotnet-aspnet/data-and-di.md +90 -0
  75. package/content-dist/fragments/references/dotnet-aspnet/web-layer.md +88 -0
  76. package/content-dist/fragments/references/ecommerce-completo/patterns.md +76 -0
  77. package/content-dist/fragments/references/electron-app/ipc-bridge.md +123 -0
  78. package/content-dist/fragments/references/electron-app/security-and-packaging.md +134 -0
  79. package/content-dist/fragments/references/elixir-phoenix/context-and-web.md +112 -0
  80. package/content-dist/fragments/references/elixir-phoenix/processes.md +65 -0
  81. package/content-dist/fragments/references/filas-jobs/patterns.md +116 -0
  82. package/content-dist/fragments/references/fine-tuning-huggingface/data-and-export.md +114 -0
  83. package/content-dist/fragments/references/fine-tuning-huggingface/training-and-lora.md +123 -0
  84. package/content-dist/fragments/references/flutter/platform-channels-and-goldens.md +68 -0
  85. package/content-dist/fragments/references/flutter/state-and-widgets.md +95 -0
  86. package/content-dist/fragments/references/github-actions-cicd/workflows.md +235 -0
  87. package/content-dist/fragments/references/go-chi-gorm/http-layer.md +87 -0
  88. package/content-dist/fragments/references/go-chi-gorm/service-layer.md +58 -0
  89. package/content-dist/fragments/references/graphql-apollo/resolvers-and-loaders.md +128 -0
  90. package/content-dist/fragments/references/hono-bun/patterns.md +144 -0
  91. package/content-dist/fragments/references/integracao-crm-erp/patterns.md +100 -0
  92. package/content-dist/fragments/references/kubernetes-helm/chart-templates.md +162 -0
  93. package/content-dist/fragments/references/kubernetes-helm/secrets-storage-deploy.md +78 -0
  94. package/content-dist/fragments/references/langchain-python-agent/agent-and-cost.md +120 -0
  95. package/content-dist/fragments/references/langchain-python-agent/memory-and-resilience.md +76 -0
  96. package/content-dist/fragments/references/laravel/eloquent-and-queues.md +126 -0
  97. package/content-dist/fragments/references/laravel/http-layer.md +110 -0
  98. package/content-dist/fragments/references/lgpd/patterns.md +110 -0
  99. package/content-dist/fragments/references/llm-ops-production/routing-and-budget.md +118 -0
  100. package/content-dist/fragments/references/llm-ops-production/tracing-eval-ab.md +102 -0
  101. package/content-dist/fragments/references/microservices-docker/compose-and-gateway.md +93 -0
  102. package/content-dist/fragments/references/microservices-docker/events-and-correlation.md +88 -0
  103. package/content-dist/fragments/references/ml-fastapi-serving/metrics-drift-docker.md +97 -0
  104. package/content-dist/fragments/references/ml-fastapi-serving/serving-core.md +155 -0
  105. package/content-dist/fragments/references/ml-training-pipeline/dvc-pipeline.md +102 -0
  106. package/content-dist/fragments/references/ml-training-pipeline/mlflow-registry-ci.md +139 -0
  107. package/content-dist/fragments/references/monitoring-observability/alerts-and-config.md +169 -0
  108. package/content-dist/fragments/references/monitoring-observability/instrumentation-node.md +139 -0
  109. package/content-dist/fragments/references/multi-tenancy/patterns.md +85 -0
  110. package/content-dist/fragments/references/nestjs-typescript/guards-and-decorators.md +103 -0
  111. package/content-dist/fragments/references/nestjs-typescript/modules-dtos-setup.md +106 -0
  112. package/content-dist/fragments/references/nextjs-app-router/patterns.md +177 -0
  113. package/content-dist/fragments/references/nextjs-prisma-postgres/billing.md +167 -0
  114. package/content-dist/fragments/references/nextjs-trpc-drizzle/data-and-auth.md +121 -0
  115. package/content-dist/fragments/references/nextjs-trpc-drizzle/trpc-setup.md +62 -0
  116. package/content-dist/fragments/references/nodejs-express-typescript/config-and-tokens.md +48 -0
  117. package/content-dist/fragments/references/nodejs-express-typescript/middleware.md +108 -0
  118. package/content-dist/fragments/references/notificacoes-multicanal/patterns.md +78 -0
  119. package/content-dist/fragments/references/nuxt3-tailwind/server-routes.md +79 -0
  120. package/content-dist/fragments/references/nuxt3-tailwind/state-and-fetching.md +129 -0
  121. package/content-dist/fragments/references/openai-api-integration/calls.md +210 -0
  122. package/content-dist/fragments/references/openai-api-integration/client-and-cost.md +71 -0
  123. package/content-dist/fragments/references/pagamentos-brasil/gateways-reconciliation.md +92 -0
  124. package/content-dist/fragments/references/pagamentos-brasil/pix-boleto.md +115 -0
  125. package/content-dist/fragments/references/plataforma-conteudo/patterns.md +74 -0
  126. package/content-dist/fragments/references/python-fastapi/dependency-injection.md +99 -0
  127. package/content-dist/fragments/references/python-fastapi/settings-and-tasks.md +47 -0
  128. package/content-dist/fragments/references/rag-pipeline/ingestion.md +92 -0
  129. package/content-dist/fragments/references/rag-pipeline/retrieval-and-eval.md +148 -0
  130. package/content-dist/fragments/references/react-express-monolith/auth-and-client.md +110 -0
  131. package/content-dist/fragments/references/react-express-monolith/monorepo.md +71 -0
  132. package/content-dist/fragments/references/react-native-expo/native-patterns.md +103 -0
  133. package/content-dist/fragments/references/react-native-expo/navigation-and-auth.md +55 -0
  134. package/content-dist/fragments/references/react-ts-zustand-query/store-and-query.md +152 -0
  135. package/content-dist/fragments/references/react-typescript/feature-module.md +64 -0
  136. package/content-dist/fragments/references/react-typescript/forms-and-state.md +69 -0
  137. package/content-dist/fragments/references/react-typescript/recipes.md +37 -0
  138. package/content-dist/fragments/references/react-typescript/testing.md +40 -0
  139. package/content-dist/fragments/references/realtime-websockets/patterns.md +92 -0
  140. package/content-dist/fragments/references/relatorios-analytics/patterns.md +81 -0
  141. package/content-dist/fragments/references/remix-express-full/auth-and-uploads.md +88 -0
  142. package/content-dist/fragments/references/remix-express-full/express-server.md +54 -0
  143. package/content-dist/fragments/references/remix-typescript/auth-and-db.md +68 -0
  144. package/content-dist/fragments/references/remix-typescript/loaders-and-actions.md +98 -0
  145. package/content-dist/fragments/references/rust-axum/error-and-state.md +99 -0
  146. package/content-dist/fragments/references/rust-axum/handlers.md +87 -0
  147. package/content-dist/fragments/references/saas-stripe-billing/patterns.md +86 -0
  148. package/content-dist/fragments/references/serverless-lambda/handler-patterns.md +107 -0
  149. package/content-dist/fragments/references/sistema-pagamentos/pitfalls.md +54 -0
  150. package/content-dist/fragments/references/spring-boot/service-and-data.md +96 -0
  151. package/content-dist/fragments/references/spring-boot/web-layer.md +100 -0
  152. package/content-dist/fragments/references/supabase-nextjs/clients-and-middleware.md +102 -0
  153. package/content-dist/fragments/references/supabase-nextjs/rls-and-storage.md +86 -0
  154. package/content-dist/fragments/references/svelte-sveltekit/hooks-and-state.md +67 -0
  155. package/content-dist/fragments/references/svelte-sveltekit/load-and-actions.md +80 -0
  156. package/content-dist/fragments/references/t3-stack/routers-and-callers.md +75 -0
  157. package/content-dist/fragments/references/t3-stack/trpc-setup.md +60 -0
  158. package/content-dist/fragments/references/terraform-aws/modules-and-ci.md +114 -0
  159. package/content-dist/fragments/references/terraform-aws/state-and-workspaces.md +66 -0
  160. package/content-dist/fragments/references/turborepo-monorepo/pipeline-and-packages.md +84 -0
  161. package/content-dist/fragments/references/upload-midia/patterns.md +80 -0
  162. package/content-dist/fragments/references/vector-search-pinecone/client-and-upsert.md +98 -0
  163. package/content-dist/fragments/references/vector-search-pinecone/query-and-hybrid.md +81 -0
  164. package/content-dist/fragments/references/vps-deploy-producao/compose-prod.md +97 -0
  165. package/content-dist/fragments/references/vps-deploy-producao/proxy-and-operations.md +118 -0
  166. package/content-dist/fragments/references/vscode-extension/activation-and-tree.md +98 -0
  167. package/content-dist/fragments/references/vscode-extension/webview-csp.md +57 -0
  168. package/content-dist/fragments/references/vue3-pinia-vite/components-and-stores.md +73 -0
  169. package/content-dist/fragments/references/vue3-pinia-vite/queries-forms-testing.md +100 -0
  170. package/content-dist/fragments/references/whatsapp-business/patterns.md +107 -0
  171. package/content-dist/fragments/references/wordpress/hooks-and-security.md +92 -0
  172. package/content-dist/fragments/references/wordpress/wp-cli-gates.md +64 -0
  173. package/content-dist/fragments/stack/angular-ngrx.md +75 -0
  174. package/content-dist/fragments/stack/ansible-server-setup.md +69 -0
  175. package/content-dist/fragments/stack/astro-static.md +72 -0
  176. package/content-dist/fragments/stack/chrome-extension-mv3.md +66 -0
  177. package/content-dist/fragments/stack/cli-typescript-commander.md +66 -0
  178. package/content-dist/fragments/stack/cloud-run-gcp.md +63 -0
  179. package/content-dist/fragments/stack/computer-vision-yolo.md +62 -0
  180. package/content-dist/fragments/stack/convex-react.md +65 -0
  181. package/content-dist/fragments/stack/data-pipeline-airflow.md +64 -0
  182. package/content-dist/fragments/stack/delphi-object-pascal.md +63 -0
  183. package/content-dist/fragments/stack/django-drf-celery.md +63 -0
  184. package/content-dist/fragments/stack/docker-compose-dev.md +69 -0
  185. package/content-dist/fragments/stack/dotnet-aspnet.md +62 -0
  186. package/content-dist/fragments/stack/electron-app.md +70 -0
  187. package/content-dist/fragments/stack/elixir-phoenix.md +65 -0
  188. package/content-dist/fragments/stack/fine-tuning-huggingface.md +69 -0
  189. package/content-dist/fragments/stack/flutter.md +61 -0
  190. package/content-dist/fragments/stack/github-actions-cicd.md +73 -0
  191. package/content-dist/fragments/stack/go-chi-gorm.md +73 -0
  192. package/content-dist/fragments/stack/graphql-apollo.md +70 -0
  193. package/content-dist/fragments/stack/hono-bun.md +62 -0
  194. package/content-dist/fragments/stack/kubernetes-helm.md +67 -0
  195. package/content-dist/fragments/stack/langchain-python-agent.md +64 -0
  196. package/content-dist/fragments/stack/laravel.md +64 -0
  197. package/content-dist/fragments/stack/llm-ops-production.md +63 -0
  198. package/content-dist/fragments/stack/microservices-docker.md +70 -0
  199. package/content-dist/fragments/stack/ml-fastapi-serving.md +64 -0
  200. package/content-dist/fragments/stack/ml-training-pipeline.md +67 -0
  201. package/content-dist/fragments/stack/monitoring-observability.md +68 -0
  202. package/content-dist/fragments/stack/nestjs-typescript.md +68 -0
  203. package/content-dist/fragments/stack/nextjs-app-router.md +65 -0
  204. package/content-dist/fragments/stack/nextjs-prisma-postgres.md +61 -0
  205. package/content-dist/fragments/stack/nextjs-trpc-drizzle.md +63 -0
  206. package/content-dist/fragments/stack/nodejs-express-typescript.md +60 -0
  207. package/content-dist/fragments/stack/nuxt3-tailwind.md +62 -0
  208. package/content-dist/fragments/stack/openai-api-integration.md +58 -0
  209. package/content-dist/fragments/stack/python-fastapi.md +64 -0
  210. package/content-dist/fragments/stack/rag-pipeline.md +62 -0
  211. package/content-dist/fragments/stack/react-express-monolith.md +61 -0
  212. package/content-dist/fragments/stack/react-native-expo.md +68 -0
  213. package/content-dist/fragments/stack/react-ts-zustand-query.md +64 -0
  214. package/content-dist/fragments/stack/react-typescript.md +73 -0
  215. package/content-dist/fragments/stack/remix-express-full.md +63 -0
  216. package/content-dist/fragments/stack/remix-typescript.md +66 -0
  217. package/content-dist/fragments/stack/rust-axum.md +63 -0
  218. package/content-dist/fragments/stack/serverless-lambda.md +65 -0
  219. package/content-dist/fragments/stack/spring-boot.md +63 -0
  220. package/content-dist/fragments/stack/supabase-nextjs.md +64 -0
  221. package/content-dist/fragments/stack/svelte-sveltekit.md +67 -0
  222. package/content-dist/fragments/stack/t3-stack.md +63 -0
  223. package/content-dist/fragments/stack/terraform-aws.md +65 -0
  224. package/content-dist/fragments/stack/turborepo-monorepo.md +61 -0
  225. package/content-dist/fragments/stack/vector-search-pinecone.md +63 -0
  226. package/content-dist/fragments/stack/vps-deploy-producao.md +64 -0
  227. package/content-dist/fragments/stack/vscode-extension.md +64 -0
  228. package/content-dist/fragments/stack/vue3-pinia-vite.md +65 -0
  229. package/content-dist/fragments/stack/wordpress.md +63 -0
  230. package/content-dist/skills/invi-commit/SKILL.md +85 -0
  231. package/content-dist/skills/invi-journal/SKILL.md +67 -0
  232. package/content-dist/skills/invi-map/SKILL.md +118 -0
  233. package/content-dist/skills/invi-mode/SKILL.md +176 -0
  234. package/content-dist/skills/invi-pr/SKILL.md +142 -0
  235. package/content-dist/skills/invi-qa/SKILL.md +75 -0
  236. package/content-dist/skills/invi-refactor-legacy/SKILL.md +90 -0
  237. package/content-dist/skills/invi-review/SKILL.md +83 -0
  238. package/content-dist/skills/invi-security/SKILL.md +89 -0
  239. package/content-dist/skills/invi-status/SKILL.md +72 -0
  240. package/content-dist/skills/invi-task/SKILL.md +143 -0
  241. package/content-dist/skills/invi-test/SKILL.md +97 -0
  242. package/content-dist/skills/po-handoff/SKILL.md +130 -0
  243. package/content-dist/skills/po-intake/SKILL.md +115 -0
  244. package/content-dist/skills/po-lint/SKILL.md +82 -0
  245. package/content-dist/skills/po-spec/SKILL.md +138 -0
  246. package/content-dist/skills/po-status/SKILL.md +130 -0
  247. package/content-dist/skills/po-verify/SKILL.md +124 -0
  248. package/content-dist/templates/requirements/REQ-TEMPLATE.md +110 -0
  249. package/content-dist/templates/requirements/constitution-TEMPLATE.md +77 -0
  250. package/dist/baseline.d.ts +21 -0
  251. package/dist/baseline.d.ts.map +1 -0
  252. package/dist/baseline.js +43 -0
  253. package/dist/baseline.js.map +1 -0
  254. package/dist/cli.d.ts +15 -0
  255. package/dist/cli.d.ts.map +1 -0
  256. package/dist/cli.js +345 -0
  257. package/dist/cli.js.map +1 -0
  258. package/dist/commands/doctor.d.ts +31 -0
  259. package/dist/commands/doctor.d.ts.map +1 -0
  260. package/dist/commands/doctor.js +173 -0
  261. package/dist/commands/doctor.js.map +1 -0
  262. package/dist/commands/export.d.ts +49 -0
  263. package/dist/commands/export.d.ts.map +1 -0
  264. package/dist/commands/export.js +95 -0
  265. package/dist/commands/export.js.map +1 -0
  266. package/dist/commands/gate.d.ts +42 -0
  267. package/dist/commands/gate.d.ts.map +1 -0
  268. package/dist/commands/gate.js +97 -0
  269. package/dist/commands/gate.js.map +1 -0
  270. package/dist/commands/init.d.ts +88 -0
  271. package/dist/commands/init.d.ts.map +1 -0
  272. package/dist/commands/init.js +540 -0
  273. package/dist/commands/init.js.map +1 -0
  274. package/dist/commands/journalCmd.d.ts +47 -0
  275. package/dist/commands/journalCmd.d.ts.map +1 -0
  276. package/dist/commands/journalCmd.js +89 -0
  277. package/dist/commands/journalCmd.js.map +1 -0
  278. package/dist/commands/keys.d.ts +68 -0
  279. package/dist/commands/keys.d.ts.map +1 -0
  280. package/dist/commands/keys.js +240 -0
  281. package/dist/commands/keys.js.map +1 -0
  282. package/dist/commands/map.d.ts +123 -0
  283. package/dist/commands/map.d.ts.map +1 -0
  284. package/dist/commands/map.js +383 -0
  285. package/dist/commands/map.js.map +1 -0
  286. package/dist/commands/plan.d.ts +28 -0
  287. package/dist/commands/plan.d.ts.map +1 -0
  288. package/dist/commands/plan.js +64 -0
  289. package/dist/commands/plan.js.map +1 -0
  290. package/dist/commands/req.d.ts +92 -0
  291. package/dist/commands/req.d.ts.map +1 -0
  292. package/dist/commands/req.js +270 -0
  293. package/dist/commands/req.js.map +1 -0
  294. package/dist/commands/review.d.ts +40 -0
  295. package/dist/commands/review.d.ts.map +1 -0
  296. package/dist/commands/review.js +101 -0
  297. package/dist/commands/review.js.map +1 -0
  298. package/dist/commands/run.d.ts +33 -0
  299. package/dist/commands/run.d.ts.map +1 -0
  300. package/dist/commands/run.js +151 -0
  301. package/dist/commands/run.js.map +1 -0
  302. package/dist/commands/ship.d.ts +45 -0
  303. package/dist/commands/ship.d.ts.map +1 -0
  304. package/dist/commands/ship.js +252 -0
  305. package/dist/commands/ship.js.map +1 -0
  306. package/dist/commands/status.d.ts +36 -0
  307. package/dist/commands/status.d.ts.map +1 -0
  308. package/dist/commands/status.js +152 -0
  309. package/dist/commands/status.js.map +1 -0
  310. package/dist/commands/sync.d.ts +91 -0
  311. package/dist/commands/sync.d.ts.map +1 -0
  312. package/dist/commands/sync.js +331 -0
  313. package/dist/commands/sync.js.map +1 -0
  314. package/dist/commands/syncCommits.d.ts +56 -0
  315. package/dist/commands/syncCommits.d.ts.map +1 -0
  316. package/dist/commands/syncCommits.js +97 -0
  317. package/dist/commands/syncCommits.js.map +1 -0
  318. package/dist/commands/task.d.ts +108 -0
  319. package/dist/commands/task.d.ts.map +1 -0
  320. package/dist/commands/task.js +217 -0
  321. package/dist/commands/task.js.map +1 -0
  322. package/dist/commands/update.d.ts +92 -0
  323. package/dist/commands/update.d.ts.map +1 -0
  324. package/dist/commands/update.js +541 -0
  325. package/dist/commands/update.js.map +1 -0
  326. package/dist/commands/verifyTask.d.ts +50 -0
  327. package/dist/commands/verifyTask.d.ts.map +1 -0
  328. package/dist/commands/verifyTask.js +172 -0
  329. package/dist/commands/verifyTask.js.map +1 -0
  330. package/dist/content.d.ts +128 -0
  331. package/dist/content.d.ts.map +1 -0
  332. package/dist/content.js +177 -0
  333. package/dist/content.js.map +1 -0
  334. package/dist/detect.d.ts +122 -0
  335. package/dist/detect.d.ts.map +1 -0
  336. package/dist/detect.js +594 -0
  337. package/dist/detect.js.map +1 -0
  338. package/dist/events.d.ts +36 -0
  339. package/dist/events.d.ts.map +1 -0
  340. package/dist/events.js +76 -0
  341. package/dist/events.js.map +1 -0
  342. package/dist/frontmatter.d.ts +15 -0
  343. package/dist/frontmatter.d.ts.map +1 -0
  344. package/dist/frontmatter.js +74 -0
  345. package/dist/frontmatter.js.map +1 -0
  346. package/dist/i18n/en.d.ts +421 -0
  347. package/dist/i18n/en.d.ts.map +1 -0
  348. package/dist/i18n/en.js +443 -0
  349. package/dist/i18n/en.js.map +1 -0
  350. package/dist/i18n/index.d.ts +40 -0
  351. package/dist/i18n/index.d.ts.map +1 -0
  352. package/dist/i18n/index.js +66 -0
  353. package/dist/i18n/index.js.map +1 -0
  354. package/dist/i18n/pt-BR.d.ts +11 -0
  355. package/dist/i18n/pt-BR.d.ts.map +1 -0
  356. package/dist/i18n/pt-BR.js +435 -0
  357. package/dist/i18n/pt-BR.js.map +1 -0
  358. package/dist/identity.d.ts +78 -0
  359. package/dist/identity.d.ts.map +1 -0
  360. package/dist/identity.js +152 -0
  361. package/dist/identity.js.map +1 -0
  362. package/dist/index.d.ts +79 -0
  363. package/dist/index.d.ts.map +1 -0
  364. package/dist/index.js +48 -0
  365. package/dist/index.js.map +1 -0
  366. package/dist/insights.d.ts +86 -0
  367. package/dist/insights.d.ts.map +1 -0
  368. package/dist/insights.js +199 -0
  369. package/dist/insights.js.map +1 -0
  370. package/dist/interview.d.ts +81 -0
  371. package/dist/interview.d.ts.map +1 -0
  372. package/dist/interview.js +283 -0
  373. package/dist/interview.js.map +1 -0
  374. package/dist/inventory.d.ts +79 -0
  375. package/dist/inventory.d.ts.map +1 -0
  376. package/dist/inventory.js +86 -0
  377. package/dist/inventory.js.map +1 -0
  378. package/dist/journal.d.ts +22 -0
  379. package/dist/journal.d.ts.map +1 -0
  380. package/dist/journal.js +88 -0
  381. package/dist/journal.js.map +1 -0
  382. package/dist/migrations/legacyNames.d.ts +45 -0
  383. package/dist/migrations/legacyNames.d.ts.map +1 -0
  384. package/dist/migrations/legacyNames.js +118 -0
  385. package/dist/migrations/legacyNames.js.map +1 -0
  386. package/dist/plan.d.ts +42 -0
  387. package/dist/plan.d.ts.map +1 -0
  388. package/dist/plan.js +126 -0
  389. package/dist/plan.js.map +1 -0
  390. package/dist/render/agents.d.ts +327 -0
  391. package/dist/render/agents.d.ts.map +1 -0
  392. package/dist/render/agents.js +356 -0
  393. package/dist/render/agents.js.map +1 -0
  394. package/dist/render/claudeMd.d.ts +29 -0
  395. package/dist/render/claudeMd.d.ts.map +1 -0
  396. package/dist/render/claudeMd.js +110 -0
  397. package/dist/render/claudeMd.js.map +1 -0
  398. package/dist/render/githooks.d.ts +41 -0
  399. package/dist/render/githooks.d.ts.map +1 -0
  400. package/dist/render/githooks.js +168 -0
  401. package/dist/render/githooks.js.map +1 -0
  402. package/dist/render/markers.d.ts +13 -0
  403. package/dist/render/markers.d.ts.map +1 -0
  404. package/dist/render/markers.js +35 -0
  405. package/dist/render/markers.js.map +1 -0
  406. package/dist/render/requirements.d.ts +56 -0
  407. package/dist/render/requirements.d.ts.map +1 -0
  408. package/dist/render/requirements.js +86 -0
  409. package/dist/render/requirements.js.map +1 -0
  410. package/dist/render/settings.d.ts +43 -0
  411. package/dist/render/settings.d.ts.map +1 -0
  412. package/dist/render/settings.js +94 -0
  413. package/dist/render/settings.js.map +1 -0
  414. package/dist/render/transparency.d.ts +7 -0
  415. package/dist/render/transparency.d.ts.map +1 -0
  416. package/dist/render/transparency.js +164 -0
  417. package/dist/render/transparency.js.map +1 -0
  418. package/dist/requirements.d.ts +84 -0
  419. package/dist/requirements.d.ts.map +1 -0
  420. package/dist/requirements.js +229 -0
  421. package/dist/requirements.js.map +1 -0
  422. package/dist/sizing.d.ts +63 -0
  423. package/dist/sizing.d.ts.map +1 -0
  424. package/dist/sizing.js +104 -0
  425. package/dist/sizing.js.map +1 -0
  426. package/dist/tasks.d.ts +199 -0
  427. package/dist/tasks.d.ts.map +1 -0
  428. package/dist/tasks.js +320 -0
  429. package/dist/tasks.js.map +1 -0
  430. package/dist/util/diff3.d.ts +26 -0
  431. package/dist/util/diff3.d.ts.map +1 -0
  432. package/dist/util/diff3.js +112 -0
  433. package/dist/util/diff3.js.map +1 -0
  434. package/dist/util/fsx.d.ts +33 -0
  435. package/dist/util/fsx.d.ts.map +1 -0
  436. package/dist/util/fsx.js +153 -0
  437. package/dist/util/fsx.js.map +1 -0
  438. package/dist/util/git.d.ts +58 -0
  439. package/dist/util/git.d.ts.map +1 -0
  440. package/dist/util/git.js +171 -0
  441. package/dist/util/git.js.map +1 -0
  442. package/dist/util/merge.d.ts +27 -0
  443. package/dist/util/merge.d.ts.map +1 -0
  444. package/dist/util/merge.js +78 -0
  445. package/dist/util/merge.js.map +1 -0
  446. package/dist/util/out.d.ts +18 -0
  447. package/dist/util/out.d.ts.map +1 -0
  448. package/dist/util/out.js +23 -0
  449. package/dist/util/out.js.map +1 -0
  450. package/dist/util/proc.d.ts +12 -0
  451. package/dist/util/proc.d.ts.map +1 -0
  452. package/dist/util/proc.js +45 -0
  453. package/dist/util/proc.js.map +1 -0
  454. package/dist/util/registry.d.ts +58 -0
  455. package/dist/util/registry.d.ts.map +1 -0
  456. package/dist/util/registry.js +240 -0
  457. package/dist/util/registry.js.map +1 -0
  458. package/dist/verify.d.ts +52 -0
  459. package/dist/verify.d.ts.map +1 -0
  460. package/dist/verify.js +205 -0
  461. package/dist/verify.js.map +1 -0
  462. package/dist/version.d.ts +5 -0
  463. package/dist/version.d.ts.map +1 -0
  464. package/dist/version.js +18 -0
  465. package/dist/version.js.map +1 -0
  466. package/package.json +63 -0
@@ -0,0 +1,63 @@
1
+ ---
2
+ id: stack/wordpress
3
+ version: 1.0.0
4
+ lang: en
5
+ summary: "WordPress discipline: hooks and filters over core edits, child themes, sanitize–escape–nonce on every input path, prepared queries, WP-CLI quality gates."
6
+ detect:
7
+ deps: {}
8
+ files: ["wp-config.php", "wp-content/**", "**/wp-content/**"]
9
+ score: 10
10
+ requires: []
11
+ conflicts: []
12
+ tokens: 782
13
+ migrated: true
14
+ ---
15
+
16
+ # WordPress (themes & plugins)
17
+
18
+ Rules-only fragment; exemplar code is evicted to `references/wordpress/` and read on demand.
19
+
20
+ ## Architecture rules
21
+
22
+ - Never edit core, parent themes, or third-party plugins — every customization is an action/filter hook in a child theme or a site-specific plugin, and survives updates by construction.
23
+ - All project PHP is prefixed/namespaced per the repo convention; files register hooks at load and run on events — no side effects at include time.
24
+ - The security triad on every input path: sanitize on input (`sanitize_*`), escape on output (`esc_html`/`esc_attr`/`esc_url`), verify intent (nonce + capability check) on every state-changing action — admin-post, AJAX, and REST alike.
25
+ - REST routes always declare a real `permission_callback`; `__return_true` is acceptable only for genuinely public read-only data.
26
+ - Database access through `WP_Query`/`$wpdb->prepare()` with placeholders; a custom table is a documented decision, not a habit.
27
+ - Assets are enqueued with declared dependencies through the enqueue APIs — never hardcoded script/style tags in templates.
28
+ - User-facing strings go through the i18n functions with the project text domain.
29
+ - Slow work (imports, emails, API syncs) runs via cron/queue per the repo's pattern — never inline in a page request.
30
+ - Updates and state changes are exercised through WP-CLI on staging before production.
31
+
32
+ ## Trigger → action
33
+
34
+ | Trigger | Action |
35
+ |---------|--------|
36
+ | New behavior on an event | action/filter in the child theme or site plugin |
37
+ | New admin form | nonce field → capability check → sanitize → process → redirect with notice |
38
+ | New AJAX/REST route | permission_callback/capability + nonce → sanitized args → escaped output |
39
+ | New query | `WP_Query` args or `$wpdb->prepare()` with placeholders |
40
+ | Template change | child-theme override of the parent template — never edit the parent |
41
+ | Plugin/theme/core update | WP-CLI on staging → smoke-test critical flows → then production |
42
+
43
+ ## Quality gates (before any PR / deploy)
44
+
45
+ - `wp core verify-checksums` clean; PHP lint and the repo's code style pass.
46
+ - The diff touches no core or parent-theme files.
47
+ - Every new input path demonstrably sanitizes, escapes, and verifies nonce + capability.
48
+ - No new PHP notices/warnings in the debug log on the touched flows.
49
+ - Strings translatable with the project text domain; assets enqueued, not inlined.
50
+
51
+ ## Forbidden
52
+
53
+ - NEVER edit WordPress core, parent themes, or vendor plugins.
54
+ - NEVER trust `$_POST`/`$_GET`/`$_REQUEST` raw — sanitize first, always.
55
+ - NEVER echo unescaped dynamic output — escape at the point of output.
56
+ - NEVER interpolate values into SQL — `$wpdb->prepare()` placeholders only.
57
+ - NEVER change state on a GET request or without a nonce + capability check.
58
+ - NEVER commit real credentials in `wp-config.php` or disable security checks to make a bug go away.
59
+
60
+ ## References (read on demand)
61
+
62
+ - `references/wordpress/hooks-and-security.md` — hook registration, admin-post/AJAX/REST handlers with the full triad.
63
+ - `references/wordpress/wp-cli-gates.md` — the WP-CLI verification sequence for updates and deploys.
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: invi-commit
3
+ description: 'Make a standardized commit — Conventional Commits with the ticket reference, "type(scope): description [<ticket>]" — deriving type/scope/ticket from the branch and content, and re-running the guard checks (secrets, generated files, lint) in-session before committing. Use when the user asks to commit or save the changes, or after QA passes in the pipeline.'
4
+ ---
5
+
6
+ # invi-commit — standardized commit
7
+
8
+ Format: **`<type>(<scope>): <imperative description> [<ticket>]`**. The `[<ticket>]` reference is the
9
+ join key that ties branch ↔ commit ↔ PR ↔ task ↔ requirement — and it feeds the observability trailer the
10
+ `prepare-commit-msg` git hook appends (`Invictus: v1.…` + `Assisted-by:`). Without it, the platform can't
11
+ link this commit's metrics to the task.
12
+
13
+ ## Standing rules
14
+
15
+ - Communicate with the user in the language configured in `.invictus/manifest.json` (`language.render`, default pt-BR); write the commit description in that language. Output-block keys stay EN.
16
+ - Config from the manifest: `project.protectedBranches`, `project.ticketPattern`, `project.workspaces.<ws>.lint`. Manifest missing → stop, point to `invi init`.
17
+ - **Never commit on a protected branch** (`protectedBranches`). On one? Stop and point to `/invi-task` to create the task branch.
18
+ - **Never write or edit the `Invictus:`/`Assisted-by:` trailers by hand** — the `.githooks/prepare-commit-msg` hook derives them from the event log (single source). Commit normally; the hook does the rest.
19
+ - **Atomic commits** — one concern per commit; small and frequent beats big and rare. Each commit message must pass the `commit-msg` hook on its own (merge strategies that preserve branch commits make every subject visible).
20
+
21
+ ## Procedure
22
+
23
+ ### 1. Sanity
24
+
25
+ ```bash
26
+ git branch --show-current # must NOT be in protectedBranches
27
+ git status --short # anything to commit?
28
+ git diff --stat
29
+ ```
30
+
31
+ Nothing stageable → say so and stop.
32
+
33
+ ### 2. Derive the message fields
34
+
35
+ - `<type>`: from the branch prefix (`feat/…` → `feat`), else from the content (`feat|fix|refactor|test|docs|chore|perf|ci|build|style|hotfix`).
36
+ - `<ticket>`: resolve it with **`invi task current --json`** — never by running the ticket pattern
37
+ against the branch yourself. A pattern like `\d+` matches the date inside `adhoc-20260902-1` and
38
+ yields `20260902`, which would put a fabricated join key in the trailer: worse than no key, because
39
+ it looks like a real ticket. Verb returns `null` → ask the user (interactive), or say the commit
40
+ will carry no join key and confirm before proceeding. A commit with no join key is a legitimate
41
+ outcome, not a failure.
42
+ - `<scope>`: the module/scope touched (from `task.json` `module`, or the dominant top-level dir). Several modules → the main one, or omit the scope.
43
+ - `<description>`: imperative, short, lowercase, no trailing period, in the render language.
44
+
45
+ ### 3. Guard checks (block the dangerous, warn on the rest)
46
+
47
+ Re-run in-session what the git hooks enforce for the whole team (defense in depth — if a layer is skipped,
48
+ the next one catches it):
49
+
50
+ - **BLOCK — secret staged:** scan the STAGED BLOBS (`git show :<file>`, not the worktree) of config-like files (`.env*`, `*config*.json`, `appsettings*.json`, `*.yaml/yml`, etc.) for credential-like keys (`password|secret|token|key|connectionstring|api[-_]?key`) with real-looking values. Placeholders (`__ENV__`, `${VAR}`, `<fill-me>`, empty) pass. Found → abort, move to env var/secret store.
51
+ - **BLOCK — generated file edited by hand:** staged changes in paths/files marked auto-generated (headers like "auto-generated"/"do not edit", or paths the project marks as generated). Found → abort, regenerate instead.
52
+ - **BLOCK — lint fails:** for each touched workspace with a `lint` command in the manifest, run it; failure → abort. No lint command → skip and note `lint=not-verified`.
53
+ - **WARN (don't block):** `console.log`/`debugger`/`print`-debug leftovers on added lines; TODO/FIXME without ticket; business logic changed without a corresponding test change. Show the warnings and proceed unless the user wants to fix first.
54
+
55
+ ### 4. Commit
56
+
57
+ ```bash
58
+ git add <the files of this concern> # prefer explicit paths over -A
59
+ git commit -m "<type>(<scope>): <description> [<ticket>]"
60
+ ```
61
+
62
+ - Body: bullet the "why" when non-obvious. Traces to a requirement? Add `refs REQ-###` in the body (the trailer encoder extracts `req[]` from the message). When `.invictus/tasks/<ticket>/task.json` carries the PO-layer `req[]` field (PIPELINE.md §7.4), add one `refs <id>` line per entry — that is how the platform attributes this commit's cost to the requirement.
63
+ - Contract-breaking change → `BREAKING CHANGE:` footer.
64
+ - Repeat per concern for multiple atomic commits.
65
+
66
+ ### 5. Confirm
67
+
68
+ Show each commit's short hash and final message (including the trailers the hook appended — confirm the
69
+ `Invictus:` trailer is present; if it is missing, the hooks aren't active: recommend `invi doctor`).
70
+
71
+ ## Output block
72
+
73
+ End with (grammar: `content/PIPELINE.md` §5):
74
+
75
+ ```INVICTUS-RESULT
76
+ BLOCK: COMMIT
77
+ TASK: <ticket id>
78
+ BRANCH: <branch>
79
+ COMMIT: <short-sha> <subject>
80
+ GUARDS: secrets=pass generated=pass lint=pass|warn|fail|not-verified
81
+ WARNINGS: <n>
82
+ NEXT: /invi-pr when the task is complete
83
+ ```
84
+
85
+ (`COMMIT` repeats — one line per commit made.)
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: invi-journal
3
+ description: Record a checkpoint in the Invictus journal after completing a task — verifies quality gates, appends a checkpoint event to the append-only event log via the CLI, and lets the engine re-render the daily journal and MEMORY.md. Use after finishing a task, after a milestone commit, before pausing work, or when the journal-nudge hook asks for it.
4
+ ---
5
+
6
+ # invi-journal — task checkpoint
7
+
8
+ Standing rule: communicate with the user in the language configured in `.invictus/manifest.json` (`language.render`, default pt-BR). Machine artifacts (event payloads, CLI flags) stay EN.
9
+
10
+ Record what just got done while the context is still fresh. Without incremental checkpoints, memory is saved only at session end: a crash loses everything and the final summary is written by a tired context. With a checkpoint per completed task, a crash loses at most the task in progress.
11
+
12
+ ## State model (never violate)
13
+
14
+ - Source of truth: the append-only event log `.invictus/log/<devId>.jsonl` — one hash-chained JSON object per line.
15
+ - `.invictus/journal/` (daily files + `MEMORY.md`) is a RENDERED VIEW — read-only for you.
16
+ - All writes go through the CLI (`invi journal …`), which builds the event envelope (timestamp, dev id, session id, hash chain) and re-renders the views.
17
+ - NEVER append JSONL by hand. NEVER edit files under `.invictus/journal/` or `.invictus/log/`.
18
+
19
+ ## Procedure
20
+
21
+ 1. **Identify the completed task.** Use the argument if one was given. Otherwise infer it from the last commit (`git log -1 --oneline`), the pending diff (`git diff --stat`), and the recent conversation. If it is ambiguous, ask before writing anything.
22
+
23
+ 2. **Verify quality gates.** Run the test/lint/build commands declared for the touched workspace in `.invictus/manifest.json` (`project.workspaces.<ws>`). If any gate fails, DO NOT checkpoint — report exactly which gates fail and stop:
24
+
25
+ > Quality gates failing — fix before checkpointing:
26
+ > - typecheck: 2 errors
27
+ > - tests: 1 failing
28
+
29
+ 3. **Compose the entry.** 2–4 concrete bullets of what was done; files touched; short commit hash (if committed); gate results; the ticket id (per the manifest `ticketPattern`, e.g. `tk123`) the work belongs to.
30
+
31
+ 4. **Append via the CLI.** Run `invi journal checkpoint` with the composed entry (run `invi journal --help` for the exact flag surface; every verb supports `--json`). If the task also settled an architectural decision, record it as a separate `decision` event — one line stating what was decided and why the alternative lost. The trailer encoder and journal renderer both consume this same event; never duplicate it anywhere else.
32
+ <!-- TODO(phase-1): the `invi journal` flag surface is owned by packages/kit; keep this step in sync when the verb lands. -->
33
+
34
+ 5. **Confirm and hand off.** Report what was appended and suggest the single next action implied by the new state.
35
+
36
+ ## Output format
37
+
38
+ ```
39
+ ## Checkpoint — <date> <time>
40
+
41
+ Recorded:
42
+ - Event: checkpoint (<short hash of log entry, if reported by the CLI>)
43
+ - Task: <description> (refs <ticket>)
44
+ - Quality gates: <pass/fail summary>
45
+ - Commit: <short sha> — <subject>
46
+ - Decision logged: <yes: one-liner / no>
47
+
48
+ Next suggested action: <one action, one sentence>
49
+ ```
50
+
51
+ ## When to use
52
+
53
+ - After a task passes its quality gates.
54
+ - After a commit that represents a session milestone.
55
+ - Before pausing — meeting, break, end of day.
56
+ - When the journal-nudge hook injects a reminder.
57
+
58
+ ## When NOT to use
59
+
60
+ - Mid-task: wait until it is done. Work-in-progress thoughts are a `journal.note` event, not a checkpoint.
61
+ - In a session with no commit and no real change — there is nothing to record.
62
+
63
+ ## Anti-patterns
64
+
65
+ - Batching two tasks into one checkpoint "at the end" — that defeats crash resilience, checkpoint between tasks.
66
+ - Editing rendered journal markdown to "fix" an entry — corrections are NEW events referencing the old one; the log is append-only.
67
+ - Writing the journal entry yourself in markdown "because the CLI is one more step" — hand-written views diverge from the log and get overwritten at the next render.
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: invi-map
3
+ description: Map the codebase into .invictus/codebase/ — dispatches up to four parallel mapper subagents (stack/architecture, conventions, testing, concerns) that read the repo and write five evidence-based documents (STACK, ARCHITECTURE, CONVENTIONS, TESTING, CONCERNS), then runs `invi map` to apply the marked sections to the rendered agents. Use after install, when the codebase changed significantly, when `invi map --check` reports staleness, or when agents keep citing TODO(map) defaults.
4
+ ---
5
+
6
+ # invi-map — map the codebase (agents write, `invi map` applies)
7
+
8
+ Produce the `.invictus/codebase/` documents every other agent and skill reads instead of re-deriving the repo from scratch. Judgment (reading code, naming conventions, nominating exemplars) happens here; everything deterministic (validation, variable extraction, agent re-rendering) is `invi map`'s job — never duplicate it by editing `.claude/agents/` yourself.
9
+
10
+ ## Standing rules
11
+
12
+ - Communicate with the user in the language configured in `.invictus/manifest.json` (`language.render`, default pt-BR). The documents themselves are written in that same render language — they are client-facing; machine artifacts (front-matter keys, marker comments, file names) stay EN.
13
+ - **Evidence-based honesty.** Every claim in a document cites its evidence: a file path (with line ranges where it matters), a lockfile entry, or a config key. A pattern is a *convention* only when you saw it in at least two places — one occurrence is reported as "single instance". If you could not verify something in this environment, write "not verified" — never present an assumption as a finding, never invent a convention, command, or file.
14
+ - Read-only exploration: mappers read files and run only read-only commands (`ls`, `git log`, `grep`, printing config). Never run installs, builds, tests, or anything mutating during mapping.
15
+ - Config comes from `.invictus/manifest.json` (`project.workspaces`, `project.catastrophicRisk`). Missing manifest ⇒ stop and point to `invi init`.
16
+
17
+ ## Procedure
18
+
19
+ ### 1. Preflight
20
+
21
+ 1. Read `.invictus/manifest.json` — collect the workspace names (`project.workspaces` keys; use `.` when the repo is a single package) and the named catastrophic risk.
22
+ 2. Read `.invictus/codebase/` — if documents already exist, note their `mapped_at`; you are refreshing, not starting blind. `git log --oneline -20` for recent movement.
23
+
24
+ ### 2. Dispatch the mapper subagents (up to 4, in parallel)
25
+
26
+ Launch the four explorations below as parallel subagents when the runtime supports it (in Claude Code: one Task per exploration, a single message with all four calls). On a runtime without subagents, run them sequentially in this order — the documents, not the parallelism, are the deliverable. Each subagent receives: its brief below, the workspace list, the render language, and the front-matter + marker contracts from this file. Each writes ONLY its own document(s).
27
+
28
+ **A. Stack & architecture** → writes `STACK.md` and `ARCHITECTURE.md`
29
+ - STACK.md: languages, frameworks and their exact versions (from lockfiles, never from prose), workspace table (path, purpose, entry point), external services/infra actually referenced in code or config.
30
+ - ARCHITECTURE.md: the layer map and dependency directions (who may import whom), request/data flow for the 1–2 main paths, module/bounded-context list, and **how data access works** (ORM/query layer, where the tenant/user scoping filter lives, what raw access is forbidden) — cite the files that prove each arrow.
31
+
32
+ **B. Conventions** → writes `CONVENTIONS.md`
33
+ - Naming (files, types, routes, DB), error-handling contract, DI/registration patterns, validation approach, generated-vs-hand-written files, commit/branch conventions actually observed in `git log`.
34
+ - Nominate 2–5 **reference files** — the gold-standard neighbors a builder should imitate, each with one line on why it earns the slot.
35
+
36
+ **C. Testing** → writes `TESTING.md`
37
+ - Frameworks + versions per workspace (from lockfiles/configs), test file layout and naming, how to run them (the real commands from package scripts/Makefile — never invented), fixture/mocking patterns, and the coverage REALITY (which areas have tests, which have none — honesty over flattery).
38
+
39
+ **D. Concerns** → writes `CONCERNS.md`
40
+ - Fragile areas (breakage history via `git log`, dense TODO/FIXME clusters, zero-coverage hot paths), oversized files, dead code, dependency risks (pinned-old, deprecated), security-sensitive spots (auth, money, migrations), and anything that would make the named catastrophic risk more likely — each with evidence.
41
+
42
+ ### 3. Document contract (binding for every mapper)
43
+
44
+ Every document starts with this front-matter — `invi map` refuses documents without it:
45
+
46
+ ```
47
+ ---
48
+ mapped_at: 2026-07-11T14:30:00Z
49
+ workspaces: ["backend", "frontend"]
50
+ ---
51
+ ```
52
+
53
+ - `mapped_at`: ISO-8601 UTC timestamp of this mapping run (same value across all five documents).
54
+ - `workspaces`: JSON list of the workspace names covered (manifest keys; `["."]` for a single-package repo).
55
+ - Keep each document ≤ ~150 lines. It is standing reading material for every future agent — density beats completeness; link paths instead of pasting code.
56
+
57
+ **Marked sections** — the machine seam. `invi map` extracts exactly these four regions and injects them into the rendered agents, so their content must stand alone (no "see above"), stay in the render language, and stay lean:
58
+
59
+ In `ARCHITECTURE.md`:
60
+
61
+ ```
62
+ <!-- invictus:var:ARCHITECTURE_SUMMARY -->
63
+ (short layer map with dependency directions and workspace layout — ≤ 10 lines)
64
+ <!-- /invictus:var:ARCHITECTURE_SUMMARY -->
65
+
66
+ <!-- invictus:var:DATA_ACCESS_RULES -->
67
+ (how data is accessed and scoped: query layer, mandatory tenant/user filter, forbidden raw access — ≤ 6 lines)
68
+ <!-- /invictus:var:DATA_ACCESS_RULES -->
69
+ ```
70
+
71
+ In `TESTING.md`:
72
+
73
+ ```
74
+ <!-- invictus:var:TEST_FRAMEWORKS -->
75
+ (the test frameworks actually in use, with versions read from lockfiles/configs, one line — e.g. "JUnit 5 + Mockito (backend), Vitest + Testing Library (frontend)". Empty when the repo has no test framework at all: that is a finding, not a blank.)
76
+ <!-- /invictus:var:TEST_FRAMEWORKS -->
77
+ ```
78
+
79
+ In `CONVENTIONS.md`:
80
+
81
+ ```
82
+ <!-- invictus:var:CONVENTIONS_SUMMARY -->
83
+ (bulleted list of the repo's mandatory patterns — ≤ 12 bullets, one per line, each starting with "- ")
84
+ <!-- /invictus:var:CONVENTIONS_SUMMARY -->
85
+
86
+ <!-- invictus:var:REFERENCE_FILES -->
87
+ (the 2–5 nominated exemplar paths, comma-separated on one line)
88
+ <!-- /invictus:var:REFERENCE_FILES -->
89
+ ```
90
+
91
+ An empty marked section means "not captured" — `invi map` will keep the agents' honest TODO(map) defaults, which beats injecting guesses.
92
+
93
+ ### 4. Apply and verify
94
+
95
+ 1. Run `invi map` — it validates the five documents + front-matter, extracts the marked sections, and re-renders the installed agents (replacing their TODO(map) defaults; agents the client edited by hand are skipped with a warning — respect that, do not edit them).
96
+ 2. If it reports validation problems, fix the documents (yours to fix — never bypass the verb) and re-run.
97
+ 3. `invi map --check` must then exit clean. If the CLI is unavailable, say plainly that the documents were written but NOT applied, and that running `invi map` later completes the flow.
98
+
99
+ ## Output
100
+
101
+ End with a short human summary (documents written, notable findings, anything not verified) and exactly one result block (grammar: `content/PIPELINE.md` §5 — `MAP` is an extension block type defined here; machine values stay EN; empty ⇒ `-`):
102
+
103
+ ```INVICTUS-RESULT
104
+ BLOCK: MAP
105
+ DOCS: <n>/5 written
106
+ MAPPED_AT: <ISO timestamp used>
107
+ WORKSPACES: <list or ->
108
+ VARIABLES: <map, e.g. architecture_summary=ok data_access_rules=ok conventions_summary=ok reference_files=empty>
109
+ AGENTS_UPDATED: <n from invi map, or ->
110
+ AGENTS_SKIPPED: <customized agents skipped, or ->
111
+ NOT_VERIFIED: <list or ->
112
+ NEXT: <one line — normally: review .invictus/codebase/ and commit it>
113
+ ```
114
+
115
+ ## When NOT to use
116
+
117
+ - Mid-task to answer one narrow question — read the existing documents (or the code) directly.
118
+ - When only one document is stale — refresh that document with a single subagent and re-run `invi map`, instead of a full remap.
@@ -0,0 +1,176 @@
1
+ ---
2
+ name: invi-mode
3
+ description: 'End-to-end task orchestrator — takes a task (argument, pasted text, file, or canonical JSON) and runs the full pipeline with gates: invi-task → implement → security → tests → review → QA → invi-commit → invi-pr, appending every gate outcome to the event log and stopping at the human merge gate. Use to run a ticket end to end ("run tk4242", "orchestrate this task", "invictus mode"), interactively or headless. Bounded fix loops (max 2 per gate); merge is always human.'
4
+ ---
5
+
6
+ # invi-mode — the pipeline orchestrator
7
+
8
+ Drive one task from description to an open PR, through four gates, with every outcome logged. You are the
9
+ conductor: skills do the phases, stack agents do the code, gates decide progress, humans merge.
10
+
11
+ ## Standing rules
12
+
13
+ - Communicate with the user in the language configured in `.invictus/manifest.json` (`language.render`, default pt-BR). Machine artifacts (blocks, task.json, events) stay EN.
14
+ - Config from the manifest — `project.baseBranch`, `protectedBranches`, `ticketPattern`, `catastrophicRisk`, `workspaces`, `devs`. Manifest missing → stop, point to `invi init`. A needed field missing → ask (interactive) or go `blocked` naming the field (headless). Never guess silently.
15
+ - **Gates run in exactly this order: security → tests → review → QA.** No skipping, no reordering.
16
+ - **Bounded fix loops: max 2 per gate.** On the 3rd failure of the same gate: state `blocked`, precise report, stop. Never spin.
17
+ - **Merge and deploy are ALWAYS human.** The pipeline ends at `pr_open`.
18
+ - **Honesty:** report gates exactly as they resulted — a `not-verified` is a `not-verified`, never a pass.
19
+ - Guardrails stay in force: no commit/push on protected branches, no secrets in tracked files, no hand-editing generated files or `.invictus/log/`/`.invictus/journal/`.
20
+
21
+ ## Input
22
+
23
+ A task, as any of: an argument (`/invi-mode tk4242` — resolves `.invictus/tasks/tk4242/task.json` or asks for the text), pasted ticket text, a file path, or canonical task JSON. Also works headless: `claude -p "/invi-mode tk4242"`.
24
+
25
+ **A ticket is not required.** Pasting the description in prose is a first-class input: phase 1
26
+ normalizes it and mints an `adhoc-<yyyymmdd>-<n>` id when no ticket exists, so a team whose
27
+ tracker is not yet populated — or a developer who received the task in a message — runs the
28
+ same pipeline as everyone else. The id says the work arrived without a ticket; nothing else
29
+ about the run changes.
30
+
31
+ ## Weight class — the router decides, not the human
32
+
33
+ When a task record exists and no sizing decision was made yet, run **`invi run <id>`** (PIPELINE.md
34
+ §8.3): deterministic heuristics produce `inline | quick | full-pipeline` WITH stated reasons and log the
35
+ decision. invi-mode IS the full-pipeline path — on `inline`/`quick` follow the verb's printed
36
+ guidance instead of running the whole ceremony (any gate actually run is still logged via
37
+ `invi gate`). Overriding the verdict goes through `invi run <id> --force <verdict> --reason
38
+ <why>` — logged, never silent. CLI unavailable → run the full pipeline and say the router was skipped.
39
+
40
+ ## Pipeline
41
+
42
+ State machine and artifacts per `content/PIPELINE.md` (§2–§3). State lives in the deterministic verbs —
43
+ `invi task state <id> <new-state>` for explicit transitions (it refuses illegal jumps and keeps
44
+ `task.json`/`state.json`/event log in sync), `invi gate` for the `*_ok` advancements. Never edit
45
+ `task.json`/`state.json` by hand while the CLI is available; `invi task show <id> --json` is the
46
+ current view.
47
+
48
+ ### Phase 1 — Task (`open → in_progress`)
49
+
50
+ Run **`/invi-task`** with the input. It normalizes to `task.json` (via `invi task create`), creates
51
+ `<type>/<ticket>-<slug>` off the refreshed base branch, writes `plan.md` in the §8.2 step anatomy and
52
+ proves it with **`invi plan <id>`** (blockers are fixed in the plan before any implementation), and
53
+ sets `in_progress`. Read its `TASK` block for id/branch/plan.
54
+
55
+ ### Phase 2 — Implement
56
+
57
+ Implement per the plan, delegating to the **stack agents installed in `.claude/agents/`** (discover them:
58
+ `ls .claude/agents/` — the agent pack is rendered per client; pick by the workspace each change touches).
59
+ Rules for the implementers:
60
+
61
+ - **Neighbor-pattern conformity**: read a neighboring file of the same feature class and copy the exact pattern.
62
+ - **Smallest coherent change** that satisfies the acceptance criteria — no drive-by refactors.
63
+ - Respect the installed fragments' conventions (error shapes, layering, naming).
64
+
65
+ ### Phases 3–6 — The four gates
66
+
67
+ For each gate: run the skill → parse its block → log the outcome with **`invi gate`** (below), which
68
+ also advances the state on pass — or fix-loop on fail (fixes go through the stack agents; a gate re-runs
69
+ after its fixes; max 2 loops per gate, then `invi task state <id> blocked`).
70
+
71
+ | # | Gate | Skill | Pass verdicts | State on pass |
72
+ |---|---|---|---|---|
73
+ | 1 | security | `/invi-security` | `APPROVE` | `security_ok` |
74
+ | 2 | tests | `/invi-test` | `PASS` (`NOT_VERIFIED` only if the user explicitly accepts) | `tests_ok` |
75
+ | 3 | review | `/invi-review` | `APPROVE`, `WITH_RESERVATIONS` (record reservations in plan + PR) | `review_ok` |
76
+ | 4 | QA | `/invi-qa` | `APPROVE`, `WITH_RESERVATIONS` | `qa_ok` |
77
+
78
+ Before GATE 3, assemble the deterministic context with **`invi review <id>`** (PIPELINE.md §8.5 —
79
+ diff stats vs base, changed files ∩ fragile areas, prior review gates) and hand its block to
80
+ `/invi-review` as input; the findings and the verdict remain the skill's.
81
+
82
+ Headless note: where a skill would ask for consent (auto-fixes) — don't auto-fix; report instead.
83
+
84
+ ### Phase 7 — Commit (`qa_ok`)
85
+
86
+ Run **`invi verify <id>`** first (PIPELINE.md §8.4) — it re-runs the manifest commands and
87
+ cross-checks `qa.md` + the gate record; a gap found HERE is cheaper than a refused ship. Then run
88
+ **`/invi-commit`** — atomic conventional commits `type(scope): description [<ticket>]`; the git hook
89
+ appends the observability trailer. Collect the short SHAs.
90
+
91
+ ### Phase 8 — PR (`qa_ok → pr_open`)
92
+
93
+ Run **`invi ship <id>`** (PIPELINE.md §8.6) — the pre-PR gatekeeper: asserts the gates + tests +
94
+ push, renders the PR body from `task.json` + plan + gate results, creates the PR via `gh` (or prints the
95
+ compare URL from the actual origin remote), and sets `pr_open`. A refusal names the problems — fix and
96
+ re-run; never bypass the gatekeeper. Then `/invi-pr` step 3 for CI/reviewers and the `MISSING_FOR_MERGE`
97
+ handoff. CLI unavailable → run **`/invi-pr`** in full (it performs the same steps manually).
98
+
99
+ ### Phase 9 — 🚦 Human merge gate
100
+
101
+ **Stop here.** Report ready-for-merge; merging is a human decision after CI green + review + QA. Post-merge
102
+ (`done`) is recorded by the human/platform, not by you.
103
+
104
+ ## Gate events (every gate outcome, pass or fail)
105
+
106
+ Log one `gate` event after EVERY gate run — pass, pass-with-reservations, or fail — walking the
107
+ PIPELINE.md §4 degradation ladder (use the FIRST rung available, never skip logging silently):
108
+
109
+ **Rung 1 — the `invi gate` verb (preferred):**
110
+
111
+ ```
112
+ invi gate <security|tests|review|qa> <task-id> --verdict pass|pass-with-reservations|fail \
113
+ [--loop <n>] [--details '{"findings":{"blocker":0,"high":0,"medium":0,"low":0}}']
114
+ ```
115
+
116
+ It appends the hash-chained event AND advances the task state on pass (`security_ok`/`tests_ok`/
117
+ `review_ok`/`qa_ok`) — do not also run `invi task state` for those. `--details` takes only `findings`,
118
+ `criteria_ok`, `not_verified` (§4 payload). On `fail` it records the event and leaves the state; going to
119
+ `blocked` after the loop budget is your explicit `invi task state <id> blocked`.
120
+
121
+ **Rung 2 — fallback snippet** (CLI unavailable or predates the verb) — use `@invictus-group-ai/core.appendEvent`
122
+ directly via this fixture-tested snippet (full contract: `content/PIPELINE.md` §4):
123
+
124
+ ```bash
125
+ GATE_EVENT='{"task":"<id>","gate":"security|tests|review|qa","verdict":"pass|pass-with-reservations|fail","loop":<n>,"findings":{"blocker":0,"high":0,"medium":0,"low":0}}' \
126
+ node --input-type=module -e '
127
+ import { appendEvent, defaultLogDir, readManifest, hashGitEmail } from "@invictus-group-ai/core";
128
+ import { execFileSync } from "node:child_process";
129
+ const root = process.cwd();
130
+ const m = readManifest(root);
131
+ const email = execFileSync("git", ["config", "user.email"], { cwd: root }).toString().trim();
132
+ const dev = m.devs.find((d) => d.gitEmailHash === hashGitEmail(email)) ?? m.devs[0];
133
+ if (!dev) { console.error("no dev identity in manifest — run invi init first"); process.exit(1); }
134
+ const e = appendEvent(defaultLogDir(root), dev.id, {
135
+ sid: process.env.CLAUDE_SESSION_ID ?? "orchestrator",
136
+ type: "gate",
137
+ data: JSON.parse(process.env.GATE_EVENT),
138
+ });
139
+ console.log(e.h);
140
+ '
141
+ ```
142
+
143
+ Rung 2 does NOT advance the state — pair it with `invi task state` when the CLI is usable, or track
144
+ state in the report when it is not. **Rung 3:** neither verb nor core →
145
+ `invi journal note -m "gate task=<id> gate=<g> verdict=<v> loop=<n>" --ticket <id>`. **Rung 4:** none
146
+ available → say plainly in the final report that gate events were not logged
147
+ (`EVENTS_LOGGED: none (<reason>)`). Payload is metrics, never content (no finding text). Telemetry
148
+ failure never stops the pipeline — and is never silently swallowed.
149
+
150
+ ## Blocking
151
+
152
+ On `blocked` (loops exhausted or an unresolvable blocker): log the final gate event (`verdict:"fail"`),
153
+ set the state (`invi task state <id> blocked`), and report precisely — which gate, which
154
+ findings/criteria failed, what was tried in each loop, and the minimal human action to unblock. A human
155
+ resumes with `/invi-mode <id>` after unblocking (`invi task state <id> in_progress`;
156
+ already-passed gates need not re-run unless the code changed).
157
+
158
+ ## Final output block
159
+
160
+ End with (grammar: `content/PIPELINE.md` §5):
161
+
162
+ ```INVICTUS-RESULT
163
+ BLOCK: ORCHESTRATION
164
+ TASK: <id>
165
+ BRANCH: <branch or ->
166
+ STATE: <final state — pr_open | blocked | …>
167
+ GATES: security=<pass|fail|skipped> tests=<…> review=<…> qa=<…>
168
+ LOOPS: security=<n> tests=<n> review=<n> qa=<n>
169
+ COMMIT: <short-sha> <subject>
170
+ PR: <url or ->
171
+ EVENTS_LOGGED: <n or none (<reason>)>
172
+ BLOCKED_BY: <reason or ->
173
+ NEXT: <one line — on pr_open: human review + merge; on blocked: the unblock action>
174
+ ```
175
+
176
+ (`COMMIT` repeats per commit; a single `COMMIT: -` line when none were made.)
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: invi-pr
3
+ description: Open the pull request for the current branch — pushes the branch, creates the PR with a rendered body (ticket reference, summary, gate results, checklist) via the gh CLI, or falls back to a compare URL built from the actual origin remote, and lists exactly what is missing for merge. Use when the user asks to open a PR, push for review, or as the final pipeline step before the human merge gate.
4
+ ---
5
+
6
+ # invi-pr — open the PR and prepare the merge
7
+
8
+ Publish the branch and open a standardized PR that "front-loads" the human review. **Merge is ALWAYS
9
+ human** — this skill prepares it, never performs it.
10
+
11
+ ## Standing rules
12
+
13
+ - Communicate with the user in the language configured in `.invictus/manifest.json` (`language.render`, default pt-BR); render the PR title/body in that language. Output-block keys stay EN.
14
+ - Config from the manifest: `project.baseBranch`, `project.protectedBranches`, `project.ticketPattern`. Manifest missing → stop, point to `invi init`.
15
+ - The remote/compare URL is derived from the ACTUAL `origin` remote — never hardcoded.
16
+ - Pre-conditions: security/tests/review/QA without blockers (check the task's gate results / `qa.md` when they exist). Open blockers → resolve first; the user may override explicitly, in which case list them in the PR body.
17
+
18
+ ## Procedure
19
+
20
+ ### 0. Prefer the deterministic gatekeeper
21
+
22
+ When the task record exists (`.invictus/tasks/<id>/`), run the verb FIRST (PIPELINE.md §8.6):
23
+
24
+ ```bash
25
+ invi ship <task-id>
26
+ ```
27
+
28
+ It performs steps 1, 2 and 4 below deterministically — asserts `qa_ok` + the four-gate record in the
29
+ event log + tests green NOW (manifest commands), pushes the branch (never a protected one), renders the
30
+ PR body from `task.json` + plan + gate events, creates the PR via `gh` (or prints the compare URL from
31
+ the real origin), and sets `pr_open`. A refusal names every problem — fix them, don't work around the
32
+ verb. After it succeeds, finish with step 3 (CI/reviewers) and the `MISSING_FOR_MERGE` handoff; the
33
+ generated `.invictus/tasks/<id>/pr-body.md` is the body to reuse/extend.
34
+
35
+ Fall back to the manual procedure below when the CLI is unavailable, there is no task record, or the
36
+ repo's PR template needs judgment beyond the generated body — and say which path was taken.
37
+
38
+ ### 1. Publish the branch
39
+
40
+ ```bash
41
+ git push -u origin <branch>
42
+ ```
43
+
44
+ Push is to the task branch — never to a branch in `protectedBranches`. Push rejected (no permission, no
45
+ remote)? Report exactly what failed and continue to the fallback output so the human can act.
46
+
47
+ ### 2. Open the PR
48
+
49
+ **If `gh` is available and authenticated** (`gh auth status`):
50
+
51
+ ```bash
52
+ gh pr create --base <baseBranch> --head <branch> \
53
+ --title "<type>(<scope>): <description> [<ticket>]" \
54
+ --body-file <rendered body>
55
+ ```
56
+
57
+ Render the body from the repo's PR template (`.github/pull_request_template.md`) when one exists —
58
+ fill it, don't fight it. Otherwise use this structure (in the render language):
59
+
60
+ ```markdown
61
+ ## Ticket
62
+ <ticket id + URL from .invictus/tasks/<id>/task.json when present>
63
+
64
+ ## Summary
65
+ <what and why, 2–5 lines>
66
+
67
+ ## Change type
68
+ feat | fix | refactor | …
69
+
70
+ ## How to test
71
+ <commands / steps from the plan and qa.md>
72
+
73
+ ## Gate results
74
+ - Security: <verdict> · Tests: <verdict per workspace> · Review: <verdict> · QA: <verdict> (.invictus/tasks/<id>/qa.md)
75
+ - Catastrophic-risk case: <pass | not-verified | n/a>
76
+
77
+ ## Checklist
78
+ - [ ] No secrets, no debug leftovers
79
+ - [ ] Tests cover the change (unit + integration where applicable)
80
+ - [ ] Reservations from review/QA addressed or listed below
81
+
82
+ ## Risks / reservations
83
+ <from review WITH_RESERVATIONS / QA — or "none">
84
+ ```
85
+
86
+ **If the remote is GitLab and `glab` is available and authenticated** (`glab auth status`):
87
+
88
+ ```bash
89
+ glab mr create --source-branch <branch> --target-branch <baseBranch> \
90
+ --title "<type>(<scope>): <description> [<ticket>]" \
91
+ --description "$(cat <rendered body>)" \
92
+ --remove-source-branch --yes
93
+ ```
94
+
95
+ Same body as above, rendered from `.gitlab/merge_request_templates/*.md` when the repo ships one.
96
+ `--yes` skips the interactive prompts; without it the command blocks forever in a headless run.
97
+ Self-hosted GitLab needs the host registered once per machine — `glab auth login --hostname
98
+ <host>` — and `glab` reads the remote to find the project, so run it inside the repo.
99
+
100
+ **If neither CLI is available or authenticated:** build the compare URL from the actual remote:
101
+
102
+ ```bash
103
+ git remote get-url origin
104
+ # git@host:org/repo.git → https://host/org/repo
105
+ # https://host/org/repo.git → strip .git
106
+ ```
107
+
108
+ - GitHub-shaped host: `<web>/compare/<baseBranch>...<branch>?expand=1`
109
+ - GitLab-shaped host: `<web>/-/merge_requests/new?merge_request[source_branch]=<branch>`
110
+ - Unknown host: print base + branch + the fully rendered body for manual creation.
111
+
112
+ Print the URL and the rendered body; mark `PR: -`.
113
+
114
+ ### 3. CI and reviewers
115
+
116
+ - CI that triggers on `pull_request` starts on its own; say whether a CI workflow exists in the repo (`.github/workflows/` or equivalent) — `CI: triggered | unknown`.
117
+ - Suggest reviewers per `CODEOWNERS` when present; otherwise leave it to the team.
118
+ - Merge strategy: follow the repo/team convention — do not impose one, and never merge.
119
+
120
+ ### 4. Record the state + hand off to the human
121
+
122
+ - PR created (or compare URL handed off) and the task record exists under `.invictus/tasks/<id>/` →
123
+ `invi task state <id> pr_open` (PIPELINE.md §3; already done when step 0 shipped via
124
+ `invi ship`; CLI unavailable → say the state was not recorded).
125
+ - State exactly what is missing for merge (`MISSING_FOR_MERGE`): human review, CI green, QA reservations,
126
+ etc. Status sync back to any tracker happens outside this skill (orchestrator/human). Post-merge `done`
127
+ is recorded by the human/platform (`invi task state <id> done`) — never by this skill.
128
+
129
+ ## Output block
130
+
131
+ End with (grammar: `content/PIPELINE.md` §5):
132
+
133
+ ```INVICTUS-RESULT
134
+ BLOCK: PR
135
+ TASK: <ticket id>
136
+ BRANCH: <branch>
137
+ PR: <url or ->
138
+ COMPARE_URL: <url or ->
139
+ CI: triggered | unknown | -
140
+ MISSING_FOR_MERGE: <list — e.g. human-review, ci-green>
141
+ NEXT: human review + merge — merge is always a human decision
142
+ ```