dsh-plugin-strict-spec 0.5.1 → 0.6.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 +13 -13
- package/README.zh.md +10 -12
- package/dist/cli/strict-spec-cli.js +108 -770
- package/dist/skills/strict-roadmap-plan/SKILL.md +49 -139
- package/dist/skills/strict-roadmap-recommend/SKILL.md +63 -282
- package/dist/skills/strict-roadmap-reorder/SKILL.md +40 -158
- package/dist/skills/strict-roadmap-review/SKILL.md +48 -144
- package/dist/skills/strict-roadmap-transition/SKILL.md +52 -274
- package/dist/skills/strict-scene-edit/SKILL.md +51 -121
- package/dist/skills/strict-spec-apply/SKILL.md +63 -173
- package/dist/skills/strict-spec-architecture/SKILL.md +39 -97
- package/dist/skills/strict-spec-archive/SKILL.md +57 -127
- package/dist/skills/strict-spec-auto/SKILL.md +98 -270
- package/dist/skills/strict-spec-brainstorm/SKILL.md +73 -176
- package/dist/skills/strict-spec-bugfix/SKILL.md +101 -225
- package/dist/skills/strict-spec-design/SKILL.md +55 -124
- package/dist/skills/strict-spec-design-sync/SKILL.md +55 -123
- package/dist/skills/strict-spec-init/SKILL.md +45 -93
- package/dist/skills/strict-spec-maintenance/SKILL.md +44 -94
- package/dist/skills/strict-spec-modify/SKILL.md +44 -113
- package/dist/skills/strict-spec-propose/SKILL.md +180 -495
- package/dist/skills/strict-spec-review/SKILL.md +121 -273
- package/dist/skills/strict-spec-ship/SKILL.md +25 -60
- package/dist/skills/strict-spec-spec-edit/SKILL.md +35 -84
- package/dist/skills/strict-spec-sync-specs/SKILL.md +44 -94
- package/dist/skills/strict-spec-verify/SKILL.md +28 -43
- package/dist/skills/strict-tech-edit/SKILL.md +43 -124
- package/dist/skills/strict-tech-sync/SKILL.md +60 -162
- package/package.json +2 -1
|
@@ -8,13 +8,11 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Implement an active strict change task by task, so the repository matches its
|
|
12
|
+
planning artifacts and every task marked complete is actually done.
|
|
12
13
|
|
|
13
14
|
## This Skill's Commands
|
|
14
15
|
|
|
15
|
-
If you cannot remember the exact command used by this skill, look it up here
|
|
16
|
-
before running anything. Do not guess.
|
|
17
|
-
|
|
18
16
|
```yaml
|
|
19
17
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
20
18
|
tech-status: strict-spec-cli tech-status
|
|
@@ -26,52 +24,18 @@ scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
|
|
|
26
24
|
verify: strict-spec-cli verify <change-name>
|
|
27
25
|
```
|
|
28
26
|
|
|
29
|
-
## YAML Writing Rules
|
|
30
|
-
|
|
31
|
-
- Preserve valid strict YAML structures when updating `tasks.yaml`,
|
|
32
|
-
`questions.yaml`, and delta specs. Do not replace structured fields with
|
|
33
|
-
Markdown prose.
|
|
34
|
-
- If artifact fields are unclear, use `strict-spec-cli schema-show <schema-name>`;
|
|
35
|
-
installed skills do not carry a `templates` directory.
|
|
36
|
-
- Shared schema cache root: `~/.strict-spec-schemas/`. When a YAML artifact already declares `schema_file`, resolve that relative path under the shared cache root to inspect the concrete schema file without relying on a local templates directory.
|
|
37
|
-
- If a valid artifact example would clarify the shape, use
|
|
38
|
-
`strict-spec-cli sample-show <sample-name>`; installed skills do not rely on a
|
|
39
|
-
local `examples` directory.
|
|
40
|
-
- Use block scalars only for free-text content. Prefer `>-` for wrapped prose
|
|
41
|
-
such as longer `question`, `context`, `answer`, and spec `statement` values.
|
|
42
|
-
Use `|` only when literal line breaks must be preserved as part of the value.
|
|
43
|
-
- Quote short strings that may contain YAML-sensitive characters or ambiguous
|
|
44
|
-
scalar values, including `command` strings, URLs, paths, text containing `:`
|
|
45
|
-
or `#`, leading `-`, JSON-like fragments, boolean-like words, and timestamp-
|
|
46
|
-
like values.
|
|
47
|
-
- Keep short structural fields as plain scalars unless quoting is needed for
|
|
48
|
-
correctness. Do not force IDs, enums, schema identifiers, artifact types,
|
|
49
|
-
task references, or similar fields into block scalars.
|
|
50
|
-
- After editing YAML artifacts, self-check indentation, list nesting, quote
|
|
51
|
-
closure, and colon spacing before running the documented strict commands.
|
|
52
|
-
|
|
53
27
|
## CLI-Only YAML Authoring Protocol
|
|
54
28
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
the bundled schema and example keys with their cache-resolved paths, bound to
|
|
60
|
-
the artifact kind and current where a copy would go stale. Validate the result
|
|
61
|
-
with `strict-spec-cli verify <change-name>`.
|
|
62
|
-
|
|
63
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
64
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
65
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
66
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
67
|
-
than a reason to improvise.
|
|
29
|
+
This skill writes `change-planning-state`. Before its first mutation, run
|
|
30
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
|
|
31
|
+
follow it, including its rule to stop and report a missing command rather than
|
|
32
|
+
work around it; validate the result with `strict-spec-cli verify <change-name>`.
|
|
68
33
|
|
|
69
34
|
## Preferred Human Language
|
|
70
35
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
user
|
|
74
|
-
the active user message asks otherwise.
|
|
36
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
37
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
38
|
+
active user message asks otherwise.
|
|
75
39
|
|
|
76
40
|
## Steps
|
|
77
41
|
|
|
@@ -79,134 +43,60 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
79
43
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
80
44
|
run `init` from this skill.
|
|
81
45
|
|
|
82
|
-
1. **Select the change** —
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
2. **Load current
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
`strict-spec-cli schema-show delta-tech`
|
|
133
|
-
for the contract) so it merges on archive — do not edit the live standard
|
|
134
|
-
under `.strict-spec-driven/tech/` directly.
|
|
135
|
-
|
|
136
|
-
5. **Mark tasks with the strict apply command** — after you finish the next
|
|
137
|
-
pending task, run:
|
|
138
|
-
```bash
|
|
139
|
-
strict-spec-cli apply <change-name>
|
|
140
|
-
```
|
|
141
|
-
and confirm the returned `sectionName` and `taskId` match the task you just
|
|
142
|
-
completed.
|
|
143
|
-
|
|
144
|
-
`apply` is positional, not addressed: it completes whichever task is next in
|
|
145
|
-
list order, so a returned `taskId` that does not match your work means the
|
|
146
|
-
list order and the work order have diverged. Work finished out of list order
|
|
147
|
-
is recorded by addressing the task by id with
|
|
148
|
-
`strict-spec-cli generate <change-name> tasks --implementation --task <id> --status complete`
|
|
149
|
-
rather than by running `apply` again. Read `strict-spec-cli generate --help --json`
|
|
150
|
-
(or `--help`) first. Choose `--implementation`, `--testing`, or `--verification`
|
|
151
|
-
to match the recorded section. Each takes no value and opens one task group;
|
|
152
|
-
following task fields belong to it, and each additional task needs its own
|
|
153
|
-
selector. Existing task text and commands survive this status-only edit.
|
|
154
|
-
When the remaining tasks are simply in
|
|
155
|
-
the wrong sequence, fix the list itself with `--before <task-id>` or
|
|
156
|
-
`--after <task-id>` so later `apply` calls land on the right task.
|
|
157
|
-
|
|
158
|
-
6. **Do not use `apply` as a read-only status command** — the strict apply
|
|
159
|
-
command mutates `tasks.yaml` by marking the first pending task complete. Read
|
|
160
|
-
`tasks.yaml` directly when you need task status without changing it.
|
|
161
|
-
|
|
162
|
-
7. **Handle testing tasks carefully** — for tasks in the `Testing` section, run
|
|
163
|
-
the task's `command` and confirm it succeeds before marking the task
|
|
164
|
-
complete.
|
|
165
|
-
|
|
166
|
-
8. **Update delta specs and delta tech after coding** — re-read the strict YAML
|
|
167
|
-
delta specs and make sure they match what was actually implemented. If the
|
|
168
|
-
change carries delta tech artifacts under `changes/<name>/tech/`, re-read
|
|
169
|
-
them too and confirm the rule operations still match the standard change
|
|
170
|
-
that was actually implemented.
|
|
171
|
-
|
|
172
|
-
8b. **Recheck scene coverage when the change carries delta scenes** — if
|
|
173
|
-
`changes/<name>/scenes/` holds any artifact, re-read those scenes against
|
|
174
|
-
what was built and run `strict-spec-cli scene-status --scene <scene-id>` for
|
|
175
|
-
each one. `verify` blocks on a flow step naming neither a covering
|
|
176
|
-
requirement nor an explicit no-coverage reason, and its diagnostic names the
|
|
177
|
-
runnable command that records the coverage, so treat that diagnostic as the
|
|
178
|
-
remedy rather than rediscovering the rule. A step whose covering requirement
|
|
179
|
-
changed id during implementation is corrected through that command; a step
|
|
180
|
-
that turned out to need a requirement nobody wrote is a finding to raise,
|
|
181
|
-
never a waiver to invent. A change carrying no delta scene has nothing to
|
|
182
|
-
recheck here.
|
|
183
|
-
|
|
184
|
-
9. **Gitignore hygiene** — once all tasks are complete, check for non-source
|
|
185
|
-
artifacts that should not be committed:
|
|
186
|
-
- run `git status --short` to find newly created untracked files
|
|
187
|
-
- identify non-source artifacts such as build output (`dist/`, `build/`,
|
|
188
|
-
`out/`), dependency directories (`node_modules/`, `vendor/`), cache
|
|
189
|
-
directories (`.cache/`, `.tmp/`), log files (`*.log`), and other
|
|
190
|
-
generated files
|
|
191
|
-
- add matching entries to `.gitignore` automatically
|
|
192
|
-
- do not ignore source code, configuration, or files that are part of the
|
|
193
|
-
deliberate project output
|
|
194
|
-
|
|
195
|
-
10. **Finish cleanly** — read `tasks.yaml` again to confirm there are no
|
|
196
|
-
remaining `status: pending` entries, then suggest `strict-spec-verify`.
|
|
46
|
+
1. **Select the change** — use the change the user named; otherwise `modify`
|
|
47
|
+
without an argument lists the active ones.
|
|
48
|
+
|
|
49
|
+
2. **Load current context** — treat prior chat context as stale until it is
|
|
50
|
+
revalidated. Read the change's planning artifacts, delta specs, delta
|
|
51
|
+
scenes, and delta tech; the relevant main specs; and the standards governing
|
|
52
|
+
the files you will touch (`tech-status`). Check the lessons
|
|
53
|
+
`lesson-status --category <category>` ranks for the affected area against
|
|
54
|
+
this work by their `applies_when`: they are warnings rather than rules, and
|
|
55
|
+
a high occurrence count deserves weight.
|
|
56
|
+
|
|
57
|
+
3. **Gate on open questions** — while `questions.yaml.open` is non-empty, infer
|
|
58
|
+
no answer: explain each question's missing decision, its impact on scope,
|
|
59
|
+
implementation, tests, or spec behavior, and a recommended answer with
|
|
60
|
+
tradeoffs, then stop until every entry is resolved by an explicit answer.
|
|
61
|
+
|
|
62
|
+
4. **Implement tasks in order** — take pending tasks top to bottom, reading the
|
|
63
|
+
relevant code before editing it.
|
|
64
|
+
- Preserve every `proposal.yaml.unchanged_behavior` item.
|
|
65
|
+
- Never break a MUST rule of an applicable standard, and follow each SHOULD
|
|
66
|
+
rule unless `design.yaml` justifies a deviation. When a task can only be
|
|
67
|
+
finished by breaking a MUST rule, raise an open question. A standard that
|
|
68
|
+
must itself change is carried as delta tech under `changes/<name>/tech/`
|
|
69
|
+
(`schema-show delta-tech`), never as a live edit.
|
|
70
|
+
- A Testing task is done only when its `command` has run and passed.
|
|
71
|
+
- Mark each task complete as soon as it is done: `apply` marks the
|
|
72
|
+
next pending task complete, and the `taskId` it returns must be the task
|
|
73
|
+
you just finished.
|
|
74
|
+
- `apply` is positional, not addressed. Work finished out of list order is
|
|
75
|
+
recorded by addressing the task by id through `generate <change-name>
|
|
76
|
+
tasks` rather than by running `apply` again, and a task that must run
|
|
77
|
+
before existing pending work is placed with its `--before`/`--after`
|
|
78
|
+
anchors rather than appended (`strict-spec-cli generate --help --json`).
|
|
79
|
+
- `apply` mutates `tasks.yaml`; read the file, never `apply`, for status.
|
|
80
|
+
|
|
81
|
+
5. **Reconcile the delta artifacts with what was built** — the delta specs and
|
|
82
|
+
delta tech must describe the implementation; resolve a mismatch before
|
|
83
|
+
verify, through `strict-spec-modify` when an artifact must change. For each
|
|
84
|
+
delta scene, run `scene-status --scene <scene-id>`: `verify` blocks an
|
|
85
|
+
uncovered flow step and its diagnostic names the command that records the
|
|
86
|
+
coverage. A step needing a requirement nobody wrote is a finding to raise,
|
|
87
|
+
never a waiver to invent.
|
|
88
|
+
|
|
89
|
+
6. **Gitignore hygiene** — once every task is complete, run `git status --short`
|
|
90
|
+
and add `.gitignore` entries for generated non-source artifacts such as
|
|
91
|
+
build output, dependency and cache directories, and logs; never ignore
|
|
92
|
+
source, configuration, or deliberate project output.
|
|
93
|
+
|
|
94
|
+
7. **Finish** — done when `tasks.yaml` holds no pending task; suggest
|
|
95
|
+
`strict-spec-verify`.
|
|
197
96
|
|
|
198
97
|
## Rules
|
|
199
98
|
|
|
200
|
-
-
|
|
201
|
-
|
|
202
|
-
-
|
|
203
|
-
|
|
204
|
-
- Open questions require a problem explanation, impact analysis, recommendation,
|
|
205
|
-
and explicit human answer before continuing; encode the impact and
|
|
206
|
-
recommendation in `questions.yaml.open[*].context`
|
|
207
|
-
- Implemented code must satisfy applicable technical standards under
|
|
208
|
-
`.strict-spec-driven/tech/`: never break a MUST rule, follow SHOULD rules by
|
|
209
|
-
default, and raise a conflict instead of silently violating a standard
|
|
210
|
-
- When a change must alter a standard, do it through a delta tech artifact under
|
|
211
|
-
the change's `tech/` directory, never by editing the live standard during the
|
|
212
|
-
change
|
|
99
|
+
- Complete tasks in list order unless a clear dependency requires otherwise,
|
|
100
|
+
and never run `apply` to inspect status.
|
|
101
|
+
- An open question carries the problem, its impact, and a recommendation in
|
|
102
|
+
`questions.yaml.open[*].context`.
|
|
@@ -8,21 +8,12 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
and render
|
|
13
|
-
|
|
14
|
-
`ARCHITECTURE.md` is a generated file. It is never hand-edited. Everything a reader
|
|
15
|
-
sees in it comes from strict YAML: the components, data flows, and architecture
|
|
16
|
-
decisions come from the architecture artifact, and the specification-surface and
|
|
17
|
-
technical-standard sections are projected from the spec index, the main specs,
|
|
18
|
-
and `.strict-spec-driven/tech/`. Your job is the architecture artifact; the CLI
|
|
19
|
-
owns rendering, comparison, and validation.
|
|
11
|
+
Author or refresh `.strict-spec-driven/architecture.yaml` from repository
|
|
12
|
+
evidence and render `ARCHITECTURE.md` from it. The document is generated and
|
|
13
|
+
never hand-edited; the CLI owns rendering, comparison, and validation.
|
|
20
14
|
|
|
21
15
|
## This Skill's Commands
|
|
22
16
|
|
|
23
|
-
If you cannot remember the exact command used by this skill, look it up here
|
|
24
|
-
before running anything. Do not guess.
|
|
25
|
-
|
|
26
17
|
```yaml
|
|
27
18
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
28
19
|
architecture-status: strict-spec-cli architecture-status
|
|
@@ -36,50 +27,25 @@ tech-status: strict-spec-cli tech-status
|
|
|
36
27
|
|
|
37
28
|
## CLI-Only YAML Authoring Protocol
|
|
38
29
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
the bundled schema and example keys with their cache-resolved paths, bound to
|
|
44
|
-
the artifact kind and current where a copy would go stale. Validate the result
|
|
45
|
-
with `strict-spec-cli architecture-status`.
|
|
46
|
-
|
|
47
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
48
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
49
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
50
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
51
|
-
than a reason to improvise.
|
|
30
|
+
This skill writes `architecture-state`. Before its first mutation, run
|
|
31
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
|
|
32
|
+
follow it, including its rule to stop and report a missing command rather than
|
|
33
|
+
work around it; validate the result with `strict-spec-cli architecture-status`.
|
|
52
34
|
|
|
53
35
|
## Preferred Human Language
|
|
54
36
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
architecture prose, unless that file is absent or the active user message asks
|
|
59
|
-
otherwise.
|
|
37
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
38
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, including
|
|
39
|
+
generated architecture prose, unless the active user message asks otherwise.
|
|
60
40
|
|
|
61
41
|
## What Belongs in the Architecture Artifact
|
|
62
42
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
components the flow crosses
|
|
70
|
-
- **decisions** — the architectural decision, its rationale, the alternatives
|
|
71
|
-
that were rejected, and its status
|
|
72
|
-
|
|
73
|
-
Keep out of it anything the renderer already projects:
|
|
74
|
-
|
|
75
|
-
- spec ids, titles, paths, or requirement counts — these come from
|
|
76
|
-
`.strict-spec-driven/specs/INDEX.yaml` and the main specs
|
|
77
|
-
- technical-standard rules, strengths, or categories — these come from
|
|
78
|
-
`.strict-spec-driven/tech/`
|
|
79
|
-
- project context prose — this comes from the `context` field of
|
|
80
|
-
`.strict-spec-driven/config.yaml`
|
|
81
|
-
|
|
82
|
-
Duplicating projected content creates a second source of truth that drifts.
|
|
43
|
+
Only what no other strict artifact holds: components (responsibility,
|
|
44
|
+
boundaries, dependencies, implementation paths), data flows, and architectural
|
|
45
|
+
decisions with their rationale and rejected alternatives. The renderer already
|
|
46
|
+
projects spec ids and requirements from the specs, technical-standard rules from
|
|
47
|
+
`.strict-spec-driven/tech/`, and project context from `config.yaml`; copying any
|
|
48
|
+
of them into the artifact creates a second source of truth that drifts.
|
|
83
49
|
|
|
84
50
|
## Steps
|
|
85
51
|
|
|
@@ -87,57 +53,33 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If
|
|
|
87
53
|
`.strict-spec-driven/` is missing, stop immediately and tell the user to run
|
|
88
54
|
`/strict-spec-init`. Do not run `init` from this skill.
|
|
89
55
|
|
|
90
|
-
1. **
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
whether the artifact validates, how many components, data flows, and
|
|
94
|
-
decisions it declares, and which mapped implementation paths no longer exist.
|
|
95
|
-
Treat reported mapping drift as work to do: a component mapped to a deleted
|
|
96
|
-
file is either a stale mapping or a component that no longer exists.
|
|
97
|
-
|
|
98
|
-
3. **Inspect the schema when the shape is unclear** — run
|
|
99
|
-
`strict-spec-cli schema-show architecture` and
|
|
100
|
-
`strict-spec-cli sample-show architecture`. Do not guess field names.
|
|
101
|
-
|
|
102
|
-
4. **Gather repository evidence before writing** — derive components from the
|
|
103
|
-
real source layout, not from an idealized picture: read the top-level source
|
|
104
|
-
directories, the CLI or entry-point wiring, the test layout, and the existing
|
|
105
|
-
strict artifacts. Run `strict-spec-cli tech-status` so the architecture you
|
|
106
|
-
describe is consistent with the standards that bind the code.
|
|
107
|
-
|
|
108
|
-
5. **Write or update `.strict-spec-driven/architecture.yaml` through the CLI** — invoke `strict-spec-cli architecture-edit` once per header, component, data-flow, decision, nested list addition, or exact named removal. Never edit the YAML directly. Keep component,
|
|
109
|
-
flow, and decision ids stable across edits: they are the anchors readers and
|
|
110
|
-
diffs rely on. Preserve authoring order, because the renderer emits
|
|
111
|
-
components, flows, and decisions in document order. Record a decision only
|
|
112
|
-
when it constrains future work; a decision with no rationale and no rejected
|
|
113
|
-
alternative is a description, not a decision.
|
|
56
|
+
1. **Read the current state** — run `architecture-status`. A component mapped
|
|
57
|
+
to a deleted file is a stale mapping or a removed component; fix it, never
|
|
58
|
+
delete the mapping to silence it.
|
|
114
59
|
|
|
115
|
-
|
|
116
|
-
|
|
60
|
+
2. **Gather evidence** — derive components and flows from the real source
|
|
61
|
+
layout, entry-point wiring, and tests, not from an idealized picture, and run
|
|
62
|
+
`tech-status` so the description agrees with the standards binding the code.
|
|
63
|
+
`schema-show architecture` and `sample-show architecture` render the shape.
|
|
117
64
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
65
|
+
3. **Write through `architecture-edit`** — one named upsert or exact removal at
|
|
66
|
+
a time; read `strict-spec-cli architecture-edit --help --json` for its
|
|
67
|
+
arguments. Keep ids stable, since renaming one reads as a deletion plus an
|
|
68
|
+
addition, and keep authoring order, which is render order. Record a decision
|
|
69
|
+
only when it constrains future work.
|
|
122
70
|
|
|
123
|
-
|
|
71
|
+
4. **Render and confirm** — run `architecture-generate`, then
|
|
72
|
+
`architecture-status` and `architecture-generate --check`. Done when status
|
|
73
|
+
is clean with no mapping drift and the check passes.
|
|
124
74
|
|
|
125
|
-
`
|
|
126
|
-
|
|
127
|
-
the document is stale or absent, naming which source artifact changed. It is an
|
|
128
|
-
on-demand check: it is deliberately not wired into `verify`, `ready`, or
|
|
129
|
-
`archive`.
|
|
75
|
+
`architecture-generate --check` is the on-demand drift gate; it is not wired
|
|
76
|
+
into `verify`, `ready`, or `archive`.
|
|
130
77
|
|
|
131
78
|
## Rules
|
|
132
79
|
|
|
133
|
-
- Never hand-edit `ARCHITECTURE.md` or any file carrying the generated banner;
|
|
134
|
-
the source artifact and re-render
|
|
135
|
-
- Never
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
content change readers see as a deletion plus an addition
|
|
140
|
-
- Map components to real repo-relative implementation paths and fix mapping
|
|
141
|
-
drift rather than deleting the mapping to silence it
|
|
142
|
-
- Do not invent components, flows, or decisions that the repository does not
|
|
143
|
-
support; ask the user when the intended boundary is genuinely ambiguous
|
|
80
|
+
- Never hand-edit `ARCHITECTURE.md` or any file carrying the generated banner;
|
|
81
|
+
change the source artifact and re-render.
|
|
82
|
+
- Never edit `.strict-spec-driven/architecture.yaml` directly; use
|
|
83
|
+
`architecture-edit`.
|
|
84
|
+
- Do not invent components, flows, or decisions the repository does not
|
|
85
|
+
support; ask the user when a boundary is genuinely ambiguous.
|