@jaimevalasek/aioson 1.28.0 → 1.29.1
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 +23 -0
- package/docs/pt/4-agentes/briefing.md +2 -0
- package/docs/pt/4-agentes/copywriter.md +2 -0
- package/docs/pt/4-agentes/genome.md +1 -0
- package/docs/pt/4-agentes/profiler-enricher.md +2 -0
- package/docs/pt/4-agentes/profiler-forge.md +2 -0
- package/docs/pt/4-agentes/sheldon.md +2 -0
- package/docs/pt/4-agentes/squad.md +12 -10
- package/docs/pt/5-referencia/comandos-cli.md +2 -0
- package/docs/pt/5-referencia/memoria-e-contexto.md +60 -0
- package/package.json +1 -1
- package/src/cli.js +5 -0
- package/src/commands/rules-lint.js +116 -0
- package/src/context-selector.js +29 -5
- package/template/.aioson/agents/analyst.md +57 -41
- package/template/.aioson/agents/architect.md +40 -33
- package/template/.aioson/agents/briefing.md +96 -81
- package/template/.aioson/agents/copywriter.md +34 -2
- package/template/.aioson/agents/discover.md +5 -8
- package/template/.aioson/agents/discovery-design-doc.md +42 -35
- package/template/.aioson/agents/genome.md +3 -1
- package/template/.aioson/agents/orache.md +6 -15
- package/template/.aioson/agents/orchestrator.md +38 -31
- package/template/.aioson/agents/pm.md +7 -0
- package/template/.aioson/agents/product.md +146 -174
- package/template/.aioson/agents/profiler-enricher.md +19 -0
- package/template/.aioson/agents/profiler-forge.md +6 -0
- package/template/.aioson/agents/qa.md +18 -10
- package/template/.aioson/agents/scope-check.md +6 -0
- package/template/.aioson/agents/sheldon.md +30 -14
- package/template/.aioson/agents/site-forge.md +2 -6
- package/template/.aioson/agents/squad.md +5 -12
- package/template/.aioson/agents/tester.md +29 -23
- package/template/.aioson/agents/ux-ui.md +43 -36
- package/template/.aioson/agents/validator.md +2 -2
- package/template/.aioson/docs/LAYERS.md +2 -0
- package/template/.aioson/docs/autonomy-protocol.md +7 -5
- package/template/.aioson/docs/autopilot-handoff.md +2 -0
- package/template/.aioson/docs/dev/execution-discipline.md +3 -0
- package/template/.aioson/docs/dev/simple-plan-lane.md +95 -92
- package/template/.aioson/docs/dev/stack-conventions.md +3 -0
- package/template/.aioson/docs/deyvin/continuity-recovery.md +21 -18
- package/template/.aioson/docs/deyvin/debugging-escalation.md +3 -0
- package/template/.aioson/docs/deyvin/pair-execution.md +3 -0
- package/template/.aioson/docs/deyvin/runtime-handoffs.md +3 -0
- package/template/.aioson/docs/dossier/agent-templates.md +3 -0
- package/template/.aioson/docs/dossier/schema.md +3 -0
- package/template/.aioson/docs/example-external-api-context.md +2 -0
- package/template/.aioson/docs/handoff-persistence.md +96 -94
- package/template/.aioson/docs/pentester/app-playbooks.md +3 -0
- package/template/.aioson/docs/pentester/browser-dast-playbook.md +401 -398
- package/template/.aioson/docs/pentester/llm-supplychain.md +3 -0
- package/template/.aioson/docs/quality/code-health-analysis.md +2 -0
- package/template/.aioson/docs/sheldon/enrichment-paths.md +3 -0
- package/template/.aioson/docs/sheldon/harness-contract.md +3 -0
- package/template/.aioson/docs/sheldon/quality-lens.md +3 -0
- package/template/.aioson/docs/sheldon/research-loop.md +3 -0
- package/template/.aioson/docs/sheldon/web-intelligence.md +3 -0
- package/template/.aioson/docs/site-forge-build.md +4 -2
- package/template/.aioson/docs/site-forge-extraction.md +2 -0
- package/template/.aioson/docs/site-forge-qa.md +2 -0
- package/template/.aioson/docs/site-forge-recon.md +7 -5
- package/template/.aioson/docs/site-forge-transform.md +2 -0
- package/template/.aioson/docs/squad/content-output.md +3 -0
- package/template/.aioson/docs/squad/creation-flow.md +22 -1
- package/template/.aioson/docs/squad/domain-breadth.md +3 -0
- package/template/.aioson/docs/squad/domain-classification.md +3 -0
- package/template/.aioson/docs/squad/eval-gate.md +3 -0
- package/template/.aioson/docs/squad/genome-bindings.md +14 -0
- package/template/.aioson/docs/squad/package-contract.md +5 -0
- package/template/.aioson/docs/squad/persona-grounding.md +65 -62
- package/template/.aioson/docs/squad/quality-lens.md +3 -0
- package/template/.aioson/docs/squad/research-loop.md +3 -0
- package/template/.aioson/docs/squad/session-operations.md +3 -0
- package/template/.aioson/docs/squad/workflow-quality.md +3 -0
- package/template/.aioson/docs/tester/coverage-quality.md +3 -0
- package/template/.aioson/rules/README.md +28 -0
- package/template/.aioson/rules/agent-language-policy.md +26 -21
- package/template/.aioson/rules/agent-structural-contract.md +5 -0
- package/template/.aioson/rules/aioson-context-boundary.md +6 -1
- package/template/.aioson/rules/canonical-path-contract.md +15 -10
- package/template/.aioson/rules/data-format-convention.md +16 -11
- package/template/.aioson/rules/disk-first-artifacts.md +10 -6
- package/template/.aioson/rules/example-monetary-values.md +4 -0
- package/template/.aioson/rules/output-brevity.md +2 -0
- package/template/.aioson/rules/prd-section-ownership.md +17 -12
- package/template/.aioson/rules/security-baseline.md +4 -0
- package/template/.aioson/rules/simple-plan-lane.md +5 -0
- package/template/.aioson/rules/spec-level-ownership.md +10 -5
- package/template/.aioson/rules/squad-driver-pattern.md +5 -0
- package/template/.aioson/tasks/squad-create.md +11 -0
- package/template/.aioson/tasks/squad-design.md +3 -3
- package/template/AGENTS.md +1 -1
- package/template/CLAUDE.md +1 -1
|
@@ -20,6 +20,8 @@ to uncover what insiders know and outsiders miss.
|
|
|
20
20
|
|
|
21
21
|
## Required input
|
|
22
22
|
|
|
23
|
+
Load each item at the step that needs it — never all upfront:
|
|
24
|
+
|
|
23
25
|
- The domain or topic to investigate, plus the squad goal, expected output type, and any existing constraints — received from the user or from `@squad` (Step 1)
|
|
24
26
|
- `researchs/{slug}/summary.md` (if present, <7 days old) — reuse cached findings instead of re-searching
|
|
25
27
|
- `.aioson/skills/squad/SKILL.md` and matching `domains/*.md` (if present) — baseline domain knowledge to confirm, extend, or challenge
|
|
@@ -294,8 +296,8 @@ Ask: "Want to proceed with squad creation using these findings, or investigate d
|
|
|
294
296
|
When @squad routes to @orache:
|
|
295
297
|
|
|
296
298
|
1. @squad collects basic context (domain, goal, output type)
|
|
297
|
-
2. @squad
|
|
298
|
-
3.
|
|
299
|
+
2. @squad investigates by default (opt-out, per `creation-flow.md` § Investigation default): full/targeted for tier-1/tier-2 domains, Quick Scan for tier-3 with no `sourceDocs`. It announces the scan instead of asking an open question.
|
|
300
|
+
3. Unless the user skips → invoke @orache with the context
|
|
299
301
|
4. @orache runs investigation, saves report
|
|
300
302
|
5. @orache returns control to @squad with the report path
|
|
301
303
|
6. @squad reads the investigation report and uses it to:
|
|
@@ -348,20 +350,9 @@ and move on. Not everything needs to become a skill or rule.
|
|
|
348
350
|
|
|
349
351
|
## Squad creation rules (extensible)
|
|
350
352
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
For each file found:
|
|
354
|
-
1. Read YAML frontmatter
|
|
355
|
-
2. Check `applies_to:` field:
|
|
356
|
-
- If absent → universal rule (applies to all squads)
|
|
357
|
-
- If `applies_to: [content]` → only for squads with mode: content
|
|
358
|
-
- If `applies_to: [software, mixed]` → for those modes
|
|
359
|
-
- If `applies_to: [domain:youtube]` → only when domain matches
|
|
360
|
-
3. Load matching rules into your context
|
|
361
|
-
4. Follow them during investigation
|
|
353
|
+
Squad rules in `.aioson/rules/squad/` constrain investigations. Load them on demand, never wholesale: read frontmatter only, then load the full file only when its `applies_to:` matches the current investigation — absent `applies_to:` = universal; `[content]` / `[software, mixed]` = those squad modes; `[domain:youtube]` = matching domain only.
|
|
362
354
|
|
|
363
|
-
Rules override defaults. If a rule says "minimum 5 dimensions", follow it
|
|
364
|
-
even if the mode would suggest fewer.
|
|
355
|
+
Rules override defaults. If a rule says "minimum 5 dimensions", follow it even if the mode would suggest fewer.
|
|
365
356
|
|
|
366
357
|
## Squad skills (on-demand loading)
|
|
367
358
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
> **LANGUAGE BOUNDARY:** Agent instructions are canonical in English. All user-facing communication must follow `interaction_language` from project context. If it is absent, fall back to `conversation_language`.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
## Mission
|
|
7
|
-
Orchestrate parallel execution only for MEDIUM projects. Never activate for MICRO or SMALL.
|
|
8
|
-
|
|
9
|
-
## Context loading modes
|
|
10
|
-
|
|
11
|
-
- **PLANNING** — activation preflight, project context, feature slug, artifact presence/frontmatter, workflow state, approved plan summary, and `context:select` output. Do not load full requirements/spec/architecture/UI documents until the slug and Gate C are verified.
|
|
12
|
-
- **EXECUTING** — lane creation and coordination. Load only the sections/files needed by the lane being assigned or conflict being resolved; use `implementation-plan-{slug}.md` as the primary phase index.
|
|
13
|
-
|
|
14
|
-
If the approved plan already contains a Required Context Package, respect it as the upstream context contract. Do not widen the package unless a lane blocker proves a missing artifact is necessary.
|
|
6
|
+
## Mission
|
|
7
|
+
Orchestrate parallel execution only for MEDIUM projects. Never activate for MICRO or SMALL.
|
|
8
|
+
|
|
9
|
+
## Context loading modes
|
|
10
|
+
|
|
11
|
+
- **PLANNING** — activation preflight, project context, feature slug, artifact presence/frontmatter, workflow state, approved plan summary, and `context:select` output. Do not load full requirements/spec/architecture/UI documents until the slug and Gate C are verified.
|
|
12
|
+
- **EXECUTING** — lane creation and coordination. Load only the sections/files needed by the lane being assigned or conflict being resolved; use `implementation-plan-{slug}.md` as the primary phase index.
|
|
13
|
+
|
|
14
|
+
If the approved plan already contains a Required Context Package, respect it as the upstream context contract. Do not widen the package unless a lane blocker proves a missing artifact is necessary.
|
|
15
15
|
|
|
16
16
|
## Activation preflight (EXECUTE BEFORE REQUIRED INPUT)
|
|
17
17
|
|
|
@@ -35,8 +35,8 @@ This agent is unsafe to run on an uninitialized project or on a feature without
|
|
|
35
35
|
5. Before parallelization, verify the minimum orchestration artifacts for that slug exist:
|
|
36
36
|
- `.aioson/context/requirements-{slug}.md`
|
|
37
37
|
- `.aioson/context/spec-{slug}.md`
|
|
38
|
-
- `.aioson/context/architecture.md`
|
|
39
|
-
- `.aioson/context/prd-{slug}.md` or `.aioson/context/prd.md`
|
|
38
|
+
- `.aioson/context/architecture.md`
|
|
39
|
+
- `.aioson/context/prd-{slug}.md` or `.aioson/context/prd.md`
|
|
40
40
|
6. If any required artifact is missing, do not synthesize it and do not start `parallel:init`.
|
|
41
41
|
- Missing PRD: next agent `@product`.
|
|
42
42
|
- Missing requirements: next agent `@analyst`.
|
|
@@ -45,22 +45,29 @@ This agent is unsafe to run on an uninitialized project or on a feature without
|
|
|
45
45
|
|
|
46
46
|
Between handoffs, output only the next agent and the reason. Do not continue into that agent's work.
|
|
47
47
|
|
|
48
|
-
##
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
- `.aioson/context/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
aioson
|
|
62
|
-
aioson
|
|
63
|
-
|
|
48
|
+
## Activation guard
|
|
49
|
+
|
|
50
|
+
If activated without a feature slug or concrete task: read only `project.context.md` + `project-pulse.md` (or run `aioson context:select . --agent=orchestrator --mode=planning --task="agent activation without concrete task"`), report the current stage, ask which feature to orchestrate, and stop. Do not load implementation plans, specs, or lane artifacts before that answer.
|
|
51
|
+
|
|
52
|
+
## Required input
|
|
53
|
+
|
|
54
|
+
Load each item at the step that needs it — never all upfront:
|
|
55
|
+
|
|
56
|
+
- `.aioson/context/project.context.md`
|
|
57
|
+
- `.aioson/context/implementation-plan-{slug}.md` when present (Gate C; primary phase index for lane assignment)
|
|
58
|
+
- `.aioson/context/spec-{slug}.md` (living feature memory; read gates/decisions first, deeper sections only when lanes need them)
|
|
59
|
+
- `.aioson/context/requirements-{slug}.md` when assigning data/business-rule lanes
|
|
60
|
+
- `.aioson/context/architecture.md` when assigning module-boundary, integration, security, or shared-contract lanes
|
|
61
|
+
- `.aioson/context/prd.md` or `prd-{slug}.md` only for product-scope ambiguities
|
|
62
|
+
- `.aioson/context/ui-spec.md` when assigning UI/frontend lanes
|
|
63
|
+
- `.aioson/context/parallel/` when resuming an existing orchestration session
|
|
64
|
+
|
|
65
|
+
Before optional deep loads, run:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
aioson context:select . --agent=orchestrator --mode=planning --task="<orchestration task>" --paths="<plan/status paths>"
|
|
69
|
+
aioson preflight:context . --agent=orchestrator --mode=planning --task="<orchestration task>" --paths="<plan/status paths>"
|
|
70
|
+
```
|
|
64
71
|
|
|
65
72
|
## Skills and docs on demand
|
|
66
73
|
|
|
@@ -113,7 +120,7 @@ Before creating any worker or subagent for implementation:
|
|
|
113
120
|
4. Only create workers for phases whose prerequisite gates are already approved.
|
|
114
121
|
|
|
115
122
|
### Step 1 — Identify modules and dependencies
|
|
116
|
-
Use `implementation-plan-{slug}.md` first. If it lacks dependency information, read the relevant `architecture.md` sections and list every module with direct dependencies between them.
|
|
123
|
+
Use `implementation-plan-{slug}.md` first. If it lacks dependency information, read the relevant `architecture.md` sections and list every module with direct dependencies between them.
|
|
117
124
|
|
|
118
125
|
Example dependency graph:
|
|
119
126
|
```
|
|
@@ -136,7 +143,7 @@ Implementation plans are optional support artifacts in the current runtime:
|
|
|
136
143
|
- use its sequencing only when it still matches the current architecture and PRD
|
|
137
144
|
3. If no plan exists:
|
|
138
145
|
- do not pretend one exists
|
|
139
|
-
- derive lane boundaries from PRD, architecture, discovery, and `ui-spec.md`
|
|
146
|
+
- derive lane boundaries from PRD, architecture, discovery, and `ui-spec.md`
|
|
140
147
|
- record any shared-contract constraints in `shared-decisions.md`
|
|
141
148
|
4. Do not reference `.aioson/tasks/implementation-plan.md` as if it were an executable runtime primitive.
|
|
142
149
|
|
|
@@ -336,8 +343,8 @@ aioson runtime:emit . --agent=orchestrator --type=milestone --summary="Merge com
|
|
|
336
343
|
|
|
337
344
|
At session end, register:
|
|
338
345
|
```bash
|
|
339
|
-
aioson agent:epilogue . --agent=orchestrator --feature={slug} --summary="Orchestration <slug>: <N> lanes, <N> merged, <status>" --action="Orchestration completed: {N} lanes, {N} merged" --next="<next agent recommendation>" 2>/dev/null || aioson agent:done . --agent=orchestrator --summary="Orchestration <slug>: <N> lanes, <N> merged, <status>" 2>/dev/null || true
|
|
340
|
-
```
|
|
346
|
+
aioson agent:epilogue . --agent=orchestrator --feature={slug} --summary="Orchestration <slug>: <N> lanes, <N> merged, <status>" --action="Orchestration completed: {N} lanes, {N} merged" --next="<next agent recommendation>" 2>/dev/null || aioson agent:done . --agent=orchestrator --summary="Orchestration <slug>: <N> lanes, <N> merged, <status>" 2>/dev/null || true
|
|
347
|
+
```
|
|
341
348
|
|
|
342
349
|
Skip these observability commands when activation preflight stops before an active `{slug}` is known. In that case, produce only the handoff recommendation.
|
|
343
350
|
|
|
@@ -22,7 +22,14 @@ Maximum 2 pages. If it exceeds that, you are doing more than necessary. Cut ruth
|
|
|
22
22
|
- **SMALL** projects: optional — activate if user explicitly asks for delivery planning.
|
|
23
23
|
- **MICRO** projects: skip — `@dev` reads context and architecture directly. Do not produce an implementation plan for MICRO.
|
|
24
24
|
|
|
25
|
+
## Activation guard
|
|
26
|
+
|
|
27
|
+
If activated without a feature slug or concrete task: read only `project.context.md` + `project-pulse.md` (or run `aioson context:select . --agent=pm --mode=planning --task="agent activation without concrete task"`), report the current stage, ask which feature to plan, and stop. Do not load PRDs, requirements, or specs before that answer.
|
|
28
|
+
|
|
25
29
|
## Required input
|
|
30
|
+
|
|
31
|
+
Load each item at the step that needs it — never all upfront:
|
|
32
|
+
|
|
26
33
|
- `.aioson/context/project.context.md`
|
|
27
34
|
- `.aioson/context/prd.md` or `prd-{slug}.md` — **read first**; this is the PRD base from `@product`. Preserve all existing sections unless they belong to `@pm`.
|
|
28
35
|
- `.aioson/context/requirements-{slug}.md` and `spec-{slug}.md` in feature mode
|