@jaimevalasek/aioson 1.23.1 → 1.28.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 (52) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/docs/en/4-agents/README.md +11 -8
  3. package/docs/en/4-agents/forge-run.md +165 -0
  4. package/docs/en/5-reference/README.md +1 -0
  5. package/docs/en/5-reference/cli-reference.md +199 -85
  6. package/docs/en/5-reference/executable-verification.md +165 -0
  7. package/docs/pt/4-agentes/README.md +2 -1
  8. package/docs/pt/4-agentes/forge-run.md +150 -0
  9. package/docs/pt/4-agentes/pm.md +8 -0
  10. package/docs/pt/4-agentes/qa.md +2 -0
  11. package/docs/pt/4-agentes/scope-check.md +19 -1
  12. package/docs/pt/4-agentes/sheldon.md +2 -0
  13. package/docs/pt/4-agentes/validator.md +20 -0
  14. package/docs/pt/5-referencia/autopilot-handoff.md +33 -0
  15. package/docs/pt/5-referencia/comandos-cli.md +64 -9
  16. package/docs/pt/5-referencia/fluxo-artefatos.md +40 -15
  17. package/docs/pt/5-referencia/loop-guardrails.md +19 -0
  18. package/docs/pt/5-referencia/sdd-automation-scripts.md +130 -26
  19. package/package.json +1 -1
  20. package/src/cli.js +70 -54
  21. package/src/commands/context-select.js +1 -0
  22. package/src/commands/forge-compile.js +330 -0
  23. package/src/commands/harness-check.js +159 -0
  24. package/src/commands/harness.js +37 -2
  25. package/src/commands/spec-analyze.js +324 -0
  26. package/src/constants.js +118 -108
  27. package/src/context-selector.js +28 -2
  28. package/src/gateway-pointer-merge.js +25 -4
  29. package/src/harness/contract-schema.js +8 -0
  30. package/src/harness/plan-waves.js +77 -0
  31. package/src/harness/review-payload.js +230 -0
  32. package/src/i18n/messages/en.js +21 -15
  33. package/src/i18n/messages/es.js +15 -13
  34. package/src/i18n/messages/fr.js +15 -13
  35. package/src/i18n/messages/pt-BR.js +21 -15
  36. package/src/parser.js +3 -1
  37. package/template/.aioson/agents/dev.md +67 -66
  38. package/template/.aioson/agents/deyvin.md +79 -74
  39. package/template/.aioson/agents/forge-run.md +57 -0
  40. package/template/.aioson/agents/pm.md +51 -45
  41. package/template/.aioson/agents/qa.md +22 -22
  42. package/template/.aioson/agents/scope-check.md +49 -46
  43. package/template/.aioson/agents/sheldon.md +1 -1
  44. package/template/.aioson/agents/validator.md +16 -5
  45. package/template/.aioson/docs/autopilot-handoff.md +34 -32
  46. package/template/.aioson/docs/sheldon/harness-contract.md +19 -2
  47. package/template/.aioson/skills/process/aioson-spec-driven/SKILL.md +9 -7
  48. package/template/.aioson/skills/process/aioson-spec-driven/references/deyvin.md +19 -15
  49. package/template/.claude/commands/aioson/agent/forge-run.md +17 -0
  50. package/template/AGENTS.md +7 -5
  51. package/template/CLAUDE.md +4 -3
  52. package/template/OPENCODE.md +24 -22
@@ -2,17 +2,21 @@
2
2
 
3
3
  > Router file. Do not duplicate logic from the generic references — load those directly.
4
4
 
5
- ## Which references to load for continuation and resume flows
6
-
7
- ### Always load when this skill is active
8
-
9
- - `maintenance-and-state.md` @deyvin's primary job is resumption; use this to read `phase_gates`, `last_checkpoint`, and `pending_review` correctly before any action
10
- - `approval-gates.md` — use to check which gates are already approved before proceeding; never advance past a gate that is not yet passed
11
-
12
- ### Load when the continuation context is unclear
13
-
14
- - `artifact-map.md` — use to quickly orient which artifacts exist and which are missing when resuming a session with incomplete context
15
-
5
+ ## Which references to load for continuation and resume flows
6
+
7
+ ### Activation-only sessions
8
+
9
+ If the user only activates `@deyvin` without a concrete task, stop after the lightweight context summary from `context:select`. Do not load this reference's downstream files.
10
+
11
+ ### Load only for concrete continuation
12
+
13
+ - `maintenance-and-state.md` — load when the concrete task requires reading or writing `spec*.md`, `last_checkpoint`, or `pending_review`
14
+ - `approval-gates.md` — load when the next action could cross a phase gate, approve/deny readiness, or continue implementation past Gate C/D
15
+
16
+ ### Load when the continuation context is unclear
17
+
18
+ - `artifact-map.md` — use to quickly orient which artifacts exist and which are missing after a concrete continuation task names a feature but the selected artifacts contradict each other
19
+
16
20
  ### Do not load for @deyvin
17
21
 
18
22
  - `hardening-lane.md` — by the time @deyvin is active, the spec pack should already be hardened
@@ -21,7 +25,7 @@
21
25
 
22
26
  ## Behavioral notes
23
27
 
24
- - `last_checkpoint` in `spec-{slug}.md` is the first thing @deyvin reads — see `maintenance-and-state.md` for format
25
- - Do not re-read the full spec pack unless `last_checkpoint` is null or contradictory
26
- - `phase_gates` from `approval-gates.md` defines what is locked — @deyvin does not re-open locked decisions
27
- - `pending_review` items must be surfaced to the user before proceeding past them
28
+ - `last_checkpoint` in `spec-{slug}.md` is the first thing @deyvin reads only after a concrete continuation task selects that spec — see `maintenance-and-state.md` for format
29
+ - Do not re-read the full spec pack unless `last_checkpoint` is null or contradictory
30
+ - `phase_gates` from `approval-gates.md` defines what is locked — @deyvin does not re-open locked decisions
31
+ - `pending_review` items must be surfaced to the user before proceeding past them
@@ -0,0 +1,17 @@
1
+ ---
2
+ description: "AIOSON — Compile and run the Lane B workflow harness for a MEDIUM feature"
3
+ ---
4
+
5
+ If $ARGUMENTS is exactly "--help" or starts with "--help":
6
+ Do NOT activate the agent. Instead, display this help and stop:
7
+
8
+ @forge-run — Compile specs into a workflow harness and execute it (Lane B)
9
+ Usage: /aioson:agent:forge-run [feature slug]
10
+ Requires:
11
+ .aioson/plans/{slug}/harness-contract.json (with verification commands)
12
+ .aioson/context/implementation-plan-{slug}.md (with Wave column)
13
+ Produces: .aioson/plans/{slug}/forge-run.workflow.js + a workflow run ending before feature:close
14
+ Instruction file: .aioson/agents/forge-run.md
15
+ CLI help: aioson agent:help forge-run
16
+
17
+ Otherwise: Read `.aioson/agents/forge-run.md` and follow all instructions. $ARGUMENTS
@@ -3,10 +3,10 @@
3
3
  You operate as AIOSON — an AI development squad with specialized agents.
4
4
 
5
5
  ## Mandatory first action
6
- 1. Read `.aioson/config.md`
7
- 2. Check whether `.aioson/context/project.context.md` exists
6
+ 1. Check whether `.aioson/context/project.context.md` exists
8
7
  - If missing: activate @setup agent immediately
9
8
  - If present: read it before any action
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
10
  3. If `.aioson/rules/` contains `.md` files, note silently that project rules are active — each agent will load applicable rules automatically via its "Project rules, docs & design docs" section. Do not alarm if the directory is absent or empty.
11
11
 
12
12
  ## Project knowledge
@@ -88,6 +88,7 @@ Describe your intent. The agent system will match and execute.
88
88
  | @design-hybrid-forge | "create hybrid design skill", "combine two design skills", "use the design-hybrid-forge agent" |
89
89
  | @site-forge | "clone this site with [skill]", "rebuild [url] using [skill]", "[url] in the style of [skill]", "extract the design from [url] as a skill", "use the site-forge agent" |
90
90
  | @discover | "discover the system", "scan and understand the project", "build semantic knowledge cache", "refresh bootstrap", "use the discover agent" |
91
+ | @forge-run | "compile the workflow harness for [slug]", "run lane B for [slug]", "execute the compiled harness", "use the forge-run agent" |
91
92
 
92
93
  When an agent file is included via @ or described via natural language, read the corresponding file and execute its instructions immediately from the first step.
93
94
  Do not answer with "I will open/read/show the file" unless the user explicitly asked to inspect that file.
@@ -148,6 +149,7 @@ When running Codex directly (without `aioson workflow:next`), these rules apply:
148
149
  - @orache → `.aioson/agents/orache.md`
149
150
  - @design-hybrid-forge → `.aioson/agents/design-hybrid-forge.md`
150
151
  - @site-forge → `.aioson/agents/site-forge.md`
152
+ - @forge-run → `.aioson/agents/forge-run.md`
151
153
 
152
154
  ## Spec-Driven Development (SDD)
153
155
 
@@ -168,7 +170,7 @@ AIOSON uses the `aioson-spec-driven` process skill to enforce specification-firs
168
170
  Gates are blocking in MEDIUM, informational in MICRO/SMALL.
169
171
 
170
172
  ### How agents load SDD
171
- Each agent checks for `aioson-spec-driven` in `.aioson/installed-skills/` or `.aioson/skills/process/` and loads its role-specific reference file (e.g., `references/dev.md`, `references/qa.md`).
173
+ For concrete spec/workflow work, the active agent checks for `aioson-spec-driven` in `.aioson/installed-skills/` or `.aioson/skills/process/` and loads only its role-specific reference file (e.g., `references/dev.md`, `references/qa.md`). A bare `@deyvin` activation is not spec work: follow Deyvin's activation-only fast path and do not open this skill.
172
174
 
173
175
  ### Project pulse convention
174
176
  Every agent updates `project-pulse.md` at session end with: last_agent, last_gate, active features, blockers, and next recommended action. This enables crash recovery — any agent can read project-pulse.md and know where to resume.
@@ -180,7 +182,7 @@ Located at: `.aioson/skills/process/aioson-spec-driven/SKILL.md`
180
182
  This is a first-party process skill. It teaches agents how phases connect, when to apply which depth, and how to prepare clean handoffs.
181
183
 
182
184
  Agents that load it: @product, @analyst, @scope-check, @architect, @sheldon, @dev, @deyvin, @qa, @tester, @orchestrator, @pm
183
- When to load: at the start of any spec work (PRD, requirements, architecture, implementation, testing)
185
+ When to load: at the start of concrete spec work (PRD, requirements, architecture, implementation, testing); not during `@deyvin` activation-only recovery
184
186
  What to load: `SKILL.md` first, then only the `references/` file relevant to the current phase
185
187
 
186
188
  ## Process skill: design-hybrid-forge
@@ -226,7 +228,7 @@ Primary recurring writers here: @product, @sheldon, and @squad
226
228
  All agents may read from here to avoid redundant searches.
227
229
 
228
230
  ## Session protocol
229
- If `.aioson/context/spec.md` exists, read it at session start and update it at session end.
231
+ Do not read `.aioson/context/spec.md` globally at session start. Agents load `spec*.md` only when `context:select`, their SDD reference, or a concrete task selects it; update it at session end only if the active agent loaded and changed that spec context.
230
232
 
231
233
  ## Golden rule
232
234
  Small project, small solution.
@@ -3,10 +3,10 @@
3
3
  You operate as AIOSON.
4
4
 
5
5
  ## Mandatory first action
6
- 1. Read `.aioson/config.md`
7
- 2. Check whether `.aioson/context/project.context.md` exists
6
+ 1. Check whether `.aioson/context/project.context.md` exists
8
7
  - If missing: run `/setup`
9
8
  - If present: read it before any action
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
10
  3. If `.aioson/rules/` contains `.md` files, note silently that project rules are active — each agent will load applicable rules automatically via its "Project rules, docs & design docs" section. Do not alarm if the directory is absent or empty.
11
11
 
12
12
  ## Project knowledge
@@ -78,6 +78,7 @@ Capture is best-effort — do not crash, retry, or surface failures to the user.
78
78
  - /design-hybrid-forge -> `.aioson/agents/design-hybrid-forge.md`
79
79
  - /site-forge -> `.aioson/agents/site-forge.md`
80
80
  - /discover -> `.aioson/agents/discover.md`
81
+ - /forge-run -> `.aioson/agents/forge-run.md`
81
82
 
82
83
  ## Spec-Driven Development framework
83
84
 
@@ -85,7 +86,7 @@ AIOSON follows a Spec-Driven Development (SDD) methodology. Key governance files
85
86
 
86
87
  - **`.aioson/constitution.md`** — 6 governing principles all agents must respect
87
88
  - **`.aioson/context/project-pulse.md`** — global project state; read at session start, update at session end
88
- - **`.aioson/skills/process/aioson-spec-driven/SKILL.md`** — process methodology; agents load this automatically
89
+ - **`.aioson/skills/process/aioson-spec-driven/SKILL.md`** — process methodology; agents load this on demand for concrete spec/workflow work. `/deyvin` activation-only recovery must not load it.
89
90
 
90
91
  The process depth scales with project classification:
91
92
  - **MICRO** (0-1): lightweight — @product → @dev
@@ -1,30 +1,31 @@
1
1
  # AIOSON - OpenCode
2
2
 
3
- ## Boot
4
- 1. Read `.aioson/config.md`
5
- 2. Check `.aioson/context/project.context.md`
6
- 3. If missing, start with `setup`
7
-
8
- ## No agent selected
9
-
10
- After boot, if the user started the chat without naming an agent and has not given a concrete task yet, do not start implementation or workflow routing. First offer these starting lanes:
11
-
12
- - Simple Plan with `dev` for bounded technical work, small fixes, refactors, or directly verifiable implementation.
13
- - Pair programming with `deyvin` for continuity, debugging together, or a small validated slice with known context.
14
- - Briefing with `briefing` to frame and evaluate an early feature idea before committing to a PRD.
15
- - Product with `product` to start a full feature definition when the user already wants to build a product/feature.
16
-
17
- ## Project knowledge
18
-
19
- 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.
20
-
21
- ## Available agents
3
+ ## Boot
4
+ 1. Check `.aioson/context/project.context.md`
5
+ 2. If present, read it before any action
6
+ 3. If missing, start with `setup`
7
+ 4. 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
8
+
9
+ ## No agent selected
10
+
11
+ After boot, if the user started the chat without naming an agent and has not given a concrete task yet, do not start implementation or workflow routing. First offer these starting lanes:
12
+
13
+ - Simple Plan with `dev` for bounded technical work, small fixes, refactors, or directly verifiable implementation.
14
+ - Pair programming with `deyvin` for continuity, debugging together, or a small validated slice with known context.
15
+ - Briefing with `briefing` to frame and evaluate an early feature idea before committing to a PRD.
16
+ - Product with `product` to start a full feature definition when the user already wants to build a product/feature.
17
+
18
+ ## Project knowledge
19
+
20
+ 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.
21
+
22
+ ## Available agents
22
23
  - setup -> `.aioson/agents/setup.md`
23
24
  - discovery-design-doc -> `.aioson/agents/discovery-design-doc.md`
24
25
  - discover -> `.aioson/agents/discover.md`
25
- - analyst -> `.aioson/agents/analyst.md`
26
- - scope-check -> `.aioson/agents/scope-check.md`
27
- - architect -> `.aioson/agents/architect.md`
26
+ - analyst -> `.aioson/agents/analyst.md`
27
+ - scope-check -> `.aioson/agents/scope-check.md`
28
+ - architect -> `.aioson/agents/architect.md`
28
29
  - ux-ui (UI/UX) -> `.aioson/agents/ux-ui.md`
29
30
  - product -> `.aioson/agents/product.md`
30
31
  - sheldon -> `.aioson/agents/sheldon.md`
@@ -44,6 +45,7 @@ Read `.aioson/learnings/INDEX.md` if it exists. Each line is a project gotcha or
44
45
  - orache -> `.aioson/agents/orache.md`
45
46
  - design-hybrid-forge -> `.aioson/agents/design-hybrid-forge.md`
46
47
  - site-forge -> `.aioson/agents/site-forge.md`
48
+ - forge-run -> `.aioson/agents/forge-run.md`
47
49
 
48
50
  ## Rule
49
51
  Do not duplicate rules outside `.aioson/`.