dsh-plugin-strict-spec 0.5.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +13 -13
  2. package/README.zh.md +10 -12
  3. package/dist/cli/strict-spec-cli.js +111 -778
  4. package/dist/skills/strict-roadmap-plan/SKILL.md +49 -139
  5. package/dist/skills/strict-roadmap-recommend/SKILL.md +63 -282
  6. package/dist/skills/strict-roadmap-reorder/SKILL.md +40 -158
  7. package/dist/skills/strict-roadmap-review/SKILL.md +48 -144
  8. package/dist/skills/strict-roadmap-transition/SKILL.md +52 -274
  9. package/dist/skills/strict-scene-edit/SKILL.md +51 -121
  10. package/dist/skills/strict-spec-apply/SKILL.md +63 -173
  11. package/dist/skills/strict-spec-architecture/SKILL.md +39 -97
  12. package/dist/skills/strict-spec-archive/SKILL.md +57 -127
  13. package/dist/skills/strict-spec-auto/SKILL.md +95 -271
  14. package/dist/skills/strict-spec-brainstorm/SKILL.md +73 -176
  15. package/dist/skills/strict-spec-bugfix/SKILL.md +101 -225
  16. package/dist/skills/strict-spec-design/SKILL.md +55 -124
  17. package/dist/skills/strict-spec-design-sync/SKILL.md +55 -123
  18. package/dist/skills/strict-spec-init/SKILL.md +45 -93
  19. package/dist/skills/strict-spec-maintenance/SKILL.md +44 -94
  20. package/dist/skills/strict-spec-modify/SKILL.md +44 -113
  21. package/dist/skills/strict-spec-propose/SKILL.md +180 -495
  22. package/dist/skills/strict-spec-review/SKILL.md +138 -274
  23. package/dist/skills/strict-spec-ship/SKILL.md +25 -60
  24. package/dist/skills/strict-spec-spec-edit/SKILL.md +35 -84
  25. package/dist/skills/strict-spec-sync-specs/SKILL.md +44 -94
  26. package/dist/skills/strict-tech-edit/SKILL.md +43 -124
  27. package/dist/skills/strict-tech-sync/SKILL.md +60 -162
  28. package/package.json +2 -1
  29. package/dist/skills/strict-spec-verify/SKILL.md +0 -79
@@ -8,13 +8,11 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- You are helping the user implement a strict YAML change.
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
- Every mutation of repository-owned YAML in this skill goes through the strict
56
- CLI. This skill writes `change-planning-state`. Before the first mutation run
57
- `strict-spec-cli yaml-authoring-protocol change-planning-state`: that command
58
- reports the ordered authoring steps, the owning command for each operation, and
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
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
72
- the user's common human language, not a programming language — for all
73
- user-facing and generated operator-facing text, unless that file is absent or
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** — run `modify` without an argument to list active
83
- changes. If the change is already specified, use it.
84
-
85
- 2. **Load current strict context** — treat prior chat context as stale unless it
86
- has been revalidated from the repository. Read:
87
- - `.strict-spec-driven/changes/<name>/proposal.yaml`
88
- - `.strict-spec-driven/changes/<name>/design.yaml`
89
- - `.strict-spec-driven/changes/<name>/tasks.yaml`
90
- - `.strict-spec-driven/changes/<name>/questions.yaml`
91
- - every strict YAML delta spec under `changes/<name>/specs/`
92
- - `.strict-spec-driven/config.yaml`
93
- - `.strict-spec-driven/specs/INDEX.yaml`
94
- - every relevant strict YAML main spec
95
- - the technical standards that govern the files this change will touch: run
96
- `strict-spec-cli tech-status` and read the
97
- relevant files under `.strict-spec-driven/tech/`. These are the engineering
98
- rules the implementation must satisfy.
99
- - select the lesson category that matches the affected spec or technical area, run
100
- `strict-spec-cli lesson-status --category <category>`, and read the lessons it ranks first.
101
- Repeat for another category when the change genuinely spans more than one; use the unfiltered
102
- command only when repository evidence cannot identify a relevant category.
103
- Lessons are recorded experience, not binding rules: they carry no MUST or
104
- SHOULD strength, so treat each one as a warning worth checking against this
105
- change rather than a constraint to satisfy. Match on `applies_when` — that
106
- field states the condition under which the lesson is worth recalling. A
107
- lesson with several occurrences has bitten this project repeatedly and
108
- deserves weight even though nothing enforces it.
109
-
110
- 3. **Gate on open questions** — inspect `questions.yaml`.
111
- - if `open` contains entries, do not infer answers or continue
112
- automatically
113
- - for each unresolved question, explain the missing decision or information,
114
- the impact on scope, implementation, testing, or spec behavior, and the
115
- recommended answer or options with tradeoffs
116
- - stop and wait for an explicit human reply
117
- - only continue once every entry is moved to `resolved` with an explicit
118
- answer and removed from `open`
119
-
120
- 4. **Implement tasks in order** — work through the pending tasks in
121
- `tasks.yaml.sections` from top to bottom.
122
- - read relevant code before editing
123
- - implement the next pending task
124
- - preserve every item in `proposal.yaml.unchanged_behavior`
125
- - write code that satisfies the applicable technical standards from step 2:
126
- never violate a MUST rule, and follow each SHOULD rule unless the change's
127
- design already records an explicit justified deviation. If a task can only
128
- be completed by violating a MUST rule, stop and raise it as an open
129
- question rather than breaking the standard; if the standard itself is wrong
130
- and must change as part of this change, carry that change as a delta tech
131
- artifact under `changes/<name>/tech/` (run
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-review`.
197
96
 
198
97
  ## Rules
199
98
 
200
- - Read existing code before modifying it
201
- - Complete tasks in order unless a clear dependency requires otherwise
202
- - Mark each task complete immediately after implementing it
203
- - Never run `apply` just to inspect status
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
- You are helping the user author or refresh `.strict-spec-driven/architecture.yaml`
12
- and render the generated architecture document from it.
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
- Every mutation of repository-owned YAML in this skill goes through the strict
40
- CLI. This skill writes `architecture-state`. Before the first mutation run
41
- `strict-spec-cli yaml-authoring-protocol architecture-state`: that command
42
- reports the ordered authoring steps, the owning command for each operation, and
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
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
56
- the user's common human language, not a programming language — for all
57
- user-facing and generated operator-facing text, including generated
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
- Put in it only what no other strict artifact holds:
64
-
65
- - **components** — each component's responsibility, the boundaries that say what
66
- it deliberately does not own, the components it depends on, and the
67
- repo-relative implementation files it maps to
68
- - **data_flows** — the trigger that starts a flow, the ordered steps, and the
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. **Check workflow state** — run `strict-spec-cli check-workflow-state` first.
91
-
92
- 2. **Read the current state** — run `strict-spec-cli architecture-status`. It reports
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
- 6. **Render the document** — run `strict-spec-cli architecture-generate`. It writes
116
- `ARCHITECTURE.md` at the repository root, or the path given to `--output`.
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
- 7. **Confirm the result** — run `strict-spec-cli architecture-status` again for a clean
119
- validation and no mapping drift, then `strict-spec-cli architecture-generate --check`
120
- to confirm the rendered document matches its sources. Check mode exits
121
- non-zero and names the stale source artifacts when it does not.
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
- ## Detecting Staleness Later
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
- `strict-spec-cli architecture-generate --check` is the drift gate. It renders in
126
- memory, compares against the file on disk, never writes, and exits non-zero when
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; change
134
- the source artifact and re-render
135
- - Never hand-edit `.strict-spec-driven/architecture.yaml`; use `architecture-edit` named fields and removals so unrelated entries are preserved and the full candidate validates before commit
136
- - Never duplicate spec or technical-standard content into the architecture
137
- artifact
138
- - Keep component, data flow, and decision ids stable; renaming an id is a
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.