@jaimevalasek/aioson 1.33.1 → 1.37.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 (162) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/docs/en/1-understand/ecosystem-map.md +45 -29
  3. package/docs/en/1-understand/glossary.md +6 -6
  4. package/docs/en/1-understand/what-is-aioson.md +5 -5
  5. package/docs/en/2-start/existing-project.md +7 -7
  6. package/docs/en/2-start/first-project.md +33 -39
  7. package/docs/en/2-start/initial-decisions.md +22 -19
  8. package/docs/en/3-recipes/README.md +2 -2
  9. package/docs/en/3-recipes/continuity-between-sessions.md +2 -2
  10. package/docs/en/3-recipes/from-idea-to-prd-via-briefing.md +13 -3
  11. package/docs/en/3-recipes/full-feature-with-sheldon.md +329 -338
  12. package/docs/en/4-agents/README.md +33 -16
  13. package/docs/en/4-agents/briefing-refiner.md +146 -0
  14. package/docs/en/4-agents/discovery-design-doc.md +20 -8
  15. package/docs/en/4-agents/forge-run.md +3 -2
  16. package/docs/en/5-reference/README.md +1 -0
  17. package/docs/en/5-reference/autopilot-handoff.md +286 -0
  18. package/docs/en/5-reference/cli-reference.md +57 -48
  19. package/docs/en/5-reference/executable-verification.md +10 -7
  20. package/docs/en/5-reference/parallel.md +2 -0
  21. package/docs/en/5-reference/qa-browser.md +2 -2
  22. package/docs/en/README.md +3 -3
  23. package/docs/pt/1-entender/glossario.md +5 -5
  24. package/docs/pt/1-entender/mapa-do-ecossistema.md +33 -22
  25. package/docs/pt/2-comecar/decisoes-iniciais.md +20 -18
  26. package/docs/pt/2-comecar/primeiro-projeto.md +2 -2
  27. package/docs/pt/3-receitas/README.md +1 -1
  28. package/docs/pt/3-receitas/app-saas-do-zero.md +35 -122
  29. package/docs/pt/3-receitas/da-ideia-ao-prd-via-briefing.md +8 -1
  30. package/docs/pt/3-receitas/feature-completa-com-sheldon.md +291 -338
  31. package/docs/pt/4-agentes/README.md +13 -11
  32. package/docs/pt/4-agentes/analyst.md +9 -5
  33. package/docs/pt/4-agentes/architect.md +9 -5
  34. package/docs/pt/4-agentes/briefing-refiner.md +64 -40
  35. package/docs/pt/4-agentes/briefing.md +6 -1
  36. package/docs/pt/4-agentes/dev.md +38 -8
  37. package/docs/pt/4-agentes/deyvin.md +4 -0
  38. package/docs/pt/4-agentes/discover.md +4 -0
  39. package/docs/pt/4-agentes/discovery-design-doc.md +25 -23
  40. package/docs/pt/4-agentes/neo.md +4 -0
  41. package/docs/pt/4-agentes/orache.md +6 -0
  42. package/docs/pt/4-agentes/orchestrator.md +176 -118
  43. package/docs/pt/4-agentes/pentester.md +11 -5
  44. package/docs/pt/4-agentes/pm.md +15 -7
  45. package/docs/pt/4-agentes/product.md +19 -1
  46. package/docs/pt/4-agentes/qa.md +10 -2
  47. package/docs/pt/4-agentes/setup.md +3 -1
  48. package/docs/pt/4-agentes/sheldon.md +178 -99
  49. package/docs/pt/4-agentes/tester.md +6 -0
  50. package/docs/pt/4-agentes/ux-ui.md +9 -5
  51. package/docs/pt/5-referencia/README.md +1 -1
  52. package/docs/pt/5-referencia/agent-chain-continuity.md +14 -5
  53. package/docs/pt/5-referencia/autopilot-handoff.md +191 -74
  54. package/docs/pt/5-referencia/comandos-cli.md +16 -7
  55. package/docs/pt/5-referencia/sdd-automation-scripts.md +6 -6
  56. package/docs/pt/5-referencia/sdd-framework.md +53 -16
  57. package/docs/pt/5-referencia/sdd-planos-e-estrutura.md +27 -15
  58. package/docs/pt/5-referencia/skills.md +2 -0
  59. package/docs/pt/README.md +4 -4
  60. package/docs/pt/agentes.md +50 -50
  61. package/package.json +2 -2
  62. package/src/agents.js +1 -1
  63. package/src/artifact-kinds.js +111 -0
  64. package/src/autopilot-signal.js +71 -0
  65. package/src/cli.js +112 -81
  66. package/src/commands/agent-epilogue.js +251 -186
  67. package/src/commands/agents.js +122 -50
  68. package/src/commands/audit-code.js +344 -0
  69. package/src/commands/briefing.js +337 -1
  70. package/src/commands/classify.js +389 -389
  71. package/src/commands/feature-close.js +122 -4
  72. package/src/commands/harness-check.js +259 -175
  73. package/src/commands/live.js +71 -11
  74. package/src/commands/review-feature.js +189 -0
  75. package/src/commands/runtime.js +81 -66
  76. package/src/commands/sync-agents-copy.js +115 -0
  77. package/src/commands/update.js +5 -1
  78. package/src/commands/verification-plan.js +143 -0
  79. package/src/commands/verify-artifact.js +593 -0
  80. package/src/commands/workflow-execute.js +434 -316
  81. package/src/commands/workflow-next.js +193 -20
  82. package/src/commands/workflow-plan.js +5 -5
  83. package/src/constants.js +2 -0
  84. package/src/doctor.js +4 -2
  85. package/src/gateway-pointer-merge.js +7 -1
  86. package/src/handoff-contract.js +267 -172
  87. package/src/harness/contract-integrity-gate.js +172 -0
  88. package/src/harness/contract-integrity.js +111 -0
  89. package/src/harness/contract-schema.js +377 -332
  90. package/src/harness/detect-runtime-feature.js +90 -0
  91. package/src/harness/static-criteria.js +192 -0
  92. package/src/i18n/messages/en.js +10 -5
  93. package/src/i18n/messages/es.js +10 -5
  94. package/src/i18n/messages/fr.js +10 -5
  95. package/src/i18n/messages/pt-BR.js +10 -5
  96. package/src/install-wizard.js +8 -8
  97. package/src/installer.js +13 -6
  98. package/src/lib/briefing-refiner/apply-feedback.js +18 -4
  99. package/src/lib/briefing-refiner/feedback-schema.js +73 -4
  100. package/src/lib/briefing-refiner/refinement-report.js +11 -0
  101. package/src/lib/briefing-refiner/review-html.js +388 -68
  102. package/src/parser.js +12 -0
  103. package/src/preflight-engine.js +12 -12
  104. package/src/verification/policy-engine.js +95 -95
  105. package/src/verification-policy.js +398 -0
  106. package/src/version.js +52 -1
  107. package/template/.aioson/agents/architect.md +34 -5
  108. package/template/.aioson/agents/briefing-refiner.md +91 -48
  109. package/template/.aioson/agents/briefing.md +4 -0
  110. package/template/.aioson/agents/committer.md +2 -1
  111. package/template/.aioson/agents/copywriter.md +30 -21
  112. package/template/.aioson/agents/design-hybrid-forge.md +10 -1
  113. package/template/.aioson/agents/dev.md +35 -23
  114. package/template/.aioson/agents/deyvin.md +4 -0
  115. package/template/.aioson/agents/discover.md +16 -3
  116. package/template/.aioson/agents/discovery-design-doc.md +7 -2
  117. package/template/.aioson/agents/genome.md +19 -10
  118. package/template/.aioson/agents/neo.md +34 -30
  119. package/template/.aioson/agents/orache.md +24 -11
  120. package/template/.aioson/agents/orchestrator.md +100 -7
  121. package/template/.aioson/agents/pentester.md +4 -0
  122. package/template/.aioson/agents/pm.md +8 -8
  123. package/template/.aioson/agents/product.md +25 -1
  124. package/template/.aioson/agents/profiler-enricher.md +20 -11
  125. package/template/.aioson/agents/profiler-forge.md +20 -11
  126. package/template/.aioson/agents/profiler-researcher.md +20 -11
  127. package/template/.aioson/agents/qa.md +96 -31
  128. package/template/.aioson/agents/setup.md +12 -1
  129. package/template/.aioson/agents/sheldon.md +103 -13
  130. package/template/.aioson/agents/site-forge.md +11 -2
  131. package/template/.aioson/agents/squad.md +20 -5
  132. package/template/.aioson/agents/tester.md +4 -0
  133. package/template/.aioson/agents/ux-ui.md +2 -1
  134. package/template/.aioson/agents/validator.md +33 -1
  135. package/template/.aioson/config/verification.json +61 -0
  136. package/template/.aioson/config.md +13 -9
  137. package/template/.aioson/docs/LAYERS.md +2 -2
  138. package/template/.aioson/docs/agent-help.md +126 -0
  139. package/template/.aioson/docs/autopilot-handoff.md +30 -20
  140. package/template/.aioson/docs/dev/execution-discipline.md +41 -0
  141. package/template/.aioson/docs/dev/phase-loop.md +50 -0
  142. package/template/.aioson/docs/play/llm-data-and-bindings.md +70 -7
  143. package/template/.aioson/docs/presets/workflow.config.full-merged.json +15 -0
  144. package/template/.aioson/docs/presets/workflow.config.lean.json +15 -0
  145. package/template/.aioson/docs/product/prd-contract.md +12 -12
  146. package/template/.aioson/docs/prototype-contract.md +21 -4
  147. package/template/.aioson/docs/reference-identity.md +94 -0
  148. package/template/.aioson/docs/sheldon/harness-contract.md +155 -28
  149. package/template/.aioson/docs/verification-config.md +82 -0
  150. package/template/.aioson/docs/verify-artifact-gates.md +91 -0
  151. package/template/.aioson/docs/workflow-lean-lane.md +129 -0
  152. package/template/.aioson/skills/design/interface-design/SKILL.md +17 -0
  153. package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +2 -0
  154. package/template/.aioson/skills/process/aioson-spec-driven/SKILL.md +16 -14
  155. package/template/.aioson/skills/process/aioson-spec-driven/references/approval-gates.md +2 -2
  156. package/template/.aioson/skills/process/aioson-spec-driven/references/classification-map.md +4 -4
  157. package/template/.aioson/skills/process/aioson-spec-driven/references/dev.md +15 -15
  158. package/template/.aioson/skills/process/prototype-forge/SKILL.md +6 -0
  159. package/template/.aioson/skills/process/reference-identity-extract/SKILL.md +164 -0
  160. package/template/.aioson/skills/static/multi-agent-patterns.md +5 -5
  161. package/template/AGENTS.md +36 -36
  162. package/template/CLAUDE.md +15 -11
@@ -73,6 +73,8 @@ aioson update --lang=pt-BR
73
73
 
74
74
  **What it updates:** all files in the `MANAGED_FILES` list that match your install profile (agents, config, gateway files, skills). Does not touch `project.context.md`, `discovery.md`, `architecture.md`, or other context files you created.
75
75
 
76
+ **Output:** on completion, prints `Template version applied: <version>` (and `(<sha>, <date>)` when the install is a git checkout — e.g. an `npm link`ed dogfood setup) so you can tell exactly which template landed.
77
+
76
78
  ---
77
79
 
78
80
  ## info
@@ -300,22 +302,25 @@ Notes:
300
302
  — Framework not installed: agents will include installation steps.
301
303
  ```
302
304
 
303
- **Sequences by classification:**
304
- - `MICRO`: `@setup → @product (optional) → @dev`
305
- - `SMALL`: `@setup → @product → @analyst → @scope-check → @architect @dev @qa`
306
- - `MEDIUM`: `@setup → @product → @analyst → @architect → @ux-ui → @pm @orchestrator @scope-check @dev → @qa`
305
+ **Sequences by classification (v1.35.0):**
306
+ - `MICRO`: `@setup → @product @dev → @qa`
307
+ - `SMALL` (lean default): `@setup → @product → @sheldon → @dev → @qa` `@sheldon` is the single spec authority
308
+ - `MEDIUM` (maestro): `@setup → @product → @orchestrator → @dev → @pentester → @qa` `@orchestrator` fans out `@analyst`/`@architect`/`@pm` as sub-agents
309
+
310
+ Spec agents (`@analyst`, `@architect`, `@pm`, `@ux-ui`, `@scope-check`, `@discovery-design-doc`) are **opt-in detours** or fan-out sub-agents — not default hops.
307
311
 
308
312
  **Feature development workflow (after initial setup):**
309
313
 
310
314
  Once the project is set up, each new feature follows a shorter sequence — no `@setup` required:
311
315
 
312
316
  ```
313
- /aioson:agent:product → @analyst → @scope-check → @dev → @qa
317
+ SMALL: /aioson:agent:product → @sheldon → @dev → @qa
318
+ MEDIUM: /aioson:agent:product → @orchestrator → @dev → @pentester → @qa
314
319
  ```
315
320
 
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`. `@scope-check` compares intent against the planned implementation before coding. `@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}/`.
321
+ `@product` creates a feature-scoped `prd-{slug}.md`. `@sheldon` (SMALL) produces the full spec package: requirements, design-doc, readiness, implementation-plan, and harness-contract. `@orchestrator` (MEDIUM) fans out `@analyst`/`@architect`/`@pm` and consolidates the gated spec package. `@dev` runs the implementation-plan phase by phase. `@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
322
 
318
- The `SMALL` and MEDIUM outputs include a note reminding you of this sequence.
323
+ The `SMALL` and `MEDIUM` outputs include a note reminding you of this sequence.
319
324
 
320
325
  ---
321
326
 
@@ -343,6 +348,10 @@ aioson workflow:next ./my-project --skip=dev
343
348
  - `agent:next` is an alias for compatibility
344
349
  - `workflow.config.json` and `workflow.state.json` live under `.aioson/context/`, so normal framework updates preserve them
345
350
 
351
+ ### workflow:execute --seed (full-feature autopilot)
352
+
353
+ `aioson workflow:execute . --feature=<slug> --seed --tool=<tool>` seeds the agentic scheme (`.aioson/context/workflow-execute.json` with `agentic_policy.enabled: true`) without advancing a stage — this is what a spec agent (`@product`/`@sheldon`/`@orchestrator`) runs on its own once it finishes, to arm the full-feature autopilot chain described in [Autopilot handoff](./autopilot-handoff.md). Add `--step` to seed it already disarmed (equivalent to the inline `--step` token). A stale `workflow.state.json` left by a closed/abandoned feature is discarded and reseeded automatically; a genuinely different active feature returns `different_active_feature` — close/pause it, or run `aioson feature:sweep .` to discard stale state explicitly.
354
+
346
355
  ---
347
356
 
348
357
  ## feature:close
@@ -677,53 +686,53 @@ aioson harness:check . --slug=checkout
677
686
  # Run only a subset of criteria
678
687
  aioson harness:check . --slug=checkout --criteria=C1,C3
679
688
 
680
- # Custom timeout and JSON output (exit 0 = pass)
681
- aioson harness:check . --slug=checkout --timeout=120000 --json
682
-
683
- # Strict mode: binary criteria without verification block the result
684
- aioson harness:check . --slug=checkout --strict
689
+ # Custom timeout and JSON output (exit 0 = pass)
690
+ aioson harness:check . --slug=checkout --timeout=120000 --json
691
+
692
+ # Strict mode: binary criteria without verification block the result
693
+ aioson harness:check . --slug=checkout --strict
685
694
  ```
686
695
 
687
696
  **Options:**
688
697
  - `--slug=<feature>` — feature slug matching the harness contract. If omitted, the active contract is auto-discovered.
689
- - `--criteria=C1,C2` — run only the listed criteria instead of all verifiable ones.
690
- - `--timeout=<ms>` — per-criterion timeout override.
691
- - `--strict` — fail when binary criteria lack executable `verification` or no executable criterion exists.
692
- - `--json` — structured output; exit code propagated.
698
+ - `--criteria=C1,C2` — run only the listed criteria instead of all verifiable ones.
699
+ - `--timeout=<ms>` — per-criterion timeout override.
700
+ - `--strict` — fail when binary criteria lack executable `verification` or no executable criterion exists.
701
+ - `--json` — structured output; exit code propagated.
693
702
 
694
703
  **What it does:** the `verification` field is authored per criterion by `@sheldon` for every mechanically-checkable `binary: true` criterion (prefer the project test runner; deterministic; cross-platform; exit 0 = pass). `harness:check` is the standalone deterministic verification of those criteria — it never touches the circuit-breaker state (that stays exclusive to `harness:validate`/`apply-validation`). Legacy contracts without `verification` remain valid; `validateContract` only emits an advisory **warning** for `binary: true` criteria lacking it. `@validator` runs `harness:check` first and copies the exit-code verdicts verbatim into `results[].passed`, LLM-judging only the criteria without `verification`.
695
704
 
696
- See [Executable verification](./executable-verification.md) for the full theme.
697
-
698
- ---
699
-
700
- ## ac:test-audit
701
-
702
- Map declared acceptance criteria to deterministic test evidence.
703
-
704
- ```bash
705
- aioson ac:test-audit . --feature=checkout
706
- aioson ac:test-audit . --feature=checkout --json
707
- ```
708
-
709
- **What it does:** extracts `AC-*` IDs from `requirements-{slug}.md`, `prd-{slug}.md`, and `conformance-{slug}.yaml`, then checks whether each ID appears in a test file or an executable harness criterion. Gate D treats missing evidence as blocking when ACs are declared.
710
-
711
- ---
712
-
713
- ## sdd:benchmark
714
-
715
- Generate a deterministic SDD quality snapshot for a feature.
716
-
717
- ```bash
718
- aioson sdd:benchmark . --feature=checkout
719
- aioson sdd:benchmark . --feature=checkout --strict --json
720
- ```
721
-
722
- **What it does:** combines artifact presence, `spec:analyze`, and `ac:test-audit` into a reproducible score and writes `.aioson/context/retro/sdd-benchmark-{slug}.md`.
723
-
724
- ---
725
-
726
- ## harness:validate
705
+ See [Executable verification](./executable-verification.md) for the full theme.
706
+
707
+ ---
708
+
709
+ ## ac:test-audit
710
+
711
+ Map declared acceptance criteria to deterministic test evidence.
712
+
713
+ ```bash
714
+ aioson ac:test-audit . --feature=checkout
715
+ aioson ac:test-audit . --feature=checkout --json
716
+ ```
717
+
718
+ **What it does:** extracts `AC-*` IDs from `requirements-{slug}.md`, `prd-{slug}.md`, and `conformance-{slug}.yaml`, then checks whether each ID appears in a test file or an executable harness criterion. Gate D treats missing evidence as blocking when ACs are declared.
719
+
720
+ ---
721
+
722
+ ## sdd:benchmark
723
+
724
+ Generate a deterministic SDD quality snapshot for a feature.
725
+
726
+ ```bash
727
+ aioson sdd:benchmark . --feature=checkout
728
+ aioson sdd:benchmark . --feature=checkout --strict --json
729
+ ```
730
+
731
+ **What it does:** combines artifact presence, `spec:analyze`, and `ac:test-audit` into a reproducible score and writes `.aioson/context/retro/sdd-benchmark-{slug}.md`.
732
+
733
+ ---
734
+
735
+ ## harness:validate
727
736
 
728
737
  Generate the `validator-prompt.txt` for the binary success contract and append a self-contained **review payload** so the validator can judge in a fresh, isolated context. Consumes the verdict back through the circuit breaker.
729
738
 
@@ -820,7 +829,7 @@ aioson harness:retro . --feature=checkout --json
820
829
 
821
830
  **Exit codes:** 0 = success (including empty dossier); 1 = unexpected I/O error; 12 = input error (invalid slug, conflicting flags, feature not found).
822
831
 
823
- **Sources mined:** QA reports, implementation verification reports (non-confirming `Machine Report` findings only), correction plans, dossier FAIL→PASS cycles, execution events, attempt artifacts, failure signatures, devlogs. Raw auditor output, stderr, prompt packages, and finding evidence text are not mined.
832
+ **Sources mined:** QA reports, implementation verification reports (non-confirming `Machine Report` findings only), correction plans, dossier FAIL→PASS cycles, execution events, attempt artifacts, failure signatures, devlogs. Raw auditor output, stderr, prompt packages, and finding evidence text are not mined.
824
833
 
825
834
  ---
826
835
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  ## The idea in one paragraph
12
12
 
13
- AIOSON already has two strong foundations: the **`harness-contract.json`** (binary success criteria per feature) and the **SDD artifact chain** (PRD → spec → plan → conformance). The executable-verification theme builds on both to make verification **deterministic** (run a command, read an exit code) and to make specs **compilable** (turn a ready spec into an auditable workflow). Everything is **additive**: the default lane `@scope-check``@dev``@qa` → `@validator` is **unchanged**. The new pieces tighten the verification surface without rerouting existing flows.
13
+ AIOSON already has two strong foundations: the **`harness-contract.json`** (binary success criteria per feature) and the **SDD artifact chain** (PRD → spec → plan → conformance). The executable-verification theme builds on both to make verification **deterministic** (run a command, read an exit code) and to make specs **compilable** (turn a ready spec into an auditable workflow). Everything is **additive**: the default SMALL lean lane (`@sheldon@dev → @qa`) and MEDIUM maestro lane (`@orchestrator @dev → @pentester → @qa`) are **unchanged** in structure. The new pieces tighten the verification surface `@scope-check`'s `spec:analyze` now runs **automatically at the `@dev`/`@qa` done gate** (scope-drift gate) in addition to being available as an explicit detour. `@validator` remains a detour when a harness contract exists.
14
14
 
15
15
  The theme ships in five phases.
16
16
 
@@ -97,7 +97,7 @@ It runs five deterministic checks:
97
97
  4. **Harness-contract sanity** — schema errors = error; executable-coverage = info.
98
98
  5. **AC→contract linkage** = info.
99
99
 
100
- An `error` flips `ok: false` (exit 1 in `--json`). Results persist to `spec-analyze-{slug}.json`. `@scope-check` runs `spec:analyze` in preflight: **errors are blockers, warnings are pre-computed drift evidence**.
100
+ An `error` flips `ok: false` (exit 1 in `--json`). Results persist to `spec-analyze-{slug}.json`. `spec:analyze` runs **automatically at the `@dev`/`@qa` done gate** (scope-drift gate) — errors block completion, warnings are pre-computed drift evidence. `@scope-check` also runs it in preflight when invoked as an explicit detour.
101
101
 
102
102
  See [`spec:analyze`](./cli-reference.md#specanalyze) in the CLI reference.
103
103
 
@@ -143,15 +143,18 @@ See [`forge:compile`](./cli-reference.md#forgecompile) in the CLI reference and
143
143
  ## How the phases fit together
144
144
 
145
145
  ```text
146
- @sheldon authors verification ──► harness:check (deterministic, exit 0 = pass) [Phase 1]
146
+ @sheldon (SMALL) / @orchestrator (MEDIUM) authors verification
147
+ ──► harness:check (deterministic, exit 0 = pass) [Phase 1]
147
148
 
148
- @scope-check runs spec:analyze ◄────────┤ (errors block, warnings = drift) [Phase 3]
149
+ spec:analyze runs automatically ◄───────┤ at @dev/@qa done gate (scope-drift) [Phase 3]
150
+ (also: @scope-check preflight) │ (errors block, warnings = drift evidence)
149
151
  @pm fills the Wave column ──────────────┤ (parallelizable, file-disjoint) [Phase 4]
150
152
 
151
- default lane: @dev ► @qa ► harness:validate (review payload) [Phase 2]
152
- └► @validator in a FRESH, ISOLATED context
153
+ SMALL lane: @sheldon ► @dev ► @qa ► harness:validate (review payload) [Phase 2]
154
+ MEDIUM lane: @orchestrator @dev @pentester ► @qa ► harness:validate
155
+ └► @validator in a FRESH, ISOLATED context (detour)
153
156
 
154
- Lane B (opt-in): @forge-run ► forge:compile ► run the compiled workflow [Phase 5]
157
+ Lane B (opt-in): @forge-run ► forge:compile ► run the compiled workflow [Phase 5]
155
158
  ```
156
159
 
157
160
  The default lane and Lane B consume the **same** contract, plan, and `spec:analyze` results — Lane B just compiles them into one executable script.
@@ -1,5 +1,7 @@
1
1
  # Parallel Orchestration Guide
2
2
 
3
+ > **v1.35.0 context:** In the MEDIUM maestro lane, `@orchestrator` is the **single spec authority** — it fans out `@analyst`/`@architect`/`@pm` as sub-agents, consolidates the gated spec package, and produces the parallel lane files that the commands below manage. The lane files (`agent-N.status.md`, `shared-decisions.md`) are part of the spec package handed to `@dev`.
4
+
3
5
  Use `parallel:init` to bootstrap the parallel context files used by `@orchestrator`.
4
6
 
5
7
  ## Command
@@ -258,8 +258,8 @@ This means running `aioson qa:run` before `@qa` gives you a richer, more complet
258
258
  Two terminals, running in parallel:
259
259
 
260
260
  ```bash
261
- # Terminal 1 — aioson agents
262
- /aioson:agent:setup → @product → @analyst → @architect → @dev
261
+ # Terminal 1 — aioson agents (SMALL lean example)
262
+ /aioson:agent:setup → @product → @sheldon → @dev
263
263
 
264
264
  # Terminal 2 — browser QA (while app is running)
265
265
  aioson qa:init --url=http://localhost:3000
package/docs/en/README.md CHANGED
@@ -23,7 +23,7 @@ This is the entry door to the English documentation. It is not an alphabetical i
23
23
  ### I want a recipe ready for my case
24
24
 
25
25
  **Canonical trails — how features reach the dev:**
26
- 1. **[Full feature with @sheldon](./3-recipes/full-feature-with-sheldon.md)** — the main trail: `@product → @sheldon → @analyst → @architect @ux-ui @pm → @orchestrator → @scope-check → @dev → @qa` (with optional gates from `@tester` and `@pentester`)
26
+ 1. **[Full feature with @sheldon](./3-recipes/full-feature-with-sheldon.md)** — SMALL lean default: `@product → @sheldon → @dev → @qa`; MEDIUM maestro: `@product → @orchestrator → @dev → @pentester → @qa`
27
27
  2. [From idea to PRD via @briefing](./3-recipes/from-idea-to-prd-via-briefing.md) — when the idea is still vague
28
28
  3. [Continuity between sessions](./3-recipes/continuity-between-sessions.md) — feature dossier, dev-resume, drift detection
29
29
 
@@ -40,7 +40,7 @@ This is the entry door to the English documentation. It is not an alphabetical i
40
40
  See [3-recipes/README.md](./3-recipes/README.md) for the full list.
41
41
 
42
42
  ### I want the technical reference for an agent or command
43
- - **[Agent cards (in progress)](./4-agents/README.md)** — stub today; full set is in [docs/pt/4-agentes/](../pt/4-agentes/README.md) (29 cards)
43
+ - **[Agent cards (in progress)](./4-agents/README.md)** — stub today; full set is in [docs/pt/4-agentes/](../pt/4-agentes/README.md) (29 cards)
44
44
  - **[Technical reference](./5-reference/README.md)** — 11 docs migrated from the previous flat structure (CLI, MCP, parallel, QA browser, squad dashboard, web3, i18n, JSON schemas, release flow)
45
45
 
46
46
  ### Highlights of `5-reference/`
@@ -109,7 +109,7 @@ This English portal is being **incrementally translated** from `docs/pt/`. The p
109
109
  - 4-agents (stub README; full agent cards pending)
110
110
 
111
111
  **Phase 2 (next)** — remaining 8 scenario recipes in 3-recipes/.
112
- **Phase 3 (next)** — 29 agent cards in 4-agents/.
112
+ **Phase 3 (next)** — 29 agent cards in 4-agents/.
113
113
  **Phase 4 (next)** — remaining ~18 reference docs in 5-reference/ (feature-dossier, agent-chain-continuity, sdd-framework, live-sessions, secure-by-default, aioson-com-store, etc.).
114
114
 
115
115
  For anything not yet in English, the PT version is current and authoritative — the AIOSON behaviors, agent prompts, and CLI commands are language-agnostic.
@@ -72,9 +72,9 @@ Termos em ordem alfabética. Cada um tem **definição curta** + **exemplo concr
72
72
  **Definição:** o tamanho do projeto, calculado a partir de 3 fatores (tipos de usuário, integrações externas, regras de negócio). Define quanta cerimônia o workflow vai aplicar.
73
73
 
74
74
  **Como funciona:**
75
- - 0–1 ponto → **MICRO** (`@setup → @product → @dev`)
76
- - 2–3 pontos → **SMALL** (`@setup → @product → @analyst → @scope-check → @architect @dev @qa`)
77
- - 4–6 pontos → **MEDIUM** (workflow completo, todos os gates, todos os artefatos)
75
+ - 0–1 ponto → **MICRO** (`@setup → @product → @dev → @qa`)
76
+ - 2–3 pontos → **SMALL** — lean lane: `@setup → @product → @sheldon → @dev → @qa` (`@sheldon` é a autoridade única de spec)
77
+ - 4–6 pontos → **MEDIUM** maestro lane: `@setup @product @orchestrator → @dev → @pentester → @qa` (`@orchestrator` faz fan-out de spec)
78
78
 
79
79
  **Onde aparece:** `classification:` no frontmatter do `project.context.md`.
80
80
 
@@ -129,7 +129,7 @@ Termos em ordem alfabética. Cada um tem **definição curta** + **exemplo concr
129
129
 
130
130
  **Exemplos prontos:** Clean SaaS UI, Aurora Command UI, Cognitive Core UI, Bold Editorial UI, Warm Craft UI, Glassmorphism UI, Neo Brutalist UI.
131
131
 
132
- **Onde escolher:** durante o `aioson init`, no wizard.
132
+ **Onde escolher:** durante o `aioson init`, no wizard, ou depois com `@setup`/`@ux-ui`. A rota recomendada é o motor `interface-design` guiado pelas suas **imagens de referência**, extraídas uma única vez num `identity.md` que o motor aplica; os presets ficam como alternativa explícita.
133
133
 
134
134
  ---
135
135
 
@@ -255,7 +255,7 @@ Termos em ordem alfabética. Cada um tem **definição curta** + **exemplo concr
255
255
 
256
256
  **Exemplo:** squad "compliance jurídico" com agentes `@regulator`, `@attorney`, `@auditor`, sob comando do `@squad`.
257
257
 
258
- **Comandos:** `aioson squad:scaffold`, `squad:agent-create`, `squad:doctor`.
258
+ **Comandos:** `aioson squad:scaffold`, `squad:agent-create`, `squad:doctor`.
259
259
 
260
260
  ---
261
261
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Para quem é:** quem quer ver o time inteiro de uma vez.
4
4
  > **Tempo de leitura:** 8 min.
5
- > **O que você vai sair sabendo:** quem são os 29 agentes, em que momento cada um entra, e como eles se conversam.
5
+ > **O que você vai sair sabendo:** quem são os 29 agentes, em que momento cada um entra, e como eles se conversam.
6
6
 
7
7
  ---
8
8
 
@@ -68,25 +68,27 @@
68
68
 
69
69
  ### 2. Núcleo de desenvolvimento (workflow oficial)
70
70
 
71
- A ordem padrão depende da classificação:
71
+ A ordem padrão depende da classificação (v1.35.0):
72
72
 
73
- **MICRO:** `@setup → @product (opcional) → @dev`
74
- **SMALL:** `@setup → @product → @sheldon (opcional) → @analyst → @scope-check → @architect → @dev → @qa`
75
- **MEDIUM:** `@setup → @product → @sheldon → @analyst → @architect → @ux-ui → @pm → @orchestrator → @scope-check → @dev → @qa`
73
+ **MICRO:** `@setup → @product @dev → @qa`
74
+ **SMALL (lean — padrão):** `@setup → @product → @sheldon → @dev → @qa`
75
+ **MEDIUM (maestro):** `@setup → @product → @orchestrator → @dev → @pentester → @qa`
76
76
 
77
- > **Por que `@sheldon` aparece tão cedo?** Ele é o **PRD quality guardian** roda *entre* `@product` e `@analyst` para detectar gaps, validar premissas técnicas com pesquisa web, e decidir entre enriquecer o PRD in-place ou criar um phased plan em `.aioson/plans/{slug}/`. Pode ser invocado N vezes no mesmo PRD. Pular essa etapa em features sérias custa caro na frente.
77
+ > **Por que `@sheldon` substitui toda a cadeia de spec no SMALL?** Ele é a **autoridade única de spec**: em uma passada vertical produz requirements + decisões técnicas + design-doc + readiness + plano de implementação + harness-contract (Gates A/B/C aprovados). `@analyst`, `@architect`, `@scope-check` e outros viram **detours opt-in**, não hops padrão.
78
+
79
+ > **Por que `@orchestrator` substitui a cadeia longa no MEDIUM?** Ele é o **maestro de spec**: faz fan-out para `@analyst`, `@architect`, `@pm` (+ `@ux-ui` quando UI-heavy) como sub-agentes, consolida e verifica os artefatos. Mesma qualidade, menos hops manuais.
78
80
 
79
81
  | Agente | O que faz | Saída principal |
80
82
  |---|---|---|
81
83
  | **`@product`** | Define visão, escopo, PRD da feature | `prd.md`, `spec.md` |
82
- | **`@sheldon`** | PRD quality guardian — gap analysis, web research, sizing, decide in-place vs phased plan | `sheldon-enrichment-{slug}.md` ou `.aioson/plans/{slug}/` |
83
- | **`@analyst`** | Descobre domínio, entidades, fluxos no codebase | `architecture.md`, ER diagrams |
84
- | **`@architect`** | Decisões técnicas: estrutura, libs, integração | `architecture.md` (decisões) |
85
- | **`@ux-ui`** | Design system e specs de componentes (MEDIUM) | `design-doc.md`, `discovery.md` |
86
- | **`@pm`** | Backlog, user stories, ACs (MEDIUM) | `tasks.md`, user stories |
87
- | **`@orchestrator`** | Coordena lanes paralelas (MEDIUM) | `parallel/`, plano de execução |
84
+ | **`@sheldon`** | **SMALL:** autoridade única de spec (vertical/solo) produz requirements + decisões técnicas + plano + harness-contract (Gates A/B/C) em uma passada. **Qualquer lane:** gap analysis, pesquisa web, endurecimento de PRD. | `sheldon-enrichment-{slug}.md`, `requirements-{slug}.md`, `implementation-plan-{slug}.md`, `harness-contract.json` |
85
+ | **`@analyst`** | Discovery de domínio: entidades, fluxos, regras de negócio. **MEDIUM:** sub-agente do `@orchestrator`. **Qualquer tamanho:** detour opt-in. | `requirements-{slug}.md`, ER diagrams |
86
+ | **`@architect`** | Decisões técnicas: estrutura, libs, integração. **Merged mode:** também produz design-doc + readiness quando `@discovery-design-doc` não está no fluxo. **MEDIUM:** sub-agente do `@orchestrator`. **Qualquer tamanho:** detour opt-in. | `architecture.md` |
87
+ | **`@ux-ui`** | Spec de UI/UX e componentes. **MEDIUM com UI pesada:** sub-agente do `@orchestrator`. **Qualquer tamanho:** detour opt-in. | `design-doc.md` |
88
+ | **`@pm`** | Backlog, user stories, plano de implementação. **MEDIUM:** sub-agente do `@orchestrator`. **Qualquer tamanho:** detour opt-in. | `tasks.md`, `implementation-plan-{slug}.md` |
89
+ | **`@orchestrator`** | **MEDIUM:** maestro de spec (faz fan-out para @analyst/@architect/@pm/@ux-ui, consolida e verifica, entrega pacote de spec com Gates A/B/C). Também coordena lanes paralelas de implementação pós-spec. | `parallel/`, `implementation-plan-{slug}.md`, `harness-contract.json` |
88
90
  | **`@dev`** | Implementa a feature | Código + `dev-state.md` |
89
- | **`@qa`** | Escreve testes, valida ACs, ciclo autônomo de correção (cap 2) | `test-plan.md`, `qa-report-*.md` |
91
+ | **`@qa`** | Escreve testes, valida ACs, ciclo autônomo de correção (cap 3), hub do autopilot pós-dev (roteia para `@tester`/`@pentester`/`@validator`) | `test-plan.md`, `qa-report-*.md` |
90
92
  | **`@validator`** | Valida tecnicamente contra `harness-contract.json` em sandbox de contexto | `.aioson/plans/{slug}/last-validator-output.json` (consumido por `harness:apply-validation`, atualiza `progress.json`) |
91
93
  | **`@tester`** | Engenharia sistemática de testes (legacy/brownfield) | `test-inventory.md`, coverage tier |
92
94
  | **`@pentester`** | Revisão adversarial de segurança (OWASP, LLM Top 10) | `security-findings-*.json` |
@@ -189,7 +191,7 @@ Você no Claude Code:
189
191
 
190
192
  ---
191
193
 
192
- ## Diálogo real — ciclo SMALL completo
194
+ ## Diálogo real — ciclo SMALL completo (lean lane)
193
195
 
194
196
  ```
195
197
  ─── Sessão 1 ───
@@ -206,17 +208,26 @@ Você > pt-BR
206
208
  Você > @product
207
209
  @product > Vamos começar uma feature. Como ela se chama? Qual o problema?
208
210
  Você > "checkout-stripe", finalizar pedido com cartão.
209
- @product > [...várias perguntas...] Spec criada em context/features/checkout-stripe/spec.md.
210
- @product > Próximo: @analyst para mapear o domínio.
211
+ @product > [...várias perguntas...] PRD criado em context/prd-checkout-stripe.md.
212
+ @product > Próximo: @sheldon para produzir o pacote de spec.
211
213
 
212
214
  ─── Sessão 2 (no dia seguinte) ───
213
215
  Você > @neo
214
- @neo > Você parou em @product. Próximo: @analyst.
215
- Você > @analyst
216
- @analyst > [lê spec.md, examina codebase] Mapeei: Order, Customer, Payment, OrderItem.
217
- @analyst > Decisão registrada em architecture.md. Próximo: @architect.
218
-
219
- ─── e assim por diante até @qa ───
216
+ @neo > Você parou em @product. Próximo: @sheldon.
217
+ Você > @sheldon
218
+ @sheldon > [lê PRD, varre codebase, detecta 3 gaps, pesquisa fontes] Gates A/B/C aprovados.
219
+ Pacote de spec: requirements + architecture + implementation-plan + harness-contract.
220
+ @sheldon > Próximo: @dev.
221
+
222
+ ─── Sessão 3 ───
223
+ Você > @dev
224
+ @dev > [lê pacote de spec, implementa por fases com auto-continue, verifica por fase]
225
+ @dev > Todas as fases completas. dev-state.md atualizado.
226
+ @dev > Próximo: @qa.
227
+
228
+ Você > @qa
229
+ @qa > [runtime smoke gate + 12 ACs verificados. 12/12 passando.]
230
+ @qa > Veredicto: feature pronta.
220
231
  ```
221
232
 
222
233
  ---
@@ -28,12 +28,12 @@ Soma de três fatores (cada um vale 0, 1 ou 2 pontos):
28
28
 
29
29
  ### O que muda em cada uma
30
30
 
31
- #### MICRO — `@setup → @product (opcional) → @dev`
31
+ #### MICRO — `@setup → @product @dev → @qa`
32
32
 
33
33
  - Para: scripts, automações, protótipos, apps pessoais simples.
34
- - Não há `@analyst` nem `@architect`. Você fala direto com `@dev`.
34
+ - Não há fase de spec formal. Você fala direto com `@dev`.
35
35
  - `@product` é opcional — você pode passar a spec direto no chat se quiser.
36
- - Sem `@qa` no fluxo padrão (você pode invocar manualmente).
36
+ - `@qa` é opcional no MICRO; verificação por fase do `@dev` é suprimida para economizar tokens.
37
37
 
38
38
  **Exemplos típicos:**
39
39
  - Script Python que processa CSV
@@ -41,11 +41,11 @@ Soma de três fatores (cada um vale 0, 1 ou 2 pontos):
41
41
  - Página estática de portfólio
42
42
  - Mini-API de 3 endpoints
43
43
 
44
- #### SMALL — `@setup @product @analyst → @scope-check → @architect → @dev → @qa`
44
+ #### SMALL — lean lane (padrão) `@setup → @product → @sheldon → @dev → @qa`
45
45
 
46
46
  - Para: a maioria dos apps reais.
47
- - Tem o ciclo completo de discovery+desenvolvimento+QA.
48
- - Sem `@ux-ui`, `@pm` ou `@orchestrator` no fluxo padrão (você pode invocar pontualmente).
47
+ - `@sheldon` é a **autoridade única de spec**: em uma passada, produz requirements, decisões técnicas, plano de implementação e contrato de harness — com Gates A/B/C aprovados — antes de passar para `@dev`.
48
+ - `@analyst`, `@architect`, `@scope-check` e outros agentes de spec são **detours opt-in**, não hops padrão.
49
49
 
50
50
  **Exemplos típicos:**
51
51
  - App SaaS para um único persona
@@ -53,12 +53,12 @@ Soma de três fatores (cada um vale 0, 1 ou 2 pontos):
53
53
  - Loja online simples
54
54
  - Blog com painel admin
55
55
 
56
- #### MEDIUM — workflow completo
56
+ #### MEDIUM — maestro lane — `@setup → @product → @orchestrator → @dev → @pentester → @qa`
57
57
 
58
58
  - Para: produtos com múltiplos tipos de usuário, várias integrações, regras complexas.
59
- - Adiciona `@ux-ui`, `@pm`, `@orchestrator`.
60
- - Gates de qualidade aplicados em cada handoff.
61
- - Lanes paralelas possíveis (`@orchestrator` coordena).
59
+ - `@orchestrator` é o **maestro de spec**: faz fan-out para `@analyst`, `@architect`, `@pm` (+ `@ux-ui` quando UI-heavy) como sub-agentes, consolida e verifica os artefatos, e entrega o pacote de spec com Gates A/B/C aprovados.
60
+ - `@pentester` é **inline** na lane (entre `@dev` e `@qa`), não apenas opt-in.
61
+ - Lanes paralelas possíveis (`@orchestrator` também coordena a execução paralela pós-spec).
62
62
  - Threshold de contexto mais agressivo (55% — alerta cedo).
63
63
 
64
64
  **Exemplos típicos:**
@@ -99,7 +99,7 @@ Você pode marcar **mais de um** no wizard — eles convivem no mesmo projeto.
99
99
 
100
100
  ### Development (padrão)
101
101
 
102
- Inclui os 29 agentes oficiais (product, analyst, dev, qa, etc.). Suficiente para 95% dos projetos.
102
+ Inclui os 29 agentes oficiais (product, analyst, dev, qa, etc.). Suficiente para 95% dos projetos.
103
103
 
104
104
  ### Development + Squads
105
105
 
@@ -111,11 +111,11 @@ Adiciona o sistema de squads — você pode criar squads customizados para domí
111
111
  - `@auditor` — checa conformidade
112
112
 
113
113
  ```bash
114
- # Dentro do cliente AI
115
- > @squad montar compliance
116
-
117
- # Ou via CLI
118
- npx @jaimevalasek/aioson squad:scaffold compliance
114
+ # Dentro do cliente AI
115
+ > @squad montar compliance
116
+
117
+ # Ou via CLI
118
+ npx @jaimevalasek/aioson squad:scaffold compliance
119
119
  ```
120
120
 
121
121
  **Quando ativar Squads:**
@@ -133,7 +133,9 @@ npx @jaimevalasek/aioson squad:scaffold compliance
133
133
 
134
134
  ## Escolhendo o Design System
135
135
 
136
- Disponíveis no wizard:
136
+ > **Rota recomendada: `interface-design` + suas imagens de referência.** Em vez de herdar o visual idêntico de um preset fixo, você fornece imagens de referência (identidade/marca e, opcionalmente, estrutura de componentes); a skill `reference-identity-extract` as converte **uma única vez** num `identity.md` de texto que o motor `interface-design` aplica em tudo que vier depois (protótipo e build). O `@setup` oferece essa rota primeiro — sempre com confirmação explícita, nunca auto-seleção. Os presets abaixo continuam disponíveis como alternativa.
137
+
138
+ Presets disponíveis no wizard:
137
139
 
138
140
  | Skill | Estilo | Casos |
139
141
  |---|---|---|
@@ -146,7 +148,7 @@ Disponíveis no wizard:
146
148
  | **Neo Brutalist UI** | Contornos pretos, cores fortes, sem sombra | Marcas marcantes |
147
149
 
148
150
  **Pular** é uma opção legítima. Você pode:
149
- - Escolher depois com `@ux-ui`
151
+ - Escolher depois com `@ux-ui` — ele oferece as mesmas duas rotas (imagens de referência ou preset)
150
152
  - Clonar o design de um site real com `@site-forge`
151
153
  - Criar um híbrido com `@design-hybrid-forge` (ex: clean-saas + neo-brutalist)
152
154
 
@@ -229,7 +229,7 @@ Você > @qa
229
229
  @qa > test-plan.md e qa-report.md gravados. Feature pronta.
230
230
  ```
231
231
 
232
- > **A novidade:** o ciclo *autônomo QA→Dev* (cap 2) deixa o @qa pedir correções pequenas sem você ter que reativar manualmente. Foi adicionado em Mai/2026.
232
+ > **A novidade:** o ciclo *autônomo QA→Dev* (cap 3, `agentic_policy.review_cycle`) deixa o @qa pedir correções pequenas sem você ter que reativar manualmente. Sob autopilot, esse mesmo ciclo pode encadear até `@tester`/`@pentester`/`@validator` e a recomendação de `feature:close` sem parar — veja [Autopilot Handoff](../5-referencia/autopilot-handoff.md).
233
233
 
234
234
  ---
235
235
 
@@ -276,7 +276,7 @@ Daqui a três meses, alguém (você ou outra IA) pode abrir esse projeto e enten
276
276
 
277
277
  ## E quando eu quiser uma feature nova?
278
278
 
279
- Volte para o passo 4. `@product` cria nova feature → `@analyst` → `@architect``@dev``@qa`. O `@setup` não precisa rodar de novo (já tem o contexto).
279
+ Volte para o passo 4. A lane depende do tamanho da feature: **SMALL** → `@product@sheldon → @dev → @qa`; **MEDIUM** → `@product@orchestrator → @dev → @pentester → @qa`. O `@setup` não precisa rodar de novo (já tem o contexto).
280
280
 
281
281
  Se você se perder no meio, lembre:
282
282
 
@@ -8,7 +8,7 @@ Estas três trilhas mostram **como features chegam ao desenvolvimento** no AIOSO
8
8
 
9
9
  | Trilha | Quando usar | Agentes-chave |
10
10
  |---|---|---|
11
- | **[Feature completa com @sheldon](./feature-completa-com-sheldon.md)** | Você tem PRD em mente e quer a trilha canônica completa (a mais usada) | @product → @sheldon → @analyst → @architect @ux-ui @pm → @orchestrator → @scope-check → @dev → @qa |
11
+ | **[Feature completa com @sheldon](./feature-completa-com-sheldon.md)** | Você tem PRD em mente e quer a trilha canônica (a mais usada) | SMALL: `@product → @sheldon → @dev → @qa` · MEDIUM: `@product → @orchestrator → @dev → @pentester → @qa` |
12
12
  | [Da ideia ao PRD via @briefing](./da-ideia-ao-prd-via-briefing.md) | Sua ideia ainda é vaga, várias anotações soltas | @briefing → @product |
13
13
  | [Plans externos para @product](./plans-externos-para-product.md) | Você já planejou em outro chat (ChatGPT, Claude.io Web) | @product (lê `/plans/`) |
14
14