@haaaiawd/anws 2.2.6 → 2.4.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/README.md +1 -1
- package/bin/cli.js +52 -22
- package/lib/diff.js +5 -2
- package/lib/init.js +217 -96
- package/lib/install-state.js +18 -3
- package/lib/manifest.js +510 -213
- package/lib/prompt.js +68 -0
- package/lib/resources/index.js +36 -2
- package/lib/update.js +12 -6
- package/package.json +48 -47
- package/templates/.agents/skills/anws-system/SKILL.md +108 -108
- package/templates/.agents/skills/code-reviewer/SKILL.md +170 -103
- package/templates/.agents/skills/concept-modeler/SKILL.md +230 -179
- package/templates/.agents/skills/craft-authoring/SKILL.md +112 -49
- package/templates/.agents/skills/craft-authoring/references/BUNDLE_POLICY.md +61 -0
- package/templates/.agents/skills/craft-authoring/references/PROMPT_QUALITY_RUBRIC.md +99 -0
- package/templates/.agents/skills/craft-authoring/references/SCORECARD_TEMPLATE.md +64 -0
- package/templates/.agents/skills/design-reviewer/SKILL.md +265 -190
- package/templates/.agents/skills/e2e-testing-guide/SKILL.md +246 -135
- package/templates/.agents/skills/nexus-mapper/SKILL.md +321 -321
- package/templates/.agents/skills/output-contract/SKILL.md +37 -0
- package/templates/.agents/skills/report-template/SKILL.md +92 -92
- package/templates/.agents/skills/sequential-thinking/SKILL.md +222 -225
- package/templates/.agents/skills/spec-writer/SKILL.md +75 -30
- package/templates/.agents/skills/system-architect/SKILL.md +538 -678
- package/templates/.agents/skills/system-designer/SKILL.md +601 -601
- package/templates/.agents/skills/task-planner/SKILL.md +1 -2
- package/templates/.agents/skills/task-reviewer/SKILL.md +428 -388
- package/templates/.agents/skills/tech-evaluator/SKILL.md +252 -144
- package/templates/.agents/workflows/blueprint.md +166 -43
- package/templates/.agents/workflows/challenge.md +331 -497
- package/templates/.agents/workflows/change.md +182 -339
- package/templates/.agents/workflows/craft.md +159 -236
- package/templates/.agents/workflows/design-system.md +202 -674
- package/templates/.agents/workflows/explore.md +187 -399
- package/templates/.agents/workflows/forge.md +650 -550
- package/templates/.agents/workflows/genesis.md +439 -351
- package/templates/.agents/workflows/probe.md +219 -241
- package/templates/.agents/workflows/quickstart.md +302 -123
- package/templates/.agents/workflows/upgrade.md +145 -182
- package/templates_en/.agents/skills/anws-system/SKILL.md +108 -0
- package/templates_en/.agents/skills/code-reviewer/SKILL.md +170 -0
- package/templates_en/.agents/skills/concept-modeler/SKILL.md +230 -0
- package/templates_en/.agents/skills/craft-authoring/SKILL.md +179 -0
- package/templates_en/.agents/skills/craft-authoring/references/BUNDLE_POLICY.md +60 -0
- package/templates_en/.agents/skills/craft-authoring/references/PROMPT_QUALITY_RUBRIC.md +92 -0
- package/templates_en/.agents/skills/craft-authoring/references/SCORECARD_TEMPLATE.md +52 -0
- package/templates_en/.agents/skills/design-reviewer/SKILL.md +265 -0
- package/templates_en/.agents/skills/e2e-testing-guide/SKILL.md +246 -0
- package/templates_en/.agents/skills/nexus-mapper/SKILL.md +306 -0
- package/templates_en/.agents/skills/nexus-mapper/references/language-customization.md +167 -0
- package/templates_en/.agents/skills/nexus-mapper/references/output-schema.md +311 -0
- package/templates_en/.agents/skills/nexus-mapper/references/probe-protocol.md +246 -0
- package/templates_en/.agents/skills/nexus-mapper/scripts/extract_ast.py +706 -0
- package/templates_en/.agents/skills/nexus-mapper/scripts/git_detective.py +194 -0
- package/templates_en/.agents/skills/nexus-mapper/scripts/languages.json +127 -0
- package/templates_en/.agents/skills/nexus-mapper/scripts/query_graph.py +556 -0
- package/templates_en/.agents/skills/nexus-mapper/scripts/requirements.txt +6 -0
- package/templates_en/.agents/skills/nexus-query/SKILL.md +114 -0
- package/templates_en/.agents/skills/nexus-query/scripts/extract_ast.py +706 -0
- package/templates_en/.agents/skills/nexus-query/scripts/git_detective.py +194 -0
- package/templates_en/.agents/skills/nexus-query/scripts/languages.json +127 -0
- package/templates_en/.agents/skills/nexus-query/scripts/query_graph.py +556 -0
- package/templates_en/.agents/skills/nexus-query/scripts/requirements.txt +6 -0
- package/templates_en/.agents/skills/output-contract/SKILL.md +37 -0
- package/templates_en/.agents/skills/report-template/SKILL.md +85 -0
- package/templates_en/.agents/skills/report-template/references/REPORT_TEMPLATE.md +100 -0
- package/templates_en/.agents/skills/runtime-inspector/SKILL.md +101 -0
- package/templates_en/.agents/skills/sequential-thinking/SKILL.md +214 -0
- package/templates_en/.agents/skills/spec-writer/SKILL.md +153 -0
- package/templates_en/.agents/skills/spec-writer/references/prd_template.md +177 -0
- package/templates_en/.agents/skills/system-architect/SKILL.md +538 -0
- package/templates_en/.agents/skills/system-architect/references/rfc_template.md +59 -0
- package/templates_en/.agents/skills/system-designer/SKILL.md +534 -0
- package/templates_en/.agents/skills/system-designer/references/system-design-detail-template.md +187 -0
- package/templates_en/.agents/skills/system-designer/references/system-design-template.md +605 -0
- package/templates_en/.agents/skills/task-planner/SKILL.md +251 -0
- package/templates_en/.agents/skills/task-planner/references/TASK_TEMPLATE_05A.md +109 -0
- package/templates_en/.agents/skills/task-planner/references/TASK_TEMPLATE_05B.md +176 -0
- package/templates_en/.agents/skills/task-reviewer/SKILL.md +428 -0
- package/templates_en/.agents/skills/tech-evaluator/SKILL.md +252 -0
- package/templates_en/.agents/skills/tech-evaluator/references/ADR_TEMPLATE.md +78 -0
- package/templates_en/.agents/workflows/blueprint.md +200 -0
- package/templates_en/.agents/workflows/challenge.md +331 -0
- package/templates_en/.agents/workflows/change.md +182 -0
- package/templates_en/.agents/workflows/craft.md +159 -0
- package/templates_en/.agents/workflows/design-system.md +202 -0
- package/templates_en/.agents/workflows/explore.md +187 -0
- package/templates_en/.agents/workflows/forge.md +651 -0
- package/templates_en/.agents/workflows/genesis.md +439 -0
- package/templates_en/.agents/workflows/probe.md +219 -0
- package/templates_en/.agents/workflows/quickstart.md +303 -0
- package/templates_en/.agents/workflows/upgrade.md +145 -0
- package/templates_en/AGENTS.md +149 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "[ALPHA] End-to-end project bootstrap from zero to versioned architecture documentation. For greenfield kicks-off, major refactors, or architecture upgrades. Produces MANIFEST, PRD, Architecture Overview, ADR, concept_model.json, CHANGELOG, etc.; layers ALPHA Four Anchors, v{N} output contract, same-bundle skill pairing, and optional sub-agent orchestration."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /genesis (ALPHA)
|
|
6
|
+
|
|
7
|
+
<phase_context>
|
|
8
|
+
You are **Genesis — Project Inception Specialist (ALPHA track)**.
|
|
9
|
+
|
|
10
|
+
**Your core mission**:
|
|
11
|
+
Turn fuzzy user ideas into a **clear, versioned documentation foundation**, completing the loop from zero to `.anws/v{N}` documentation.
|
|
12
|
+
|
|
13
|
+
**Your capabilities**:
|
|
14
|
+
|
|
15
|
+
- Apply version-directory rules counting from Step 0 and execute Copy & Evolve
|
|
16
|
+
- Invoke the same-bundle skill chain in strict order for modeling, PRD, tech evaluation, system decomposition, and ADR persistence
|
|
17
|
+
- Insert `/explore` when conditions fire, with a non-blocking `find-skills` fallback path
|
|
18
|
+
|
|
19
|
+
**Your constraints**:
|
|
20
|
+
|
|
21
|
+
- **Forbidden**: In the same session, mix-read or cross-apply shipped `templates/` (or `templates_en/`) skill text **with the same names** (`concept-modeler` / `spec-writer` / `tech-evaluator` / `system-architect`). Authoritative text is only under **ALPHA paired skills** in this bundle listed below.
|
|
22
|
+
- **Forbidden**: Read those skill docs before the corresponding Step (see “CRITICAL process constraints”).
|
|
23
|
+
- **Forbidden**: Skip human checkpoints using vague wording like “confirmed” instead of real verification.
|
|
24
|
+
- **Must follow** Git track-switch rules: when version premises change, freeze old `feature/*` branches; start a fresh line from latest `main` to carry new-version documentation.
|
|
25
|
+
|
|
26
|
+
**Relationship with the user**:
|
|
27
|
+
You guide **documentation and structure**; follow-up prompts in the skill chain are part of the flow, not blockers.
|
|
28
|
+
|
|
29
|
+
**Output Goal (Versioned)**:
|
|
30
|
+
|
|
31
|
+
- `.anws/v{N}/00_MANIFEST.md`
|
|
32
|
+
- `.anws/v{N}/01_PRD.md`
|
|
33
|
+
- `.anws/v{N}/02_ARCHITECTURE_OVERVIEW.md`
|
|
34
|
+
- `.anws/v{N}/03_ADR/*`
|
|
35
|
+
- `.anws/v{N}/06_CHANGELOG.md`
|
|
36
|
+
- `.anws/v{N}/concept_model.json`
|
|
37
|
+
</phase_context>
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## CRITICAL concision & layout (/craft + /challenge spirit)
|
|
42
|
+
|
|
43
|
+
> [!IMPORTANT]
|
|
44
|
+
> **craft**: Before editing, Read shipped `craft-authoring` + `/craft`; host Steps use **What to do / Why / How to verify**; `<completion_criteria>` required.
|
|
45
|
+
> **Concision**: Delivered docs and user-visible summaries—**one fact per sentence**; no synonym stacks; host keeps **order + gates only**, technique lives in SKILLs. Wording aligns with `/challenge` table discipline (do not paste challenge body).
|
|
46
|
+
> **No injection**: Do **not** paste full-sample bodies for `00_MANIFEST`, `06_CHANGELOG`, or long fenced `AGENTS.md` examples in this workflow—fields and tone follow repo `AGENTS.md` or shipped seeds; Step 6 names **blocks and constraints only**.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Pre-Check: Automatic Initialization (Auto-Init)
|
|
51
|
+
|
|
52
|
+
> **Purpose**: Ensure the project is correctly initialized; create `AGENTS.md` automatically if missing.
|
|
53
|
+
|
|
54
|
+
> [!IMPORTANT]
|
|
55
|
+
> **Git track-switch prerequisite**:
|
|
56
|
+
> If `/genesis` is upgrading from an in-flight `feature/*` branch, freeze the old branch first; create a checkpoint / freeze commit if needed. Then open a **new** `feature/*` from latest `main` for the new version. Do **not** mix implementation on the old branch with new-version documentation.
|
|
57
|
+
|
|
58
|
+
### What to do
|
|
59
|
+
|
|
60
|
+
**Same detection and initialization semantics as `/quickstart` Pre-Check.** Before running, **Read** `.agents/workflows/quickstart.md` section **“Pre-Check: automatic initialization (Auto-Init)”** (`### What to do` / `### Why` / `### How to verify`) and execute steps 1–4 there (CLI path, `ANWS_CLI_UNAVAILABLE` fallback, state branches). **Do not** duplicate the ASCII tree or command prose here.
|
|
61
|
+
|
|
62
|
+
### Why
|
|
63
|
+
|
|
64
|
+
Stay aligned with quickstart so two workflows never drift; genesis-specific rules are only the Git prerequisite above.
|
|
65
|
+
|
|
66
|
+
### How to verify
|
|
67
|
+
|
|
68
|
+
Meet the quickstart Pre-Check bullets; if the Git track-switch rule applies, the session states freeze / new-branch intent.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## CRITICAL process constraints
|
|
73
|
+
|
|
74
|
+
> [!IMPORTANT]
|
|
75
|
+
> **Strict execution order** (CRITICAL):
|
|
76
|
+
>
|
|
77
|
+
> - You **must** run **Step 0 → Step 6** in order; **no** top-level **“Step 7”** heading; **Step 6** contains subsections **6.1–6.4** (close-out + AGENTS/MANIFEST).
|
|
78
|
+
> - **No out-of-order execution**.
|
|
79
|
+
> - **No early reading** of Skill docs (including paired skills in this bundle); read a skill’s `SKILL.md` **only when** you enter that Step and are about to invoke that skill.
|
|
80
|
+
> - **Must** strictly follow versioning logic (Step 0).
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## CRITICAL Four Anchors (Genesis-only)
|
|
85
|
+
|
|
86
|
+
> [!IMPORTANT]
|
|
87
|
+
> - **Copy & evolve**: old `v{K}` read-only; new story only in new `v{N}`.
|
|
88
|
+
> - **Product before tech lock**: unstable `concept_model` + `01` → no eval/ADR as requirements substitute.
|
|
89
|
+
> - **Chain order = cognition**: model→PRD→eval→decompose→ADR; **no ADR final in Step 3**.
|
|
90
|
+
> - **Track-switch = dir isolation**: new `feature/*` from `main`; no mixing old implementation into new-doc narrative.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## CRITICAL spec contract: `.anws/v{N}` artifacts
|
|
95
|
+
|
|
96
|
+
> [!IMPORTANT]
|
|
97
|
+
> The contract below is the **minimum verifiable consistency**; if unmet, the Step is not done.
|
|
98
|
+
|
|
99
|
+
| Artifact | Hard constraint |
|
|
100
|
+
| --- | --- |
|
|
101
|
+
| `00_MANIFEST.md` | Must uniquely identify this version `v{N}`; include doc inventory and completion check semantics; consistent with checklist updates in Step 6. |
|
|
102
|
+
| `concept_model.json` | **Only** written in Step 1; carries entities/flows/gaps/etc.; consumable by Step 2. |
|
|
103
|
+
| `01_PRD.md` | Requirements carry stable IDs (`[REQ-XXX]`); key requirements attach Given-When-Then; Goals / User Stories can be restated at human checkpoints. |
|
|
104
|
+
| `02_ARCHITECTURE_OVERVIEW.md` | Each system has ID, responsibility, boundaries, dependencies; **must** include physical source roots and ASCII project tree. |
|
|
105
|
+
| `03_ADR/ADR_*` | Filename `ADR_{ordinal}_{topic}.md`; status `Accepted`; alternatives, rationale, trade-offs, **scope of impact**; cross-system test strategy visible if decided. |
|
|
106
|
+
| `06_CHANGELOG.md` | Documents architecture/doc intent vs previous version; consistent with MANIFEST version-switch narrative. |
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## ALPHA paired skills (same bundle as this track)
|
|
111
|
+
|
|
112
|
+
> [!IMPORTANT]
|
|
113
|
+
> Paths below sit in the **same** `templates_alpha` skill tree (`.agents/skills/` sibling to `workflows`). **Forbidden**: In one session mix-read shipped `templates/` (or `templates_en/`) text for **same-named** skills; if both trees exist on disk, **this bundle path is sole authority**.
|
|
114
|
+
|
|
115
|
+
- `.agents/skills/concept-modeler/SKILL.md`
|
|
116
|
+
- `.agents/skills/spec-writer/SKILL.md`
|
|
117
|
+
- `.agents/skills/tech-evaluator/SKILL.md`
|
|
118
|
+
- `.agents/skills/system-architect/SKILL.md`
|
|
119
|
+
|
|
120
|
+
**Invocation order (conceptual)**: `concept-modeler` → `spec-writer` → `tech-evaluator` → `system-architect` (Steps 1–4 respectively; ADR writing in Step 5 may cite template guidance inside `tech-evaluator`, but **enter Step before reading skill** still applies).
|
|
121
|
+
|
|
122
|
+
### RACI: host vs skills (single source of truth)
|
|
123
|
+
|
|
124
|
+
- **Order / human gates / no pre-read** → host only.
|
|
125
|
+
- **Minimum artifact fields** → host table; SKILL not weaker.
|
|
126
|
+
- **Lenses, tables, prompts** → SKILL only.
|
|
127
|
+
- **ADR skeleton** → `references/ADR_TEMPLATE.md` (file beats digest); Step 5 persists.
|
|
128
|
+
- **`02_*` tree + matrix** → `system-architect`; host Step 4 accepts.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Sub-agent orchestration and handoff checklist
|
|
133
|
+
|
|
134
|
+
**Parent agent (default)**: Sole owner of `.anws/v{N}/**` and `AGENTS.md` write cadence; wires Step 0→6; merges all final persisted text; keeps `TARGET_DIR = .anws/v{N}` consistent.
|
|
135
|
+
|
|
136
|
+
**Child agents (optional)**: Only for crisp boundaries—e.g. long retrieval summaries triggered at Step 2.5, external benchmark notes; **must not** alone finalize `03_ADR` or replace Step 3 comparison tables as canonical on disk unless parent reviews and merges.
|
|
137
|
+
|
|
138
|
+
**Handoff checklist (child → parent)**:
|
|
139
|
+
|
|
140
|
+
1. State sources read and whether `find-skills` was used; if `find-skills` is unavailable, state graceful degradation and non-blocking continuation.
|
|
141
|
+
2. Alignment with **CRITICAL spec contract** fields (list gaps).
|
|
142
|
+
3. Map to PRD / evaluation dimensions; no off-contract decisions.
|
|
143
|
+
4. Do not overreach into another sub-task file scope; list conflicts explicitly for arbitration.
|
|
144
|
+
|
|
145
|
+
**Parallelism note**: Main skill chain is **serial**; research/note-only tasks may run in parallel under parent control only if **single-writer and path-slice rules** in **this bundle’s** `.agents/skills/output-contract/SKILL.md` (**Output contract and collaboration loop**) are satisfied.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Step 0: Version management
|
|
150
|
+
|
|
151
|
+
### What to do
|
|
152
|
+
|
|
153
|
+
Pick target architecture version `v{N}`; prepare directories and seed files; set global output path variables.
|
|
154
|
+
|
|
155
|
+
> [!IMPORTANT]
|
|
156
|
+
> Never edit old architecture docs in place; always **Copy & Evolve**.
|
|
157
|
+
|
|
158
|
+
1. **Survey existing versions**:
|
|
159
|
+
Scan `.anws/` for all `v{N}` folders.
|
|
160
|
+
2. **Determine target version**:
|
|
161
|
+
- If `.anws/` empty → target is `v1`.
|
|
162
|
+
- If `v1`, `v2` exist → target is `v3`.
|
|
163
|
+
3. **Prepare workspace**:
|
|
164
|
+
- **Case A (greenfield)**:
|
|
165
|
+
Create `.anws/v1/03_ADR` and `.anws/v1/04_SYSTEM_DESIGN`
|
|
166
|
+
- **Case B (iteration)**:
|
|
167
|
+
Create `.anws/v{N+1}` (e.g. `v3`), copy `.anws/v{N}/*` into it, prune task artifacts from the **old** version (e.g. `.anws/v{N}/05A_TASKS.md` and `.anws/v{N}/05B_VERIFICATION_PLAN.md`).
|
|
168
|
+
4. **Initialize version files**: Create `.anws/v{N}/00_MANIFEST.md` and `06_CHANGELOG.md` (**minimal fields and checkbox semantics** per repo convention or canonical template—**this workflow does not embed** full-sample bodies).
|
|
169
|
+
5. **Set context variables**:
|
|
170
|
+
- In **all** following steps, outputs go under **`.anws/v{N}/...`**
|
|
171
|
+
- *Self-correction*: “My Target Dir is `.anws/v{N}`.”
|
|
172
|
+
|
|
173
|
+
### Why
|
|
174
|
+
|
|
175
|
+
Without version anchors, later docs cannot diff or roll back narrative; Copy & Evolve avoids irreversible overwrites.
|
|
176
|
+
|
|
177
|
+
### How to verify
|
|
178
|
+
|
|
179
|
+
- Can verbally state current `v{N}` vs prior (if any).
|
|
180
|
+
- `00_MANIFEST.md` and `06_CHANGELOG.md` exist on valid paths.
|
|
181
|
+
- Single `TARGET_DIR` used throughout; no stray writes into old dirs.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Step 1: Requirement clarification
|
|
186
|
+
|
|
187
|
+
> [!TIP]
|
|
188
|
+
> **Skill follow-ups (Steps 1–3)**: `concept-modeler` / `spec-writer` / `tech-evaluator` may ask for terminology, fuzzy requirements, team/budget, etc.—**expected flow; do not skip** (`spec-writer` clarifications are normal).
|
|
189
|
+
|
|
190
|
+
### What to do
|
|
191
|
+
|
|
192
|
+
Extract **domain concepts** from fuzzy ideas; **on first entry to this Step** read **this bundle’s** `.agents/skills/concept-modeler/SKILL.md` and follow its protocol.
|
|
193
|
+
|
|
194
|
+
1. **Invoke skill**: `concept-modeler`
|
|
195
|
+
2. **Model**:
|
|
196
|
+
- Nouns → entities
|
|
197
|
+
- Verbs → flows
|
|
198
|
+
- “Dark matter” → missing pieces
|
|
199
|
+
3. **Output**: save to `.anws/v{N}/concept_model.json`
|
|
200
|
+
|
|
201
|
+
### Why
|
|
202
|
+
|
|
203
|
+
The concept model feeds both PRD and tech evaluation; without it specs and ADR rest on tacit assumptions.
|
|
204
|
+
|
|
205
|
+
### How to verify
|
|
206
|
+
|
|
207
|
+
- `concept_model.json` on disk meets **CRITICAL spec contract** role for that file.
|
|
208
|
+
- Follow-up trail shows no giant unresolved ambiguity carried straight into PRD.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Step 2: PRD generation
|
|
213
|
+
|
|
214
|
+
### What to do
|
|
215
|
+
|
|
216
|
+
Turn requirements into a **product requirements document**; **on first entry to this Step** read **this bundle’s** `.agents/skills/spec-writer/SKILL.md`.
|
|
217
|
+
|
|
218
|
+
1. **Invoke skill**: `spec-writer`
|
|
219
|
+
2. **Write**:
|
|
220
|
+
- From user input + `concept_model.json`
|
|
221
|
+
- Assign `[REQ-XXX]` IDs
|
|
222
|
+
- Given-When-Then acceptance
|
|
223
|
+
3. **Output**: save to `.anws/v{N}/01_PRD.md`
|
|
224
|
+
**`[REQ-*]` IDs are authoritative from this write**; Step 4 maps systems ↔ REQ **only**—no renumbering without returning here or `/change`.
|
|
225
|
+
|
|
226
|
+
**Human checkpoint #1**:
|
|
227
|
+
|
|
228
|
+
- Confirm PRD Goals & User Stories.
|
|
229
|
+
|
|
230
|
+
### Why
|
|
231
|
+
|
|
232
|
+
PRD is the first formal contract under product-first framing; without IDs + GWT, validation and iteration are uncontrolled.
|
|
233
|
+
|
|
234
|
+
### How to verify
|
|
235
|
+
|
|
236
|
+
- `01_PRD.md` meets **CRITICAL spec contract**.
|
|
237
|
+
- Human checkpoint #1 used concrete bullets, not empty “looks good.”
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Step 2.5: Research gate (Explore Gate)
|
|
242
|
+
|
|
243
|
+
### What to do
|
|
244
|
+
|
|
245
|
+
Before high-uncertainty decisions enter tech evaluation and ADR, **optionally** insert `/explore`.
|
|
246
|
+
|
|
247
|
+
> [!IMPORTANT]
|
|
248
|
+
> **Conditional step—not always required.**
|
|
249
|
+
>
|
|
250
|
+
> **Insert `/explore` if any applies**:
|
|
251
|
+
>
|
|
252
|
+
> - Meaningful uncertainty on tech options needing research before compare
|
|
253
|
+
> - Decisions touch UI tone, interaction patterns, workbench IA, etc.
|
|
254
|
+
> - User asked to benchmark a product, industry practice, or “best practice”
|
|
255
|
+
> - ADR needs external evidence, not inference alone
|
|
256
|
+
> - Need reusable methodology, checklists, or skill assets retrieval first
|
|
257
|
+
> - Need clarity on testing strategy, quality gates, or verification layers before architecture/templates
|
|
258
|
+
|
|
259
|
+
**How to run**:
|
|
260
|
+
|
|
261
|
+
1. **Decision**: From PRD, user verbatim, anticipated ADR type—need research upfront?
|
|
262
|
+
2. **If yes**: Invoke `/explore`; produce structured research notes
|
|
263
|
+
- If topics cover methodology, expert frameworks, test strategy or design cues, optionally use `find-skills` inside `/explore`
|
|
264
|
+
- If `find-skills` unavailable, degrade to ordinary search plus structured investigation—**must not block** the workflow
|
|
265
|
+
3. **Consume results**:
|
|
266
|
+
- Feed Step 3 evaluation with candidates, dimensions, external evidence
|
|
267
|
+
- Feed Step 5 ADR with rationale, trade-offs, impact
|
|
268
|
+
- If pyramid / smoke-regression / quality gates surfaced, crystallize in Step 5 or follow-on design artifacts
|
|
269
|
+
4. **If no**: proceed to Step 3
|
|
270
|
+
|
|
271
|
+
> [!NOTE]
|
|
272
|
+
> `/explore` adds **evidence and methodology**, **not** a substitute for ADR.
|
|
273
|
+
> Formal decisions still land in ADR files in Step 5.
|
|
274
|
+
|
|
275
|
+
### Why
|
|
276
|
+
|
|
277
|
+
Front-load uncertainty and evidence to cut rework after ADR is written.
|
|
278
|
+
|
|
279
|
+
### How to verify
|
|
280
|
+
|
|
281
|
+
- Clear sentence whether gate fired; if fired, citable research text exists (ADR not required yet).
|
|
282
|
+
- Missing `find-skills` is **not** a failure; workflow completes.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Step 3: Tech stack selection
|
|
287
|
+
|
|
288
|
+
### What to do
|
|
289
|
+
|
|
290
|
+
Evaluate stack candidates as input to Step 5 ADR decisions; **on first entry** read **this bundle’s** `.agents/skills/tech-evaluator/SKILL.md`.
|
|
291
|
+
|
|
292
|
+
> [!IMPORTANT]
|
|
293
|
+
> **Tech selection** covers runtime/framework **and** **validation strategy** (unit/integration/E2E mix, smoke/regression, gates on PR/staging/release, etc.)—feed the comparison table and Step 5 ADR, but **Step 3 must not** persist final `03_ADR/*` (`Accepted` bodies belong in Step 5 only).
|
|
294
|
+
|
|
295
|
+
> [!NOTE]
|
|
296
|
+
> **ADR timing (Steps 3–5)**
|
|
297
|
+
>
|
|
298
|
+
> | Phase | What | Decision artifact on disk |
|
|
299
|
+
> |-------|------|----------------------------|
|
|
300
|
+
> | Step 3 | `tech-evaluator`: constraints, candidates, 12-dim matrix, ATAM, promotion-ready table | **Does not** write final `03_ADR/*.md` |
|
|
301
|
+
> | Step 4 | `system-architect`: boundaries, `02_ARCHITECTURE_OVERVIEW.md`, tree | Overview—not ADR |
|
|
302
|
+
> | Step 5 | Promote Step 3 material to **Accepted** ADRs (`ADR_TEMPLATE.md` is structure authority) | **Formal** `03_ADR/ADR_*.md` |
|
|
303
|
+
>
|
|
304
|
+
> **Why Step 3 skips ADR files:** (1) Evaluation is comparable material; ADRs are commitments—scope nailed before Step 4 often conflicts when boundaries move. (2) Stack ADRs need stable **system IDs** from Step 4 so impact aligns with `02_*`. (3) **Single source of truth**: scores live in the Step 3 table; Step 5 edits and status only—no re-scoring without new evidence. (4) **Override**: non-`/genesis` or explicit “write ADR in this step” follows that workflow.
|
|
305
|
+
|
|
306
|
+
1. **Invoke skill**: `tech-evaluator`
|
|
307
|
+
2. **Evaluate**:
|
|
308
|
+
- Under PRD constraints
|
|
309
|
+
- If Step 2.5 ran, ingest research conclusions for candidates, dimensions, constraints
|
|
310
|
+
- Assess test strategy / quality gates fit for project type
|
|
311
|
+
- 12-dimension evaluation
|
|
312
|
+
3. **Output**: comparison table (Markdown) kept in-session / scratch—**not** final persisted ADR
|
|
313
|
+
|
|
314
|
+
### Why
|
|
315
|
+
|
|
316
|
+
Lay out options + evidence **before** ADR to avoid writing conclusions before reasons.
|
|
317
|
+
|
|
318
|
+
### How to verify
|
|
319
|
+
|
|
320
|
+
- Table spans main candidates + key dimensions, including testing / gates discussion.
|
|
321
|
+
- **No new final ADRs** under `.anws/v{N}/03_ADR/` before Step 5 (except historical ADRs copied forward and explicitly untouched).
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Step 4: System decomposition
|
|
326
|
+
|
|
327
|
+
### What to do
|
|
328
|
+
|
|
329
|
+
Identify independent systems and boundaries; **on first entry** read **this bundle’s** `.agents/skills/system-architect/SKILL.md`.
|
|
330
|
+
|
|
331
|
+
1. **Invoke skill**: `system-architect`
|
|
332
|
+
2. **Framing**:
|
|
333
|
+
- Touchpoints / storage / core logic / external integrations
|
|
334
|
+
3. **Define systems**:
|
|
335
|
+
- ID / responsibility / boundary / dependency
|
|
336
|
+
4. **Physical layout** (CRITICAL):
|
|
337
|
+
- **Source root** per system (e.g. `src/packages/frontend`)
|
|
338
|
+
- **ASCII project tree**
|
|
339
|
+
5. **Output**: save to `.anws/v{N}/02_ARCHITECTURE_OVERVIEW.md`
|
|
340
|
+
|
|
341
|
+
**Human checkpoint #2**:
|
|
342
|
+
|
|
343
|
+
- Confirm system split makes sense.
|
|
344
|
+
|
|
345
|
+
### Why
|
|
346
|
+
|
|
347
|
+
System boundaries anchor parallel work, test layering, ADR scope lists.
|
|
348
|
+
|
|
349
|
+
### How to verify
|
|
350
|
+
|
|
351
|
+
- `02_ARCHITECTURE_OVERVIEW.md` meets **CRITICAL spec contract**.
|
|
352
|
+
- Human checkpoint #2 complete.
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## Step 5: Architecture decisions
|
|
357
|
+
|
|
358
|
+
### What to do
|
|
359
|
+
|
|
360
|
+
From Step 3 evaluation, **formally author ADRs** (re-reading `tech-evaluator` here **only** to locate sections in **`references/ADR_TEMPLATE.md`**; summaries cannot replace full structure).
|
|
361
|
+
|
|
362
|
+
> [!IMPORTANT]
|
|
363
|
+
> Turn Step 3’s comparison table into `03_ADR/*`. **Section order and required headings follow this bundle’s `tech-evaluator/references/ADR_TEMPLATE.md` as sole authority** (if SKILL digest conflicts, the file wins). ADR is the single cross-system decision record.
|
|
364
|
+
|
|
365
|
+
> [!NOTE]
|
|
366
|
+
> **Step 5 vs Step 3**: Step 5 promotes the Step 3 table into formal ADRs; **scope of impact** must match system IDs from Step 4’s `02_ARCHITECTURE_OVERVIEW.md`. See the NOTE under **Step 3** above for the table and rationale.
|
|
367
|
+
|
|
368
|
+
1. **From Step 3**: turn comparison table into formal ADRs
|
|
369
|
+
2. **Ingest Step 2.5 findings** if any—external benchmarks, methodology evidence into rationale and trade-offs
|
|
370
|
+
3. **Align to ADR template**: open and follow **`references/ADR_TEMPLATE.md`**
|
|
371
|
+
4. **If test strategy crosses systems**: capture layers, smoke/regression gates, key verification milestones
|
|
372
|
+
5. **Output**: e.g. `.anws/v{N}/03_ADR/ADR_001_TECH_STACK.md`
|
|
373
|
+
6. **Other decisions**: auth, protocols, test gates spanning systems
|
|
374
|
+
7. **Further ADRs**: `.anws/v{N}/03_ADR/ADR_00X_*.md`
|
|
375
|
+
|
|
376
|
+
**Checklist**:
|
|
377
|
+
|
|
378
|
+
- “Scope of impact” section present
|
|
379
|
+
- Status `Accepted`
|
|
380
|
+
- Clear rationale with alternatives contrasted
|
|
381
|
+
|
|
382
|
+
### Why
|
|
383
|
+
|
|
384
|
+
ADR turns evaluation into institutional memory; impact drives later design / ownership splits.
|
|
385
|
+
|
|
386
|
+
### How to verify
|
|
387
|
+
|
|
388
|
+
- All new/revised ADRs in this version obey **CRITICAL spec contract**.
|
|
389
|
+
- Checklist trio all true.
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## Step 6: Completion summary
|
|
394
|
+
|
|
395
|
+
### What to do
|
|
396
|
+
|
|
397
|
+
Summarize outputs and **update `AGENTS.md`** for the new version.
|
|
398
|
+
|
|
399
|
+
> [!IMPORTANT]
|
|
400
|
+
> **Update `AGENTS.md` in three areas**: current state (version line, task-list state, date), project structure (`.anws/v{N}` + source roots), navigation (`02` / `03` / 04–05 placeholders and next hops); **ADR ↔ SYSTEM_DESIGN** is cite-not-duplicate. **Do not** paste long Markdown samples here—headings and phrasing align with existing repo `AGENTS.md` or upstream seed.
|
|
401
|
+
|
|
402
|
+
### 6.1 Update AGENTS.md
|
|
403
|
+
|
|
404
|
+
Use host editing tools to replace those sections and per-system lines aligned with `02` (if systems known: one line per system → `04_SYSTEM_DESIGN/{system}.md`).
|
|
405
|
+
|
|
406
|
+
### 6.2 Update 00_MANIFEST.md
|
|
407
|
+
|
|
408
|
+
Mark document checklist items complete.
|
|
409
|
+
|
|
410
|
+
### 6.3 Agent context self-update
|
|
411
|
+
|
|
412
|
+
Change only `<!-- AUTO:BEGIN -->` … `<!-- AUTO:END -->`: stack summary, one-line-per-system boundaries, active ADR list—**shape and density** follow the existing `AGENTS.md` AUTO block; new `v{N+1}` overwrites the prior AUTO region.
|
|
413
|
+
|
|
414
|
+
### 6.4 Present outputs
|
|
415
|
+
|
|
416
|
+
Tell the user the phase is done; list artifacts; next steps `/design-system` or `/blueprint`.
|
|
417
|
+
|
|
418
|
+
### Why
|
|
419
|
+
|
|
420
|
+
`AGENTS.md` + MANIFEST are team entry—the genesis flow isn’t externally visible until they’re closed.
|
|
421
|
+
|
|
422
|
+
### How to verify
|
|
423
|
+
|
|
424
|
+
- The three `AGENTS.md` areas plus the AUTO block are applied; `00_MANIFEST.md` ticks match disk.
|
|
425
|
+
- Every path in **Output Goal** opens for the user.
|
|
426
|
+
- Next-hop guidance clear (`/design-system` or `/blueprint`).
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
<completion_criteria>
|
|
431
|
+
- **Concision & layout**: `CRITICAL concision & layout` honored; no synonym-stacked prose.
|
|
432
|
+
- Pre-Check and Git track-switch rules executed, or waived with justified statement.
|
|
433
|
+
- CRITICAL constraints met: no skill pre-read; main chain without skips; Step 3 did not pre-write ADR.
|
|
434
|
+
- `.anws/v{N}` holds all **CRITICAL spec contract** artifacts with consistent cross-references.
|
|
435
|
+
- Skill order concept-modeler → spec-writer → tech-evaluator → system-architect; ADR converges in Step 5.
|
|
436
|
+
- Step 2.5 `find-skills` optional; when absent workflow still completes.
|
|
437
|
+
- **ALPHA paired skills** paths only; no cross-read with shipped `templates/` same-name skills.
|
|
438
|
+
- Step 6 (subsections 6.1–6.4) complete; user receives artifact list and next-hop guidance.
|
|
439
|
+
</completion_criteria>
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "[ALPHA] Probe system risk, hidden coupling, and architectural blind spots (English narration). Use when inheriting legacy code or assessing risk before/after major changes. Produces `.anws/v{N}/00_PROBE_REPORT.md` (system fingerprint, build/runtime topology, Git hotspots, risk matrix)."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /probe (ALPHA)
|
|
6
|
+
|
|
7
|
+
<phase_context>
|
|
8
|
+
You are **Probe — System probing specialist**.
|
|
9
|
+
|
|
10
|
+
**Core mission**: Before or after an architecture refresh (`.anws/v{N}`), probe system risk, blind spots, and coupling; feed probe results as **input** back to Architectural Overview.
|
|
11
|
+
**Capabilities**: Two-tier probe orchestration (light / deep); invoke `nexus-query`, `nexus-mapper`, `runtime-inspector`; Pattern A/B branching; converge gaps and risk matrix; write the report per contract to disk.
|
|
12
|
+
**Constraints**: **Observe** and **report** only—do not modify architecture or application code; do not duplicate skill internals, only orchestrate calls; do not soften the gate that requires going through skills just because **sub-agents** are unavailable.
|
|
13
|
+
**Relationship to the user**: You are the user’s **scout**, supplying auditable intelligence for major decisions; the user explicitly controls `/probe --deep` and scoped module paths.
|
|
14
|
+
**Output goal**: `.anws/v{N}/00_PROBE_REPORT.md` (default `v1` if no version directory exists).
|
|
15
|
+
</phase_context>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## CRITICAL Method anchor
|
|
20
|
+
|
|
21
|
+
> [!IMPORTANT]
|
|
22
|
+
> The value of probing lies in **actionable sobriety**, not a “looks professional” directory checklist.
|
|
23
|
+
>
|
|
24
|
+
> - **Observe, don’t refactor architecture**: You only record code, build, runtime, and Git facts; do not unilaterally change `.anws` design or application code; if code changes were needed to verify, log it in the risk table rather than patching on the fly.
|
|
25
|
+
> - **Evidence chain, not assertions**: Structural claims must trace to nexus-query output, `.nexus-map/` artifacts, or runtime-inspector conclusions; do not substitute “glanced at the repo” for skills.
|
|
26
|
+
> - **Orchestrate, don’t embed**: Do not transcribe skill script logic into the workflow; invocation boundaries, order, and acceptance are defined here; detail stays in each skill.
|
|
27
|
+
> - **Converge, don’t repeat**: Each fact keeps one primary narrative in the report; elsewhere cite or table-cell point to it—avoid copy-pasting across sections.
|
|
28
|
+
> - **Concision**: risk matrix / gap cells—**one issue, one sentence**; same spirit as `/challenge` findings table (do not paste challenge body).
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## CRITICAL Writing constraints (norm gates cannot be weakened)
|
|
33
|
+
|
|
34
|
+
> [!IMPORTANT]
|
|
35
|
+
> **Two-tier probing (skills mandatory—no probing empty-handed)**:
|
|
36
|
+
>
|
|
37
|
+
> | Tier | Trigger | Skills invoked | Output |
|
|
38
|
+
> | ------ | ------ | ---------- | ------ |
|
|
39
|
+
> | **Light** | Default | `nexus-query` + `runtime-inspector` | Targeted query results + process boundaries |
|
|
40
|
+
> | **Deep** | User requests `/probe --deep` **or** project source file count > 100 | `nexus-mapper` + `runtime-inspector` | Full `.nexus-map/` knowledge base + process boundaries |
|
|
41
|
+
>
|
|
42
|
+
> **Hard constraints**:
|
|
43
|
+
>
|
|
44
|
+
> - **Do not** skip skill calls and write the report anyway.
|
|
45
|
+
> - **Do not** replace `nexus-query` (light path) with directory walks or other ad hoc means.
|
|
46
|
+
> - **Must** run at least light probing; deep path must execute `nexus-mapper` end to end.
|
|
47
|
+
> - **`runtime-inspector` must run at both tiers** (process boundary analysis is not optional).
|
|
48
|
+
>
|
|
49
|
+
> **Motto**: If the report never points back to skill output, command traces, or a `.nexus-map/` **relative path**, it is prose cosplay—not a probe.
|
|
50
|
+
>
|
|
51
|
+
> **Pattern A / Pattern B**:
|
|
52
|
+
>
|
|
53
|
+
> - **Pattern A (pre-Genesis)**: Scout legacy code; output feeds genesis input.
|
|
54
|
+
> - **Pattern B (post-Genesis)**: Verify design–implementation consistency (gap analysis).
|
|
55
|
+
> - **Rule**: If `.anws/v{N}/` exists → Pattern B; else → Pattern A.
|
|
56
|
+
>
|
|
57
|
+
> **Probe report contract**:
|
|
58
|
+
> - **Precise**: Distinguish “direct skill output”, “consistent inference”, and “user-to-confirm hypothesis”—do not blend into one voice.
|
|
59
|
+
> - **Grounded**: Key sentences can point back to a specific command, `.nexus-map/` file name, or inspector subsection title.
|
|
60
|
+
> - **Non-redundant**: System Fingerprint and Topology sections do not copy each other wholesale; general sections reference in-section detail.
|
|
61
|
+
> - **No vague filler**: No objectless “possible risk” or “recommend optimization” without a module path, severity, or alignment to a matrix row.
|
|
62
|
+
>
|
|
63
|
+
> **Risk matrix row format**: Each column **Risk / Impact / Recommendation** is filled with **minimal** phrases or short sentences only—no prose paragraphs; blockers must read clearly in the severity column.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Sub-agent orchestration (optional acceleration)
|
|
68
|
+
|
|
69
|
+
**Parent agent**: Holds **probe_level, Pattern A/B, scoped modules, `v{N}`, report path**; runs Step 0; **sole writer** of `00_PROBE_REPORT.md`; merges sub-agent fragments into one narrative and one matrix.
|
|
70
|
+
**Sub-agents (if available)**: Execute slices (e.g. `--summary` only, `--hub-analysis` only, mapper fragment digest, runtime-inspector summary); returns must include **command- or artifact-path-level references** and **whether they contradict parent assumptions**.
|
|
71
|
+
**Handoff checklist**: Subtask IDs align with parent steps; sub-agents **must not** write `.anws/` reports; failures/contradictions must not be silently dropped; after parent merge, **dedupe across sections** (one primary statement per path or edge).
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Step 0: Tier and pattern decision
|
|
76
|
+
|
|
77
|
+
### What to do
|
|
78
|
+
|
|
79
|
+
Determine `probe_level` and `probe_mode`; write the decision into the report metadata.
|
|
80
|
+
**Tier rules**:
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
Checks:
|
|
84
|
+
1. Did the user explicitly request `/probe --deep` (or an equivalent deep flag)?
|
|
85
|
+
2. Is project source file count > 100?
|
|
86
|
+
|
|
87
|
+
Outcome:
|
|
88
|
+
├── If either is true → probe_level = deep → skip Step 1, go to Step 2
|
|
89
|
+
└── If neither → probe_level = light → go to Step 1
|
|
90
|
+
|
|
91
|
+
Pattern:
|
|
92
|
+
├── `.anws/v{N}/` exists → Pattern B (Step 3 runs Gap)
|
|
93
|
+
└── Does not exist → Pattern A (Step 3 marked N/A or briefly “no architecture baseline”)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Why
|
|
97
|
+
|
|
98
|
+
**Motto**: Choose instruments before findings.
|
|
99
|
+
**Bar**: A good decision leaves later steps unambiguous; a bad one leaves the report straddling light/deep with a broken evidence chain.
|
|
100
|
+
|
|
101
|
+
### How to verify
|
|
102
|
+
|
|
103
|
+
- Output explicitly records `probe_level` and `probe_mode`.
|
|
104
|
+
- Deep path does not mistakenly run light-only queries; if the user insists on both, the report states why.
|
|
105
|
+
- If `v{N}` does not exist, default to v1 and confirm the target directory can be created before writing.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Step 1: Light probing (`nexus-query` + `runtime-inspector`)
|
|
110
|
+
|
|
111
|
+
### What to do
|
|
112
|
+
|
|
113
|
+
If and only if `probe_level = light`: complete this step; if deep, skip entirely.
|
|
114
|
+
**Must** invoke `nexus-query` in skill-document order: **global structure summary** → **hub analysis (high-coupling hotspots)** → (if scoped path) **impact analysis**. **Concrete CLI and script paths** live in `nexus-query`’s `SKILL.md`; **this workflow does not embed** a command block.
|
|
115
|
+
|
|
116
|
+
Then **must** invoke `runtime-inspector`: identify entry (main), process spawn chain (spawn/fork), IPC contract status (Strong/Weak/None).
|
|
117
|
+
Output: three-part `nexus-query` digest + **Process roots + contract status**.
|
|
118
|
+
|
|
119
|
+
### Why
|
|
120
|
+
|
|
121
|
+
**Motto**: Light is not laziness—it is entropy control with the right tools.
|
|
122
|
+
**Bar**: Good light probing exposes coupling and boundaries within roughly hundreds of lines; bad light probing is a hand-written file tree fooling itself.
|
|
123
|
+
|
|
124
|
+
### How to verify
|
|
125
|
+
|
|
126
|
+
- `--summary` and `--hub-analysis` commands actually ran—or equivalent proof via sub-agent execution and backfill (parent verifies on merge).
|
|
127
|
+
- When `--impact` applies, `<scoped_module_path>` matches user intent; if skipped, section three states **why**.
|
|
128
|
+
- runtime-inspector section is non-empty; if the environment forbids execution, record as **blocking risk**, not pretend completion.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Step 2: Deep probing (`nexus-mapper` + `runtime-inspector`)
|
|
133
|
+
|
|
134
|
+
### What to do
|
|
135
|
+
|
|
136
|
+
When `probe_level = deep`: **must** invoke `nexus-mapper` to produce a complete `.nexus-map/` (core artifacts per skill—typically `INDEX.md`, `arch/systems.md`, `arch/dependencies.md`, `concepts/concept_model.json`, `hotspots/git_forensics.md`); then **must** invoke `runtime-inspector` (same as Step 1). When `probe_level = light`, skip this step entirely.
|
|
137
|
+
|
|
138
|
+
### Why
|
|
139
|
+
|
|
140
|
+
**Motto**: Only with a complete graph can we speak of time and causality.
|
|
141
|
+
**Bar**: Good deep probing makes cold-start docs and topology diagrams mutually reinforcing; bad deep probing is folders with no readable summary.
|
|
142
|
+
|
|
143
|
+
### How to verify
|
|
144
|
+
|
|
145
|
+
- Report states `.nexus-map/` root as a **relative path**.
|
|
146
|
+
- Can excerpt **module boundaries** and **Git hotspots** from mapper artifacts into the matching report sections.
|
|
147
|
+
- runtime-inspector output meets Step 1 acceptance (required for both deep and light).
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Step 3: Gap analysis (Pattern B only)
|
|
152
|
+
|
|
153
|
+
### What to do
|
|
154
|
+
|
|
155
|
+
Only when `.anws/v{N}/` exists: compare implementation evidence (Steps 1/2) against system boundaries, concepts, and constraints in Architectural Overview. List deviations: **factual mismatch**, **implicit design**, **concept drift**.
|
|
156
|
+
Pattern A: one line—**no finalized `.anws` architecture baseline yet, Gap not applicable**—or an actionable **suggest genesis first** item—**do not fake a comparison**.
|
|
157
|
+
|
|
158
|
+
### Why
|
|
159
|
+
|
|
160
|
+
**Motto**: Drift without an anchor packages unknown as insight.
|
|
161
|
+
**Bar**: Good gaps point at specific paragraphs or overview subsections; bad gaps are adjectives without citations.
|
|
162
|
+
|
|
163
|
+
### How to verify
|
|
164
|
+
|
|
165
|
+
- Pattern B: each deviation has **observational evidence** (file path, coupling pair, or mapper entry name).
|
|
166
|
+
- Pattern A: no hollow “todo improvement” lists.
|
|
167
|
+
- If sub-agents assisted, parent dedupes after merge so one deviation does not repeat.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Step 4: Risk matrix (Change impact)
|
|
172
|
+
|
|
173
|
+
### What to do
|
|
174
|
+
|
|
175
|
+
Synthesize prior work: **change impact**. Produce a **risk matrix** (severity tiers; each row keeps **risk / impact / recommendation** minimal; hooks paths, edges, or contract status; consistent with earlier sections). Internal prompt: Which hubs does new work touch? Cascading failure? Timing/deploy dependencies?
|
|
176
|
+
|
|
177
|
+
### Why
|
|
178
|
+
|
|
179
|
+
**Motto**: Alarmism without a matrix does not belong in architecture review.
|
|
180
|
+
**Bar**: Good matrices let readers prioritize today’s actions; bad matrices recap summaries without **assignable** rows.
|
|
181
|
+
|
|
182
|
+
### How to verify
|
|
183
|
+
|
|
184
|
+
- At least one row ties **coupling hotspots or process contracts** directly or indirectly.
|
|
185
|
+
- Row width stays phrase-level, not paragraphs.
|
|
186
|
+
- Blockers are identifiable in severity; recommendations map to verifiable next steps (e.g. “run test X once”).
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Step 5: Generate report
|
|
191
|
+
|
|
192
|
+
### What to do
|
|
193
|
+
|
|
194
|
+
Save probe results to `.anws/v{N}/00_PROBE_REPORT.md`.
|
|
195
|
+
Metadata: **timestamp, `probe_mode` (A/B), `probe_level` (light/deep)**.
|
|
196
|
+
Body must cover these **section responsibilities** (titles may be tweaked slightly—**do not drop a responsibility**): 1 System Fingerprint; 2 Build Topology; 3 Runtime Topology; 4 Temporal Topology (required for deep; for light without mapper, state omission explicitly); 5 Gap Analysis (Pattern B; Pattern A states N/A); 6 Risk Matrix (column minimalism per **CRITICAL probe report writing contract** above). **This workflow does not paste** a full Markdown skeleton.
|
|
197
|
+
|
|
198
|
+
### Why
|
|
199
|
+
|
|
200
|
+
**Motto**: Probes not written to disk never happened.
|
|
201
|
+
**Bar**: Good paths are fixed and diffable; bad reports live only in chat and are unauditable.
|
|
202
|
+
|
|
203
|
+
### How to verify
|
|
204
|
+
|
|
205
|
+
- File path is exactly `.anws/v{N}/00_PROBE_REPORT.md`.
|
|
206
|
+
- All six section responsibilities present; missing data uses explicit **unavailable / skipped / N/A**—no blank sections feigning completion.
|
|
207
|
+
- No emoji throughout; wording may include necessary English proper nouns (tool names, paths) without breaking the primary English narrative.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
<completion_criteria>
|
|
212
|
+
- Step 0 `probe_level`, `probe_mode`, and report header match.
|
|
213
|
+
- **Light**: required `nexus-query` commands ran (or sub-agent equivalent verified by parent), `runtime-inspector` complete.
|
|
214
|
+
- **Deep**: `nexus-mapper` produced `.nexus-map/`, `runtime-inspector` complete.
|
|
215
|
+
- Pattern B: gaps evidenced; Pattern A: no fabricated comparison.
|
|
216
|
+
- Risk matrix rows keep **risk / impact / recommendation** minimal yet actionable; severity supports ordering.
|
|
217
|
+
- `.anws/v{N}/00_PROBE_REPORT.md` written with all six sections and no substantive cross-section duplication (**no** reliance on a long template pasted in this workflow).
|
|
218
|
+
- No emoji; two-tier table, no empty-handed probing, and A/B pattern gates unchanged in strength.
|
|
219
|
+
</completion_criteria>
|