@jaimevalasek/aioson 1.7.0 → 1.8.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 (383) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +153 -10
  3. package/docs/en/cli-reference.md +56 -1
  4. package/docs/en/i18n.md +18 -18
  5. package/docs/en/schemas/index.json +10 -0
  6. package/docs/en/schemas/parallel-assign.schema.json +9 -0
  7. package/docs/en/schemas/parallel-doctor.schema.json +36 -0
  8. package/docs/en/schemas/parallel-guard.schema.json +63 -0
  9. package/docs/en/schemas/parallel-merge.schema.json +84 -0
  10. package/docs/en/schemas/parallel-status.schema.json +91 -1
  11. package/docs/integrations/apps-publish-marketplace.md +94 -0
  12. package/docs/pt/README.md +9 -0
  13. package/docs/pt/agentes.md +324 -3
  14. package/docs/pt/clientes-ai.md +7 -3
  15. package/docs/pt/comandos-cli.md +160 -13
  16. package/docs/pt/compress-agents.md +304 -0
  17. package/docs/pt/design-docs-governance.md +59 -0
  18. package/docs/pt/feature-archive.md +191 -0
  19. package/docs/pt/genome-3.0-spec.md +115 -4
  20. package/docs/pt/genome-distribution.md +232 -0
  21. package/docs/pt/inicio-rapido.md +1 -0
  22. package/docs/pt/motor-hardening.md +492 -0
  23. package/docs/pt/runner-system.md +113 -0
  24. package/package.json +2 -1
  25. package/src/agent-manifests.js +66 -0
  26. package/src/agents.js +27 -7
  27. package/src/autonomy-policy.js +139 -0
  28. package/src/brain-query.js +161 -0
  29. package/src/cli.js +1377 -1099
  30. package/src/commands/agents.js +102 -7
  31. package/src/commands/artifact-validate.js +33 -4
  32. package/src/commands/auth.js +272 -0
  33. package/src/commands/brain-query.js +44 -0
  34. package/src/commands/briefing.js +344 -0
  35. package/src/commands/commit-prepare.js +547 -0
  36. package/src/commands/compress-agents.js +416 -0
  37. package/src/commands/context-health.js +4 -2
  38. package/src/commands/context-trim.js +17 -11
  39. package/src/commands/design-hybrid-options.js +3 -3
  40. package/src/commands/devlog-process.js +6 -4
  41. package/src/commands/dossier.js +423 -0
  42. package/src/commands/feature-archive.js +513 -0
  43. package/src/commands/feature-close.js +123 -18
  44. package/src/commands/gate-approve.js +198 -0
  45. package/src/commands/gate-check.js +24 -5
  46. package/src/commands/genome-doctor.js +166 -9
  47. package/src/commands/git-guard.js +170 -0
  48. package/src/commands/harness.js +121 -0
  49. package/src/commands/implementation-plan.js +47 -20
  50. package/src/commands/init.js +6 -2
  51. package/src/commands/install.js +6 -2
  52. package/src/commands/live.js +497 -56
  53. package/src/commands/locale-apply.js +9 -6
  54. package/src/commands/locale-diff.js +11 -112
  55. package/src/commands/mcp-doctor.js +2 -1
  56. package/src/commands/mcp-init.js +4 -10
  57. package/src/commands/memory.js +234 -0
  58. package/src/commands/parallel-assign.js +107 -27
  59. package/src/commands/parallel-doctor.js +416 -3
  60. package/src/commands/parallel-guard.js +241 -0
  61. package/src/commands/parallel-init.js +66 -4
  62. package/src/commands/parallel-merge.js +299 -0
  63. package/src/commands/parallel-status.js +147 -3
  64. package/src/commands/preflight.js +63 -4
  65. package/src/commands/qa-init.js +10 -5
  66. package/src/commands/revision.js +235 -0
  67. package/src/commands/scaffold-complete.js +188 -0
  68. package/src/commands/security-audit.js +275 -0
  69. package/src/commands/security-scan.js +376 -0
  70. package/src/commands/self-implement-loop.js +46 -2
  71. package/src/commands/setup-context.js +11 -10
  72. package/src/commands/squad-agent-create.js +51 -9
  73. package/src/commands/squad-investigate.js +53 -0
  74. package/src/commands/squad-plan.js +33 -1
  75. package/src/commands/squad-scaffold.js +4 -3
  76. package/src/commands/squad-score.js +71 -14
  77. package/src/commands/squad-status.js +22 -1
  78. package/src/commands/squad-validate.js +93 -2
  79. package/src/commands/store-genome.js +304 -0
  80. package/src/commands/store-skill.js +247 -0
  81. package/src/commands/store-squad.js +431 -0
  82. package/src/commands/store-system.js +392 -0
  83. package/src/commands/tool-capabilities.js +63 -0
  84. package/src/commands/update.js +3 -3
  85. package/src/commands/verify-gate.js +40 -0
  86. package/src/commands/workflow-execute.js +644 -155
  87. package/src/commands/workflow-harden.js +231 -0
  88. package/src/commands/workflow-heal.js +136 -0
  89. package/src/commands/workflow-next.js +460 -22
  90. package/src/commands/workflow-status.js +328 -138
  91. package/src/commands/workspace.js +144 -0
  92. package/src/constants.js +55 -75
  93. package/src/context-memory.js +133 -4
  94. package/src/context-writer.js +2 -1
  95. package/src/context.js +32 -2
  96. package/src/doctor.js +46 -6
  97. package/src/dossier/codemap-store.js +267 -0
  98. package/src/dossier/dossier-bootstrap.js +222 -0
  99. package/src/dossier/dossier-compact.js +159 -0
  100. package/src/dossier/lock.js +128 -0
  101. package/src/dossier/revision-store.js +313 -0
  102. package/src/dossier/schema.js +155 -0
  103. package/src/dossier/store.js +400 -0
  104. package/src/execution-gateway.js +3 -0
  105. package/src/friction-scanner.js +202 -0
  106. package/src/genome-schema.js +24 -1
  107. package/src/genomes.js +33 -0
  108. package/src/handoff-contract.js +363 -0
  109. package/src/handoff-validator.js +45 -0
  110. package/src/harness/circuit-breaker.js +135 -0
  111. package/src/i18n/messages/en.js +317 -22
  112. package/src/i18n/messages/es.js +259 -18
  113. package/src/i18n/messages/fr.js +260 -18
  114. package/src/i18n/messages/pt-BR.js +313 -22
  115. package/src/install-profile.js +0 -16
  116. package/src/installer.js +70 -6
  117. package/src/lib/git-commit-guard.js +691 -0
  118. package/src/lib/security/artifact-reader.js +167 -0
  119. package/src/lib/security/exit-codes.js +51 -0
  120. package/src/lib/security/findings-writer.js +176 -0
  121. package/src/lib/security/runtime-events.js +77 -0
  122. package/src/lib/security/secrets-regex.js +115 -0
  123. package/src/lib/store/security-scan.js +173 -0
  124. package/src/lib/terminal-checkbox.js +130 -0
  125. package/src/lib/tmux-launcher.js +163 -0
  126. package/src/lib/tool-capabilities.js +102 -0
  127. package/src/locales.js +12 -8
  128. package/src/parallel-workspace.js +756 -0
  129. package/src/parser.js +8 -1
  130. package/src/path-guard.js +47 -0
  131. package/src/preflight-engine.js +237 -26
  132. package/src/self-healing.js +142 -0
  133. package/src/session-handoff.js +111 -1
  134. package/src/squad/squad-scaffold.js +183 -19
  135. package/src/test-briefing.js +226 -0
  136. package/src/updater.js +1 -1
  137. package/src/utils.js +3 -0
  138. package/src/workflow-gates.js +185 -0
  139. package/template/.aioson/agents/analyst.md +76 -130
  140. package/template/.aioson/agents/architect.md +53 -86
  141. package/template/.aioson/agents/committer.md +161 -0
  142. package/template/.aioson/agents/copywriter.md +463 -0
  143. package/template/.aioson/agents/cypher.md +252 -0
  144. package/template/.aioson/agents/dev.md +112 -600
  145. package/template/.aioson/agents/deyvin.md +33 -235
  146. package/template/.aioson/agents/discover.md +235 -0
  147. package/template/.aioson/agents/discovery-design-doc.md +17 -252
  148. package/template/.aioson/agents/genome.md +76 -26
  149. package/template/.aioson/agents/manifests/analyst.manifest.json +26 -0
  150. package/template/.aioson/agents/manifests/architect.manifest.json +23 -0
  151. package/template/.aioson/agents/manifests/committer.manifest.json +23 -0
  152. package/template/.aioson/agents/manifests/dev.manifest.json +37 -0
  153. package/template/.aioson/agents/manifests/orchestrator.manifest.json +30 -0
  154. package/template/.aioson/agents/manifests/pentester.manifest.json +39 -0
  155. package/template/.aioson/agents/manifests/pm.manifest.json +26 -0
  156. package/template/.aioson/agents/manifests/product.manifest.json +23 -0
  157. package/template/.aioson/agents/manifests/qa.manifest.json +25 -0
  158. package/template/.aioson/agents/manifests/setup.manifest.json +20 -0
  159. package/template/.aioson/agents/manifests/ux-ui.manifest.json +24 -0
  160. package/template/.aioson/agents/neo.md +10 -8
  161. package/template/.aioson/agents/orache.md +2 -6
  162. package/template/.aioson/agents/orchestrator.md +81 -182
  163. package/template/.aioson/agents/pentester.md +235 -0
  164. package/template/.aioson/agents/pm.md +40 -104
  165. package/template/.aioson/agents/product.md +99 -344
  166. package/template/.aioson/agents/profiler-enricher.md +57 -6
  167. package/template/.aioson/agents/profiler-forge.md +17 -7
  168. package/template/.aioson/agents/profiler-researcher.md +29 -6
  169. package/template/.aioson/agents/qa.md +165 -410
  170. package/template/.aioson/agents/setup.md +52 -262
  171. package/template/.aioson/agents/sheldon.md +122 -754
  172. package/template/.aioson/agents/site-forge.md +111 -1583
  173. package/template/.aioson/agents/squad.md +139 -1820
  174. package/template/.aioson/agents/tester.md +10 -0
  175. package/template/.aioson/agents/ux-ui.md +103 -645
  176. package/template/.aioson/agents/validator.md +69 -0
  177. package/template/.aioson/brains/scripts/query.js +5 -1
  178. package/template/.aioson/config/autonomy-protocol.json +43 -0
  179. package/template/.aioson/config.md +43 -15
  180. package/template/.aioson/constitution.md +36 -33
  181. package/template/.aioson/context/design-doc.md +136 -0
  182. package/template/.aioson/context/project-map.md +57 -0
  183. package/template/.aioson/design-docs/code-reuse.md +48 -0
  184. package/template/.aioson/design-docs/componentization.md +47 -0
  185. package/template/.aioson/design-docs/file-size.md +52 -0
  186. package/template/.aioson/design-docs/folder-structure.md +51 -0
  187. package/template/.aioson/design-docs/naming.md +54 -0
  188. package/template/.aioson/docs/LAYERS.md +12 -2
  189. package/template/.aioson/docs/dev/execution-discipline.md +106 -0
  190. package/template/.aioson/docs/dev/stack-conventions.md +83 -0
  191. package/template/.aioson/docs/deyvin/continuity-recovery.md +57 -0
  192. package/template/.aioson/docs/deyvin/debugging-escalation.md +30 -0
  193. package/template/.aioson/docs/deyvin/pair-execution.md +44 -0
  194. package/template/.aioson/docs/deyvin/runtime-handoffs.md +36 -0
  195. package/template/.aioson/docs/product/conversation-playbook.md +116 -0
  196. package/template/.aioson/docs/product/prd-contract.md +107 -0
  197. package/template/.aioson/docs/product/quality-lens.md +57 -0
  198. package/template/.aioson/docs/product/research-loop.md +65 -0
  199. package/template/.aioson/docs/sheldon/enrichment-paths.md +134 -0
  200. package/template/.aioson/docs/sheldon/quality-lens.md +57 -0
  201. package/template/.aioson/docs/sheldon/research-loop.md +56 -0
  202. package/template/.aioson/docs/sheldon/web-intelligence.md +75 -0
  203. package/template/.aioson/docs/site-forge-build.md +195 -0
  204. package/template/.aioson/docs/site-forge-extraction.md +135 -0
  205. package/template/.aioson/docs/site-forge-qa.md +155 -0
  206. package/template/.aioson/docs/site-forge-recon.md +434 -0
  207. package/template/.aioson/docs/site-forge-transform.md +249 -0
  208. package/template/.aioson/docs/squad/content-output.md +91 -0
  209. package/template/.aioson/docs/squad/creation-flow.md +135 -0
  210. package/template/.aioson/docs/squad/domain-classification.md +117 -0
  211. package/template/.aioson/docs/squad/genome-bindings.md +47 -0
  212. package/template/.aioson/docs/squad/package-contract.md +234 -0
  213. package/template/.aioson/docs/squad/quality-lens.md +56 -0
  214. package/template/.aioson/docs/squad/research-loop.md +59 -0
  215. package/template/.aioson/docs/squad/session-operations.md +117 -0
  216. package/template/.aioson/docs/squad/workflow-quality.md +165 -0
  217. package/template/.aioson/docs/ux-ui/accessibility-audit.md +55 -0
  218. package/template/.aioson/docs/ux-ui/audit-mode.md +86 -0
  219. package/template/.aioson/docs/ux-ui/component-map.md +35 -0
  220. package/template/.aioson/docs/ux-ui/design-execution.md +111 -0
  221. package/template/.aioson/docs/ux-ui/design-gate.md +27 -0
  222. package/template/.aioson/docs/ux-ui/research-mode.md +39 -0
  223. package/template/.aioson/docs/ux-ui/site-delivery.md +156 -0
  224. package/template/.aioson/docs/ux-ui/token-contract.md +57 -0
  225. package/template/.aioson/genomes/copywriting.md +204 -0
  226. package/template/.aioson/genomes/copywriting.meta.json +48 -0
  227. package/template/.aioson/git-guard.json +11 -0
  228. package/template/.aioson/mcp/servers.md +0 -1
  229. package/template/.aioson/rules/agent-language-policy.md +93 -0
  230. package/template/.aioson/rules/aioson-context-boundary.md +63 -0
  231. package/template/.aioson/rules/canonical-path-contract.md +47 -0
  232. package/template/.aioson/rules/data-format-convention.md +24 -86
  233. package/template/.aioson/rules/disk-first-artifacts.md +44 -0
  234. package/template/.aioson/rules/output-brevity.md +44 -0
  235. package/template/.aioson/rules/prd-section-ownership.md +49 -0
  236. package/template/.aioson/rules/security-baseline.md +139 -0
  237. package/template/.aioson/rules/spec-level-ownership.md +61 -0
  238. package/template/.aioson/rules/squad-driver-pattern.md +81 -0
  239. package/template/.aioson/schemas/squad-blueprint.schema.json +24 -0
  240. package/template/.aioson/schemas/squad-manifest.schema.json +44 -0
  241. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +2 -0
  242. package/template/.aioson/skills/marketing/references/anti-patterns.md +254 -0
  243. package/template/.aioson/skills/marketing/references/fascinations.md +192 -0
  244. package/template/.aioson/skills/marketing/references/five-acts.md +248 -0
  245. package/template/.aioson/skills/marketing/references/market-intelligence.md +198 -0
  246. package/template/.aioson/skills/marketing/references/offer-structure.md +203 -0
  247. package/template/.aioson/skills/marketing/references/one-belief.md +149 -0
  248. package/template/.aioson/skills/marketing/references/patterns.md +218 -0
  249. package/template/.aioson/skills/marketing/references/pms-research.md +193 -0
  250. package/template/.aioson/skills/marketing/vsl-craft.md +385 -0
  251. package/template/.aioson/skills/process/aioson-spec-driven/references/pm.md +30 -0
  252. package/template/.aioson/skills/process/secure-tdd/SKILL.md +97 -0
  253. package/template/.aioson/skills/process/secure-tdd/references/nextjs.md +81 -0
  254. package/template/.aioson/skills/process/secure-tdd/references/node-express.md +91 -0
  255. package/template/.aioson/skills/process/secure-tdd/references/planned-stacks.md +33 -0
  256. package/template/.aioson/skills/static/harness-validate/SKILL.md +46 -0
  257. package/template/.aioson/skills/static/landing-page-deploy.md +192 -0
  258. package/template/.aioson/skills/static/landing-page-forge.md +730 -0
  259. package/template/.aioson/skills/static/ui-ux-modern.md +1 -0
  260. package/template/.aioson/skills/static/web-research-cache.md +3 -0
  261. package/template/.aioson/tasks/squad-create.md +56 -7
  262. package/template/.aioson/tasks/squad-design.md +80 -2
  263. package/template/.aioson/tasks/squad-investigate.md +14 -1
  264. package/template/.aioson/templates/squads/digital-marketing-agency/template.json +96 -0
  265. package/template/.claude/commands/aioson/agent/committer.md +5 -0
  266. package/template/.claude/commands/aioson/agent/copywriter.md +5 -0
  267. package/template/.claude/commands/aioson/agent/cypher.md +5 -0
  268. package/template/.claude/commands/aioson/agent/pair.md +5 -0
  269. package/template/.claude/commands/aioson/agent/validator.md +5 -0
  270. package/template/.gemini/commands/aios-analyst.toml +6 -3
  271. package/template/.gemini/commands/aios-architect.toml +7 -6
  272. package/template/.gemini/commands/aios-committer.toml +7 -0
  273. package/template/.gemini/commands/aios-copywriter.toml +7 -0
  274. package/template/.gemini/commands/aios-cypher.toml +7 -0
  275. package/template/.gemini/commands/aios-dev.toml +8 -7
  276. package/template/.gemini/commands/aios-deyvin.toml +6 -5
  277. package/template/.gemini/commands/aios-discovery-design-doc.toml +6 -3
  278. package/template/.gemini/commands/aios-genome.toml +7 -0
  279. package/template/.gemini/commands/aios-neo.toml +5 -3
  280. package/template/.gemini/commands/aios-orache.toml +7 -0
  281. package/template/.gemini/commands/aios-orchestrator.toml +8 -7
  282. package/template/.gemini/commands/aios-pair.toml +6 -5
  283. package/template/.gemini/commands/aios-pm.toml +8 -7
  284. package/template/.gemini/commands/aios-product.toml +5 -3
  285. package/template/.gemini/commands/aios-qa.toml +6 -5
  286. package/template/.gemini/commands/aios-setup.toml +5 -2
  287. package/template/.gemini/commands/aios-sheldon.toml +7 -0
  288. package/template/.gemini/commands/aios-site-forge.toml +7 -0
  289. package/template/.gemini/commands/aios-squad.toml +7 -0
  290. package/template/.gemini/commands/aios-tester.toml +6 -5
  291. package/template/.gemini/commands/aios-ux-ui.toml +8 -7
  292. package/template/.gemini/commands/aios-validator.toml +7 -0
  293. package/template/AGENTS.md +12 -1
  294. package/template/CLAUDE.md +6 -1
  295. package/template/.aioson/locales/en/agents/analyst.md +0 -244
  296. package/template/.aioson/locales/en/agents/architect.md +0 -245
  297. package/template/.aioson/locales/en/agents/dev.md +0 -397
  298. package/template/.aioson/locales/en/agents/deyvin.md +0 -137
  299. package/template/.aioson/locales/en/agents/discovery-design-doc.md +0 -27
  300. package/template/.aioson/locales/en/agents/genome.md +0 -212
  301. package/template/.aioson/locales/en/agents/neo.md +0 -8
  302. package/template/.aioson/locales/en/agents/orache.md +0 -6
  303. package/template/.aioson/locales/en/agents/orchestrator.md +0 -189
  304. package/template/.aioson/locales/en/agents/pair.md +0 -5
  305. package/template/.aioson/locales/en/agents/pm.md +0 -84
  306. package/template/.aioson/locales/en/agents/product.md +0 -378
  307. package/template/.aioson/locales/en/agents/profiler-enricher.md +0 -5
  308. package/template/.aioson/locales/en/agents/profiler-forge.md +0 -5
  309. package/template/.aioson/locales/en/agents/profiler-researcher.md +0 -5
  310. package/template/.aioson/locales/en/agents/qa.md +0 -270
  311. package/template/.aioson/locales/en/agents/setup.md +0 -421
  312. package/template/.aioson/locales/en/agents/sheldon.md +0 -455
  313. package/template/.aioson/locales/en/agents/squad.md +0 -449
  314. package/template/.aioson/locales/en/agents/tester.md +0 -6
  315. package/template/.aioson/locales/en/agents/ux-ui.md +0 -668
  316. package/template/.aioson/locales/es/agents/analyst.md +0 -225
  317. package/template/.aioson/locales/es/agents/architect.md +0 -245
  318. package/template/.aioson/locales/es/agents/dev.md +0 -370
  319. package/template/.aioson/locales/es/agents/deyvin.md +0 -99
  320. package/template/.aioson/locales/es/agents/discovery-design-doc.md +0 -21
  321. package/template/.aioson/locales/es/agents/genome.md +0 -104
  322. package/template/.aioson/locales/es/agents/neo.md +0 -50
  323. package/template/.aioson/locales/es/agents/orache.md +0 -105
  324. package/template/.aioson/locales/es/agents/orchestrator.md +0 -194
  325. package/template/.aioson/locales/es/agents/pair.md +0 -7
  326. package/template/.aioson/locales/es/agents/pm.md +0 -90
  327. package/template/.aioson/locales/es/agents/product.md +0 -372
  328. package/template/.aioson/locales/es/agents/profiler-enricher.md +0 -7
  329. package/template/.aioson/locales/es/agents/profiler-forge.md +0 -7
  330. package/template/.aioson/locales/es/agents/profiler-researcher.md +0 -7
  331. package/template/.aioson/locales/es/agents/qa.md +0 -198
  332. package/template/.aioson/locales/es/agents/setup.md +0 -405
  333. package/template/.aioson/locales/es/agents/sheldon.md +0 -309
  334. package/template/.aioson/locales/es/agents/squad.md +0 -532
  335. package/template/.aioson/locales/es/agents/tester.md +0 -9
  336. package/template/.aioson/locales/es/agents/ux-ui.md +0 -212
  337. package/template/.aioson/locales/fr/agents/analyst.md +0 -225
  338. package/template/.aioson/locales/fr/agents/architect.md +0 -245
  339. package/template/.aioson/locales/fr/agents/dev.md +0 -370
  340. package/template/.aioson/locales/fr/agents/deyvin.md +0 -99
  341. package/template/.aioson/locales/fr/agents/discovery-design-doc.md +0 -21
  342. package/template/.aioson/locales/fr/agents/genome.md +0 -104
  343. package/template/.aioson/locales/fr/agents/neo.md +0 -50
  344. package/template/.aioson/locales/fr/agents/orache.md +0 -106
  345. package/template/.aioson/locales/fr/agents/orchestrator.md +0 -194
  346. package/template/.aioson/locales/fr/agents/pair.md +0 -7
  347. package/template/.aioson/locales/fr/agents/pm.md +0 -90
  348. package/template/.aioson/locales/fr/agents/product.md +0 -372
  349. package/template/.aioson/locales/fr/agents/profiler-enricher.md +0 -7
  350. package/template/.aioson/locales/fr/agents/profiler-forge.md +0 -7
  351. package/template/.aioson/locales/fr/agents/profiler-researcher.md +0 -7
  352. package/template/.aioson/locales/fr/agents/qa.md +0 -198
  353. package/template/.aioson/locales/fr/agents/setup.md +0 -405
  354. package/template/.aioson/locales/fr/agents/sheldon.md +0 -309
  355. package/template/.aioson/locales/fr/agents/squad.md +0 -532
  356. package/template/.aioson/locales/fr/agents/tester.md +0 -9
  357. package/template/.aioson/locales/fr/agents/ux-ui.md +0 -212
  358. package/template/.aioson/locales/pt-BR/agents/analyst.md +0 -319
  359. package/template/.aioson/locales/pt-BR/agents/architect.md +0 -284
  360. package/template/.aioson/locales/pt-BR/agents/dev.md +0 -483
  361. package/template/.aioson/locales/pt-BR/agents/deyvin.md +0 -184
  362. package/template/.aioson/locales/pt-BR/agents/discovery-design-doc.md +0 -198
  363. package/template/.aioson/locales/pt-BR/agents/genome.md +0 -297
  364. package/template/.aioson/locales/pt-BR/agents/neo.md +0 -208
  365. package/template/.aioson/locales/pt-BR/agents/orache.md +0 -137
  366. package/template/.aioson/locales/pt-BR/agents/orchestrator.md +0 -324
  367. package/template/.aioson/locales/pt-BR/agents/pair.md +0 -5
  368. package/template/.aioson/locales/pt-BR/agents/pm.md +0 -182
  369. package/template/.aioson/locales/pt-BR/agents/product.md +0 -466
  370. package/template/.aioson/locales/pt-BR/agents/profiler-enricher.md +0 -5
  371. package/template/.aioson/locales/pt-BR/agents/profiler-forge.md +0 -5
  372. package/template/.aioson/locales/pt-BR/agents/profiler-researcher.md +0 -5
  373. package/template/.aioson/locales/pt-BR/agents/qa.md +0 -300
  374. package/template/.aioson/locales/pt-BR/agents/setup.md +0 -533
  375. package/template/.aioson/locales/pt-BR/agents/sheldon.md +0 -323
  376. package/template/.aioson/locales/pt-BR/agents/squad.md +0 -1330
  377. package/template/.aioson/locales/pt-BR/agents/tester.md +0 -449
  378. package/template/.aioson/locales/pt-BR/agents/ux-ui.md +0 -669
  379. package/template/.aioson/skills/design-system/components/SKILL.md:Zone.Identifier +0 -0
  380. package/template/.aioson/skills/design-system/dashboards/SKILL.md:Zone.Identifier +0 -0
  381. package/template/.aioson/skills/design-system/foundations/SKILL.md:Zone.Identifier +0 -0
  382. package/template/.aioson/skills/design-system/motion/SKILL.md:Zone.Identifier +0 -0
  383. package/template/.aioson/skills/design-system/patterns/SKILL.md:Zone.Identifier +0 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,66 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ### Added
8
+ - **@pentester agent**: adversarial security review agent with structured findings output (`security-findings-{slug}.json`) and Gate D blocking capability for MEDIUM projects.
9
+ - **@discover agent**: system discovery and semantic knowledge cache bootstrap for brownfield projects.
10
+ - **git:guard**: pre-commit guardrail that blocks forbidden files (`node_modules/`, secrets, build artifacts) from being staged or committed. Supports `--install-hook` for persistent protection.
11
+ - **commit:prepare**: automated commit preparation command that collects staged diffs, runs `git:guard`, and generates `commit-prep.json` ready for `@committer`.
12
+ - **compress:agents**: token-reduction command with structural (free) and semantic (`--llm`) modes. Backs up originals to `.original.md` and supports `--restore`.
13
+ - **tmux launcher**: `live:start` now supports tmux for persistent terminal sessions with compact ANSI status bars.
14
+ - **Runner system**: `runner:run`, `runner:queue`, `runner:plan`, and `runner:daemon` commands for persistent background job execution.
15
+ - **Design-docs governance**: modular code governance system with 5 best-practice files (`folder-structure`, `componentization`, `code-reuse`, `naming`, `file-size`) distributed automatically on install and loaded unconditionally by `@dev` and `@deyvin`.
16
+ - **SDLC process upgrade**: gates and handoff protocol enhancements across the workflow engine.
17
+ - **Feature closure automation**: `feature:close` now auto-triggers `feature:archive` on `--verdict=PASS`, moving all feature artefacts (`prd-`, `spec-`, `requirements-`, etc.) to `.aioson/context/done/{slug}/` and updating `done/MANIFEST.md`. No manual steps required.
18
+ - **Feature archive command**: `feature:archive` with `--dry-run`, `--restore`, and `--force` for retrospective archival and archive restoration. Replaces the legacy `context:trim` workflow.
19
+ - **Agent awareness of archived features**: `@cypher`, `@discover`, `@neo`, and `@sheldon` now read `.aioson/context/done/MANIFEST.md` to avoid loading full archived files.
20
+
21
+ ### Changed
22
+ - **i18n architecture**: decoupled interaction language from agent prompts. Agent instruction files are now canonical English only; `conversation_language` in `project.context.md` controls user-facing language. Removed localized agent packs in favor of single canonical source.
23
+ - **Agent manifests**: moved `.manifest.json` files to `.aioson/agents/manifests/` subfolder to reduce clutter.
24
+ - **Core agents refactored**: `@product`, `@sheldon`, `@dev`, `@deyvin`, `@ux-ui`, and `@squad` split into deterministic on-demand modules for better context efficiency.
25
+ - **@committer**: enhanced with terminal checkbox UI, robust prepare fallback, and optimized workflow.
26
+ - **@squad**: enhanced with domain classification gate, investigation handoff, language policy, and package contract restoration.
27
+ - **Installer pipeline**: hardened with pentester agent integration and improved integrity checks.
28
+
29
+ ### Fixed
30
+ - `@dev` pt-BR locale realignment with canonical prompt flow.
31
+ - `@squad` genome bindings and package contract restoration.
32
+ - Legacy process safeguards restored across agents.
33
+ - Safe canonical English agent sources restored after i18n decoupling.
34
+ - Accidentally tracked local directories removed from git tracking.
35
+
36
+ ## [1.7.3] - 2026-04-13
37
+ ### Fixed
38
+ - `@dev` pt-BR locale pack realigned with the canonical prompt flow, restoring the proper cold-start fallback when `dev-state.md` is already `done` and another feature is still `in_progress` in `features.md`.
39
+ - Added a regression test to keep the `@dev` prompt synchronized between the canonical file and the pt-BR locale pack, preventing future drift in the distributed template.
40
+ - Setup prompt templates now reference the current `aioson_version` (`1.7.3`) instead of the stale `1.5.1` example.
41
+
42
+ ## [1.7.2] - 2026-04-07
43
+ ### Fixed
44
+ - Removed 5 spurious Windows alternate data stream files (`SKILL.md:Zone.Identifier`) from `template/.aioson/skills/design-system/` that leaked from a local Windows copy operation and were never tracked by git.
45
+ - `tests/agent-contracts.test.js`: added `neo`, `sheldon`, `tester`, and `orache` to the full locale coverage check; added a separate `BASE_ONLY_AGENTS` list (`copywriter`, `design-hybrid-forge`, `site-forge`) with a dedicated test that verifies their base files ship in the template. Previously these agents were not validated by the test suite.
46
+
47
+ ## [1.7.1] - 2026-04-07
48
+ ### Added
49
+ - **Marketing & copywriting system**: new `@copywriter` agent (5 operating modes including VSL scripts) backed by a generic `copywriting` genome (One Belief, 5 Acts, PMS framework, market sophistication levels, 10 heuristics).
50
+ - **Marketing references library** (`.aioson/skills/marketing/references/`): 8 on-demand reference files with 70+ patterns and anti-patterns covering One Belief, 5-Act narrative structure, fascinations (12 formulas), offer structure, PMS research, copy patterns, anti-patterns checklist, and market intelligence tools. Loaded conditionally by `@copywriter` to keep context lean.
51
+ - **VSL Craft skill** (`.aioson/skills/marketing/vsl-craft.md`): Video Sales Letter production playbook — 3 formats (horizontal/vertical/hybrid), 5-act script structure, 5 hook formulas, retention techniques, testing methodology, and production specs.
52
+ - **Marketing integration across agents**: `@neo` routes to `@copywriter` when `project_type=site` and copy is missing; `@setup` registers the copywriting genome and adds copy gate to site routing; `@dev` enforces a copy guard for marketing pages and reads the 5-Act structure from `copy-{slug}.md`; `@ux-ui` maps the 5 Acts to visual sections; `@deyvin` routes marketing copy requests to `@copywriter` instead of writing inline.
53
+ - **Landing page production skills**: `landing-page-forge.md` (animation libraries, performance, SEO/LLMO, tracking, 3-track parallel production checklist) and `landing-page-deploy.md` (Vercel and Hostinger VPS deploy paths).
54
+ - **Digital marketing agency squad template** under `template/.aioson/templates/squads/digital-marketing-agency/`.
55
+
56
+ ### Changed
57
+ - `@dev` site production section now includes a copy guard that blocks inline marketing copy on `project_type=site` pages — copy must come from `@copywriter` via `copy-{slug}.md`.
58
+ - `@ux-ui` copy gate now reads the 5-Act narrative structure from copy files and maps acts to UI sections.
59
+ - `@neo` workflow stage detection includes `Needs copy` for site projects without a copy file.
60
+ - `@setup` routing table splits `site` into two paths: `@copywriter → @ux-ui → @dev` (no copy yet) vs `@ux-ui → @dev` (copy ready).
61
+ - Misc updates to `@qa`, `@squad`, `squad-create`, `squad-design`, `cognitive-core-ui/motion`, `ui-ux-modern`, and `template/CLAUDE.md`.
62
+
63
+ ### Notes
64
+ - Marketing references are loaded conditionally by `@copywriter` only — other agents never load them directly. This keeps the marketing system isolated and prevents contaminating non-site projects.
65
+ - The copy guard triggers exclusively for `project_type=site` marketing/sales pages. SaaS UI, dashboards, app interfaces, and documentation sites use the standard implementation flow with no behavior change.
66
+
7
67
  ## [1.7.0] - 2026-04-06
8
68
  ### Added
9
69
  - **Squad autonomous execution system**: full multi-agent squad stack — intra-squad message bus (`intra-bus.js`, `squad:bus` command), executor reflection module (`reflection.js`), task decomposer, `squad:autorun` for end-to-end autonomous execution, learning system, squad daemon, verify-gate, and cross-AI synthesis. Intelligence gaps addressed in plans 80–82; 6 critical operational fixes in plan 83.
package/README.md CHANGED
@@ -114,7 +114,15 @@ npx @jaimevalasek/aioson update
114
114
  └───────────┼───────────┘
115
115
 
116
116
  ┌───────────────┐
117
+ │ /pentester │ ← Adversarial security review (MEDIUM)
118
+ └───────┬───────┘
119
+
120
+ ┌───────────────┐
117
121
  │ /qa │ ← Review, tests, browser QA
122
+ └───────┬───────┘
123
+
124
+ ┌───────────────┐
125
+ │ /tester │ ← Systematic test engineering (when needed)
118
126
  └───────────────┘
119
127
  ```
120
128
 
@@ -509,23 +517,31 @@ aioson squad:dashboard # real-time web monitoring panel
509
517
  | Agent | Role | Best for |
510
518
  |-------|------|----------|
511
519
  | `/setup` | Project onboarding & context | First step on any project |
520
+ | `/product` | Product decisions & PRD | Feature scope, user stories |
521
+ | `/sheldon` | Deep technical reasoning & PRD hardening | Hard engineering problems, spec review |
512
522
  | `/analyst` | Domain discovery & entity mapping | Understanding the problem space |
513
523
  | `/architect` | Project structure & technical decisions | Architecture, stack choices |
514
- | `/product` | Product decisions & PRD | Feature scope, user stories |
515
524
  | `/ux-ui` | UI/UX design system & component specs | Dashboards, flows, components |
516
525
  | `/pm` | Backlog & user stories | Sprint planning, task breakdown |
517
- | `/deyvin` / `/pair` | Feature implementation | Coding greenfield or brownfield |
526
+ | `/orchestrator` | Session protocol & parallel execution | Multi-agent coordination |
518
527
  | `/dev` | Feature implementation (any stack) | Focused dev tasks |
528
+ | `/deyvin` / `/pair` | Pair programming & continuity | Coding — greenfield or brownfield |
519
529
  | `/qa` | Risk-first review & test generation | Quality gates before ship |
520
- | `/orchestrator` | Session protocol & parallel execution | Multi-agent coordination |
530
+ | `/tester` | Systematic test engineering | Coverage gaps, legacy code testing |
531
+ | `/pentester` | Adversarial security review | Security gates before release |
521
532
  | `/squad` | Parallel agent squads | Large feature sets in parallel |
522
533
  | `/genome` | Agent knowledge & learning | Adaptive squad intelligence |
523
- | `/sheldon` | Deep technical reasoning | Hard engineering problems |
524
- | `/orache` | Orchestration & routing | Complex multi-step pipelines |
525
- | `/profiler-researcher` | Research & profiling | External data gathering |
526
- | `/profiler-enricher` | Profile enrichment | Data augmentation |
527
- | `/profiler-forge` | Profile generation | Structured output creation |
534
+ | `/committer` | Semantic commit messages | High-quality Git commits |
535
+ | `/cypher` | Plan structured briefing | Pre-production planning |
536
+ | `/copywriter` | Conversion copy & content | Marketing pages, VSL scripts |
537
+ | `/discover` | System discovery & semantic cache | Brownfield mapping, knowledge bootstrap |
538
+ | `/neo` | Onboarding & next steps | "Where do I start?" guidance |
539
+ | `/orache` | Market research & competitors | External data gathering |
540
+ | `/profiler-researcher` | Persona research & profiling | DNA mental research |
541
+ | `/profiler-enricher` | Profile enrichment | Cognitive analysis |
542
+ | `/profiler-forge` | Profile generation | Genome 3.0 advisor creation |
528
543
  | `/site-forge` | Site cloning & design extraction | Clone, harvest, blend, or forge skills from any URL |
544
+ | `/validator` | Deliverable validation | Pre-gate verification |
529
545
 
530
546
  ---
531
547
 
@@ -605,6 +621,28 @@ aioson live:close . --agent=qa --summary="QA complete, shipped"
605
621
 
606
622
  ---
607
623
 
624
+ ## AIOSON Store
625
+
626
+ Package, publish, and distribute squads, genomes, skills, and full systems through the AIOSON Store.
627
+
628
+ ```bash
629
+ # Package and publish your system/boilerplate
630
+ aioson system:package .
631
+ aioson system:publish . --name=my-stack
632
+
633
+ # Publish squads, genomes, and skills
634
+ aioson squad:publish . --squad=marketing --version=1.0.0
635
+ aioson genome:publish . --slug=fintech --version=1.0.0
636
+ aioson skill:publish . --slug=vue-spa --version=1.0.0
637
+
638
+ # Install from the Store
639
+ aioson squad:install . --slug=marketing --version=1.0.0
640
+ aioson genome:install . --slug=fintech
641
+ aioson system:install . --slug=laravel-saas
642
+ ```
643
+
644
+ Authentication via `auth:login` and workspace management via `workspace:*` commands are supported for cloud features.
645
+
608
646
  ## Commands
609
647
 
610
648
  <details>
@@ -613,12 +651,12 @@ aioson live:close . --agent=qa --summary="QA complete, shipped"
613
651
  ```bash
614
652
  aioson init <project-name> [--lang=en|pt-BR|es|fr] [--tool=codex|claude|gemini|opencode]
615
653
  aioson install [path] [--lang=en|pt-BR|es|fr] [--tool=codex|claude|gemini|opencode]
616
- aioson update [path] [--lang=en|pt-BR|es|fr]
654
+ aioson update [path] [--lang=en|pt-BR|es|fr] [--all]
617
655
  aioson info [path] [--json]
618
656
  aioson doctor [path] [--fix] [--dry-run] [--json]
619
657
  aioson setup:context [path] [--defaults] [--framework=<name>] [--lang=en|pt-BR|es|fr]
620
658
  aioson context:validate [path] [--json]
621
- aioson scan:project [path] [--provider=<name>] [--dry-run] [--json]
659
+ aioson scan:project [path] [--folder=src] [--with-llm] [--provider=<name>] [--dry-run] [--json]
622
660
  ```
623
661
 
624
662
  </details>
@@ -630,6 +668,26 @@ aioson scan:project [path] [--provider=<name>] [--dry-run] [--json]
630
668
  aioson agents
631
669
  aioson agent:prompt <agent> [--tool=codex|claude|gemini|opencode]
632
670
  aioson workflow:plan [path] [--classification=MICRO|SMALL|MEDIUM] [--json]
671
+ aioson workflow:next [path] [--complete] [--auto-heal] [--force]
672
+ aioson workflow:heal [path] --stage=<agent>
673
+ aioson workflow:harden [path] [--dry-run]
674
+ aioson workflow:execute [path] [--dry-run] [--start-from=<agent>]
675
+ ```
676
+
677
+ </details>
678
+
679
+ <details>
680
+ <summary><strong>SDD automation & gates</strong></summary>
681
+
682
+ ```bash
683
+ aioson preflight [path] [--json]
684
+ aioson classify [path] [--json]
685
+ aioson gate:check [path] --gate=A|B|C|D [--json]
686
+ aioson artifact:validate [path] --feature=<slug> [--json]
687
+ aioson detect:test-runner [path] [--json]
688
+ aioson agent:audit [path] [--json]
689
+ aioson brief:gen [path] --feature=<slug> [--json]
690
+ aioson verify:gate [path] --feature=<slug> [--json]
633
691
  ```
634
692
 
635
693
  </details>
@@ -646,6 +704,21 @@ aioson parallel:doctor [path] [--workers=2..6] [--fix] [--force] [--dry-run] [--
646
704
 
647
705
  </details>
648
706
 
707
+ <details>
708
+ <summary><strong>Live sessions & runtime</strong></summary>
709
+
710
+ ```bash
711
+ aioson live:start [path] --tool=codex|claude|gemini|opencode --agent=<agent> [--plan=<file>] [--no-launch]
712
+ aioson live:handoff [path] --agent=<agent> --to=<next-agent> --reason="..."
713
+ aioson live:status [path] [--watch=<seconds>]
714
+ aioson live:close [path] --agent=<agent> --summary="..."
715
+ aioson runtime:emit [path] --agent=<agent> --type=<event> --summary="..."
716
+ ```
717
+
718
+ `live:start` supports tmux for persistent terminal sessions. Use `--no-launch` to only prepare the tracked envelope without starting the client.
719
+
720
+ </details>
721
+
649
722
  <details>
650
723
  <summary><strong>MCP</strong></summary>
651
724
 
@@ -671,6 +744,58 @@ aioson qa:doctor [path] [--json]
671
744
 
672
745
  </details>
673
746
 
747
+ <details>
748
+ <summary><strong>Squads</strong></summary>
749
+
750
+ ```bash
751
+ aioson squad:status [path]
752
+ aioson squad:doctor [path] --squad=<slug>
753
+ aioson squad:validate [path] --squad=<slug>
754
+ aioson squad:export [path] --squad=<slug>
755
+ aioson squad:bus [path] --squad=<slug> --sub=post|read|watch|summary|list|clear
756
+ aioson squad:autorun [path] --squad=<slug> --goal="..."
757
+ aioson squad:daemon [path] --squad=<slug> --sub=start|stop|status
758
+ aioson squad:worker [path] --squad=<slug> --sub=list|run
759
+ aioson squad:dashboard [--port=4180] [--squad=<slug>]
760
+ ```
761
+
762
+ </details>
763
+
764
+ <details>
765
+ <summary><strong>Store & cloud</strong></summary>
766
+
767
+ ```bash
768
+ aioson auth:login --token ...
769
+ aioson auth:status
770
+ aioson workspace:init [path] --name=<slug>
771
+ aioson system:package [path]
772
+ aioson system:publish [path] --name=<slug>
773
+ aioson squad:publish [path] --squad=<slug> [--paid]
774
+ aioson squad:install [path] --slug=<slug>
775
+ aioson genome:publish [path] --slug=<slug>
776
+ aioson genome:install [path] --slug=<slug>
777
+ aioson skill:publish [path] --slug=<slug>
778
+ ```
779
+
780
+ </details>
781
+
782
+ <details>
783
+ <summary><strong>Context optimization</strong></summary>
784
+
785
+ ```bash
786
+ aioson context:pack [path] [--agent=<agent>] [--goal="..."] [--module=<folder>]
787
+ aioson context:health [path]
788
+ aioson feature:archive [path] --feature=<slug> [--dry-run] [--restore] [--force]
789
+ aioson context:monitor [path] [--budget=<n>] [--tokens=<n>]
790
+ aioson context:search:index [path]
791
+ aioson context:search [path] --query="..."
792
+ aioson context:cache:save --label=<name>
793
+ aioson context:cache:restore --label=<name>
794
+ aioson compress:agents [path] [--agent=<name>] [--rules] [--dry-run] [--restore]
795
+ ```
796
+
797
+ </details>
798
+
674
799
  <details>
675
800
  <summary><strong>i18n & locale</strong></summary>
676
801
 
@@ -683,10 +808,24 @@ Built-in locales: `en`, `pt-BR`, `es`, `fr`. Use `--lang` or `AIOS_LITE_LOCALE`
683
808
 
684
809
  </details>
685
810
 
811
+ <details>
812
+ <summary><strong>Git & committer</strong></summary>
813
+
814
+ ```bash
815
+ aioson commit:prepare [path] [--json]
816
+ aioson git:guard [path] [--install-hook] [--json]
817
+ ```
818
+
819
+ `commit:prepare` collects staged diffs, runs `git:guard`, and generates a `commit-prep.json` ready for `@committer`.
820
+ `git:guard` blocks commits with forbidden files (`node_modules/`, secrets, etc.) and can install a pre-commit hook.
821
+
822
+ </details>
823
+
686
824
  <details>
687
825
  <summary><strong>Testing & CI</strong></summary>
688
826
 
689
827
  ```bash
828
+ aioson test:agents [path]
690
829
  aioson test:smoke [workspace-path] [--lang=en|pt-BR|es|fr] [--web3=ethereum|solana|cardano] [--profile=standard|mixed|parallel] [--keep] [--json]
691
830
  aioson test:package [source-path] [--keep] [--dry-run] [--json]
692
831
  ```
@@ -768,6 +907,10 @@ aioson scan:project --json
768
907
  - [Agent sharding](docs/pt/agent-sharding.md)
769
908
  - [Guia do engenheiro](docs/pt/guia-engineer.md)
770
909
  - [Squad Dashboard (PT)](docs/pt/squad-dashboard.md)
910
+ - [SDD automation scripts](docs/pt/sdd-automation-scripts.md)
911
+ - [Motor hardening](docs/pt/motor-hardening.md)
912
+ - [Design-docs governance](docs/pt/design-docs-governance.md)
913
+ - [Runner system](docs/pt/runner-system.md)
771
914
 
772
915
  ---
773
916
 
@@ -313,7 +313,7 @@ Once the project is set up, each new feature follows a shorter sequence — no `
313
313
  @product → @analyst → @dev → @qa
314
314
  ```
315
315
 
316
- `@product` creates a feature-scoped `prd-{slug}.md` and registers the feature in `features.md`. `@analyst` produces `requirements-{slug}.md` and `spec-{slug}.md`. `@dev` reads the feature spec. `@qa` closes the feature by updating `spec-{slug}.md` with a QA sign-off and marking it `done` in `features.md`.
316
+ `@product` creates a feature-scoped `prd-{slug}.md` and registers the feature in `features.md`. `@analyst` produces `requirements-{slug}.md` and `spec-{slug}.md`. `@dev` reads the feature spec. `@qa` closes the feature by running `feature:close --verdict=PASS`, which updates `spec-{slug}.md` with a QA sign-off, marks it `done` in `features.md`, and automatically archives all feature artefacts to `.aioson/context/done/{slug}/`.
317
317
 
318
318
  The `SMALL` and MEDIUM outputs include a note reminding you of this sequence.
319
319
 
@@ -345,6 +345,61 @@ aioson workflow:next ./my-project --skip=dev
345
345
 
346
346
  ---
347
347
 
348
+ ## feature:close
349
+
350
+ Close a feature after QA sign-off, updating the spec, features registry, and project pulse — and automatically archive all feature artefacts on PASS.
351
+
352
+ ```bash
353
+ aioson feature:close . --feature=checkout --verdict=PASS --residual="none"
354
+ aioson feature:close . --feature=checkout --verdict=FAIL --notes="critical auth bug"
355
+ aioson feature:close . --feature=checkout --verdict=PASS --no-archive
356
+ ```
357
+
358
+ **Options:**
359
+ - `--feature=<slug>` — feature identifier (required).
360
+ - `--verdict=PASS|FAIL` — QA result (required).
361
+ - `--residual="..."` — residual risks or open notes for PASS (optional).
362
+ - `--notes="..."` — failure reason for FAIL (optional).
363
+ - `--no-archive` — skip automatic archival (useful for idempotent re-runs).
364
+ - `--json` — structured JSON output.
365
+
366
+ **What it does:**
367
+ 1. Appends a `## QA sign-off` section to `spec-{slug}.md`.
368
+ 2. Updates `features.md` with the new status (`done` or `qa_failed`) and completed date.
369
+ 3. Clears active work from `project-pulse.md`.
370
+ 4. If `verdict=PASS` and `--no-archive` is not set, calls `feature:archive` automatically to move all artefacts to `.aioson/context/done/{slug}/`.
371
+
372
+ **When to use:** run by `@qa` automatically when QA is approved. Can also be run manually.
373
+
374
+ ---
375
+
376
+ ## feature:archive
377
+
378
+ Move feature artefacts to the archive directory and maintain a manifest for lightweight historical lookup.
379
+
380
+ ```bash
381
+ aioson feature:archive . --feature=checkout
382
+ aioson feature:archive . --feature=checkout --dry-run
383
+ aioson feature:archive . --feature=checkout --restore
384
+ aioson feature:archive . --feature=checkout --restore --dry-run
385
+ aioson feature:archive . --feature=checkout --force
386
+ ```
387
+
388
+ **Options:**
389
+ - `--feature=<slug>` — feature identifier (required).
390
+ - `--dry-run` — preview what would be moved or restored without making changes.
391
+ - `--restore` — move artefacts back from `.aioson/context/done/{slug}/` to the context root.
392
+ - `--force` — archive even if the feature is not registered in `features.md` or is still `in_progress`.
393
+ - `--json` — structured JSON output with `moved`, `skipped`, `archiveDir`, and `manifestEntry`.
394
+
395
+ **What it moves:** any file in the root of `.aioson/context/` whose name contains the feature slug: `prd-{slug}.md`, `spec-{slug}.md`, `requirements-{slug}.md`, `sheldon-enrichment-{slug}.md`, `qa-report-{slug}.md`, `conformance-{slug}.yaml`, etc.
396
+
397
+ **What it never moves:** global files (`project.context.md`, `project-pulse.md`, `features.md`, `discovery.md`, etc.) and subdirectories (`bootstrap/`, `forensics/`, `parallel/`, `done/`).
398
+
399
+ **Manifest:** after each archive run, `.aioson/context/done/MANIFEST.md` is updated with a row summarizing the feature. Agents like `@cypher`, `@neo`, `@discover`, and `@sheldon` read this manifest instead of loading full archived files.
400
+
401
+ ---
402
+
348
403
  ## test:smoke
349
404
 
350
405
  End-to-end integration test that installs AIOSON in a temporary directory, runs all major commands, and verifies the output. Used for CI and release validation.
package/docs/en/i18n.md CHANGED
@@ -1,26 +1,30 @@
1
1
  # i18n Guide
2
2
 
3
- AIOSON CLI supports localization through message dictionaries.
3
+ AIOSON CLI supports localization through message dictionaries and a decoupled interaction language system.
4
4
 
5
5
  ## How it works
6
+
7
+ ### CLI localization
6
8
  - Dictionaries are stored in `src/i18n/messages/`.
7
9
  - `src/i18n/index.js` resolves locale and fallback behavior.
8
10
  - Commands use translation keys instead of hardcoded strings.
9
- - Agent templates read `conversation_language` from `.aioson/context/project.context.md` and should use it for interaction/output language.
10
- - Localized agent packs live in `.aioson/locales/<locale>/agents/` and can be applied to active prompts with `aioson locale:apply`.
11
+ - The CLI locale is controlled by `--locale=<lang>` or `AIOS_LITE_LOCALE` env var.
12
+
13
+ ### Agent interaction language (decoupled)
14
+ Agent instruction files are maintained in **canonical English** only. The interaction language is decoupled from the agent prompts:
15
+
16
+ - `conversation_language` in `.aioson/context/project.context.md` tells agents which language to use for **interaction and output** with the user.
17
+ - Agent **prompts and reasoning instructions** remain in English to ensure consistency and reduce drift across locales.
18
+ - `locale:apply` updates the agent files to reflect the chosen interaction language, but does **not** translate the core reasoning prompts.
19
+
20
+ This architecture (introduced in v1.7.3+) replaces the previous "localized agent packs" system. Localized agent packs in `.aioson/locales/<locale>/agents/` were removed in favor of a single canonical source + interaction-language metadata.
11
21
 
12
22
  ## Runtime selection
13
- - CLI option: `--locale=en`
14
- - Env var: `AIOS_LITE_LOCALE=en`
23
+ - CLI option: `--locale=en|pt-BR|es|fr`
24
+ - Env var: `AIOS_LITE_LOCALE=en|pt-BR|es|fr`
15
25
  - Default: `en`
16
26
 
17
- Built-in locales:
18
- - `en`
19
- - `pt-BR`
20
- - `es`
21
- - `fr`
22
-
23
- Built-in localized agent packs:
27
+ Built-in CLI locales:
24
28
  - `en`
25
29
  - `pt-BR`
26
30
  - `es`
@@ -32,12 +36,8 @@ Resolution behavior:
32
36
  - `fr-CA` and other `fr-*` variants resolve to `fr`.
33
37
  - Unknown locales fall back to `en`.
34
38
 
35
- ## Create a locale scaffold
36
- ```bash
37
- aioson i18n:add fr
38
- ```
39
+ ## Apply interaction language to agents
39
40
 
40
- ## Apply localized agent prompts
41
41
  ```bash
42
42
  # Use language from project.context.md
43
43
  aioson locale:apply
@@ -46,7 +46,7 @@ aioson locale:apply
46
46
  aioson locale:apply --lang=pt-BR
47
47
  ```
48
48
 
49
- ## Add a new locale
49
+ ## Add a new CLI locale
50
50
  1. Run `aioson i18n:add <locale>`.
51
51
  2. Replace English strings in `src/i18n/messages/<locale>.js`.
52
52
  3. Add tests for locale resolution and fallback behavior.
@@ -107,6 +107,16 @@
107
107
  "command": "aioson parallel:doctor --json",
108
108
  "file": "parallel-doctor.schema.json"
109
109
  },
110
+ {
111
+ "id": "parallel_merge",
112
+ "command": "aioson parallel:merge --json",
113
+ "file": "parallel-merge.schema.json"
114
+ },
115
+ {
116
+ "id": "parallel_guard",
117
+ "command": "aioson parallel:guard --json",
118
+ "file": "parallel-guard.schema.json"
119
+ },
110
120
  {
111
121
  "id": "cli_error",
112
122
  "command": "aioson <unknown> --json",
@@ -51,6 +51,15 @@
51
51
  "filesUpdated": {
52
52
  "type": "array",
53
53
  "items": { "type": "string" }
54
+ },
55
+ "machineFiles": {
56
+ "type": "object",
57
+ "properties": {
58
+ "workspaceManifest": { "type": "string" },
59
+ "ownershipMap": { "type": "string" },
60
+ "mergePlan": { "type": "string" }
61
+ },
62
+ "additionalProperties": true
54
63
  }
55
64
  },
56
65
  "additionalProperties": true
@@ -40,6 +40,9 @@
40
40
  "parallelDir": { "type": "string" },
41
41
  "dirExists": { "type": "boolean" },
42
42
  "sharedExists": { "type": "boolean" },
43
+ "manifestExists": { "type": "boolean" },
44
+ "ownershipExists": { "type": "boolean" },
45
+ "mergePlanExists": { "type": "boolean" },
43
46
  "laneFiles": {
44
47
  "type": "array",
45
48
  "items": { "type": "string" }
@@ -55,6 +58,39 @@
55
58
  },
56
59
  "additionalProperties": true
57
60
  },
61
+ "analysis": {
62
+ "type": "object",
63
+ "properties": {
64
+ "ownershipConflicts": {
65
+ "type": "array",
66
+ "items": { "type": "object", "additionalProperties": true }
67
+ },
68
+ "dependencies": {
69
+ "type": "object",
70
+ "properties": {
71
+ "declaredCount": { "type": "integer", "minimum": 0 },
72
+ "invalidCount": { "type": "integer", "minimum": 0 },
73
+ "blockedCount": { "type": "integer", "minimum": 0 },
74
+ "orderViolationCount": { "type": "integer", "minimum": 0 }
75
+ },
76
+ "additionalProperties": true
77
+ },
78
+ "sync": {
79
+ "type": "object",
80
+ "properties": {
81
+ "workspaceManifestInSync": { "type": "boolean" },
82
+ "ownershipMapInSync": { "type": "boolean" },
83
+ "mergePlanInSync": { "type": "boolean" },
84
+ "staleFiles": {
85
+ "type": "array",
86
+ "items": { "type": "string" }
87
+ }
88
+ },
89
+ "additionalProperties": true
90
+ }
91
+ },
92
+ "additionalProperties": true
93
+ },
58
94
  "checks": {
59
95
  "type": "array",
60
96
  "items": {
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aiosforge.dev/schemas/parallel-guard.schema.json",
4
+ "title": "AIOSON parallel:guard --json output",
5
+ "type": "object",
6
+ "required": [
7
+ "ok",
8
+ "targetDir",
9
+ "parallelDir",
10
+ "lane",
11
+ "requestedCount",
12
+ "laneWritePathCount",
13
+ "writeScope",
14
+ "results",
15
+ "allowedCount",
16
+ "deniedCount",
17
+ "denied"
18
+ ],
19
+ "properties": {
20
+ "ok": { "type": "boolean" },
21
+ "targetDir": { "type": "string" },
22
+ "parallelDir": { "type": "string" },
23
+ "lane": { "type": "integer", "minimum": 1 },
24
+ "requestedCount": { "type": "integer", "minimum": 1 },
25
+ "laneWritePathCount": { "type": "integer", "minimum": 0 },
26
+ "writeScope": {
27
+ "type": "object",
28
+ "properties": {
29
+ "laneCount": { "type": "integer", "minimum": 0 },
30
+ "totalPathCount": { "type": "integer", "minimum": 0 },
31
+ "invalidPatternCount": { "type": "integer", "minimum": 0 },
32
+ "conflictCount": { "type": "integer", "minimum": 0 }
33
+ },
34
+ "additionalProperties": true
35
+ },
36
+ "results": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "object",
40
+ "required": ["path", "ok", "reason", "matchedLanes"],
41
+ "properties": {
42
+ "path": { "type": "string" },
43
+ "normalizedPath": { "type": ["string", "null"] },
44
+ "ok": { "type": "boolean" },
45
+ "reason": { "type": "string" },
46
+ "ownerLane": { "type": "integer", "minimum": 1 },
47
+ "matchedLanes": {
48
+ "type": "array",
49
+ "items": { "type": "integer", "minimum": 1 }
50
+ }
51
+ },
52
+ "additionalProperties": true
53
+ }
54
+ },
55
+ "allowedCount": { "type": "integer", "minimum": 0 },
56
+ "deniedCount": { "type": "integer", "minimum": 0 },
57
+ "denied": {
58
+ "type": "array",
59
+ "items": { "type": "object", "additionalProperties": true }
60
+ }
61
+ },
62
+ "additionalProperties": true
63
+ }