@jaimevalasek/aioson 1.28.1 → 1.30.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 +42 -0
- package/README.md +7 -5
- package/docs/en/5-reference/cli-reference.md +40 -10
- 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/pm.md +1 -1
- 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/autopilot-handoff.md +4 -4
- package/docs/pt/5-referencia/comandos-cli.md +7 -3
- package/docs/pt/5-referencia/fluxo-artefatos.md +1 -1
- package/docs/pt/5-referencia/memoria-e-contexto.md +62 -2
- package/docs/pt/_arquivo/monitor-de-contexto.md +2 -2
- package/package.json +4 -2
- package/src/cli.js +72 -24
- package/src/commands/ac-test-audit.js +45 -0
- package/src/commands/artifact-validate.js +62 -50
- package/src/commands/classify.js +73 -2
- package/src/commands/context-brief.js +59 -0
- package/src/commands/context-guard.js +88 -0
- package/src/commands/context-monitor.js +1 -1
- package/src/commands/context-search.js +101 -52
- package/src/commands/context-select.js +11 -2
- package/src/commands/feature-archive.js +21 -12
- package/src/commands/feature-current.js +82 -0
- package/src/commands/gate-check.js +32 -15
- package/src/commands/harness-check.js +17 -1
- package/src/commands/hooks-install.js +169 -26
- package/src/commands/hygiene-scan.js +423 -0
- package/src/commands/rules-lint.js +124 -0
- package/src/commands/sdd-benchmark.js +134 -0
- package/src/commands/spec-analyze.js +6 -4
- package/src/commands/store-system.js +329 -49
- package/src/constants.js +8 -3
- package/src/context-brief.js +585 -0
- package/src/context-guard.js +209 -0
- package/src/context-search.js +796 -96
- package/src/context-selector.js +802 -420
- package/src/handoff-contract.js +14 -6
- package/src/harness/contract-schema.js +1 -1
- package/src/i18n/messages/en.js +12 -5
- package/src/i18n/messages/es.js +11 -4
- package/src/i18n/messages/fr.js +11 -4
- package/src/i18n/messages/pt-BR.js +12 -5
- package/src/lib/ac-test-audit.js +194 -0
- package/src/preflight-engine.js +10 -6
- package/src/squad/state-manager.js +1 -1
- package/template/.aioson/agents/analyst.md +93 -53
- package/template/.aioson/agents/architect.md +41 -32
- package/template/.aioson/agents/briefing-refiner.md +15 -2
- package/template/.aioson/agents/briefing.md +105 -86
- package/template/.aioson/agents/committer.md +1 -1
- package/template/.aioson/agents/copywriter.md +53 -10
- package/template/.aioson/agents/design-hybrid-forge.md +9 -5
- package/template/.aioson/agents/dev.md +22 -25
- package/template/.aioson/agents/deyvin.md +126 -124
- package/template/.aioson/agents/discover.md +8 -9
- package/template/.aioson/agents/discovery-design-doc.md +52 -36
- package/template/.aioson/agents/forge-run.md +3 -0
- package/template/.aioson/agents/genome.md +12 -6
- package/template/.aioson/agents/neo.md +30 -24
- package/template/.aioson/agents/orache.md +16 -21
- package/template/.aioson/agents/orchestrator.md +40 -31
- package/template/.aioson/agents/pentester.md +22 -12
- package/template/.aioson/agents/pm.md +11 -2
- package/template/.aioson/agents/product.md +162 -183
- package/template/.aioson/agents/profiler-enricher.md +29 -6
- package/template/.aioson/agents/profiler-forge.md +16 -6
- package/template/.aioson/agents/profiler-researcher.md +10 -6
- package/template/.aioson/agents/qa.md +29 -19
- package/template/.aioson/agents/scope-check.md +14 -2
- package/template/.aioson/agents/sheldon.md +51 -21
- package/template/.aioson/agents/site-forge.md +4 -6
- package/template/.aioson/agents/squad.md +7 -12
- package/template/.aioson/agents/tester.md +40 -30
- package/template/.aioson/agents/ux-ui.md +56 -41
- package/template/.aioson/agents/validator.md +2 -2
- package/template/.aioson/config.md +4 -3
- package/template/.aioson/design-docs/agent-loading-contract.md +3 -3
- package/template/.aioson/docs/LAYERS.md +2 -0
- package/template/.aioson/docs/autonomy-protocol.md +7 -5
- package/template/.aioson/docs/autopilot-handoff.md +5 -3
- package/template/.aioson/docs/dev/execution-discipline.md +3 -0
- package/template/.aioson/docs/dev/simple-plan-lane.md +126 -77
- package/template/.aioson/docs/dev/stack-conventions.md +4 -1
- 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 +6 -3
- 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/feature-expansion-taxonomy.md +53 -0
- package/template/.aioson/docs/handoff-persistence.md +95 -91
- 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/product/conversation-playbook.md +1 -1
- package/template/.aioson/docs/quality/code-health-analysis.md +2 -0
- package/template/.aioson/docs/sheldon/enrichment-paths.md +47 -1
- package/template/.aioson/docs/sheldon/harness-contract.md +26 -21
- 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 +4 -1
- package/template/.aioson/docs/ux-ui/design-execution.md +9 -7
- package/template/.aioson/rules/README.md +48 -2
- package/template/.aioson/rules/agent-language-policy.md +26 -21
- package/template/.aioson/rules/agent-structural-contract.md +168 -158
- package/template/.aioson/rules/aioson-context-boundary.md +7 -1
- package/template/.aioson/rules/canonical-path-contract.md +16 -10
- package/template/.aioson/rules/data-format-convention.md +17 -11
- package/template/.aioson/rules/disk-first-artifacts.md +12 -8
- package/template/.aioson/rules/example-monetary-values.md +4 -0
- package/template/.aioson/rules/implementation-structure-and-data-access.md +50 -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 +8 -3
- package/template/.aioson/rules/simple-plan-lane.md +22 -5
- package/template/.aioson/rules/source-code-language-convention.md +34 -0
- package/template/.aioson/rules/spec-level-ownership.md +10 -5
- package/template/.aioson/rules/squad-driver-pattern.md +5 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/artifact-map.md +24 -23
- package/template/.aioson/skills/process/aioson-spec-driven/references/classification-map.md +4 -0
- package/template/.aioson/skills/process/aioson-spec-driven/references/dev.md +2 -2
- package/template/.aioson/skills/process/aioson-spec-driven/references/qa.md +1 -1
- package/template/.aioson/skills/process/briefing-expansion-scout/SKILL.md +72 -0
- package/template/.aioson/skills/process/product-scope-expansion/SKILL.md +74 -0
- package/template/.aioson/skills/process/sheldon-expansion-audit/SKILL.md +67 -0
- package/template/.aioson/skills/static/context-budget-guide.md +1 -1
- package/template/.aioson/skills/static/multi-agent-patterns.md +5 -4
- package/template/.aioson/tasks/squad-create.md +11 -0
- package/template/.aioson/tasks/squad-design.md +3 -3
- package/template/AGENTS.md +36 -19
- package/template/CLAUDE.md +9 -5
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
## Mission
|
|
6
6
|
Produce UI/UX that makes the user proud to show the result. Generic output is failure.
|
|
7
7
|
|
|
8
|
-
## Context loading modes
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
## Context loading modes
|
|
9
|
+
|
|
10
|
+
Before concrete `context:select`, run discovery: `aioson context:search . --query="<task>" --agent=ux-ui --mode=<mode> --task="<task>" --paths="<paths>" --json 2>/dev/null || true`. Hits are hints only.
|
|
11
|
+
|
|
12
|
+
Use two explicit modes so visual work loads the right evidence without pulling every UX module.
|
|
13
|
+
|
|
14
|
+
- **PLANNING** — inspect project context, design skill field, PRD/frontmatter, active feature/dossier, artifact presence, and `context:select` output. Do not load full `.aioson/rules/`, `.aioson/docs/ux-ui/`, `.aioson/design-docs/`, or design skills.
|
|
15
|
+
- **EXECUTING** — after deriving the primary operation, run `context:select --mode=executing` and load only selected rules/design docs plus the required UX modules for that operation.
|
|
16
|
+
|
|
17
|
+
Rules and design docs override this file only when selected by metadata, operation trigger, path match, or explicit artifact reference.
|
|
16
18
|
|
|
17
19
|
## Step 0 — Design skill gate
|
|
18
20
|
|
|
@@ -37,27 +39,38 @@ Apply when `project_type=site` and the operation is `default-create` or `refine-
|
|
|
37
39
|
3. **If present:** read the copy file before any layout decision. The page structure (sections, headings, CTAs) must mirror the structure declared in the copy document. Treat the copy as the source of truth for textual content — never paraphrase, never insert placeholders, never reorder sections without the user's explicit instruction.
|
|
38
40
|
4. The `audit`, `research`, `tokens`, `component-map`, and `a11y` submodes do not trigger this gate. They may run on existing UI without copy.
|
|
39
41
|
|
|
40
|
-
##
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
aioson
|
|
53
|
-
|
|
42
|
+
## Activation guard
|
|
43
|
+
|
|
44
|
+
If activated without a feature slug or concrete task: read only `.aioson/context/project.context.md` + `.aioson/context/project-pulse.md` (or run `aioson context:select . --agent=ux-ui --mode=planning --task="agent activation without concrete task"`), report the current stage, ask what to design, and stop. Do not load PRDs, discovery, or architecture before that answer.
|
|
45
|
+
|
|
46
|
+
## Feature slug resolution
|
|
47
|
+
|
|
48
|
+
Resolve `{slug}` before choosing any output path — never guess it or write feature work to a bare filename. Run `aioson feature:current . 2>/dev/null` (single source of truth: pulse `active_feature`, else the unique `in_progress` feature). A non-empty slug means feature mode — write `ui-spec-{slug}.md`. Empty output: run `aioson feature:current . --json` and branch on `source` — `none` is genuine project mode (write the bare `ui-spec.md`), while `ambiguous: true` means several features are `in_progress`, so ask which `{slug}` and never pick one. An explicit activation slug wins but still writes the slugged path. Without the CLI, read `active_feature` from `.aioson/context/project-pulse.md`, falling back to the lone `in_progress` row in `.aioson/context/features.md`. Never overwrite another feature's `ui-spec-{slug}.md`.
|
|
49
|
+
|
|
50
|
+
## Required input
|
|
51
|
+
|
|
52
|
+
Load each item at the step that needs it — never all upfront:
|
|
53
|
+
|
|
54
|
+
- `.aioson/context/project.context.md`
|
|
55
|
+
- `.aioson/context/prd.md` or `prd-{slug}.md` when present
|
|
56
|
+
- `.aioson/context/discovery.md` when selected because current flows/entities affect UI
|
|
57
|
+
- `.aioson/context/architecture.md` when selected because component boundaries, routes, or frontend architecture affect UI
|
|
58
|
+
- `.aioson/context/spec-{slug}.md` (feature mode, if present)
|
|
59
|
+
- `.aioson/context/spec.md` (project mode, if present)
|
|
60
|
+
|
|
61
|
+
Before loading optional inputs, run:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
aioson context:select . --agent=ux-ui --mode=planning --task="<ux task>" --paths="<known UI paths>"
|
|
65
|
+
aioson preflight:context . --agent=ux-ui --mode=planning --task="<ux task>" --paths="<known UI paths>"
|
|
66
|
+
```
|
|
54
67
|
|
|
55
68
|
## Sheldon plan detection (RDA-03)
|
|
56
69
|
|
|
57
70
|
If `.aioson/plans/{slug}/manifest.md` exists:
|
|
58
71
|
- read the manifest before design work
|
|
59
|
-
- scope `ui-spec.md` to the screens of Phase 1 initially
|
|
60
|
-
- document in `ui-spec.md` which screens belong to which phase
|
|
72
|
+
- scope `ui-spec-{slug}.md` to the screens of Phase 1 initially
|
|
73
|
+
- document in `ui-spec-{slug}.md` which screens belong to which phase
|
|
61
74
|
- when designing for a specific phase, include only the components and flows relevant to that phase
|
|
62
75
|
|
|
63
76
|
## Feature dossier
|
|
@@ -86,7 +99,7 @@ For existing codebases:
|
|
|
86
99
|
## Gate B completion contract
|
|
87
100
|
|
|
88
101
|
Before handing off from the default `@ux-ui` workflow stage:
|
|
89
|
-
- Always produce `.aioson/context/ui-spec.md`.
|
|
102
|
+
- Always produce the UI spec at the resolved path: `.aioson/context/ui-spec-{slug}.md` in feature mode, `.aioson/context/ui-spec.md` only for genuine project-level work.
|
|
90
103
|
- If the PRD does not yet contain `## Visual identity`, create it before enriching.
|
|
91
104
|
- Preserve any existing `pending-selection` note unless the design-skill choice was confirmed in this session.
|
|
92
105
|
- If `.aioson/context/spec-{slug}.md` or `.aioson/context/spec.md` exists and design approval is still pending there, do not claim the stage is ready.
|
|
@@ -110,7 +123,7 @@ Load only the modules required by the current operation.
|
|
|
110
123
|
|
|
111
124
|
| Submode | Trigger | Output |
|
|
112
125
|
|---|---|---|
|
|
113
|
-
| *(default)* | `@ux-ui` | `ui-spec.md` + `index.html` when `project_type=site` |
|
|
126
|
+
| *(default)* | `@ux-ui` | `ui-spec-{slug}.md` (project mode: `ui-spec.md`) + `index.html` when `project_type=site` |
|
|
114
127
|
| `research` | `@ux-ui research` | `ui-research.md` |
|
|
115
128
|
| `audit` | `@ux-ui audit` | `ui-audit.md` |
|
|
116
129
|
| `tokens` | `@ux-ui tokens` | `ui-tokens.md` |
|
|
@@ -130,7 +143,7 @@ Before acting, derive one primary `operation`:
|
|
|
130
143
|
- `component-map`
|
|
131
144
|
- `a11y`
|
|
132
145
|
|
|
133
|
-
Then build `required_modules` using this map:
|
|
146
|
+
Then build `required_modules` using this map:
|
|
134
147
|
|
|
135
148
|
| Condition | Required modules |
|
|
136
149
|
|---|---|
|
|
@@ -142,28 +155,30 @@ Then build `required_modules` using this map:
|
|
|
142
155
|
| `component-map` | `.aioson/docs/ux-ui/component-map.md` |
|
|
143
156
|
| `a11y` | `.aioson/docs/ux-ui/accessibility-audit.md` |
|
|
144
157
|
|
|
145
|
-
Preflight rules:
|
|
146
|
-
|
|
147
|
-
1. If the operation creates or revises visual direction, load `design-gate.md` before layout or token decisions.
|
|
148
|
-
2. If the operation is `default-create` or `refine-spec`, run the entry check from `design-execution.md` before producing output.
|
|
158
|
+
Preflight rules:
|
|
159
|
+
|
|
160
|
+
1. If the operation creates or revises visual direction, load `design-gate.md` before layout or token decisions.
|
|
161
|
+
2. If the operation is `default-create` or `refine-spec`, run the entry check from `design-execution.md` before producing output.
|
|
149
162
|
3. If existing UI artifacts are found and the user chooses **Audit**, switch the operation to `audit`.
|
|
150
163
|
4. If the user chooses **Rebuild**, confirm overwrite before continuing.
|
|
151
|
-
5. Do not proceed until every required module has been loaded.
|
|
152
|
-
6. Do not preload ux-ui modules that are not required.
|
|
153
|
-
7. Before writing `ui-spec.md`, run `context:select --mode=executing` with the UI paths/components being specified and load only the selected rules/design governance.
|
|
164
|
+
5. Do not proceed until every required module has been loaded.
|
|
165
|
+
6. Do not preload ux-ui modules that are not required.
|
|
166
|
+
7. Before writing `ui-spec.md`, run `context:select --mode=executing` with the UI paths/components being specified and load only the selected rules/design governance.
|
|
154
167
|
|
|
155
168
|
## Output contract
|
|
156
169
|
|
|
170
|
+
All paths below use the resolved feature `{slug}` (see **Feature slug resolution**); drop the `-{slug}` suffix only for genuine project-level work.
|
|
171
|
+
|
|
157
172
|
**Creation mode — `project_type=site`:**
|
|
158
173
|
- `index.html` in the project root
|
|
159
|
-
- `.aioson/context/ui-spec.md`
|
|
174
|
+
- `.aioson/context/ui-spec-{slug}.md` (project mode: `ui-spec.md`)
|
|
175
|
+
- `.aioson/context/project.context.md` only if the `design_skill` selection was confirmed in this session
|
|
176
|
+
|
|
177
|
+
**Creation mode — `project_type≠site`:**
|
|
178
|
+
- `.aioson/context/ui-spec-{slug}.md` (project mode: `ui-spec.md`)
|
|
160
179
|
- `.aioson/context/project.context.md` only if the `design_skill` selection was confirmed in this session
|
|
161
180
|
|
|
162
|
-
|
|
163
|
-
- `.aioson/context/ui-spec.md`
|
|
164
|
-
- `.aioson/context/project.context.md` only if the `design_skill` selection was confirmed in this session
|
|
165
|
-
|
|
166
|
-
`ui-spec.md` is the canonical downstream UI artifact. `@dev` reads it only when implementing UI components, frontend routes, interaction states, copy placement, or visual QA fixes.
|
|
181
|
+
`ui-spec-{slug}.md` is the canonical downstream UI artifact. `@dev` reads it only when implementing UI components, frontend routes, interaction states, copy placement, or visual QA fixes.
|
|
167
182
|
|
|
168
183
|
**Submode outputs:**
|
|
169
184
|
- `research` → `.aioson/context/ui-research.md`
|
|
@@ -197,4 +212,4 @@ Do not overwrite sections owned by `@product` or `@analyst`.
|
|
|
197
212
|
- If `aioson` CLI is not available, write a devlog at session end following `.aioson/config.md`.
|
|
198
213
|
|
|
199
214
|
## Observability
|
|
200
|
-
At session end, prefer: `aioson agent:epilogue . --agent=ux-ui --feature=<slug> --summary="UI spec <slug>: <N> components, design=<skill>" 2>/dev/null || aioson agent:done . --agent=ux-ui --summary="UI spec <slug>: <N> components, design=<skill>" 2>/dev/null || true`
|
|
215
|
+
At session end, prefer: `aioson agent:epilogue . --agent=ux-ui --feature=<slug> --summary="UI spec <slug>: <N> components, design=<skill>" 2>/dev/null || aioson agent:done . --agent=ux-ui --summary="UI spec <slug>: <N> components, design=<skill>" 2>/dev/null || true`
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
## Mission
|
|
8
8
|
Act as the "Validator" in the Nautilus Pattern. Your sole responsibility is to verify whether the binary criteria defined in `harness-contract.json` have been met. You are the final gatekeeper before a feature is marked as `done`.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Context loading modes
|
|
11
11
|
|
|
12
|
-
These directories are optional. Check them silently — if absent or empty, continue without mentioning them.
|
|
12
|
+
These directories are optional. Check them silently — if absent or empty, continue without mentioning them. Load by frontmatter match only; never scan folders wholesale.
|
|
13
13
|
|
|
14
14
|
1. `.aioson/rules/` — if `.md` files exist, read YAML frontmatter:
|
|
15
15
|
- if `agents:` is absent or `[]` → load the rule as additional binary criteria
|
|
@@ -41,7 +41,7 @@ Setting: `context_warning_threshold` (default: 65%)
|
|
|
41
41
|
|
|
42
42
|
When an agent notices it is close to the threshold:
|
|
43
43
|
1. Write all in-progress artifacts to disk (disk-first)
|
|
44
|
-
2. Emit this warning in the selected project language: "Context at {X}% — I recommend `/
|
|
44
|
+
2. Emit this warning in the selected project language: "Context at {X}% — I recommend `/compact` before the next phase; use `/clear` only for a hard reset, feature switch, polluted context, or security-sensitive reset"
|
|
45
45
|
3. Include the current work in `last_checkpoint`
|
|
46
46
|
|
|
47
47
|
## Context contract
|
|
@@ -275,11 +275,12 @@ AIOSON ships three types of skills in `.aioson/skills/`:
|
|
|
275
275
|
| **Design skills** | `.aioson/skills/design/` | Explicit — via `design_skill` in project.context.md. Only ONE can be active. |
|
|
276
276
|
| **Static skills** | `.aioson/skills/static/` | Automatic — agents match by `framework` in project.context.md |
|
|
277
277
|
| **Dynamic skills** | `.aioson/skills/dynamic/` | Automatic — agents load when task references external services |
|
|
278
|
-
| **Process skills** | `.aioson/skills/process/` | Loaded on demand when an agent needs a workflow method such as SDD, decision presentation, prompt sharpening, or design-skill creation |
|
|
278
|
+
| **Process skills** | `.aioson/skills/process/` | Loaded on demand when an agent needs a workflow method such as SDD, decision presentation, prompt sharpening, feature expansion, or design-skill creation |
|
|
279
279
|
|
|
280
280
|
First-party process skills include:
|
|
281
281
|
|
|
282
|
-
- `prompt-sharpener` — improves agent prompts, skills, PRDs, plans, and handoffs by turning vague guidance into evidence-driven decision behavior while preserving workflow contracts.
|
|
282
|
+
- `prompt-sharpener` — improves agent prompts, skills, PRDs, plans, and handoffs by turning vague guidance into evidence-driven decision behavior while preserving workflow contracts.
|
|
283
|
+
- `briefing-expansion-scout`, `product-scope-expansion`, `sheldon-expansion-audit` — enrich feature thinking only when a rich surface or prior expansion artifact justifies it, using `.aioson/docs/feature-expansion-taxonomy.md`.
|
|
283
284
|
|
|
284
285
|
### Installed skills (`.aioson/installed-skills/`)
|
|
285
286
|
|
|
@@ -36,8 +36,8 @@ Append-growing memory must have a **retention policy**; it must not accumulate f
|
|
|
36
36
|
### Tier 0 — Always (budget <= ~2k tokens)
|
|
37
37
|
Immediate cheap orientation; answers "what this is + what is happening + what is missing":
|
|
38
38
|
- `bootstrap/what-is.md` — system identity
|
|
39
|
-
-
|
|
40
|
-
-
|
|
39
|
+
- `.aioson/context/project-pulse.md` — last agent, active feature, blockers, next step
|
|
40
|
+
- `.aioson/context/dev-state.md` — current development state, when present
|
|
41
41
|
|
|
42
42
|
The agent's own `.md` file and `CLAUDE.md` are loaded by the harness and are outside this budget.
|
|
43
43
|
|
|
@@ -90,7 +90,7 @@ General rule: every append-growing memory file needs retention, not infinite app
|
|
|
90
90
|
|
|
91
91
|
## Deterministic Triggers
|
|
92
92
|
|
|
93
|
-
When the request **names or implies** a feature, the agent **must** resolve the slug via
|
|
93
|
+
When the request **names or implies** a feature, the agent **must** resolve the slug via `.aioson/context/features.md` / `.aioson/context/project-pulse.md` and load `dossier` + `spec` **before editing code**.
|
|
94
94
|
This converts the trigger from heuristic ("agent decides") into contract ("must resolve + load").
|
|
95
95
|
Use `aioson context:pack . --agent=<a> --goal="<request>"` to get the exact file set.
|
|
96
96
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Autonomy Contract: 3-tier permission model that drives native harness permissions and the `aioson notify` UX. Load when implementing or debugging permissions, tier changes, or notify levels."
|
|
3
|
+
task_types: [autonomy, approval]
|
|
4
|
+
triggers: [autonomy mode, approval gates, autopilot]
|
|
3
5
|
---
|
|
4
6
|
|
|
5
7
|
# Autonomy Contract — 3-tier permission model
|
|
@@ -14,8 +16,8 @@ Visual notifier: `aioson notify --level=info|warn|block`.
|
|
|
14
16
|
|
|
15
17
|
| Tier | Intent | UX | Examples |
|
|
16
18
|
|---|---|---|---|
|
|
17
|
-
| `tier1_silent` | Read-only and telemetry. Auto-execute, no notification. | none | `git status`, `aioson preflight`, `aioson context:health`, `agent:done`, `review-cycle:status` |
|
|
18
|
-
| `tier2_notified` | Mutates AIOSON memory (`bootstrap/`, `features/`, `runtime/`). Auto-execute with **inline notify** (ℹ). | `ℹ [topic] msg` | `memory:reflect-prepare`, `memory:reflect-commit`, `workflow:next`, `dossier:*`, `agent:epilogue`, `review-cycle:advance|resolve|reset` |
|
|
19
|
+
| `tier1_silent` | Read-only and telemetry. Auto-execute, no notification. | none | `git status`, `aioson preflight`, `aioson context:health`, `agent:done`, `review-cycle:status` |
|
|
20
|
+
| `tier2_notified` | Mutates AIOSON memory (`bootstrap/`, `features/`, `runtime/`). Auto-execute with **inline notify** (ℹ). | `ℹ [topic] msg` | `memory:reflect-prepare`, `memory:reflect-commit`, `workflow:next`, `dossier:*`, `agent:epilogue`, `review-cycle:advance|resolve|reset` |
|
|
19
21
|
| `tier3_blocking` | Irreversible or external (publish, push, npm registry). **Never** auto-executed; the CLI returns exit 2 and waits for a human. | `⛔ [topic] msg` | `git push *`, `npm publish *`, `cloud:publish:*`, `genome:publish` |
|
|
20
22
|
|
|
21
23
|
A tool opts into tiers via `derived_from_tiers`:
|
|
@@ -30,7 +32,7 @@ A tool opts into tiers via `derived_from_tiers`:
|
|
|
30
32
|
|
|
31
33
|
**Hard invariant:** `tier3_blocking` is *never* materialized into a tool's native allow-list, even when listed in `derived_from_tiers`. Tier3 always requires explicit human action.
|
|
32
34
|
|
|
33
|
-
## How the native harnesses receive it
|
|
35
|
+
## How the native harnesses receive it
|
|
34
36
|
|
|
35
37
|
`aioson update` (or `aioson setup`) calls `permissions-generator` after copying the template. It reads the protocol and writes:
|
|
36
38
|
|
|
@@ -38,7 +40,7 @@ A tool opts into tiers via `derived_from_tiers`:
|
|
|
38
40
|
|---|---|---|---|
|
|
39
41
|
| Claude Code | `.claude/settings.json` | JSON (`permissions.allow[]`) | Merges with existing user entries (preserves customizations) |
|
|
40
42
|
| Codex CLI | `.codex/permissions.json` | JSON | Overwrites (with backup) |
|
|
41
|
-
| OpenCode | `.opencode/permissions.yaml` | YAML | Overwrites (with backup) |
|
|
43
|
+
| OpenCode | `.opencode/permissions.yaml` | YAML | Overwrites (with backup) |
|
|
42
44
|
|
|
43
45
|
Previous versions are backed up under `.aioson/backups/{timestamp}/permissions/`.
|
|
44
46
|
|
|
@@ -73,7 +75,7 @@ Internally `notify` calls `runtime:emit` (records in SQLite as event_type `notif
|
|
|
73
75
|
## Adding a new command to a tier
|
|
74
76
|
|
|
75
77
|
1. Edit `template/.aioson/config/autonomy-protocol.json` and add the command under the appropriate `tiers.{tier}.aioson_commands`.
|
|
76
|
-
2. Run `aioson update .` in any consuming project — generator regenerates the native files.
|
|
78
|
+
2. Run `aioson update .` in any consuming project — generator regenerates the native files.
|
|
77
79
|
3. Update tests in `tests/permissions-generator.test.js` if the command should appear in / be excluded from the generated output.
|
|
78
80
|
|
|
79
81
|
Never add to `tier3_blocking` for "convenience" — that tier is the safety boundary. If a command needs to be auto-approved, it belongs in tier1 or tier2.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Autopilot handoff protocol: automatic agent chaining across the feature workflow — the analyst→dev pre-dev chain and the post-dev review cycle (dev→qa→tester/pentester→validator) — with deterministic routing and explicit stop conditions. The chain never auto-runs feature:close/publish."
|
|
3
|
+
task_types: [handoff, autopilot]
|
|
4
|
+
triggers: [auto handoff, autopilot, next agent]
|
|
3
5
|
---
|
|
4
6
|
|
|
5
7
|
# Autopilot handoff (analyst → dev → review cycle)
|
|
@@ -49,7 +51,7 @@ SMALL feature: `@analyst` → `@scope-check` → `@architect` → `@discovery-de
|
|
|
49
51
|
|
|
50
52
|
MEDIUM feature: `@analyst` → `@architect` → `@discovery-design-doc` → `@pm` → `@scope-check` → `@dev`.
|
|
51
53
|
|
|
52
|
-
The prompt-only fallback still stops before the FIRST `@dev` activation because `@dev` is a heavy phase and
|
|
54
|
+
The prompt-only fallback still stops before the FIRST `@dev` activation because `@dev` is a heavy phase and needs a compact operational handoff. Runtime agentic mode may cross this boundary only by starting a checkpointed `@dev` activation from the context package, not by carrying raw upstream chat forward. If the gateway cannot start that activation, stop with the normal `/compact` + `/dev` recommendation for same-feature continuation. Recommend `/clear` only when the user needs a hard reset, a feature switch, polluted context, or a security-sensitive reset.
|
|
53
55
|
|
|
54
56
|
## Segment 2 — post-dev review cycle (hub = `@qa`)
|
|
55
57
|
|
|
@@ -86,11 +88,11 @@ Routing table (each row is followed only when autopilot is active and no stop co
|
|
|
86
88
|
3. **Corrections cap reached** — review cycles are bounded by `agentic_policy.review_cycle` (default 3); when `review-cycle:advance` returns `stop_cycle_limit`, stop and escalate to the human.
|
|
87
89
|
4. **Critical security finding** — the `@qa` corrections security gate (auth/secret/credential/session/password/token/PII/encryption keywords) blocks the auto-loop; stop and require human intervention.
|
|
88
90
|
5. **Verdict not clean / gate or readiness blocked** — `@scope-check` not `approved`/`patched`, `@architect` Gate B blocked, `@discovery-design-doc` readiness `blocked`, `@pm` Gate C blocked, `@validator` FAIL with no safe corrections path: stop and route to the owner manually.
|
|
89
|
-
6. **Context budget** — estimated usage ≥ `context_warning_threshold` (`.aioson/config.md`): write the compaction checkpoint to `.aioson/context/last-handoff.json`, stop, and recommend `/
|
|
91
|
+
6. **Context budget** — estimated usage ≥ `context_warning_threshold` (`.aioson/config.md`): write the compaction checkpoint to `.aioson/context/last-handoff.json`, stop, and recommend `/compact` for same-feature continuation. The workflow resumes from `.aioson/context/workflow.state.json` — the next session re-enters autopilot automatically. Recommend `/clear` only for a hard reset, feature switch, polluted context, or security-sensitive reset.
|
|
90
92
|
7. **Ambiguity** — workflow state unavailable AND routing ambiguous, or any real decision requires user input: stop and ask, manually.
|
|
91
93
|
|
|
92
94
|
The user can interrupt at any time (Ctrl+C); autopilot never retries an interrupted invocation.
|
|
93
95
|
|
|
94
96
|
## Rationale
|
|
95
97
|
|
|
96
|
-
Industry-validated design (see `researchs/auto-handoff-pipeline-2026/summary.md`): deterministic routing beats LLM routing; human gates belong where they catch mistakes — at the start of implementation (`@dev` entry:
|
|
98
|
+
Industry-validated design (see `researchs/auto-handoff-pipeline-2026/summary.md`): deterministic routing beats LLM routing; human gates belong where they catch mistakes — at the start of implementation (`@dev` entry: compact operational handoff) and at the irreversible boundary (`feature:close`/publish). Every autonomous loop needs explicit exit conditions and bounds (the corrections cap, the re-entry guard); per-hop context checkpointing is the load-bearing cost mitigation.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Dev execution discipline — semantic commits, learnings, task tracking, planning, atomic execution, verification gates, skeleton updates, and debugging."
|
|
3
|
+
agents: [dev, deyvin]
|
|
4
|
+
task_types: [implementation, execution]
|
|
5
|
+
triggers: [implementing slices, execution discipline, commit cadence]
|
|
3
6
|
---
|
|
4
7
|
|
|
5
8
|
# Dev Execution Discipline
|
|
@@ -1,92 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Simple Plan lane for @dev and @deyvin: bounded technical implementation without PRD, with disk-first scope, implementation intelligence, done criteria, verification, and dev-state handoff."
|
|
3
|
+
agents: [dev, deyvin, qa, neo]
|
|
4
|
+
task_types: [simple-plan, bounded-work]
|
|
5
|
+
triggers: [simple plan, bounded technical work, small fix, refactor, polish, implementation intelligence]
|
|
1
6
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## When to Use
|
|
14
|
-
|
|
15
|
-
Use this lane when all are true:
|
|
16
|
-
|
|
17
|
-
- The request is technical and implementation-focused.
|
|
18
|
-
- The scope is bounded to a small set of files or one narrow behavior.
|
|
7
|
+
|
|
8
|
+
# Simple Plan Lane
|
|
9
|
+
|
|
10
|
+
Use this guide when a user asks for a technical change that is clear enough to implement, but broad enough that chat-only planning would lose context.
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
The simple-plan lane reduces token cost for bounded implementation work. It is not a replacement for PRDs, requirements, architecture, or QA. It is a disk-first checkpoint for implementation tasks where the agent can define scope, done criteria, files, useful implementation options, and verification before coding.
|
|
15
|
+
|
|
16
|
+
It must not rely on model intuition alone. Before coding, the agent writes a lightweight implementation intelligence checkpoint into the simple plan: selected context, existing patterns, framework leverage, boundaries, and richer options considered.
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
Use this lane when all are true:
|
|
21
|
+
|
|
22
|
+
- The request is technical and implementation-focused.
|
|
23
|
+
- The scope is bounded to a small set of files or one narrow behavior.
|
|
19
24
|
- The agent can write observable done criteria before coding.
|
|
20
25
|
- The verification command is known or can be inferred from the repo.
|
|
26
|
+
- The agent can name at least one existing project/framework pattern to reuse or explicitly state none was found.
|
|
21
27
|
- No product, UX, domain, architecture, or security decision is being made.
|
|
22
28
|
|
|
23
29
|
Do not use it for new product surfaces, unclear requirements, sensitive surfaces, new integrations, or architecture-wide changes.
|
|
24
30
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
31
|
+
If a richer option would change product behavior, UX direction, permissions, data sensitivity, architecture, or delivery scope, park it in the simple plan and hand off to the correct workflow agent instead of implementing it silently.
|
|
32
|
+
|
|
33
|
+
## Implementation Intelligence Checkpoint
|
|
34
|
+
|
|
35
|
+
Complete this checkpoint before writing the final simple plan and before editing code:
|
|
36
|
+
|
|
37
|
+
1. Run `aioson context:select . --agent=<dev|deyvin> --mode=planning --task="<task>" --paths="<known paths>"` when available.
|
|
38
|
+
2. Read only selected rules/docs and the nearest existing code pattern for the touched area.
|
|
39
|
+
3. Identify framework leverage first: built-in framework APIs, conventions, generators, validation, data access, components, or testing helpers that should be reused before custom code.
|
|
40
|
+
4. Identify data and boundary placement: where queries, query builders, repositories, services, components, handlers, validation, and tests belong in this project.
|
|
41
|
+
5. Consider useful implementation options, then classify each as:
|
|
42
|
+
- `include now`: improves the requested behavior without widening scope or risk.
|
|
43
|
+
- `defer`: useful but not needed for the current verified slice.
|
|
44
|
+
- `escalate`: requires product, UX, domain, architecture, security, or QA ownership.
|
|
45
|
+
|
|
46
|
+
Do not ask the user about every option. Ask only when the recommended option changes scope or requires a real decision. Otherwise, write the reasoning into the plan and proceed with the smallest valuable verified slice.
|
|
47
|
+
|
|
48
|
+
## Artifact
|
|
49
|
+
|
|
50
|
+
Create one file:
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
.aioson/context/simple-plans/{slug}.md
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Use this structure:
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
---
|
|
60
|
+
slug: {slug}
|
|
61
|
+
status: in_progress
|
|
62
|
+
owner: dev | deyvin
|
|
63
|
+
created_at: {YYYY-MM-DD}
|
|
64
|
+
updated_at: {YYYY-MM-DD}
|
|
65
|
+
classification: MICRO
|
|
66
|
+
risk: low | medium
|
|
67
|
+
source: direct-user-request
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
# Simple Plan - {Title}
|
|
71
|
+
|
|
49
72
|
## Scope
|
|
50
73
|
[One narrow implementation objective.]
|
|
51
74
|
|
|
75
|
+
## Context selected
|
|
76
|
+
- context:select / fallback evidence:
|
|
77
|
+
- Existing pattern to follow:
|
|
78
|
+
- Applicable rule/doc:
|
|
79
|
+
|
|
80
|
+
## Implementation intelligence
|
|
81
|
+
- Framework leverage:
|
|
82
|
+
- Structure and data boundary:
|
|
83
|
+
- Reuse over custom code:
|
|
84
|
+
|
|
52
85
|
## Done criteria
|
|
53
86
|
- [Observable behavior or file-level outcome.]
|
|
54
87
|
|
|
88
|
+
## Useful options considered
|
|
89
|
+
- Include now:
|
|
90
|
+
- Defer:
|
|
91
|
+
- Escalate:
|
|
92
|
+
|
|
55
93
|
## Out of scope
|
|
56
94
|
- [Explicit exclusions.]
|
|
57
|
-
|
|
58
|
-
## Expected files
|
|
59
|
-
- path/to/file.js
|
|
60
|
-
|
|
61
|
-
## Verification
|
|
62
|
-
- command
|
|
63
|
-
|
|
64
|
-
## Session state
|
|
65
|
-
Next step: [first implementation slice.]
|
|
66
|
-
|
|
67
|
-
## Notes
|
|
68
|
-
- [Decisions made during implementation.]
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Execution Protocol
|
|
72
|
-
|
|
73
|
-
1.
|
|
74
|
-
2.
|
|
75
|
-
3.
|
|
76
|
-
4.
|
|
77
|
-
5.
|
|
78
|
-
6.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
|
|
96
|
+
## Expected files
|
|
97
|
+
- path/to/file.js
|
|
98
|
+
|
|
99
|
+
## Verification
|
|
100
|
+
- command
|
|
101
|
+
|
|
102
|
+
## Session state
|
|
103
|
+
Next step: [first implementation slice.]
|
|
104
|
+
|
|
105
|
+
## Notes
|
|
106
|
+
- [Decisions made during implementation.]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Execution Protocol
|
|
110
|
+
|
|
111
|
+
1. Complete the implementation intelligence checkpoint.
|
|
112
|
+
2. Write the simple plan before editing code.
|
|
113
|
+
3. Run `aioson dev:state:write . --feature={slug} --next="<first slice>" --context=simple-plan`.
|
|
114
|
+
4. Implement the smallest useful slice, including only `include now` options.
|
|
115
|
+
5. Run the verification listed in the plan.
|
|
116
|
+
6. Update `status`, `updated_at`, notes, useful options, and next step.
|
|
117
|
+
7. If the task expands beyond the lane, mark the plan `paused` and hand off to the correct workflow agent.
|
|
118
|
+
|
|
119
|
+
## Quality Bar
|
|
120
|
+
|
|
121
|
+
A valid simple plan is not just a TODO list. It must show:
|
|
122
|
+
|
|
123
|
+
- What context/rules/patterns were selected.
|
|
124
|
+
- Which framework or project convention will be reused.
|
|
125
|
+
- Where structure and data access belong.
|
|
126
|
+
- Which useful options were included, deferred, or escalated.
|
|
127
|
+
- The verification command that proves the slice.
|
|
128
|
+
|
|
129
|
+
## Status Semantics
|
|
130
|
+
|
|
131
|
+
- `draft`: scoped but not started.
|
|
132
|
+
- `in_progress`: active implementation.
|
|
133
|
+
- `done`: implemented and verified.
|
|
134
|
+
- `paused`: intentionally parked; visible for later and non-blocking.
|
|
135
|
+
- `abandoned`: intentionally dropped.
|
|
136
|
+
|
|
137
|
+
## Handoff Rules
|
|
138
|
+
|
|
139
|
+
If a simple plan remains unfinished at session end, keep it as `in_progress` or `paused` and update `.aioson/context/dev-state.md` with `--context=simple-plan`.
|
|
140
|
+
|
|
141
|
+
If implementation is complete, mark it `done`, record verification evidence in the plan, and update `.aioson/context/dev-state.md` only when more work remains.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Dev stack conventions — Laravel, UI/UX, design skill, motion, Web3, and any-stack separation rules."
|
|
3
|
+
agents: [dev, deyvin]
|
|
4
|
+
task_types: [implementation, conventions]
|
|
5
|
+
triggers: [stack conventions, framework patterns, implementing features]
|
|
3
6
|
---
|
|
4
7
|
|
|
5
8
|
# Dev Stack Conventions
|
|
@@ -41,7 +44,7 @@ Rules:
|
|
|
41
44
|
|
|
42
45
|
## Design skill conventions
|
|
43
46
|
|
|
44
|
-
Read `design_skill` from
|
|
47
|
+
Read `design_skill` from `.aioson/context/project.context.md` before implementing user-facing UI.
|
|
45
48
|
|
|
46
49
|
If `design_skill` is set:
|
|
47
50
|
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Deyvin continuity recovery — session start order, resumption rules, brownfield guardrails, SDD bridge, and Git fallback."
|
|
3
|
+
agents: [deyvin]
|
|
4
|
+
task_types: [continuity, recovery]
|
|
5
|
+
triggers: [continuity recovery, recent work, stale state]
|
|
3
6
|
---
|
|
4
7
|
|
|
5
8
|
# Deyvin Continuity Recovery
|
|
6
9
|
|
|
7
|
-
Load this module only when the task is continuity recovery, recent-work reconstruction, stale-state diagnosis, or resuming an existing slice.
|
|
10
|
+
Load this module only when the task is continuity recovery, recent-work reconstruction, stale-state diagnosis, or resuming an existing slice.
|
|
8
11
|
|
|
9
12
|
## Session start order
|
|
10
13
|
|
|
11
|
-
Build context in this order:
|
|
12
|
-
|
|
13
|
-
1. If `aioson` is available, run `aioson memory:summary . --last=5` as the fast continuity bootstrap.
|
|
14
|
-
2. Read `.aioson/context/project.context.md`
|
|
15
|
-
3. Run `aioson context:select . --agent=deyvin --mode=planning --task="<task>" --paths="<known paths>"`.
|
|
16
|
-
4. Load only the selected PLANNING files. Do not load full `.aioson/rules/`, `.aioson/docs/`, `.aioson/design-docs/`, `discovery.md`, or `architecture.md` from this step alone.
|
|
17
|
-
5. If a feature slug is known, load its dossier/spec only when `context:select`,
|
|
18
|
-
6. If code inspection/editing is about to start, run `aioson context:select . --agent=deyvin --mode=executing --task="<task>" --paths="<files to touch>"` and load only the selected EXECUTING files.
|
|
19
|
-
7. When the task matches procedural tags, run `aioson brain:query . --tags=<tags> --min-quality=4`.
|
|
20
|
-
8. Inspect recent runtime state in `.aioson/runtime/aios.sqlite` when memory summary is insufficient.
|
|
21
|
-
9. Use Git only as a fallback after memory + runtime + selected rules/docs.
|
|
14
|
+
Build context in this order:
|
|
15
|
+
|
|
16
|
+
1. If `aioson` is available, run `aioson memory:summary . --last=5` as the fast continuity bootstrap.
|
|
17
|
+
2. Read `.aioson/context/project.context.md`
|
|
18
|
+
3. Run `aioson context:select . --agent=deyvin --mode=planning --task="<task>" --paths="<known paths>"`.
|
|
19
|
+
4. Load only the selected PLANNING files. Do not load full `.aioson/rules/`, `.aioson/docs/`, `.aioson/design-docs/`, `discovery.md`, or `architecture.md` from this step alone.
|
|
20
|
+
5. If a feature slug is known, load its dossier/spec only when `context:select`, `.aioson/context/dev-state.md`, or `.aioson/context/project-pulse.md` points to that slug; use `.aioson/context/spec-current.md` for active spec and `.aioson/context/spec-history.md` only for history.
|
|
21
|
+
6. If code inspection/editing is about to start, run `aioson context:select . --agent=deyvin --mode=executing --task="<task>" --paths="<files to touch>"` and load only the selected EXECUTING files.
|
|
22
|
+
7. When the task matches procedural tags, run `aioson brain:query . --tags=<tags> --min-quality=4`.
|
|
23
|
+
8. Inspect recent runtime state in `.aioson/runtime/aios.sqlite` when memory summary is insufficient.
|
|
24
|
+
9. Use Git only as a fallback after memory + runtime + selected rules/docs.
|
|
22
25
|
|
|
23
26
|
If the user asks what happened recently, answer from memory and runtime first. Go to Git only if those sources are insufficient.
|
|
24
27
|
|
|
@@ -35,12 +38,12 @@ Do not duplicate or rewrite the shared SDD references inside `@deyvin`.
|
|
|
35
38
|
|
|
36
39
|
## Brownfield guardrails
|
|
37
40
|
|
|
38
|
-
If `framework_installed=true` in `project.context.md` and the task depends on existing system behavior:
|
|
39
|
-
|
|
40
|
-
- prefer selected module memory, `memory-index.md`, dossier, or spec before opening broad `discovery.md` / `architecture.md`
|
|
41
|
-
- use `skeleton-system.md` or `memory-index.md` first for faster orientation
|
|
42
|
-
- if `discovery.md` is missing but scan artifacts exist, stop and hand off to `@analyst`
|
|
43
|
-
- if broad architecture decisions are required, hand off to `@architect`
|
|
41
|
+
If `framework_installed=true` in `project.context.md` and the task depends on existing system behavior:
|
|
42
|
+
|
|
43
|
+
- prefer selected module memory, `memory-index.md`, dossier, or spec before opening broad `discovery.md` / `architecture.md`
|
|
44
|
+
- use `skeleton-system.md` or `memory-index.md` first for faster orientation
|
|
45
|
+
- if `discovery.md` is missing but scan artifacts exist, stop and hand off to `@analyst`
|
|
46
|
+
- if broad architecture decisions are required, hand off to `@architect`
|
|
44
47
|
|
|
45
48
|
## Git fallback
|
|
46
49
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Deyvin debugging and escalation — root-cause protocol, retry limits, and when to hand off."
|
|
3
|
+
agents: [deyvin]
|
|
4
|
+
task_types: [debugging, bugfix]
|
|
5
|
+
triggers: [bug diagnosis, failing test, debugging escalation]
|
|
3
6
|
---
|
|
4
7
|
|
|
5
8
|
# Deyvin Debugging and Escalation
|