@jaimevalasek/aioson 1.30.2 → 1.36.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 (158) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +19 -6
  3. package/docs/en/1-understand/ecosystem-map.md +45 -29
  4. package/docs/en/1-understand/glossary.md +5 -5
  5. package/docs/en/1-understand/what-is-aioson.md +5 -5
  6. package/docs/en/2-start/existing-project.md +7 -7
  7. package/docs/en/2-start/first-project.md +32 -38
  8. package/docs/en/2-start/initial-decisions.md +18 -17
  9. package/docs/en/3-recipes/README.md +2 -2
  10. package/docs/en/3-recipes/continuity-between-sessions.md +2 -2
  11. package/docs/en/3-recipes/from-idea-to-prd-via-briefing.md +5 -2
  12. package/docs/en/3-recipes/full-feature-with-sheldon.md +327 -338
  13. package/docs/en/4-agents/README.md +28 -14
  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/cli-reference.md +51 -48
  17. package/docs/en/5-reference/executable-verification.md +10 -7
  18. package/docs/en/5-reference/parallel.md +2 -0
  19. package/docs/en/5-reference/qa-browser.md +2 -2
  20. package/docs/en/README.md +3 -3
  21. package/docs/pt/1-entender/glossario.md +4 -4
  22. package/docs/pt/1-entender/mapa-do-ecossistema.md +32 -21
  23. package/docs/pt/2-comecar/decisoes-iniciais.md +16 -16
  24. package/docs/pt/2-comecar/primeiro-projeto.md +1 -1
  25. package/docs/pt/3-receitas/README.md +1 -1
  26. package/docs/pt/3-receitas/app-saas-do-zero.md +35 -122
  27. package/docs/pt/3-receitas/feature-completa-com-sheldon.md +289 -338
  28. package/docs/pt/4-agentes/analyst.md +9 -5
  29. package/docs/pt/4-agentes/architect.md +9 -5
  30. package/docs/pt/4-agentes/dev.md +19 -7
  31. package/docs/pt/4-agentes/discovery-design-doc.md +25 -23
  32. package/docs/pt/4-agentes/orchestrator.md +164 -118
  33. package/docs/pt/4-agentes/pentester.md +5 -5
  34. package/docs/pt/4-agentes/pm.md +15 -7
  35. package/docs/pt/4-agentes/sheldon.md +166 -99
  36. package/docs/pt/4-agentes/ux-ui.md +7 -4
  37. package/docs/pt/5-referencia/agent-chain-continuity.md +14 -5
  38. package/docs/pt/5-referencia/comandos-cli.md +1 -1
  39. package/docs/pt/5-referencia/harness-retro.md +2 -1
  40. package/docs/pt/5-referencia/sdd-automation-scripts.md +6 -6
  41. package/docs/pt/5-referencia/sdd-framework.md +53 -16
  42. package/docs/pt/5-referencia/sdd-planos-e-estrutura.md +27 -15
  43. package/docs/pt/README.md +4 -4
  44. package/docs/pt/agentes.md +48 -50
  45. package/package.json +2 -2
  46. package/src/artifact-kinds.js +110 -0
  47. package/src/cli.js +82 -42
  48. package/src/commands/agent-epilogue.js +251 -186
  49. package/src/commands/agents.js +104 -48
  50. package/src/commands/audit-code.js +344 -0
  51. package/src/commands/classify.js +75 -13
  52. package/src/commands/feature-close.js +43 -18
  53. package/src/commands/harness-check.js +259 -175
  54. package/src/commands/harness-retro-promote.js +387 -0
  55. package/src/commands/live.js +24 -0
  56. package/src/commands/prototype-check.js +163 -0
  57. package/src/commands/review-feature.js +189 -0
  58. package/src/commands/runtime.js +81 -66
  59. package/src/commands/sync-agents-copy.js +115 -0
  60. package/src/commands/verification-plan.js +116 -0
  61. package/src/commands/verify-artifact.js +530 -0
  62. package/src/commands/verify-implementation.js +428 -0
  63. package/src/commands/workflow-execute.js +309 -309
  64. package/src/commands/workflow-next.js +361 -19
  65. package/src/commands/workflow-plan.js +5 -5
  66. package/src/constants.js +4 -0
  67. package/src/gateway-pointer-merge.js +7 -1
  68. package/src/handoff-contract.js +267 -172
  69. package/src/harness/contract-integrity-gate.js +172 -0
  70. package/src/harness/contract-integrity.js +111 -0
  71. package/src/harness/contract-schema.js +377 -332
  72. package/src/harness/detect-runtime-feature.js +90 -0
  73. package/src/harness/static-criteria.js +192 -0
  74. package/src/i18n/messages/en.js +8 -4
  75. package/src/i18n/messages/es.js +8 -4
  76. package/src/i18n/messages/fr.js +8 -4
  77. package/src/i18n/messages/pt-BR.js +8 -4
  78. package/src/install-wizard.js +8 -8
  79. package/src/installer.js +13 -6
  80. package/src/lib/retro/retro-render.js +10 -1
  81. package/src/lib/retro/retro-sources.js +45 -27
  82. package/src/lib/retro/verification-reports.js +230 -0
  83. package/src/parser.js +6 -0
  84. package/src/preflight-engine.js +12 -12
  85. package/src/runtime-store.js +13 -9
  86. package/src/verification/evidence-bundle.js +251 -0
  87. package/src/verification/ledger-store.js +221 -0
  88. package/src/verification/path-policy.js +74 -0
  89. package/src/verification/policy-engine.js +95 -0
  90. package/src/verification/prompt-package.js +314 -0
  91. package/src/verification/redaction.js +77 -0
  92. package/src/verification/report-parser.js +132 -0
  93. package/src/verification/report-store.js +97 -0
  94. package/src/verification/result.js +16 -0
  95. package/src/verification/runners/index.js +319 -0
  96. package/src/verification/runtime-telemetry.js +144 -0
  97. package/src/verification/schema.js +276 -0
  98. package/src/verification/source-discovery.js +153 -0
  99. package/src/verification-policy.js +398 -0
  100. package/src/version.js +52 -1
  101. package/template/.aioson/agents/analyst.md +9 -6
  102. package/template/.aioson/agents/architect.md +34 -5
  103. package/template/.aioson/agents/briefing-refiner.md +25 -0
  104. package/template/.aioson/agents/briefing.md +69 -12
  105. package/template/.aioson/agents/committer.md +2 -1
  106. package/template/.aioson/agents/copywriter.md +30 -21
  107. package/template/.aioson/agents/design-hybrid-forge.md +28 -15
  108. package/template/.aioson/agents/dev.md +28 -10
  109. package/template/.aioson/agents/deyvin.md +3 -2
  110. package/template/.aioson/agents/discover.md +12 -3
  111. package/template/.aioson/agents/discovery-design-doc.md +7 -2
  112. package/template/.aioson/agents/genome.md +19 -10
  113. package/template/.aioson/agents/neo.md +30 -30
  114. package/template/.aioson/agents/orache.md +20 -11
  115. package/template/.aioson/agents/orchestrator.md +84 -7
  116. package/template/.aioson/agents/pm.md +8 -8
  117. package/template/.aioson/agents/product.md +15 -11
  118. package/template/.aioson/agents/profiler-enricher.md +20 -11
  119. package/template/.aioson/agents/profiler-forge.md +20 -11
  120. package/template/.aioson/agents/profiler-researcher.md +20 -11
  121. package/template/.aioson/agents/qa.md +87 -17
  122. package/template/.aioson/agents/scope-check.md +19 -5
  123. package/template/.aioson/agents/setup.md +12 -1
  124. package/template/.aioson/agents/sheldon.md +92 -9
  125. package/template/.aioson/agents/site-forge.md +11 -2
  126. package/template/.aioson/agents/squad.md +20 -5
  127. package/template/.aioson/agents/ux-ui.md +4 -2
  128. package/template/.aioson/agents/validator.md +33 -1
  129. package/template/.aioson/config/verification.json +61 -0
  130. package/template/.aioson/config.md +13 -9
  131. package/template/.aioson/docs/LAYERS.md +2 -2
  132. package/template/.aioson/docs/autopilot-handoff.md +10 -10
  133. package/template/.aioson/docs/dev/execution-discipline.md +41 -0
  134. package/template/.aioson/docs/dev/phase-loop.md +47 -0
  135. package/template/.aioson/docs/feature-expansion-taxonomy.md +31 -3
  136. package/template/.aioson/docs/presets/workflow.config.full-merged.json +15 -0
  137. package/template/.aioson/docs/presets/workflow.config.lean.json +15 -0
  138. package/template/.aioson/docs/product/prd-contract.md +12 -12
  139. package/template/.aioson/docs/prototype-contract.md +98 -0
  140. package/template/.aioson/docs/reference-identity.md +94 -0
  141. package/template/.aioson/docs/sheldon/harness-contract.md +155 -28
  142. package/template/.aioson/docs/verification-config.md +82 -0
  143. package/template/.aioson/docs/verify-artifact-gates.md +91 -0
  144. package/template/.aioson/docs/workflow-lean-lane.md +129 -0
  145. package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +2 -0
  146. package/template/.aioson/skills/process/aioson-spec-driven/SKILL.md +16 -14
  147. package/template/.aioson/skills/process/aioson-spec-driven/references/approval-gates.md +2 -2
  148. package/template/.aioson/skills/process/aioson-spec-driven/references/classification-map.md +4 -4
  149. package/template/.aioson/skills/process/aioson-spec-driven/references/dev.md +15 -15
  150. package/template/.aioson/skills/process/briefing-expansion-scout/SKILL.md +25 -3
  151. package/template/.aioson/skills/process/design-hybrid-forge/SKILL.md +5 -3
  152. package/template/.aioson/skills/process/design-hybrid-forge/references/external-source-ingestion.md +89 -0
  153. package/template/.aioson/skills/process/product-scope-expansion/SKILL.md +29 -2
  154. package/template/.aioson/skills/process/prototype-forge/SKILL.md +98 -0
  155. package/template/.aioson/skills/process/reference-identity-extract/SKILL.md +164 -0
  156. package/template/.aioson/skills/process/sheldon-expansion-audit/SKILL.md +23 -2
  157. package/template/.aioson/skills/static/multi-agent-patterns.md +5 -5
  158. package/template/CLAUDE.md +15 -11
package/CHANGELOG.md CHANGED
@@ -2,6 +2,81 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.36.0] - 2026-06-30
6
+
7
+ **Reference-image-driven visual identity.** A project's UI no longer has to inherit a fixed design preset's identical look (the generic, "made-by-AI" sameness). The user provides reference images — a brand/identity set and an optional component/structure set — which are extracted **once** into a text `identity.md` that the `interface-design` engine applies. The build reads the text, never the images, so it ports to a vision-less harness, is user-editable, and is gateable. Purely **additive** — the fixed presets stay as raw material for `@design-hybrid-forge` / `@site-forge`; the new path is the recommended default alongside them.
8
+
9
+ ### Added
10
+ - **`reference-identity-extract` process skill.** One vision pass reads the identity + structure images and emits `identity.md` (palette / type / spacing / depth / motion / signature moves + per-component structure notes); the image-less fallback defers to `interface-design`'s intent-first Phase 0. Lives under `skills/process/` (always installed), not `skills/design/` (profile-gated at install). (`d0e21c3`)
11
+ - **`verify:artifact --kind=identity`** — a build-free gate (resolved via `--file`) proving the token skeleton, both anti-sameness anchors (pillars + signature moves), and the component-structure section are present, with no placeholder / unfilled hex. `availableKinds()` self-registers it; two new paths appended to `MANAGED_FILES` for `aioson update` backup-safety (no preset enumeration touched). (`d0e21c3`)
12
+ - **`docs/reference-identity.md`** documents the flow, the two scopes (per-briefing `.aioson/briefings/{slug}/identity.md` and project brand `.aioson/context/identity.md`), the gate, and the no-vision / cross-harness fallback. (`d0e21c3`)
13
+
14
+ ### Changed
15
+ - **`@briefing-refiner` prototype mode** gains the reference-image intake: the user drops images into `references/{identity,structure}/`, the agent extracts `identity.md` and self-gates; no images → `interface-design` runs intent-first (never blocks). **`@setup` Step 5** offers "interface-design + reference images" as the recommended visual route (still explicit-confirm, no auto-select). (`d0e21c3`)
16
+ - **`@ux-ui` Step 0** frames `identity.md` as the INPUT that parameterizes the single `interface-design` engine — not a second skill, so ONE SKILL ONLY is preserved. `prototype-forge` consumes it as the engine overlay; `interface-design`'s continuity note reuses it as the extracted-from-references form of `system.md`. (`d0e21c3`)
17
+
18
+ Suite green (3549 pass / 0 fail); +14 tests (5 `identity` ruleset, 9 wiring/parity).
19
+
20
+ ## [1.35.0] - 2026-06-28
21
+
22
+ The **lean-harness redesign**: fewer default agent hops, with quality held by deterministic gates and configurable verification sub-agents rather than by agent count. SMALL and MEDIUM now each route through a single spec authority; `@analyst` / `@architect` / `@pm` / `@discovery-design-doc` / `@scope-check` / `@ux-ui` become opt-in detours (none deleted).
23
+
24
+ ### Changed
25
+ - **SMALL is the lean lane by default.** The default SMALL chain is now `@product → @sheldon → @dev → @qa` (was `@product → @analyst → @scope-check → @architect → @discovery-design-doc → @dev → @qa`), with `@sheldon` as the single spec authority. Supersedes 1.34.0's *opt-in* lean lane. Updated in both routing sources (`workflow-next.js` + `workflow-plan.js`). (`aea0894`)
26
+ - **MEDIUM is the `@orchestrator` maestro.** The default MEDIUM chain is now `@product → @orchestrator → @dev → @pentester → @qa` (project: `@setup → @product → @orchestrator → @dev → @qa`). `@orchestrator` is repurposed from a paper-protocol parallel-lane coordinator into the MEDIUM single spec authority — it **fans out** to `@analyst` / `@architect` / `@pm` (+ `@ux-ui` when UI-heavy) sub-agents, then consolidates / verifies / redoes their output into one gated spec package (requirements + spec [Gates A/B/C approved] + design-doc + readiness + implementation-plan + harness-contract) and hands to `@dev` — the horizontal counterpart to `@sheldon`'s vertical lean lane. (`d03e1ec`)
27
+ - **Spec hops demoted to opt-in detours** (none deleted): `@discovery-design-doc`, `@scope-check`, `@ux-ui` (3b) and `@analyst`, `@architect`, `@pm` (4a). `@architect` runs in **merged mode** by default (also producing design-doc + readiness + dev-state) when the active sequence omits `@discovery-design-doc`; `@scope-check`'s deterministic drift check (`spec:analyze`) is now enforced at the `@dev` / `@qa` done gate (`finalizeCurrentStage`), blocking on real drift (readiness-blocked / invalid harness contract) without false-blocking artifact-light features. (`6db76f9`)
28
+
29
+ ### Added
30
+ - **Per-agent, per-host verification config.** `.aioson/config/verification.json` (auto-generated, hand-editable) declares which verification sub-agents (`qa` / `tester` / `pentester` / `validator`) run, when (`per-phase` / `end-of-feature` / `sensitive-surface`), and on which model — keyed by host harness with `native` (in-harness sub-agent on a Claude tier or the host's own model) vs `external` (cross-vendor auditor) dispatch, plus a token budget. `src/verification-policy.js` is the reader; degrades to safe defaults on a missing/malformed file. (`dc4bd42`)
31
+ - **`aioson verification:plan` + `@dev` phase loop.** The new deterministic command resolves, for a slug + trigger + host, which verifiers run and on which model. `@dev` now runs a phased plan as a loop that **auto-continues by default** (no human "continue?" between phases), compacts between phases (`dev:state:write` → `/compact` or fresh context → `dev:resume-data`), and runs the per-phase verification whose report replaces the human checkpoint. Per-phase checks are light and suppressed on MICRO; the full runtime smoke runs once at end-of-feature. Full protocol in `.aioson/docs/dev/phase-loop.md`. (`4c6ac66`)
32
+ - **Single-spec-authority handoff gate + `@sheldon` PRD-enrichment step.** `handoff-contract.js` now enforces the collapsed done-gate (Gates A/B/C + approved implementation-plan + contract integrity) for **both** the lean `@sheldon` lane and the maestro `@orchestrator` lane; the orchestrator's expected artifacts become the gated spec package in maestro mode. The MEDIUM maestro can optionally harden the PRD via `@sheldon`'s enrichment first (opt-in pre-step or a fan-out stream — never a mandatory hop). (`d03e1ec`, `da0c1dd`)
33
+
34
+ ### Docs
35
+ - Swept the framework documentation to the new default chains — `CLAUDE.md`, `config.md`, `autopilot-handoff.md`, `workflow-lean-lane.md` (premise flipped: lean is the SMALL default, "full-merged" is the opt-in heavier chain), the `aioson-spec-driven` skill + references, `prd-contract.md`, `LAYERS.md`, and `pm.md`. (`75104d5`, `8e7b0e1`)
36
+
37
+ ## [1.34.0] - 2026-06-27
38
+
39
+ ### Added
40
+ - **Mandatory runtime smoke gate.** A feature with a backend, a database, or a clickable prototype no longer closes on green unit tests + `tsc` alone. The §2c `RG-build` / `RG-migrate` / `RG-boot` / `RG-smoke` criteria must run on the real stack. `@qa`'s Runtime smoke gate, `@validator`'s Step-0 precheck, and the `harness-contract` schema enforce it.
41
+ - **Deterministic contract-integrity gate.** New `src/harness/contract-integrity.js` + `contract-integrity-gate.js` flag a runtime feature whose contract is missing / has no `RG-*` / pads binary criteria with duplicate verification commands. It is wired as a real gate into `workflow:next --complete=dev|qa` and `feature:close --verdict=PASS` (hard-blocks, independent of `ready_for_done_gate`), and as a non-blocking advisory `contract:integrity` step in `agent:epilogue` for untracked sessions. Runtime detection uses prototype-manifest, migration/Prisma paths in `progress.*`, and the git working tree; the same detection backs standalone `aioson harness:check`.
42
+ - **Opt-in lean lane + full-merged preset.** Drop `.aioson/docs/presets/workflow.config.lean.json` into `.aioson/context/workflow.config.json` to route `@product → @sheldon → @dev → @qa`, with `@sheldon` as single spec authority (RF-LEAN) producing requirements/spec/design-doc/readiness/implementation-plan/harness-contract in one pass. The `full-merged` preset instead folds `@discovery-design-doc` into `@architect`. Built-in `src/` routing defaults are unchanged (full chain stays the default).
43
+ - **Deterministic lean detection for `@sheldon`.** `agent:prompt sheldon` reads `workflow.config.json` and injects the RF-LEAN directive when the lean lane is active, so a directly-activated `@sheldon` no longer falls back to enrichment mode and hands to `@analyst`.
44
+ - **`aioson review:feature`.** One-shot review pass for an already-implemented feature: resolves the slug, runs the deterministic `security:audit`, and prepares the `@pentester` + `@tester` activation prompts (`--scope`, `--skip-audit`, `--out-dir`, `--json`). `agent:prompt tester --feature=<slug>` now pins the slug so a standalone post-close test pass stays feature-scoped.
45
+ - **Git-build traceability.** `aioson --version` reports `1.34.0 (<sha>, <date>)` from a git checkout (JSON adds `git_sha`/`git_date`); `install`/`update` stamp `template_git_sha`/`template_git_date` into each project's `.aioson/install.json`. Lets a linked dev framework report exactly which commit is installed without a per-commit version bump.
46
+
47
+ ### Fixed
48
+ - **Lean Gate-C dead-end.** The lean lane stalled at `@dev` because no agent produced `spec-{slug}.md`. `@sheldon`'s handoff contract now structurally requires the lean bridge artifacts (spec + approved gates A/B/C + approved implementation-plan + a valid runtime contract).
49
+ - **Runtime-gate coverage at all sizes.** A runtime feature now requires the `RG-*` contract at every classification (was MEDIUM-only), closing the hole where a MICRO/SMALL backend feature closed with prose-only gates.
50
+ - **Cross-platform `sync:agents`.** Replaced the `rsync` step (silently a no-op on Windows) with a Node copy, excluded live project-state from the sync, and preserved the `<!-- AIOSON:BEGIN/END -->` managed block in gateway files (CLAUDE.md / AGENTS.md / OPENCODE.md) instead of stripping it.
51
+ - **Windows `live:start` false "session already active".** `live` now reconciles a dead PID via a `tasklist` probe instead of leaving it `unknown` when `process.kill(pid, 0)` throws `EPERM`.
52
+
53
+ ## [1.33.1] - 2026-06-24
54
+
55
+ ### Fixed
56
+ - **Hardened adversarial verification gates.** `prototype:check` now rejects prototype and manifest references that resolve outside the project root before reading them, strict evidence bundles run prototype checks with `--strict`, partial prototype acceptance-criterion coverage can fail strict audits, Sheldon-owned scope findings route back to `@sheldon`, and failed external auditor stderr is kept in a separate artifact instead of being copied into the consolidated verification report.
57
+
58
+ ## [1.33.0] - 2026-06-24
59
+
60
+ ### Changed
61
+ - **Scope-aware solution fan-out in `@briefing`.** Horizontal exploration no longer forces 3–5 options when the user has already committed to one specific solution and its operational surface is complete; it records any weighed alternative as a short "Alternatives considered" note instead. Operational completeness is never waived — only the breadth of options when the direction is already fixed.
62
+ - **Non-blocking prototype recommendation in `@briefing-refiner`.** For a rich-surface briefing with no prototype yet, the handoff now recommends running prototype mode before `@product` (it surfaces missing management screens and broken interactions early). Recommendation only — it never blocks the route to `@product`.
63
+
64
+ ## [1.32.0] - 2026-06-24
65
+
66
+ ### Added
67
+ - **External DESIGN.md sources in `@design-hybrid-forge`.** A hybrid's primary parent or modifier can now be an external DESIGN.md source (a refero.design md-example or a similar portable design spec extracted from a real site), not only a local AIOSON design skill. The agent normalizes the source into the same parent DNA the crossover protocol expects, records `sources[]` provenance in `.skill-meta.json`, and enforces an anti-clone rule — the hybrid stays a new identity (no brand/logo/trademark or 1:1 palette reproduction, never named after the source). The "exactly 2 primary parents" model is unchanged.
68
+
69
+ ## [1.31.0] - 2026-06-24
70
+
71
+ ### Added
72
+ - **Clickable prototype stage.** New `prototype-forge` process skill and an optional `@briefing-refiner` "Generate prototype" mode produce a self-contained, clickable HTML app-shell (`prototype.html` + manifest) that materializes a rich-surface feature's screens, navigation, and CRUD interactions before the PRD — delegating visuals to the selected design skill while owning structure, behavior, and state. No native dialogs; authenticated app chrome is seeded.
73
+ - **Horizontal solution exploration in `@briefing`.** For goals with more than one viable shape, `@briefing` explores 3–5 solution shapes, maps each one's operational surface, and writes an optional `solution-options.md` so `@product` chooses with the trade-offs in hand.
74
+ - **Prototype propagated as a contract.** New `prototype-contract.md` defines how the prototype flows through the chain: `@product` writes a `## Prototype reference` in the PRD, `@dev` reproduces its screens/interactions, `@ux-ui` treats it as the authoritative realization, and `@analyst` derives acceptance criteria so `@validator` honors it via the binary contract (respecting its context sandbox).
75
+ - **Operational-surface classification floor.** `aioson classify` now floors rich operational surfaces (workspaces, boards/cards, Kanban/CRM pipelines, CRUD/admin management) to at least SMALL, so a Trello-like feature can't take the MICRO shortcut that skips `@analyst`/`@architect`/the prototype.
76
+
77
+ ### Changed
78
+ - **Operational Surface Map across planning agents.** `feature-expansion-taxonomy.md` and the briefing/product/sheldon expansion skills now require every Core object to have create/list/edit/archive/restore behavior and a management surface, so rich-surface features (Trello/Kanban/CRM/workspace-like) can't pass with bare nouns.
79
+
5
80
  ## [1.30.2] - 2026-06-24
6
81
 
7
82
  ### Changed
package/README.md CHANGED
@@ -716,7 +716,7 @@ aioson scan:project [path] [--folder=src] [--with-llm] [--provider=<name>] [--dr
716
716
  aioson agents
717
717
  aioson agent:prompt <agent> [--tool=codex|claude|gemini|opencode]
718
718
  aioson workflow:plan [path] [--classification=MICRO|SMALL|MEDIUM] [--json]
719
- aioson workflow:next [path] [--complete] [--auto-heal] [--force]
719
+ aioson workflow:next [path] [--complete] [--auto-heal] [--force] [--scope-mode=post-dev|post-fix|final] [--verification-policy=advisory|standard|strict]
720
720
  aioson workflow:heal [path] --stage=<agent>
721
721
  aioson workflow:harden [path] [--dry-run]
722
722
  aioson workflow:execute [path] [--dry-run] [--start-from=<agent>]
@@ -729,8 +729,13 @@ aioson intake:ask [path] --agent=<agent> --schema=<questions.json> [--out=<answe
729
729
  <summary><strong>SDD automation & gates</strong></summary>
730
730
 
731
731
  ```bash
732
- aioson preflight [path] [--json]
732
+ aioson preflight [path] [--json]
733
733
  aioson classify [path] [--json]
734
+ aioson prototype:check [path] --feature=<slug> [--json]
735
+ aioson verify:implementation [path] --feature=<slug> --prepare-ledger|--check-ledger|--build-prompt|--check-report=<path> [--policy=advisory|standard|strict] [--json]
736
+ aioson verify:implementation [path] --feature=<slug> --tool=codex|claude|opencode [--model=<model>|configured-default] [--timeout-ms=<ms>] [--max-output-bytes=<bytes>] [--policy=advisory|standard|strict] [--json]
737
+ aioson harness:retro [path] --feature=<slug>|--last=<N> [--json]
738
+ aioson harness:retro-promote [path] --feature=<slug> [--to=learnings|rules] [--apply --select=<candidate-key|all>] [--json]
734
739
  aioson gate:check [path] --gate=A|B|C|D [--json]
735
740
  aioson artifact:validate [path] --feature=<slug> [--json]
736
741
  aioson ac:test-audit [path] --feature=<slug> [--json]
@@ -738,10 +743,18 @@ aioson sdd:benchmark [path] --feature=<slug> [--json]
738
743
  aioson detect:test-runner [path] [--json]
739
744
  aioson agent:audit [path] [--json]
740
745
  aioson brief:gen [path] --feature=<slug> [--json]
741
- aioson verify:gate [path] --feature=<slug> [--json]
742
- ```
743
-
744
- </details>
746
+ aioson verify:gate [path] --feature=<slug> [--json]
747
+ ```
748
+
749
+ `verify:implementation` prepares/checks `.aioson/context/features/{slug}/implementation-ledger.md`, builds clean-auditor prompt packages, validates `Machine Report` JSON with reusable schema helpers in `src/verification/schema.js`, and can optionally run a constrained auditor through `codex`, `claude`, or `opencode`. Runner execution is opt-in, uses explicit timeout/output limits, writes raw output under `verification-runs/`, and promotes only a valid or system-generated `INCONCLUSIVE` report to `verification-report.md`.
750
+
751
+ `workflow:next --agent=scope-check --scope-mode=post-dev --verification-policy=strict` consumes an existing local `verification-report.md` as structured evidence in the scope-check prompt. It validates and routes the report result, but never runs an external `--tool` auditor automatically.
752
+
753
+ `harness:retro` mines schema-valid implementation verification reports as a retrospective source. It uses only non-confirming `Machine Report` findings (`DOES_NOT_CONFIRM`, `PARTIAL`, `NOT_VERIFIED`) and never includes raw auditor output, stderr, prompt packages, or finding evidence text in the generated dossier.
754
+
755
+ `harness:retro-promote` is the human-approved promotion path from a generated retro dossier to `.aioson/learnings/` or `.aioson/rules/`. It is dry-run by default; writing requires `--apply --select=<candidate-key|all>`. Promotion records bounded metadata and source paths only, and never edits prompts, skills, PRDs, plans, raw reports, or agent files automatically.
756
+
757
+ </details>
745
758
 
746
759
  <details>
747
760
  <summary><strong>Parallel orchestration</strong></summary>
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Who this is for:** anyone who wants to see the full team at once.
4
4
  > **Reading time:** 8 min
5
- > **What you'll know after:** who the 29 agents are, when each one enters, and how they communicate.
5
+ > **What you'll know after:** who the 29 agents are, when each one enters, and how they communicate.
6
6
 
7
7
  ---
8
8
 
@@ -27,11 +27,18 @@
27
27
  ┌──────────────────────────────────────┐
28
28
  │ DEVELOPMENT CORE │
29
29
  │ │
30
- │ Product → SheldonAnalyst →
31
- ArchitectUX-UIPM →
32
- Orchestrator Dev → QA
33
- Validator Tester Pentester
30
+ MICRO: Product → DevQA
31
+ SMALL: ProductSheldonDev
32
+ → QA
33
+ MEDIUM: ProductOrchestrator
34
+ │ → Dev → Pentester → QA │
34
35
  │ │
36
+ │ Spec sub-agents (opt-in/fan-out): │
37
+ │ Analyst · Architect · PM · UX-UI │
38
+ │ Scope-Check · Discovery-Design-Doc │
39
+ │ │
40
+ │ Post-dev (on demand): │
41
+ │ Validator · Tester · Pentester │
35
42
  └──────────────────────────────────────┘
36
43
 
37
44
 
@@ -68,28 +75,28 @@
68
75
 
69
76
  ### 2. Development core (official workflow)
70
77
 
71
- The default order depends on the classification:
78
+ The default lane depends on the classification:
72
79
 
73
- **MICRO:** `@setup → @product (optional) → @dev`
74
- **SMALL:** `@setup → @product → @sheldon (optional) → @analyst → @scope-check → @architect → @dev → @qa`
75
- **MEDIUM:** `@setup → @product → @sheldon → @analyst → @architect → @ux-ui → @pm → @orchestrator → @scope-check → @dev → @qa`
80
+ **MICRO:** `@setup → @product @dev → @qa`
81
+ **SMALL (lean — default):** `@setup → @product → @sheldon → @dev → @qa`
82
+ **MEDIUM (maestro):** `@setup → @product → @orchestrator → @dev → @pentester → @qa`
76
83
 
77
- > **Why does `@sheldon` appear so early?** It is the **PRD quality guardian** — it runs *between* `@product` and `@analyst` to detect gaps, validate technical assumptions with web research, and decide between enriching the PRD in-place or creating a phased plan in `.aioson/plans/{slug}/`. Can be invoked N times on the same PRD. Skipping this step on serious features is expensive later.
84
+ > **The spec authority changes by size.** For SMALL, `@sheldon` is the **single spec authority** — in one pass it produces requirements + spec (Gates A/B/C approved) + design-doc + readiness + implementation-plan + harness-contract. For MEDIUM, `@orchestrator` is the **maestro** — it fans out `@analyst`/`@architect`/`@pm` (+ `@ux-ui` for UI-heavy) as sub-agents, then consolidates and gates the full spec package. Agents like `@analyst`, `@architect`, `@pm`, `@ux-ui`, `@scope-check`, and `@discovery-design-doc` are **opt-in detours** or **fan-out sub-agents** none deleted, none invoked by default in the new lanes.
78
85
 
79
86
  | Agent | What it does | Main output |
80
87
  |---|---|---|
81
88
  | **`@product`** | Defines vision, scope, feature PRD | `prd.md`, `spec.md` |
82
- | **`@sheldon`** | PRD quality guardiangap analysis, web research, sizing, decides in-place vs phased plan | `sheldon-enrichment-{slug}.md` or `.aioson/plans/{slug}/` |
83
- | **`@analyst`** | Discovers domain, entities, flows in the codebase | `architecture.md`, ER diagrams |
84
- | **`@architect`** | Technical decisions: structure, libs, integrations | `architecture.md` (decisions) |
85
- | **`@ux-ui`** | Design system and component specs (MEDIUM) | `design-doc.md`, `discovery.md` |
86
- | **`@pm`** | Backlog, user stories, ACs (MEDIUM) | `tasks.md`, user stories |
87
- | **`@orchestrator`** | Coordinates parallel lanes (MEDIUM) | `parallel/`, execution plan |
88
- | **`@dev`** | Implements the feature | Code + `dev-state.md` |
89
- | **`@qa`** | Writes tests, validates ACs, autonomous fix cycle (cap 2) | `test-plan.md`, `qa-report-*.md` |
90
- | **`@validator`** | Technically validates against `harness-contract.json` in a context sandbox | `.aioson/plans/{slug}/last-validator-output.json` (consumed by `harness:apply-validation`, updates `progress.json`) |
91
- | **`@tester`** | Systematic test engineering (legacy/brownfield) | `test-inventory.md`, coverage tier |
92
- | **`@pentester`** | Adversarial security review (OWASP, LLM Top 10) | `security-findings-*.json` |
89
+ | **`@sheldon`** | **SMALL single spec authority** one pass: requirements + spec (Gates A/B/C) + design-doc + readiness + implementation-plan + harness-contract. Also a PRD-hardening / enrichment capability usable in any lane. | `requirements-{slug}.md`, `design-doc-{slug}.md`, `readiness-{slug}.md`, `implementation-plan.md`, `harness-contract.json` |
90
+ | **`@analyst`** | Domain discovery entities, flows, brownfield mapping. **Opt-in detour / fan-out sub-agent** (invoked by `@orchestrator` in MEDIUM) | `architecture.md`, ER diagrams |
91
+ | **`@architect`** | Technical decisions: structure, libs, integrations. **Opt-in detour / fan-out sub-agent**; runs in **merged mode** (also produces design-doc + readiness) when `@discovery-design-doc` is omitted | `architecture.md` (decisions) |
92
+ | **`@ux-ui`** | UI/UX spec **opt-in detour** for UI-heavy specs; `@dev` applies design skills directly | `design-doc.md`, `discovery.md` |
93
+ | **`@pm`** | Backlog, user stories, implementation plan (Gate C). **Opt-in detour / fan-out sub-agent** (MEDIUM) | `tasks.md`, user stories |
94
+ | **`@orchestrator`** | **MEDIUM maestro / single spec authority** — fans out `@analyst`/`@architect`/`@pm` (+ `@ux-ui` for UI-heavy) as sub-agents, consolidates the gated spec package. Secondary: coordinate parallel `@dev` lanes post-spec. | `parallel/`, execution plan, consolidated spec package |
95
+ | **`@dev`** | Implements the feature — runs phases as a **loop**: auto-continues between phases, compacts context between phases, per-phase verification (light sub-agent). Full Runtime smoke runs once at end-of-feature. | Code + `dev-state.md` |
96
+ | **`@qa`** | Writes tests, validates ACs, autonomous fix cycle (cap 2). Owns Gate D: **Runtime smoke gate** (build + migrations on real DB + boot + Core happy-path on REAL stack). | `test-plan.md`, `qa-report-*.md` |
97
+ | **`@validator`** | Technically validates against `harness-contract.json` in a **fresh isolated context** (detour when a harness contract exists) | `.aioson/plans/{slug}/last-validator-output.json` |
98
+ | **`@tester`** | Systematic test engineering (legacy/brownfield) — triggered by `@qa` when conditions fire | `test-inventory.md`, coverage tier |
99
+ | **`@pentester`** | Adversarial security review (OWASP, LLM Top 10). Inline in MEDIUM; opt-in in SMALL. | `security-findings-*.json` |
93
100
 
94
101
  ### 3. Continuity and delivery
95
102
 
@@ -112,7 +119,7 @@ The default order depends on the classification:
112
119
  | **`@design-hybrid-forge`** | Combines two design skills into a hybrid |
113
120
  | **`@orache`** | Domain investigation and strategic research |
114
121
  | **`@copywriter`** | Conversion copy for landing pages, emails |
115
- | **`@discovery-design-doc`** | Discovery + design doc combined (joint mode) |
122
+ | **`@discovery-design-doc`** | Discovery + design doc combined opt-in; absorbed by `@architect` merged mode, `@sheldon`, or `@orchestrator` by default |
116
123
 
117
124
  ---
118
125
 
@@ -207,16 +214,25 @@ You > @product
207
214
  @product > Let's start a feature. What's it called? What's the problem?
208
215
  You > "checkout-stripe", complete order with card payment.
209
216
  @product > [...several questions...] Spec created at context/features/checkout-stripe/spec.md.
210
- @product > Next: @analyst to map the domain.
217
+ @product > Next: @sheldon to close the spec and produce the implementation package.
211
218
 
212
219
  ─── Session 2 (next day) ───
213
220
  You > @neo
214
- @neo > You stopped at @product. Next: @analyst.
215
- You > @analyst
216
- @analyst > [reads spec.md, examines codebase] Mapped: Order, Customer, Payment, OrderItem.
217
- @analyst > Decision recorded in architecture.md. Next: @architect.
218
-
219
- ─── and so on until @qa ───
221
+ @neo > You stopped at @product. Next: @sheldon (single spec authority for SMALL).
222
+ You > @sheldon
223
+ @sheldon > Reading spec.md + codebase... Detected 2 gaps: no idempotency policy on Stripe webhook,
224
+ no AC for payment failure retry. Researching Stripe docs...
225
+ @sheldon > Spec package ready: requirements, design-doc, readiness (Gate B), implementation-plan (2 phases),
226
+ harness-contract.json. Gates A/B/C: approved. Next: @dev.
227
+
228
+ ─── Session 3 ───
229
+ You > @dev
230
+ @dev > Reading implementation-plan.md. 2 phases.
231
+ Phase 1/2: Stripe integration + webhook... harness:check OK. Compacting...
232
+ Phase 2/2: UI checkout flow... harness:check OK. dev-state.md updated. Next: @qa.
233
+
234
+ You > @qa
235
+ @qa > 12 ACs. Tests written. 12/12 OK. Runtime smoke: PASS. Feature ready.
220
236
  ```
221
237
 
222
238
  ---
@@ -72,9 +72,9 @@ Terms in alphabetical order. Each entry has a **short definition** + **concrete
72
72
  **Definition:** the size of the project, calculated from 3 factors (user types, external integrations, business rules). Determines how much ceremony the workflow applies.
73
73
 
74
74
  **How it works:**
75
- - 0–1 points → **MICRO** (`@setup → @product → @dev`)
76
- - 2–3 points → **SMALL** (`@setup → @product → @analyst → @scope-check → @architect @dev @qa`)
77
- - 4–6 points → **MEDIUM** (full workflow, all gates, all artifacts)
75
+ - 0–1 points → **MICRO** (`@setup → @product → @dev → @qa`)
76
+ - 2–3 points → **SMALL** lean default (`@setup → @product → @sheldon → @dev → @qa`) `@sheldon` is the single spec authority
77
+ - 4–6 points → **MEDIUM** maestro (`@setup @product @orchestrator → @dev → @pentester → @qa`) — `@orchestrator` fans out `@analyst`/`@architect`/`@pm` as sub-agents
78
78
 
79
79
  **Where it appears:** `classification:` in the `project.context.md` frontmatter.
80
80
 
@@ -197,7 +197,7 @@ Terms in alphabetical order. Each entry has a **short definition** + **concrete
197
197
 
198
198
  ## Pipeline / Workflow
199
199
 
200
- **Definition:** the ordered sequence of agents that AIOSON applies to a feature, based on the classification.
200
+ **Definition:** the ordered sequence of agents that AIOSON applies to a feature, based on the classification. Three default lanes exist: MICRO (`@product → @dev → @qa`), SMALL lean (`@product → @sheldon → @dev → @qa`), and MEDIUM maestro (`@product → @orchestrator → @dev → @pentester → @qa`). Spec agents like `@analyst`, `@architect`, `@pm`, and `@ux-ui` are opt-in detours or fan-out sub-agents — not default hops.
201
201
 
202
202
  **Central command:** `aioson workflow:next .` — shows which agent is next.
203
203
 
@@ -255,7 +255,7 @@ Terms in alphabetical order. Each entry has a **short definition** + **concrete
255
255
 
256
256
  **Example:** a "legal compliance" squad with agents `@regulator`, `@attorney`, `@auditor`, under the command of `@squad`.
257
257
 
258
- **Commands:** `aioson squad:scaffold`, `squad:agent-create`, `squad:doctor`.
258
+ **Commands:** `aioson squad:scaffold`, `squad:agent-create`, `squad:doctor`.
259
259
 
260
260
  ---
261
261
 
@@ -20,9 +20,9 @@ Imagine you want to build a house.
20
20
 
21
21
  - **Briefing** listens to your raw idea (the "napkin sketch") and hands back a structured briefing — with risks and open questions — *before* it becomes a project.
22
22
  - **Product** understands what you want to build and why — and writes the PRD.
23
- - **Sheldon** reviews the PRD like a senior architect who has seen everything: points out gaps, researches what's outdated, reads your actual code, and decides whether to enrich the PRD or create a phased plan. Can review multiple times.
24
- - **Analyst** discovers what already exists in the codebase and what's missing.
25
- - **Architect** designs the structure.
23
+ - **Sheldon** is the spec authority for SMALL projects: in one pass it closes the PRD, writes the requirements, designs the technical structure, produces the implementation plan, and authors the harness contract. In larger (MEDIUM) projects it hardens the PRD before the full maestro phase.
24
+ - **Analyst** discovers what already exists in the codebase and what's missing (opt-in detour, or fan-out sub-agent in MEDIUM).
25
+ - **Architect** designs the structure (opt-in detour, or fan-out sub-agent in MEDIUM).
26
26
  - **UX-UI** designs how the end user will live there.
27
27
  - **Dev** builds.
28
28
  - **Deyvin** is the site foreman who picks up the job when you return from a trip: reads what's confirmed, flags what's inferred, and proceeds one small step at a time without you having to re-explain anything.
@@ -56,7 +56,7 @@ your-project/
56
56
  │ ├── rules/ ← hard rules agents follow (security, etc.)
57
57
  │ ├── skills/ ← pluggable packages (design systems, processes)
58
58
  │ └── runtime/ ← local telemetry (SQLite)
59
- ├── .claude/ .codex/ ← native client config
59
+ ├── .claude/ .codex/ ← native client config
60
60
  ├── CLAUDE.md AGENTS.md OPENCODE.md ← per-client instructions
61
61
  └── docs/ ← optional documentation
62
62
  ```
@@ -85,7 +85,7 @@ Agents are *prompts*, not plugins. They live in `.md` files and your AI client r
85
85
  - **You want to explore an idea freely** in 5 minutes. AIOSON asks for setup first.
86
86
  - **You won't open the project again.** The value is precisely in repeated sessions.
87
87
 
88
- For these cases, AIOSON itself has a lightweight path — the **MICRO** classification (`@setup → @product → @dev`). But if even that doesn't fit, don't force it.
88
+ For these cases, AIOSON itself has a lightweight path — the **MICRO** classification (`@setup → @product → @dev → @qa`). But if even that doesn't fit, don't force it.
89
89
 
90
90
  ## Next step
91
91
 
@@ -30,9 +30,9 @@ The interactive wizard appears:
30
30
 
31
31
  ```
32
32
  ? Which AI tools? ›
33
- ◉ Claude Code
34
- ◉ Codex CLI
35
- ◯ OpenCode
33
+ ◉ Claude Code
34
+ ◉ Codex CLI
35
+ ◯ OpenCode
36
36
 
37
37
  ? Mode? ›
38
38
  ◉ Development
@@ -100,8 +100,8 @@ You > Yes — discount policy by customer tier, commission rules
100
100
  @setup > project.context.md created with MEDIUM classification.
101
101
  @setup > Since you already have running code, I recommend:
102
102
  - Run @discover to build the semantic cache
103
- - Then @analyst to map the existing domain
104
- - Only then start the next feature via @product
103
+ - Then @analyst to map the existing domain (initial brownfield scan)
104
+ - Only then start features via @product @orchestrator (MEDIUM maestro)
105
105
  ```
106
106
 
107
107
  ---
@@ -154,10 +154,10 @@ You > "order-cancellation" — allow canceling an order within 1 hour
154
154
  @product > Acceptance criteria?
155
155
  You > [...]
156
156
 
157
- @product > Spec saved. Next: @analyst.
157
+ @product > Spec saved. Next: @orchestrator (MEDIUM maestro — will fan out @analyst, @architect, @pm).
158
158
  ```
159
159
 
160
- From there the flow is the same as in [first-project.md](./first-project.md).
160
+ From there, the MEDIUM maestro flow applies: `@product @orchestrator → @dev → @pentester → @qa`. `@orchestrator` fans out `@analyst`, `@architect`, and `@pm` as sub-agents (the domain knowledge from Step 5 feeds into them), consolidates the gated spec package, and hands to `@dev`. See [Full feature with @sheldon — MEDIUM variant](../3-recipes/full-feature-with-sheldon.md#medium-maestro-variant) for the full walkthrough.
161
161
 
162
162
  ---
163
163
 
@@ -142,47 +142,37 @@ You'll see a structured spec with scope, ACs, and out-of-scope items.
142
142
 
143
143
  ---
144
144
 
145
- ## Step 5 — `@analyst` maps the domain
145
+ ## Step 5 — `@sheldon` closes the spec (single spec authority for SMALL)
146
146
 
147
147
  ```
148
- You > @analyst
149
-
150
- @analyst > Reading spec... domain: personal tasks.
151
- @analyst > Entities:
152
- - Task { id, text, completed, created_at }
153
- @analyst > No other entities in scope.
154
- @analyst > Domain map saved to context/architecture.md.
155
- @analyst > Next: @architect.
156
- ```
157
-
158
- ---
148
+ You > @sheldon
159
149
 
160
- ## Step 6 `@architect` decides the structure
150
+ @sheldon > Reading spec.md... stack: Node + Express + SQLite.
151
+ @sheldon > No external gaps detected (simple scope). Producing spec package:
152
+ ✓ design-doc-task-list.md (structure: src/{routes,db,server}.js)
153
+ ✓ readiness-task-list.md (Gate B: ready)
154
+ ✓ implementation-plan.md (1 phase — scope is tight)
155
+ ✓ harness-contract.json (4 RG-smoke criteria matching the ACs)
161
156
 
162
- ```
163
- You > @architect
164
-
165
- @architect > Stack confirmed: Node + Express + SQLite.
166
- @architect > Decisions:
167
- - Structure: src/{routes,db,server}.js
157
+ @sheldon > Notes:
168
158
  - Persistence: better-sqlite3 (synchronous SQLite, simple)
169
- - Validation: small, manual (no extra libs — Article VI)
170
- - No heavy test framework: use node:test (built-in)
171
- @architect > Decisions recorded in architecture.md.
172
- @architect > Next: @dev.
159
+ - Validation: manual (no extra libs — Article VI)
160
+ - Test framework: node:test (built-in, no dependency)
161
+ @sheldon > Gates A/B/C: approved. Next: @dev.
173
162
  ```
174
163
 
175
- > **Note Article VI ("Simplicity Over Ceremony"):** `@architect` avoided pulling in unnecessary libraries.
164
+ > **Note Article VI ("Simplicity Over Ceremony"):** `@sheldon` flagged no unnecessary libraries. On a simple project like this it produces a lean package; on a complex feature it would do web research and multi-phase planning.
176
165
 
177
166
  ---
178
167
 
179
- ## Step 7 — `@dev` implements
168
+ ## Step 6 — `@dev` implements
180
169
 
181
170
  ```
182
171
  You > @dev
183
172
 
184
- @dev > [reads spec, architecture, project.context]
185
- @dev > I'll create:
173
+ @dev > [reads implementation-plan.md, spec, project.context]
174
+ @dev > Phase 1/1: full implementation (tight scope).
175
+ @dev > Creating:
186
176
  package.json
187
177
  src/db.js (init schema)
188
178
  src/routes.js (POST /tasks, PATCH /tasks/:id, GET /tasks)
@@ -190,8 +180,7 @@ You > @dev
190
180
  tests/tasks.test.js (placeholder — @qa covers)
191
181
 
192
182
  @dev > [implements]
193
- @dev > Implementation OK. Running smoke:
194
- $ node src/server.js → listening on 3000 ✓
183
+ @dev > aioson harness:check 4/4 criteria pass.
195
184
  @dev > dev-state.md updated.
196
185
  @dev > Next: @qa.
197
186
  ```
@@ -208,7 +197,7 @@ cat .aioson/context/dev-state.md
208
197
 
209
198
  ---
210
199
 
211
- ## Step 8 — `@qa` tests
200
+ ## Step 7 — `@qa` tests
212
201
 
213
202
  ```
214
203
  You > @qa
@@ -233,7 +222,7 @@ You > @qa
233
222
 
234
223
  ---
235
224
 
236
- ## Step 9 — Clean commit with `@committer`
225
+ ## Step 8 — Clean commit with `@committer`
237
226
 
238
227
  ```
239
228
  You > @committer
@@ -260,14 +249,19 @@ You > [Enter to accept]
260
249
 
261
250
  ```
262
251
  .aioson/context/
263
- ├── project.context.md ← project view (step 3)
264
- ├── architecture.md decisions (steps 5+6)
265
- ├── dev-state.md what @dev did (step 7)
266
- ├── test-plan.md ← @qa's plan (step 8)
267
- ├── qa-report-test-coverage.md QA report
252
+ ├── project.context.md ← project view (step 3)
253
+ ├── design-doc-task-list.md @sheldon spec (step 5)
254
+ ├── readiness-task-list.md ← @sheldon Gate B (step 5)
255
+ ├── implementation-plan.md ← @sheldon (step 5)
256
+ ├── dev-state.md what @dev did (step 6)
257
+ ├── test-plan.md ← @qa's plan (step 7)
258
+ ├── qa-report-test-coverage.md ← QA report
268
259
  └── features/
269
260
  └── task-list/
270
- └── spec.md ← original spec (step 4)
261
+ └── spec.md ← original spec (step 4)
262
+
263
+ .aioson/plans/task-list/
264
+ └── harness-contract.json ← @sheldon success contract
271
265
  ```
272
266
 
273
267
  Three months from now, someone (you or another AI) can open this project and understand **everything** just by reading these files. No chat history needed.
@@ -276,7 +270,7 @@ Three months from now, someone (you or another AI) can open this project and und
276
270
 
277
271
  ## What if I want a new feature?
278
272
 
279
- Go back to step 4. `@product` creates a new feature → `@analyst` `@architect` → `@dev` → `@qa`. `@setup` doesn't need to run again (context is already there).
273
+ Go back to step 4. `@product` creates a new feature → `@sheldon` (closes the spec) → `@dev` → `@qa`. `@setup` doesn't need to run again (context is already there).
280
274
 
281
275
  If you get lost in the middle:
282
276
 
@@ -28,12 +28,12 @@ The sum of three factors (each worth 0, 1, or 2 points):
28
28
 
29
29
  ### What changes at each level
30
30
 
31
- #### MICRO — `@setup → @product (optional) → @dev`
31
+ #### MICRO — `@setup → @product @dev → @qa`
32
32
 
33
33
  - For: scripts, automations, prototypes, simple personal apps.
34
- - No `@analyst` or `@architect`. You talk directly to `@dev`.
34
+ - No formal spec phase no `@sheldon` or `@orchestrator`. Lightweight.
35
35
  - `@product` is optional — you can pass the spec directly in chat if you prefer.
36
- - No `@qa` in the standard flow (you can invoke it manually).
36
+ - No per-phase verification; `@dev` phase checks are suppressed to save tokens.
37
37
 
38
38
  **Typical examples:**
39
39
  - Python script that processes CSV
@@ -41,11 +41,12 @@ The sum of three factors (each worth 0, 1, or 2 points):
41
41
  - Static portfolio page
42
42
  - Mini API with 3 endpoints
43
43
 
44
- #### SMALL — `@setup → @product → @analyst → @scope-check → @architect → @dev → @qa`
44
+ #### SMALL — `@setup → @product → @sheldon → @dev → @qa` (lean default)
45
45
 
46
46
  - For: most real apps.
47
- - Full discovery+development+QA cycle.
48
- - No `@ux-ui`, `@pm`, or `@orchestrator` in the standard flow (you can invoke them individually).
47
+ - `@sheldon` is the **single spec authority**: in one pass it produces requirements + spec (Gates A/B/C) + design-doc + readiness + implementation-plan + harness-contract, then hands directly to `@dev`.
48
+ - `@analyst`, `@architect`, `@pm`, `@ux-ui`, `@scope-check` are opt-in detours not in the default hop sequence.
49
+ - `@dev` runs a phase loop: auto-continues between phases, per-phase verification, context compaction.
49
50
 
50
51
  **Typical examples:**
51
52
  - SaaS app for a single persona
@@ -53,12 +54,12 @@ The sum of three factors (each worth 0, 1, or 2 points):
53
54
  - Simple online store
54
55
  - Blog with admin panel
55
56
 
56
- #### MEDIUM — full workflow
57
+ #### MEDIUM — `@setup → @product → @orchestrator → @dev → @pentester → @qa` (maestro lane)
57
58
 
58
59
  - For: products with multiple user types, several integrations, complex rules.
59
- - Adds `@ux-ui`, `@pm`, `@orchestrator`.
60
+ - `@orchestrator` is the **single spec authority**: fans out `@analyst`/`@architect`/`@pm` (+ `@ux-ui` for UI-heavy) as sub-agents, consolidates the gated spec package, then hands to `@dev`.
61
+ - `@pentester` runs inline (not opt-in) before `@qa`.
60
62
  - Quality gates applied at each handoff.
61
- - Parallel lanes possible (`@orchestrator` coordinates).
62
63
  - More aggressive context threshold (55% — warns early).
63
64
 
64
65
  **Typical examples:**
@@ -99,7 +100,7 @@ You can mark **more than one** in the wizard — they coexist in the same projec
99
100
 
100
101
  ### Development (default)
101
102
 
102
- Includes the 29 official agents (product, analyst, dev, qa, etc.; `@pair` is alias of `@deyvin`). Sufficient for 95% of projects.
103
+ Includes the 29 official agents (product, analyst, dev, qa, etc.; `@pair` is alias of `@deyvin`). Sufficient for 95% of projects.
103
104
 
104
105
  ### Development + Squads
105
106
 
@@ -110,13 +111,13 @@ Adds the squad system — you can create custom squads for domains outside the s
110
111
  - `@attorney` — interprets clauses
111
112
  - `@auditor` — checks conformity
112
113
 
113
- ```bash
114
- # Inside the AI client
115
- > @squad scaffold compliance
116
-
117
- # Or via CLI
118
- npx @jaimevalasek/aioson squad:scaffold . --slug=compliance --name="Compliance" --mode=mixed
119
- ```
114
+ ```bash
115
+ # Inside the AI client
116
+ > @squad scaffold compliance
117
+
118
+ # Or via CLI
119
+ npx @jaimevalasek/aioson squad:scaffold . --slug=compliance --name="Compliance" --mode=mixed
120
+ ```
120
121
 
121
122
  **When to activate Squads:**
122
123
  - You know you'll need specialization outside the standard
@@ -8,7 +8,7 @@ These three trails show **how features reach development** in AIOSON. You almost
8
8
 
9
9
  | Trail | When to use | Key agents |
10
10
  |---|---|---|
11
- | **[Full feature with @sheldon](./full-feature-with-sheldon.md)** | You have a PRD in mind and want the complete canonical trail (most used) | @product → @sheldon → @analyst → @architect @ux-ui → @pm → @orchestrator → @scope-check → @dev → @qa |
11
+ | **[Full feature with @sheldon](./full-feature-with-sheldon.md)** | SMALL lean (default) or MEDIUM maestro the canonical feature trail | SMALL: `@product → @sheldon → @dev → @qa`; MEDIUM: `@product → @orchestrator → @dev → @pentester → @qa` |
12
12
  | [From idea to PRD via @briefing](./from-idea-to-prd-via-briefing.md) | Your idea is still vague, several loose notes | @briefing → @product |
13
13
  | [External plans for @product](./external-plans-for-product.md) *(coming soon)* | You already planned in another chat (ChatGPT, Claude.io Web) | @product (reads `/plans/`) |
14
14
 
@@ -17,7 +17,7 @@ These three trails show **how features reach development** in AIOSON. You almost
17
17
  | Recipe | Scenario | Main agents |
18
18
  |---|---|---|
19
19
  | [Landing page](./landing-page.md) *(coming soon)* | Create a presentation page with copy and design | @product, @copywriter, @ux-ui, @dev, @qa |
20
- | [SaaS app from scratch](./saas-app-from-scratch.md) *(coming soon)* | Full SaaS: auth, Stripe billing, admin | Full MEDIUM workflow + @orchestrator |
20
+ | [SaaS app from scratch](./saas-app-from-scratch.md) *(coming soon)* | Full SaaS: auth, Stripe billing, admin | `@product @orchestrator @dev → @pentester → @qa` (MEDIUM maestro) |
21
21
  | [Integration in large codebase](./integration-in-large-codebase.md) *(coming soon)* | Install AIOSON on a 10k–100k line legacy project | @discover, @analyst |
22
22
  | [Large refactor](./large-refactor.md) *(coming soon)* | Rewrite a critical module without breaking anything | @sheldon, @tester, @dev, @qa |
23
23
  | [Security audit](./security-audit.md) *(coming soon)* | Review vulnerabilities before production | @pentester |
@@ -55,7 +55,7 @@ The file has standardized sections:
55
55
  slug: checkout-stripe
56
56
  status: in_progress
57
57
  classification: SMALL
58
- agents_trail: [@product, @analyst, @architect, @dev]
58
+ agents_trail: [@product, @sheldon, @dev]
59
59
  last_agent: @dev
60
60
  last_updated: 2026-05-06T14:32:00Z
61
61
 
@@ -196,7 +196,7 @@ npx @jaimevalasek/aioson dossier:show --slug=checkout-stripe
196
196
  ```
197
197
  FEATURE: checkout-stripe
198
198
  Status: in_progress
199
- Agents: @product, @analyst, @architect, @dev, @deyvin
199
+ Agents: @product, @sheldon, @dev, @deyvin
200
200
  Progress: 4/5 steps done (80%)
201
201
  Files: 5 (3 created, 2 pending)
202
202
  Research: 1 (stripe webhooks)