@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.
- package/CHANGELOG.md +75 -0
- package/README.md +19 -6
- package/docs/en/1-understand/ecosystem-map.md +45 -29
- package/docs/en/1-understand/glossary.md +5 -5
- package/docs/en/1-understand/what-is-aioson.md +5 -5
- package/docs/en/2-start/existing-project.md +7 -7
- package/docs/en/2-start/first-project.md +32 -38
- package/docs/en/2-start/initial-decisions.md +18 -17
- package/docs/en/3-recipes/README.md +2 -2
- package/docs/en/3-recipes/continuity-between-sessions.md +2 -2
- package/docs/en/3-recipes/from-idea-to-prd-via-briefing.md +5 -2
- package/docs/en/3-recipes/full-feature-with-sheldon.md +327 -338
- package/docs/en/4-agents/README.md +28 -14
- package/docs/en/4-agents/discovery-design-doc.md +20 -8
- package/docs/en/4-agents/forge-run.md +3 -2
- package/docs/en/5-reference/cli-reference.md +51 -48
- package/docs/en/5-reference/executable-verification.md +10 -7
- package/docs/en/5-reference/parallel.md +2 -0
- package/docs/en/5-reference/qa-browser.md +2 -2
- package/docs/en/README.md +3 -3
- package/docs/pt/1-entender/glossario.md +4 -4
- package/docs/pt/1-entender/mapa-do-ecossistema.md +32 -21
- package/docs/pt/2-comecar/decisoes-iniciais.md +16 -16
- package/docs/pt/2-comecar/primeiro-projeto.md +1 -1
- package/docs/pt/3-receitas/README.md +1 -1
- package/docs/pt/3-receitas/app-saas-do-zero.md +35 -122
- package/docs/pt/3-receitas/feature-completa-com-sheldon.md +289 -338
- package/docs/pt/4-agentes/analyst.md +9 -5
- package/docs/pt/4-agentes/architect.md +9 -5
- package/docs/pt/4-agentes/dev.md +19 -7
- package/docs/pt/4-agentes/discovery-design-doc.md +25 -23
- package/docs/pt/4-agentes/orchestrator.md +164 -118
- package/docs/pt/4-agentes/pentester.md +5 -5
- package/docs/pt/4-agentes/pm.md +15 -7
- package/docs/pt/4-agentes/sheldon.md +166 -99
- package/docs/pt/4-agentes/ux-ui.md +7 -4
- package/docs/pt/5-referencia/agent-chain-continuity.md +14 -5
- package/docs/pt/5-referencia/comandos-cli.md +1 -1
- package/docs/pt/5-referencia/harness-retro.md +2 -1
- package/docs/pt/5-referencia/sdd-automation-scripts.md +6 -6
- package/docs/pt/5-referencia/sdd-framework.md +53 -16
- package/docs/pt/5-referencia/sdd-planos-e-estrutura.md +27 -15
- package/docs/pt/README.md +4 -4
- package/docs/pt/agentes.md +48 -50
- package/package.json +2 -2
- package/src/artifact-kinds.js +110 -0
- package/src/cli.js +82 -42
- package/src/commands/agent-epilogue.js +251 -186
- package/src/commands/agents.js +104 -48
- package/src/commands/audit-code.js +344 -0
- package/src/commands/classify.js +75 -13
- package/src/commands/feature-close.js +43 -18
- package/src/commands/harness-check.js +259 -175
- package/src/commands/harness-retro-promote.js +387 -0
- package/src/commands/live.js +24 -0
- package/src/commands/prototype-check.js +163 -0
- package/src/commands/review-feature.js +189 -0
- package/src/commands/runtime.js +81 -66
- package/src/commands/sync-agents-copy.js +115 -0
- package/src/commands/verification-plan.js +116 -0
- package/src/commands/verify-artifact.js +530 -0
- package/src/commands/verify-implementation.js +428 -0
- package/src/commands/workflow-execute.js +309 -309
- package/src/commands/workflow-next.js +361 -19
- package/src/commands/workflow-plan.js +5 -5
- package/src/constants.js +4 -0
- package/src/gateway-pointer-merge.js +7 -1
- package/src/handoff-contract.js +267 -172
- package/src/harness/contract-integrity-gate.js +172 -0
- package/src/harness/contract-integrity.js +111 -0
- package/src/harness/contract-schema.js +377 -332
- package/src/harness/detect-runtime-feature.js +90 -0
- package/src/harness/static-criteria.js +192 -0
- package/src/i18n/messages/en.js +8 -4
- package/src/i18n/messages/es.js +8 -4
- package/src/i18n/messages/fr.js +8 -4
- package/src/i18n/messages/pt-BR.js +8 -4
- package/src/install-wizard.js +8 -8
- package/src/installer.js +13 -6
- package/src/lib/retro/retro-render.js +10 -1
- package/src/lib/retro/retro-sources.js +45 -27
- package/src/lib/retro/verification-reports.js +230 -0
- package/src/parser.js +6 -0
- package/src/preflight-engine.js +12 -12
- package/src/runtime-store.js +13 -9
- package/src/verification/evidence-bundle.js +251 -0
- package/src/verification/ledger-store.js +221 -0
- package/src/verification/path-policy.js +74 -0
- package/src/verification/policy-engine.js +95 -0
- package/src/verification/prompt-package.js +314 -0
- package/src/verification/redaction.js +77 -0
- package/src/verification/report-parser.js +132 -0
- package/src/verification/report-store.js +97 -0
- package/src/verification/result.js +16 -0
- package/src/verification/runners/index.js +319 -0
- package/src/verification/runtime-telemetry.js +144 -0
- package/src/verification/schema.js +276 -0
- package/src/verification/source-discovery.js +153 -0
- package/src/verification-policy.js +398 -0
- package/src/version.js +52 -1
- package/template/.aioson/agents/analyst.md +9 -6
- package/template/.aioson/agents/architect.md +34 -5
- package/template/.aioson/agents/briefing-refiner.md +25 -0
- package/template/.aioson/agents/briefing.md +69 -12
- package/template/.aioson/agents/committer.md +2 -1
- package/template/.aioson/agents/copywriter.md +30 -21
- package/template/.aioson/agents/design-hybrid-forge.md +28 -15
- package/template/.aioson/agents/dev.md +28 -10
- package/template/.aioson/agents/deyvin.md +3 -2
- package/template/.aioson/agents/discover.md +12 -3
- package/template/.aioson/agents/discovery-design-doc.md +7 -2
- package/template/.aioson/agents/genome.md +19 -10
- package/template/.aioson/agents/neo.md +30 -30
- package/template/.aioson/agents/orache.md +20 -11
- package/template/.aioson/agents/orchestrator.md +84 -7
- package/template/.aioson/agents/pm.md +8 -8
- package/template/.aioson/agents/product.md +15 -11
- package/template/.aioson/agents/profiler-enricher.md +20 -11
- package/template/.aioson/agents/profiler-forge.md +20 -11
- package/template/.aioson/agents/profiler-researcher.md +20 -11
- package/template/.aioson/agents/qa.md +87 -17
- package/template/.aioson/agents/scope-check.md +19 -5
- package/template/.aioson/agents/setup.md +12 -1
- package/template/.aioson/agents/sheldon.md +92 -9
- package/template/.aioson/agents/site-forge.md +11 -2
- package/template/.aioson/agents/squad.md +20 -5
- package/template/.aioson/agents/ux-ui.md +4 -2
- package/template/.aioson/agents/validator.md +33 -1
- package/template/.aioson/config/verification.json +61 -0
- package/template/.aioson/config.md +13 -9
- package/template/.aioson/docs/LAYERS.md +2 -2
- package/template/.aioson/docs/autopilot-handoff.md +10 -10
- package/template/.aioson/docs/dev/execution-discipline.md +41 -0
- package/template/.aioson/docs/dev/phase-loop.md +47 -0
- package/template/.aioson/docs/feature-expansion-taxonomy.md +31 -3
- package/template/.aioson/docs/presets/workflow.config.full-merged.json +15 -0
- package/template/.aioson/docs/presets/workflow.config.lean.json +15 -0
- package/template/.aioson/docs/product/prd-contract.md +12 -12
- package/template/.aioson/docs/prototype-contract.md +98 -0
- package/template/.aioson/docs/reference-identity.md +94 -0
- package/template/.aioson/docs/sheldon/harness-contract.md +155 -28
- package/template/.aioson/docs/verification-config.md +82 -0
- package/template/.aioson/docs/verify-artifact-gates.md +91 -0
- package/template/.aioson/docs/workflow-lean-lane.md +129 -0
- package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +2 -0
- package/template/.aioson/skills/process/aioson-spec-driven/SKILL.md +16 -14
- package/template/.aioson/skills/process/aioson-spec-driven/references/approval-gates.md +2 -2
- package/template/.aioson/skills/process/aioson-spec-driven/references/classification-map.md +4 -4
- package/template/.aioson/skills/process/aioson-spec-driven/references/dev.md +15 -15
- package/template/.aioson/skills/process/briefing-expansion-scout/SKILL.md +25 -3
- package/template/.aioson/skills/process/design-hybrid-forge/SKILL.md +5 -3
- package/template/.aioson/skills/process/design-hybrid-forge/references/external-source-ingestion.md +89 -0
- package/template/.aioson/skills/process/product-scope-expansion/SKILL.md +29 -2
- package/template/.aioson/skills/process/prototype-forge/SKILL.md +98 -0
- package/template/.aioson/skills/process/reference-identity-extract/SKILL.md +164 -0
- package/template/.aioson/skills/process/sheldon-expansion-audit/SKILL.md +23 -2
- package/template/.aioson/skills/static/multi-agent-patterns.md +5 -5
- package/template/CLAUDE.md +15 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sheldon-expansion-audit
|
|
3
|
-
description: "Sheldon process skill for auditing a PRD against prior feature expansion artifacts
|
|
3
|
+
description: "Sheldon process skill for auditing a PRD against prior feature expansion artifacts, expected product richness, and operational surface completeness. Use in @sheldon when expansion-scout.md or scope-expansion.md exists, or when a PRD for a rich-surface feature looks too thin, too inflated, lacks acceptance criteria for enriched capabilities, or implies workspaces, boards, cards, pipelines, operational CRUD, admin/management surfaces, or Trello/CRM/Kanban-like behavior."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Sheldon Expansion Audit
|
|
@@ -20,6 +20,22 @@ Read available inputs:
|
|
|
20
20
|
|
|
21
21
|
If no prior expansion artifact exists, perform only a lightweight inferred expansion and label it clearly.
|
|
22
22
|
|
|
23
|
+
## Operational Surface Audit
|
|
24
|
+
|
|
25
|
+
Before recommending enrichment, audit the PRD against the Operational Surface Map in `.aioson/docs/feature-expansion-taxonomy.md`.
|
|
26
|
+
|
|
27
|
+
Flag as **critical** when a Core object exists in scope but lacks:
|
|
28
|
+
|
|
29
|
+
- parent/owner relationship
|
|
30
|
+
- create, list/view, edit, delete/archive, or restore handling
|
|
31
|
+
- a management surface where the user performs those actions
|
|
32
|
+
- empty state and validation/error behavior
|
|
33
|
+
- role/permission boundary for owner/member/admin scenarios
|
|
34
|
+
|
|
35
|
+
For Trello/Kanban/CRM/workspace-like PRDs, missing workspace management, board/pipeline CRUD, primary item creation/editing, or the main work surface is a blocking product gap, not optional enrichment.
|
|
36
|
+
|
|
37
|
+
Do not allow generic phrases like "manage cards", "manage boards", or "workspace support" to pass unless the PRD names the surfaces and flows that make those capabilities usable.
|
|
38
|
+
|
|
23
39
|
## Output
|
|
24
40
|
|
|
25
41
|
Write `.aioson/context/features/{slug}/expansion-audit.md`.
|
|
@@ -43,6 +59,10 @@ Use this structure:
|
|
|
43
59
|
- Missing user states/actions:
|
|
44
60
|
- Missing acceptance criteria:
|
|
45
61
|
|
|
62
|
+
## Operational Surface Audit
|
|
63
|
+
| Object | Expected surface | Missing action/state | Severity | Required PRD patch |
|
|
64
|
+
|---|---|---|---|---|
|
|
65
|
+
|
|
46
66
|
## Too Large Check
|
|
47
67
|
- V2 items pulled into MVP:
|
|
48
68
|
- Optional items without approval:
|
|
@@ -61,7 +81,8 @@ Proceed / enrich PRD first / return to product for decision.
|
|
|
61
81
|
|
|
62
82
|
- Prefer evidence from prior expansion artifacts over inventing new ideas.
|
|
63
83
|
- Flag when a rich-surface PRD has only generic fields or thin CRUD.
|
|
84
|
+
- Treat missing Core management surfaces and create/edit flows as critical gaps.
|
|
85
|
+
- For Trello-like products, workspace/board management and card creation/editing are Core unless explicitly excluded in the PRD.
|
|
64
86
|
- Flag when V2 ideas entered MVP without explicit rationale.
|
|
65
87
|
- Convert accepted expansion items into acceptance-criteria gaps.
|
|
66
88
|
- Do not rewrite Product-owned Vision, Problem, or Users.
|
|
67
|
-
|
|
@@ -28,11 +28,11 @@ When Evaluator finds issues:
|
|
|
28
28
|
|
|
29
29
|
### Session isolation
|
|
30
30
|
|
|
31
|
-
Each role should run from a compact operational handoff:
|
|
32
|
-
- Planner sessions: produce artifacts, then /compact for same-feature continuation
|
|
33
|
-
- Generator sessions: read spec pack + implement, then /compact for same-feature continuation
|
|
34
|
-
- Evaluator sessions: read code + spec + verify, then /compact for same-feature continuation
|
|
35
|
-
- Use /clear only for a hard reset, feature switch, polluted context, or security-sensitive reset
|
|
31
|
+
Each role should run from a compact operational handoff:
|
|
32
|
+
- Planner sessions: produce artifacts, then /compact for same-feature continuation
|
|
33
|
+
- Generator sessions: read spec pack + implement, then /compact for same-feature continuation
|
|
34
|
+
- Evaluator sessions: read code + spec + verify, then /compact for same-feature continuation
|
|
35
|
+
- Use /clear only for a hard reset, feature switch, polluted context, or security-sensitive reset
|
|
36
36
|
|
|
37
37
|
Cross-role communication happens through artifacts on disk, not conversation history.
|
|
38
38
|
|
package/template/CLAUDE.md
CHANGED
|
@@ -7,15 +7,15 @@ You operate as AIOSON.
|
|
|
7
7
|
- If missing: run `/setup`
|
|
8
8
|
- If present: read it before any action
|
|
9
9
|
2. Read `.aioson/config.md` only if project context is missing/invalid, setup/routing policy is needed, or the active agent explicitly asks for config details.
|
|
10
|
-
3. If `.aioson/rules/` contains `.md` files, note silently that project rules are active — concrete code/review agents use `context:brief` for precision selection, broad recall, and constraints. Load `must_load`, treat `related` as recall hints, and keep `context:select` as the underlying selector/fallback when the CLI or agent contract asks for it. Do not alarm if the directory is absent or empty.
|
|
10
|
+
3. If `.aioson/rules/` contains `.md` files, note silently that project rules are active — concrete code/review agents use `context:brief` for precision selection, broad recall, and constraints. Load `must_load`, treat `related` as recall hints, and keep `context:select` as the underlying selector/fallback when the CLI or agent contract asks for it. Do not alarm if the directory is absent or empty.
|
|
11
11
|
|
|
12
|
-
## Project knowledge
|
|
13
|
-
|
|
14
|
-
Read `.aioson/learnings/INDEX.md` if it exists. Each line is a project gotcha or recipe with its file path and a one-line summary. Lazy-load individual files only when title/scope matches your current task or files being touched.
|
|
15
|
-
|
|
16
|
-
## Canonical context paths
|
|
17
|
-
|
|
18
|
-
When instructions mention context artifacts by bare filename — `project.context.md`, `project-pulse.md`, `features.md`, `dev-state.md`, `workflow.state.json`, `last-handoff.json`, or `handoff-protocol.json` — resolve them to `.aioson/context/<filename>`. Never probe the project root or `.aioson/` root for these files.
|
|
12
|
+
## Project knowledge
|
|
13
|
+
|
|
14
|
+
Read `.aioson/learnings/INDEX.md` if it exists. Each line is a project gotcha or recipe with its file path and a one-line summary. Lazy-load individual files only when title/scope matches your current task or files being touched.
|
|
15
|
+
|
|
16
|
+
## Canonical context paths
|
|
17
|
+
|
|
18
|
+
When instructions mention context artifacts by bare filename — `project.context.md`, `project-pulse.md`, `features.md`, `dev-state.md`, `workflow.state.json`, `last-handoff.json`, or `handoff-protocol.json` — resolve them to `.aioson/context/<filename>`. Never probe the project root or `.aioson/` root for these files.
|
|
19
19
|
|
|
20
20
|
## No agent selected
|
|
21
21
|
|
|
@@ -94,8 +94,12 @@ AIOSON follows a Spec-Driven Development (SDD) methodology. Key governance files
|
|
|
94
94
|
|
|
95
95
|
The process depth scales with project classification:
|
|
96
96
|
- **MICRO** (0-1): lightweight — @product → @dev
|
|
97
|
-
- **SMALL** (2-3):
|
|
98
|
-
- **MEDIUM** (4-6):
|
|
97
|
+
- **SMALL** (2-3): lean by default — @product → @sheldon → @dev → @qa (@sheldon is the single spec authority)
|
|
98
|
+
- **MEDIUM** (4-6): @orchestrator maestro — feature: @product → @orchestrator → @dev → @pentester → @qa; project: @setup → @product → @orchestrator → @dev → @qa. @orchestrator is the MEDIUM single spec authority (the "maestro"): it fans out to @analyst + @architect + @pm (+ @ux-ui when UI-heavy) as sub-agents, then consolidates/verifies/redoes their work into one gated spec package (requirements + spec[Gates A/B/C approved] + design-doc + readiness + implementation-plan[approved] + harness-contract) and hands to @dev — the horizontal (fan-out) counterpart to @sheldon's lean lane (SMALL). @analyst, @architect, @pm, @discovery-design-doc, @scope-check, and @ux-ui are no longer default hops; they are sub-agents the orchestrator invokes and remain opt-in detours. @architect's merged mode survives only for the opt-in full-chain detour that routes @architect → @dev without @discovery-design-doc. The deterministic drift check runs at the @dev/@qa done gate.
|
|
99
|
+
|
|
100
|
+
**Lean lane (default for SMALL):** collapse the spec hops into @sheldon as the single spec authority — @product → @sheldon → @dev → @qa (@validator detour when a harness contract exists). Lean is the SMALL default; the heavier multi-agent "full-merged" preset stays an opt-in escape hatch via `.aioson/context/workflow.config.json`. See `.aioson/docs/workflow-lean-lane.md`.
|
|
101
|
+
|
|
102
|
+
**Runtime smoke gate (all lanes):** a feature with a backend, a database, or a clickable prototype does not close until its build + migrations (applied to a real DB) + boot + Core happy-path run on the **real stack** — not just unit tests. Enforced by @qa's Runtime smoke gate, the §2c `RG-*` criteria in `harness-contract.json`, and @validator's contract-integrity precheck. Passing unit tests + `tsc` is the floor, not "done".
|
|
99
103
|
|
|
100
104
|
Classification is determined by @analyst during discovery. See `aioson-spec-driven` skill for details.
|
|
101
105
|
|
|
@@ -108,7 +112,7 @@ When running Claude Code directly (without `aioson workflow:next`), these rules
|
|
|
108
112
|
**Hard constraints — no exceptions:**
|
|
109
113
|
- You MUST NEVER implement code, produce UI specs, write PRDs, or answer technical tasks outside an activated agent.
|
|
110
114
|
- If the user explicitly activates `/deyvin` or `/pair`, it may act directly only for continuity on existing known context and a small validated slice. If the request is a new project, greenfield build, new feature, broad redesign, vague or contradictory, or mixes product + UX + implementation scope, `/deyvin` must hand off immediately and must not code first.
|
|
111
|
-
- Between agent handoffs, your ONLY valid output is: which agent is next and why. Do not continue into that agent's work. Single exception: when `auto_handoff: true` is set in `.aioson/context/project.context.md`, the agents covered by `.aioson/docs/autopilot-handoff.md` auto-invoke the next agent's skill instead of stopping. That chain stops before the first `@dev` activation (the human clears context and starts implementation) and resumes through the post-dev review cycle (`@dev` → `@qa` → `@tester`/`@pentester` when their `@qa` triggers fire → `@validator`); it never auto-runs `feature:close`/publish — those require explicit human approval.
|
|
115
|
+
- Between agent handoffs, your ONLY valid output is: which agent is next and why. Do not continue into that agent's work. Single exception: when `auto_handoff: true` is set in `.aioson/context/project.context.md`, the agents covered by `.aioson/docs/autopilot-handoff.md` auto-invoke the next agent's skill instead of stopping. That chain stops before the first `@dev` activation (the human clears context and starts implementation) and resumes through the post-dev review cycle (`@dev` → `@qa` → `@tester`/`@pentester` when their `@qa` triggers fire → `@validator`); it never auto-runs `feature:close`/publish — those require explicit human approval.
|
|
112
116
|
- If the user sends an implementation request before setup is complete: do not implement. Tell them to activate `/setup` first.
|
|
113
117
|
- If the user insists on bypassing an agent stage: refuse and redirect. Urgency or complexity do not override this rule.
|
|
114
118
|
|