@flancer32/skill-adsm-ctx 0.4.0 → 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.
Files changed (72) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +56 -40
  3. package/bin/adsm-ctx.mjs +1 -1
  4. package/package.json +5 -18
  5. package/skills/adsm-ctx/SKILL.md +72 -0
  6. package/{skill → skills/adsm-ctx}/references/agents-hierarchy.md +4 -2
  7. package/skills/adsm-ctx/references/context-evolution.md +59 -0
  8. package/{skill → skills/adsm-ctx}/references/context-lifecycle.md +20 -9
  9. package/{skill → skills/adsm-ctx}/references/design-questionnaire.md +3 -3
  10. package/{skill → skills/adsm-ctx}/references/document-projections.md +12 -10
  11. package/{skill → skills/adsm-ctx}/references/documentation-compression.md +5 -5
  12. package/{skill → skills/adsm-ctx}/references/documentation-quality-audit.md +6 -6
  13. package/{skill → skills/adsm-ctx}/references/orchestration-model.md +8 -6
  14. package/{skill → skills/adsm-ctx}/references/semantic-skins.md +3 -1
  15. package/{skill → skills/adsm-ctx}/references/specialized-skills.md +2 -2
  16. package/skills/adsm-ctx/references/testing-and-verification.md +12 -0
  17. package/skills/adsm-ctx/templates/AGENTS.md +23 -0
  18. package/skills/adsm-ctx/templates/ctx/AGENTS.md +46 -0
  19. package/{skill → skills/adsm-ctx}/templates/ctx/README.md +1 -1
  20. package/{skill → skills/adsm-ctx}/templates/ctx/adsm.json +1 -1
  21. package/skills/adsm-ctx/templates/ctx/agent/AGENTS.md +32 -0
  22. package/skills/adsm-ctx/templates/ctx/docs/AGENTS.md +64 -0
  23. package/{skill → skills/adsm-ctx}/templates/ctx/docs/code/testing.md +3 -1
  24. package/skills/adsm-ctx/templates/ctx/docs/verification/AGENTS.md +31 -0
  25. package/src/Cli/Command/Init.mjs +21 -5
  26. package/src/Cli/Command/InstallSkill.mjs +16 -5
  27. package/src/Cli/Command/Validate.mjs +17 -5
  28. package/src/Init/Service.mjs +26 -47
  29. package/src/Shared/Constants.mjs +4 -1
  30. package/src/Shared/CopyDirectory.mjs +9 -9
  31. package/src/Shared/Metadata.mjs +1 -1
  32. package/src/Skill/Installer.mjs +5 -5
  33. package/src/Validate/Service.mjs +159 -149
  34. package/types.d.ts +31 -4
  35. package/migrations/README.md +0 -13
  36. package/skill/SKILL.md +0 -48
  37. package/skill/references/upgrade-policy.md +0 -29
  38. package/skill/templates/AGENTS.md +0 -120
  39. package/skill/templates/ai/AGENTS.md +0 -59
  40. package/skill/templates/ctx/AGENTS.md +0 -45
  41. package/skill/templates/ctx/agent/AGENTS.md +0 -36
  42. package/skill/templates/ctx/docs/AGENTS.md +0 -58
  43. package/src/Cli/Command/Design.mjs +0 -17
  44. package/src/Cli/Command/Upgrade.mjs +0 -19
  45. package/src/Design/Service.mjs +0 -38
  46. package/src/Upgrade/Service.mjs +0 -44
  47. /package/{skill/templates/work → skills/adsm-ctx/assets}/context/semantic-skin.md +0 -0
  48. /package/{skill/templates/work → skills/adsm-ctx/assets}/report/documentation-compression.md +0 -0
  49. /package/{skill/templates/work → skills/adsm-ctx/assets}/report/documentation-quality-audit.md +0 -0
  50. /package/{skill → skills/adsm-ctx}/templates/ctx/assets/.gitkeep +0 -0
  51. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/ai-intro.md +0 -0
  52. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/AGENTS.md +0 -0
  53. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/behavior.md +0 -0
  54. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/checklists.md +0 -0
  55. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/constraints.md +0 -0
  56. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/decisions.md +0 -0
  57. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/integration.md +0 -0
  58. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/overview.md +0 -0
  59. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/state.md +0 -0
  60. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/structure.md +0 -0
  61. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/supervision.md +0 -0
  62. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/code/AGENTS.md +0 -0
  63. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/code/overview.md +0 -0
  64. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/environment/AGENTS.md +0 -0
  65. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/environment/overview.md +0 -0
  66. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/filesystem.md +0 -0
  67. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/AGENTS.md +0 -0
  68. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/domain.md +0 -0
  69. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/glossary.md +0 -0
  70. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/overview.md +0 -0
  71. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/roles.md +0 -0
  72. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/use-cases.md +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to this package are documented in this file.
4
4
 
5
+ ## 0.6.0 — 2026-11-04
6
+
7
+ - Use two-part context schema versions aligned to the npm package major and minor; target schema `0.6`, retaining it for package patches.
8
+ - Clarify development policy and project testing versus product verification in the skill and initialization templates. Evolve existing contexts through agent inspection and human decisions.
9
+ - Report unsupported schema versions uniformly without automatic migration; preserve context and metadata during validation.
10
+ - Align TeqFW dependencies and JSDoc contracts, and improve repository context navigation.
11
+
12
+ ## 0.5.0 — 2026-10-24
13
+
14
+ - Adopt context schema `0.5.0`: require five documentation directories, including the cross-cutting Verification Layer, while preserving four ordered declarative levels. Allow an AGENTS-only verification root without placeholder specifications.
15
+ - Define agent-driven context evolution across historical states, preserving project meaning and semantic skins. Remove CLI `upgrade` and `design`; the approved CLI commands are `init`, `validate`, and `install-skill`.
16
+ - Keep package and schema versioning independent. Package installation never evolves existing context or promotes its metadata; record the target schema only after agent-led conformance and semantic review.
17
+ - Consolidate the complete skill payload under `skills/adsm-ctx/`. Move optional report and semantic-skin patterns into `assets/`; remove obsolete `templates/ai/` and `templates/work/` and reserve templates for initialization.
18
+ - Document explicit Git SSH package installation followed by `adsm-ctx install-skill <skills-root>` after each update. Keep npm installation free of lifecycle hooks and automatic agent-directory writes.
19
+ - Initialize the canonical context and root instructions without overwriting existing files. Refine the Agent Operations boundary, navigation, and supervision guidance without imposing project-specific workflows.
20
+ - Improve read-only validation of verification structure, context-side AGENTS sections, and documentation navigation. Align repository documentation, semantic skins, and durable verification contracts.
21
+ - Add CI on Node.js 20 and 24, complete-payload archive and isolated installation checks, version-independence coverage, and whole-context preservation checks.
22
+
5
23
  ## 0.4.0 - 2026-09-23
6
24
 
7
25
  ### Added
package/README.md CHANGED
@@ -4,19 +4,21 @@ Build and evolve project cognitive context for Agent-Driven Software Management
4
4
 
5
5
  ## Overview
6
6
 
7
- `@flancer32/skill-adsm-ctx` is an ADSM skill package for initializing, designing, validating, auditing, compressing, and upgrading project cognitive context.
7
+ `@flancer32/skill-adsm-ctx` is an ADSM skill package for initializing, designing, validating, auditing, compressing, and evolving project cognitive context.
8
8
 
9
9
  It manages the lifecycle of project context as its primary object. It does not define business requirements, backend architecture, browser architecture, deployment logic, or domain-specific documentation on its own.
10
10
 
11
11
  This package is developed according to the [ADSM methodology](http://fly.wiredgeese.com/flancer/leanpub/adsm-en/).
12
12
 
13
+ ADSM defaults to **Rapid Evolution by Default, Reliability by Requirement**: deliver essential functionality in short feedback cycles, fail visibly, avoid unrequired compatibility, and verify according to contracts and risk. Humans control acceptable risk and can set a different project policy; accepted context, security, integrity, and explicit invariants remain binding. New projects receive a concise policy in their root `AGENTS.md`; existing projects are not rewritten. See the bundled [skill guidance](skills/adsm-ctx/SKILL.md#development-policy) for details.
14
+
13
15
  The package includes:
14
16
 
15
17
  - the `adsm-ctx` CLI for lifecycle operations;
16
18
  - the `adsm-ctx` skill payload for AI agents;
17
19
  - reusable `ctx/` templates for bootstrapping ADSM-compatible projects;
18
- - optional Verification Layer documentation lifecycle support;
19
- - working templates for agent-produced reports.
20
+ - mandatory Verification Layer documentation lifecycle support;
21
+ - supporting assets for agent-produced reports.
20
22
 
21
23
  ## Purpose
22
24
 
@@ -27,10 +29,10 @@ Use this package when you need to:
27
29
  - validate whether an existing context follows expected ADSM structure;
28
30
  - audit a documentation corpus against ADSM documentation quality criteria;
29
31
  - compress a documentation corpus while preserving accepted project meaning;
30
- - upgrade a context when ADSM conventions evolve;
31
- - design, validate, audit, or compress an optional cross-cutting Verification Layer.
32
+ - evolve a context using the skill when ADSM conventions change;
33
+ - design, validate, audit, or compress a mandatory cross-cutting Verification Layer.
32
34
 
33
- This package acts as an orchestration layer. It provides generic structure, lifecycle guidance, validation, documentation quality audit guidance, documentation compression guidance, and upgrade entry points. When project-specific context is required, it should direct the agent to use specialized skills when they are available.
35
+ This package acts as an orchestration layer. It provides generic structure, lifecycle guidance, validation, documentation quality audit guidance, documentation compression guidance, and agent-driven evolution guidance. When project-specific context is required, it should direct the agent to use specialized skills when they are available.
34
36
 
35
37
  The bundled baseline now covers both:
36
38
 
@@ -46,7 +48,7 @@ This package does not:
46
48
  - write domain-specific architecture content as if it knew the project;
47
49
  - perform automatic semantic scoring or correction of documentation quality;
48
50
  - change project meaning during documentation compression;
49
- - perform destructive upgrades without explicit review.
51
+ - change accepted meaning without explicit review.
50
52
 
51
53
  ## Requirements
52
54
 
@@ -55,18 +57,15 @@ This package does not:
55
57
 
56
58
  ## Installation And Update
57
59
 
58
- Install the package globally once for the current user:
59
-
60
- ```sh
61
- npm install --global @flancer32/skill-adsm-ctx
62
- ```
63
-
64
- Install its matching agent payload into the selected skills root:
60
+ Install the package and then explicitly install its matching agent payload:
65
61
 
66
62
  ```sh
63
+ npm install --global git+ssh://git@github.com:flancer32/skill-adsm-ctx.git
67
64
  adsm-ctx install-skill "$HOME/.agents/skills"
68
65
  ```
69
66
 
67
+ The second command is required after every package installation or update. npm installs only the package, dependencies, and CLI; it does not select a skills directory or modify agent configuration. Supply another skills root if your agent uses a different location.
68
+
70
69
  The command replaces only `$HOME/.agents/skills/adsm-ctx`; it does not modify other installed skills.
71
70
 
72
71
  Verify the runtime and payload:
@@ -79,11 +78,11 @@ test -f "$HOME/.agents/skills/adsm-ctx/SKILL.md"
79
78
  To update, update the global npm package and reinstall its payload:
80
79
 
81
80
  ```sh
82
- npm update --global @flancer32/skill-adsm-ctx
81
+ npm install --global git+ssh://git@github.com:flancer32/skill-adsm-ctx.git
83
82
  adsm-ctx install-skill "$HOME/.agents/skills"
84
83
  ```
85
84
 
86
- The npm package is the canonical distribution of both artifacts. Its public `adsm-ctx` launcher runs the package as an explicit TeqFW host; the `install-skill` command copies the version-matched `skill/` bundle. Do not copy only `SKILL.md` manually: the payload also needs its references and templates.
85
+ The npm package is the canonical distribution of both artifacts. Its public `adsm-ctx` launcher runs the package as an explicit TeqFW host; the `install-skill` command copies the version-matched `skills/adsm-ctx/` bundle. Do not copy only `SKILL.md` manually: the payload also needs its references and templates.
87
86
 
88
87
  For a project-pinned CI or team workflow, install the package locally and invoke the same public launcher with npm:
89
88
 
@@ -106,12 +105,6 @@ Initialize a context in the current directory:
106
105
  adsm-ctx init
107
106
  ```
108
107
 
109
- Design guidance for a project context:
110
-
111
- ```sh
112
- adsm-ctx design
113
- ```
114
-
115
108
  Validate an existing project context:
116
109
 
117
110
  ```sh
@@ -124,11 +117,7 @@ Validate a specific path:
124
117
  adsm-ctx validate <project-root>
125
118
  ```
126
119
 
127
- Run the upgrade entry point:
128
-
129
- ```sh
130
- adsm-ctx upgrade
131
- ```
120
+ For existing contexts, ask the agent to use skill `adsm-ctx` and its evolution procedure. There is no CLI evolution command.
132
121
 
133
122
  Install the bundled skill payload:
134
123
 
@@ -146,15 +135,15 @@ teq --host @flancer32/skill-adsm-ctx adsm-ctx:validate .
146
135
 
147
136
  ### `init`
148
137
 
149
- Creates the minimal ADSM-compatible context structure, starter documents, and `ctx/adsm.json` metadata. The metadata advertises the `verification-layer` convention capability, but initialization does not create `ctx/docs/verification/` or empty categories.
138
+ Creates the minimal ADSM-compatible context structure, starter documents, and `ctx/adsm.json` metadata. Schema `0.6` creates all five documentation directories, including `ctx/docs/verification/AGENTS.md`, without empty target categories or placeholder specifications.
150
139
 
151
140
  ### `design`
152
141
 
153
- Provides guidance for classifying the project, choosing relevant documentation branches, and identifying when specialized ADSM skills should be used.
142
+ The agent uses the skill questionnaire to classify the project, choose relevant documentation branches, and identify specialized skills. This is a skill mode, not a CLI command.
154
143
 
155
144
  ### `validate`
156
145
 
157
- Checks baseline paths, required declarative documentation levels, optional Verification Layer structure when adopted, required `AGENTS.md` files, metadata, body/skin pairing, localized skin names, redundant `Agent Document` sections in skins, local markdown document links, and other formal structural projection checks. It does not score semantic-skin length, cognitive load, or human readability; those belong to `quality-audit`. Validation reports findings without modifying project content.
146
+ Checks baseline paths, required declarative documentation levels, mandatory Verification Layer structure, required `AGENTS.md` files, metadata, body/skin pairing, localized skin names, redundant `Agent Document` sections in skins, local markdown document links, and other formal structural projection checks. It does not score semantic-skin length, cognitive load, or human readability; those belong to `quality-audit`. Validation reports findings without modifying project content.
158
147
 
159
148
  ### `quality-audit`
160
149
 
@@ -168,21 +157,21 @@ Guides an agent through controlled rewrite of a documentation corpus to reduce s
168
157
 
169
158
  The default compression corpus is `ctx/docs/`. Operational context such as `ctx/agent/`, workflow configuration, prompt assets, generated reports, and runtime materials is outside the default corpus unless explicitly requested.
170
159
 
171
- ### `upgrade`
160
+ ### Agent-driven evolution
172
161
 
173
- Checks whether context metadata exists and reports that no automatic migrations are available. Verification Layer adoption remains optional and non-destructive: upgrade does not create verification scaffolding. The command remains the entry point for future explicit migrations.
162
+ Use [the skill evolution procedure](skills/adsm-ctx/references/context-evolution.md) for existing contexts, including unknown historical states. The agent follows discover → interpret → compare → plan → evolve → validate → finalize, preserving accepted meaning and semantic skins. Humans decide changes to accepted meaning and authority. CLI `validate` supplies deterministic findings; there is no evolution command or automatic schema promotion. The agent records target schema `0.6` only after structural checks and semantic review succeed, then validates again. The package major and minor match the two-part schema version.
174
163
 
175
164
  ## Workflow
176
165
 
177
166
  Recommended sequence:
178
167
 
179
168
  1. Run `adsm-ctx init` in a new project repository.
180
- 2. Run `adsm-ctx design` to shape the context for the actual project.
169
+ 2. Ask the agent to use the skill’s design questionnaire to shape the context for the actual project.
181
170
  3. Use specialized skills where the project needs domain-specific documentation.
182
171
  4. Run `adsm-ctx validate` as the deterministic preflight as the context evolves.
183
172
  5. Use the skill's `quality-audit` mode only after structural validation passes or leaves warnings only.
184
173
  6. Use the skill's `documentation-compression` mode when accepted documentation meaning is stable but the corpus has high attention cost.
185
- 7. Run `adsm-ctx upgrade` when template conventions or schema versions change.
174
+ 7. Use the skill evolution procedure when conventions change; CLI validation supplies read-only structural findings.
186
175
 
187
176
  ## Documentation Levels
188
177
 
@@ -197,7 +186,7 @@ product
197
186
 
198
187
  Use the architecture level once product meaning is clear enough to define stable engineering guardrails.
199
188
 
200
- `ctx/docs/verification/` is optional and cross-cutting. It is not a fifth declarative level. Create it only when a durable verification specification exists; place that specification below the category of the declaration it primarily evaluates.
189
+ `ctx/docs/verification/` is mandatory and cross-cutting in schema `0.6`. It is not a fifth declarative level. Its root may contain only `AGENTS.md`; create primary-target categories only when durable specifications exist; place that specification below the category of the declaration it primarily evaluates.
201
190
 
202
191
  The bundled architecture templates expect these top-level documents:
203
192
 
@@ -230,11 +219,11 @@ For `AGENTS.md` authoring, `Level Boundary` sections should stay compact and gua
230
219
 
231
220
  The CLI performs local filesystem operations and structural validation.
232
221
 
233
- The skill in `skill/SKILL.md` instructs an AI agent how to use the lifecycle modes, how to avoid inventing project content, how to audit documentation quality, how to compress documentation without changing meaning, and how to route documentation work toward specialized skills when needed.
222
+ The skill in `skills/adsm-ctx/SKILL.md` instructs an AI agent how to use the lifecycle modes, how to avoid inventing project content, how to audit documentation quality, how to compress documentation without changing meaning, and how to route documentation work toward specialized skills when needed.
234
223
 
235
- Documentation quality audit uses `skill/references/documentation-quality-audit.md` and the working report template at `skill/templates/work/report/documentation-quality-audit.md`.
224
+ Documentation quality audit uses `skills/adsm-ctx/references/documentation-quality-audit.md` and the report asset at `skills/adsm-ctx/assets/report/documentation-quality-audit.md`.
236
225
 
237
- Documentation compression uses `skill/references/documentation-compression.md` and the working report template at `skill/templates/work/report/documentation-compression.md`.
226
+ Documentation compression uses `skills/adsm-ctx/references/documentation-compression.md` and the report asset at `skills/adsm-ctx/assets/report/documentation-compression.md`.
238
227
 
239
228
  The skill does not directly invoke other skills. It instructs the agent to select and use them when relevant.
240
229
 
@@ -254,15 +243,26 @@ Run the CLI directly from the repository:
254
243
  npm exec -- adsm-ctx --help
255
244
  ```
256
245
 
257
- Run the tests:
246
+ Run the fast local project smoke check (context structure and skill/package conventions):
258
247
 
259
248
  ```sh
260
249
  npm test
261
250
  ```
262
251
 
252
+ Run product verification and the remaining suites, or select a focused suite:
253
+
254
+ ```sh
255
+ npm run verify
256
+ npm run test:unit
257
+ npm run test:integration
258
+ npm run test:package
259
+ ```
260
+
261
+ The smoke check does not establish product conformity or semantic context correctness. The verification specifications under `ctx/docs/verification/` identify the observed contracts and their limits. The package installation scenario uses a temporary installation and may skip locally when its offline dependency cache is unavailable; a skip is not evidence of successful installation.
262
+
263
263
  ## Changelog
264
264
 
265
- See [CHANGELOG.md](CHANGELOG.md) for the prepared, unpublished 0.4.0 release notes.
265
+ See [CHANGELOG.md](CHANGELOG.md) for the dated release notes.
266
266
 
267
267
  ## Status
268
268
 
@@ -271,3 +271,19 @@ This repository contains a working skeleton intended as a foundation for future
271
271
  ## License
272
272
 
273
273
  Apache-2.0
274
+
275
+ ## Versioning And Compatibility
276
+
277
+ Package `0.6.0` targets context schema `0.6`. Schema versions use major.minor; npm package versions use major.minor.patch with matching major and minor. Package patch `0.6.1` retains schema `0.6`; a new minor establishes a new schema target. Changes in context conventions require a new minor.
278
+
279
+ `adsm-ctx --version` identifies the installed npm package. Read `ctx/adsm.json` for a project's schema; `adsm-ctx validate <project-root>` reports recorded and supported schema versions. Compatibility follows supported requirements, not numerical equality. Current validation supports schema `0.6`; all other versions are unsupported and require investigation.
280
+
281
+ Installing or updating the package and explicitly reinstalling its skill do not promote project metadata. An agent compares actual context with the installed skill's target conventions and evolves directly when needed, preserving project meaning and skins. Humans approve changes to accepted meaning. Only after conformance and semantic review does the agent record the target schema; no intermediate CLI migrations are required.
282
+
283
+ ## Continuous Integration
284
+
285
+ GitHub Actions runs `.github/workflows/ci.yaml` for pushes and pull requests to `main`, and on manual dispatch. Ubuntu jobs use Node.js 20 (minimum) and 24 (LTS), run `npm ci`, `npm test`, `npm run verify`, context validation, and `npm pack --dry-run`.
286
+
287
+ Package tests install a real npm archive into an isolated temporary environment, exercise the installed CLI and skill installer, compare the complete payload, and preserve neighboring skills. In CI the installation test uses network-enabled dependency resolution and fails on errors instead of skipping for missing offline cache. Local offline runs may report a skip; that is incomplete installation evidence. CI does not publish packages or prove semantic correctness of project documentation.
288
+
289
+ Skill resources are separated by purpose: `references/` provides guidance; `templates/AGENTS.md` and `templates/ctx/` feed deterministic, non-destructive initialization; `assets/` provides agent report and semantic-skin patterns. `init` does not copy skill assets into projects. Asset locations do not prescribe output locations; project authority and the task do. Skill assets are distinct from project-owned `ctx/assets/`.
package/bin/adsm-ctx.mjs CHANGED
@@ -11,7 +11,7 @@ const require = createRequire(import.meta.url);
11
11
  const packageRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
12
12
  const teqPath = require.resolve("@teqfw/cli/bin/teq.mjs");
13
13
  const hostName = "@flancer32/skill-adsm-ctx";
14
- const commandNames = new Set(["init", "design", "validate", "upgrade", "install-skill"]);
14
+ const commandNames = new Set(["init", "validate", "install-skill"]);
15
15
 
16
16
  const args = normalizeArgs(processModule.argv.slice(2));
17
17
  const result = spawnSync(processModule.execPath, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flancer32/skill-adsm-ctx",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Build and evolve project cognitive context for Agent-Driven Software Management (ADSM).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -9,10 +9,9 @@
9
9
  },
10
10
  "types": "types.d.ts",
11
11
  "files": [
12
- "skill/",
12
+ "skills/",
13
13
  "bin/",
14
14
  "src/",
15
- "migrations/",
16
15
  "jsconfig.json",
17
16
  "README.md",
18
17
  "LICENSE",
@@ -25,13 +24,13 @@
25
24
  "scripts": {
26
25
  "start": "adsm-ctx",
27
26
  "init": "adsm-ctx init",
28
- "design": "adsm-ctx design",
29
27
  "validate": "adsm-ctx validate",
30
- "upgrade": "adsm-ctx upgrade",
31
28
  "install:skill": "adsm-ctx install-skill \"$HOME/.agents/skills\"",
32
29
  "test:unit": "find test/unit -name '*.test.mjs' -print0 | xargs -0 -r node --test",
33
30
  "test:integration": "find test/integration -name '*.test.mjs' -print0 | xargs -0 -r node --test",
34
- "test": "npm run test:unit && npm run test:integration"
31
+ "test:package": "node --test test/package/*.test.mjs",
32
+ "test": "node bin/adsm-ctx.mjs validate . && node --test test/package/skill.test.mjs",
33
+ "verify": "npm run test:unit && npm run test:integration && npm run test:package"
35
34
  },
36
35
  "dependencies": {
37
36
  "@teqfw/cli": "^2.2.0",
@@ -56,24 +55,12 @@
56
55
  "arguments": [{"name": "target-path", "kind": "string", "description": "Project root; defaults to the current working directory."}],
57
56
  "component": "Fl32_Skill_Adsm_Ctx_Cli_Command_Init$"
58
57
  },
59
- {
60
- "id": "adsm-ctx:design",
61
- "summary": "Show ADSM context design guidance.",
62
- "arguments": [{"name": "target-path", "kind": "string", "description": "Project root; defaults to the current working directory."}],
63
- "component": "Fl32_Skill_Adsm_Ctx_Cli_Command_Design$"
64
- },
65
58
  {
66
59
  "id": "adsm-ctx:validate",
67
60
  "summary": "Validate an ADSM context.",
68
61
  "arguments": [{"name": "target-path", "kind": "string", "description": "Project root; defaults to the current working directory."}],
69
62
  "component": "Fl32_Skill_Adsm_Ctx_Cli_Command_Validate$"
70
63
  },
71
- {
72
- "id": "adsm-ctx:upgrade",
73
- "summary": "Upgrade an ADSM context.",
74
- "arguments": [{"name": "target-path", "kind": "string", "description": "Project root; defaults to the current working directory."}],
75
- "component": "Fl32_Skill_Adsm_Ctx_Cli_Command_Upgrade$"
76
- },
77
64
  {
78
65
  "id": "adsm-ctx:install-skill",
79
66
  "summary": "Install the bundled agent skill payload.",
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: adsm-ctx
3
+ description: Use when initializing, designing, validating, auditing, compressing, or evolving ADSM project cognitive context. This skill orchestrates generic context lifecycle work and routes agents toward specialized skills when project-specific context branches are needed.
4
+ ---
5
+
6
+ # ADSM Context Lifecycle
7
+
8
+ Manage the lifecycle of an ADSM project cognitive context. Manage generic context structure, documentation projections, lifecycle checks, and the `ctx/agent/` boundary; do not invent project-specific product, architecture, technical, or tool-workflow meaning.
9
+
10
+ Humans own direction, accepted meaning, approval, and accountability. Agents refine, check consistency, maintain documentation, and report decisions that require human authority.
11
+
12
+ ## Development Policy
13
+
14
+ ADSM defaults to **Rapid Evolution by Default, Reliability by Requirement**. Plan short hypothesis → implementation → execution → feedback cycles around essential functionality. Prefer simple working solutions; add abstractions or defensive machinery for concrete requirements or observed problems. Fail fast and visibly on unexpected conditions and contract violations rather than hiding them with speculative retries, repairs, or fallbacks.
15
+
16
+ Accepted cognitive context defines the target; code and tests converge on it, and historical behavior is not independent architectural authority. Breaking software interfaces is acceptable by default; retain compatibility, migrations, or legacy layers only when required. Preserve decisions explaining accepted and rejected directions. Verify the happy path and essential contracts with sufficient fast feedback; add regression coverage and stronger checks for observed defects, meaningful risks, or explicit requirements.
17
+
18
+ Humans decide acceptable risks and reliability guarantees; project-specific accepted context can strengthen or replace this default. Never silently compromise security, integrity, or accepted invariants. This software compatibility default does not authorize rewriting consumer contexts or bypassing context-schema evolution and human approval.
19
+
20
+ ## Start Here
21
+
22
+ 1. Identify the target repository and the requested lifecycle mode.
23
+ 2. Read the applicable `AGENTS.md` hierarchy. If `ctx/` exists, read `ctx/AGENTS.md` and `ctx/docs/filesystem.md` before deeper context work.
24
+ 3. Read [document-projections.md](references/document-projections.md) for any work under `ctx/docs/`; for skin work, also read [semantic-skins.md](references/semantic-skins.md).
25
+ 4. Use the routing table below, then load only the references needed for the requested mode.
26
+
27
+ ## Route The Request
28
+
29
+ | Request or mode | Load or run |
30
+ | --- | --- |
31
+ | `init` baseline | [context-lifecycle.md](references/context-lifecycle.md); use the `templates/ctx/` baseline. |
32
+ | `design` or new branch | [context-lifecycle.md](references/context-lifecycle.md), [design-questionnaire.md](references/design-questionnaire.md), and [specialized-skills.md](references/specialized-skills.md). |
33
+ | Project testing, Verification Layer, or Software Evolution Loop | [testing-and-verification.md](references/testing-and-verification.md), [document-projections.md](references/document-projections.md), [context-lifecycle.md](references/context-lifecycle.md), [documentation-quality-audit.md](references/documentation-quality-audit.md), and [specialized-skills.md](references/specialized-skills.md). |
34
+ | `validate` structure | [context-lifecycle.md](references/context-lifecycle.md), [document-projections.md](references/document-projections.md), and the repository-provided deterministic validator when available. Report errors and warnings separately. |
35
+ | `quality-audit` | Run `validate` first; then load [documentation-quality-audit.md](references/documentation-quality-audit.md). Report findings; do not rewrite project meaning. |
36
+ | `documentation-compression` | Load [documentation-compression.md](references/documentation-compression.md). Rewrite only with authorization and preserve accepted meaning. |
37
+ | Evolution | Follow [the agent evolution procedure](references/context-evolution.md): discover, interpret, compare, plan, evolve, validate, finalize. The agent applies authorized changes; deterministic validation never rewrites context or promotes metadata. |
38
+ | `AGENTS.md` or local context routing | Load [agents-hierarchy.md](references/agents-hierarchy.md). |
39
+ | `ctx/agent/`, templates, or generic ownership boundary | Load [orchestration-model.md](references/orchestration-model.md). |
40
+ | Browser, backend, data, deployment, or concrete tool workflow | Load [specialized-skills.md](references/specialized-skills.md), then use a matching available specialized skill. |
41
+
42
+ `adsm-ctx install-skill <skills-root>` installs this payload from the globally installed npm package into a skills root; it is not a lifecycle mode. npm installation never installs the skill into an agent directory; run this command explicitly after each package installation or update.
43
+
44
+ Context design is performed by the agent using the questionnaire and references; there is no CLI `design` command.
45
+
46
+ ## Non-Negotiable Boundaries
47
+
48
+ - Treat the cognitive context as the managed object and do not invent project facts, requirements, architecture, tool semantics, or authority boundaries.
49
+ - Preserve the documentation order: product → architecture → environment → code. Escalate upstream gaps instead of introducing meaning downstream.
50
+ - Read a matching `*.skin.<lang>.md` before editing its agent document. Report projection drift or a required human decision instead of silently changing skin-controlled meaning.
51
+ - Keep `ctx/agent/` project-local: install only its boundary `AGENTS.md`; do not impose tool-specific structure, labels, prompts, roles, or executable profiles.
52
+ - Keep assets under `ctx/assets/**`; they may illustrate, but never define, authoritative meaning.
53
+ - Preserve the four ordered declarative documentation levels under `ctx/docs/`: `product`, `architecture`, `environment`, and `code`. Require the cross-cutting `verification/` boundary as defined in [document-projections.md](references/document-projections.md); it is never a fifth level.
54
+ - Keep each documentation level to no more than nine direct directories and nine direct ordinary files, excluding `AGENTS.md` and paired `*.skin.<lang>.md` files, where practical; an intentional excess must be stated explicitly in that level's `AGENTS.md`.
55
+
56
+ ## Evolution Authority
57
+
58
+ The existing context supplies accepted project meaning; this installed skill supplies target ADSM conventions. Evolution is agent reasoning across arbitrary historical states, not an autonomous version migration. Humans control changes to accepted meaning and authority. The agent updates schema metadata only after target conformance checks and semantic consistency review succeed.
59
+
60
+ ## Completion
61
+
62
+ Finish with explicit validation results, Verification Layer structure and specification presence when relevant, specialization gaps, human decisions, and any preserved project-specific content. Use `templates/AGENTS.md` and `templates/ctx/` for initialization; use skill `assets/` only for authorized agent-guided document or report work.
63
+
64
+ The current target is schema `0.6`. The npm package major and minor match this two-part schema version; package patches retain the same schema. Package updates and context evolution remain separate. Inspect project metadata and actual conformance against this installed skill; never infer compatibility or promote metadata from package-version equality. See [context evolution](references/context-evolution.md) for the decision procedure.
65
+
66
+ ## Resource Ownership
67
+
68
+ - `references/` contains methodology, instructions, and agent guidance.
69
+ - `templates/AGENTS.md` and `templates/ctx/` are the deterministic, non-destructive project initialization sources.
70
+ - `assets/` contains supporting [semantic-skin patterns](assets/context/semantic-skin.md), [audit report patterns](assets/report/documentation-quality-audit.md), and [compression report patterns](assets/report/documentation-compression.md). Initialization never copies them into a project. Use them for authorized work; choose the resulting document's location from project rules and the task, not from the asset path.
71
+
72
+ Skill `assets/` belongs to this skill payload. Project `ctx/assets/` belongs to the managed project's context and holds visual, generated, or auxiliary artifacts. Ownership and purpose distinguish these boundaries; semantic skins themselves belong beside their agent documents under project documentation.
@@ -1,7 +1,7 @@
1
1
  # AGENTS Hierarchy
2
2
 
3
- - Path: `skill/references/agents-hierarchy.md`
4
- - Changed: `20260715`
3
+ - Path: `skills/adsm-ctx/references/agents-hierarchy.md`
4
+ - Changed: `20261104`
5
5
 
6
6
  This reference operationalizes `AGENTS.md` handling for ADSM contexts.
7
7
 
@@ -32,6 +32,8 @@ Repository-root and context-side files are not identical:
32
32
  - the repository-root `AGENTS.md` controls root work and may use a lighter shape;
33
33
  - context-side `AGENTS.md` files under `ctx/` must contain `Purpose`, `Level Map`, and `Level Boundary`.
34
34
 
35
+ The root template states the skill's Rapid Evolution development default concisely and routes agents to the skill for its meaning. Accepted project context may strengthen or replace that default under human authority; deeper instructions must preserve the root's security, integrity, and accepted-context boundaries. Initialization does not overwrite existing root instructions.
36
+
35
37
  For skill operation:
36
38
 
37
39
  - interpret `AGENTS.md` as local control files inside already-declared boundaries;
@@ -0,0 +1,59 @@
1
+ # Agent-Driven Context Evolution
2
+
3
+ - Path: `skills/adsm-ctx/references/context-evolution.md`
4
+ - Changed: `20261104`
5
+
6
+ Evolution brings an existing cognitive context into conformance with the installed skill's target conventions through agent inspection and reasoning. The starting point is the actual context, not an assumed version-to-version file transformation. Use this procedure for methodology, organization, authority relationships, projection rules, and schema changes, including contexts predating known schema versions. Evolution is a skill-guided agent activity and has no CLI command.
7
+
8
+ Apply the skill's Rapid Evolution default to planning and verification: work toward accepted target meaning in small feedback cycles, without preserving obsolete software behavior by default. This does not make existing context or schema disposable: investigate actual conventions, preserve accepted meaning and decisions, and obtain human approval for semantic or authority changes. Do not automatically rewrite consumer projects when the skill or root template changes. Required reliability and verification remain controlled by humans and applicable project context.
9
+
10
+ ## Target And Responsibilities
11
+
12
+ The current target is context schema `adsm-context` version `0.6`, matching the npm package major and minor. Require five documentation directories: `product/`, `architecture/`, `environment/`, `code/`, and `verification/`, each with `AGENTS.md`. Exactly four form the ordered hierarchy product → architecture → environment → code. The cross-cutting verification root may contain only `AGENTS.md`; create primary-target categories only for actual durable specifications. Keep specifications distinct from observations, evidence records, and operational feedback state. Use [document-projections.md](document-projections.md) for projection, links, assets, and capacity conventions.
13
+
14
+ The skill defines target conventions and this procedure. The agent interprets the existing context, compares, applies authorized changes, checks consistency, and finalizes metadata. CLI `init` creates missing baseline files, including verification routing and initial metadata, without overwriting existing files. CLI `validate` is read-only: it never creates verification files, replaces documents, changes skins, or promotes metadata. There is no CLI evolution command. Humans control accepted project meaning, authority, and approval of changes beyond the agent's existing authorization.
15
+
16
+ For schema `0.6`, assess the rapid-evolution development default and the distinction between project testing and product verification against the actual project instructions, testing documentation, and accepted decisions. The default is replaceable by project policy; do not override a project's accepted policy or copy template text blindly. Reconcile testing guidance with the project's ecosystem and existing requirements, with human decisions for changes to accepted meaning.
17
+
18
+ ## 1. Discover
19
+
20
+ Inspect applicable `AGENTS.md` instructions, the existing context and metadata, filesystem types, Git boundaries, and current worktree changes. Identify separately mounted `ctx/` and keep each history in place. Do not remove, replace, relocate, or unmount it. Do not traverse unrelated repositories or secret-bearing files. Resolve unsafe links, nested repository ownership, or missing permissions before editing affected paths.
21
+
22
+ Read `ctx/adsm.json` and compare it with the target conventions above. Run `adsm-ctx validate <project-root>` for deterministic findings; validation does not evolve anything. Missing, malformed, unknown, or future metadata is an investigation finding, not permission to relabel the context or initialize over it.
23
+
24
+ ## 2. Interpret
25
+
26
+ Locate authoritative product intent, architecture decisions and rationale, environment assumptions, implementation constraints, and all matching semantic skins. Read skins before changing their agent documents. Separate durable declarations and specifications from evidence and operational state. Retain project-specific knowledge, nested organization, and relevant historical decisions. Consult [semantic-skins.md](semantic-skins.md) for controlled projections and [specialized-skills.md](specialized-skills.md) when a branch needs specialized interpretation.
27
+
28
+ ## 3. Compare
29
+
30
+ Compare actual structure and meaning with current target conventions, even when the recorded version is unknown or already `0.6`. Inventory structural, documentary, projection, and authority differences. Run `adsm-ctx validate <project-root>` and distinguish mechanical findings from semantic inconsistencies. A current version is not proof of conformance; green structure does not establish semantic correctness, verification coverage, or runtime correctness.
31
+
32
+ For example, `0.1.0` and `0.2.0` may lack `verification/AGENTS.md` or describe verification as optional. Inspect their actual documents instead of applying a fixed replacement. Unknown historical layouts require investigation and explicit reporting of what cannot yet be interpreted safely.
33
+
34
+ ## 4. Plan
35
+
36
+ Classify proposed changes as structural, editorial, semantic, or requiring human approval. Identify the authoritative owner and dependent documents for each change. Establish product meaning before architecture, then environment and code; include matching projections and local routing. Use existing authorization for routine structural or editorial changes that preserve meaning. Escalate when target conventions conflict with an accepted project decision, a skin invariant, or authority relationships. Do not treat a newer generic template as permission to override accepted meaning. Keep unresolved decisions explicit and leave affected changes pending.
37
+
38
+ ## 5. Evolve
39
+
40
+ Apply authorized changes in documentation dependency order. Add missing required boundaries from canonical templates only after inspecting the destination; adapt routing to the actual project instead of replacing custom instructions. For `0.6`, add missing `verification/AGENTS.md`, update the documentation Level Map, and reconcile optional-adoption wording with accepted declarations and skins. Preserve existing specifications and project directories; create no placeholder specifications or empty target categories.
41
+
42
+ Restructure or clarify only within authorization. Preserve intent, constraints, rationale, history, and projection meaning. Update linked consumers when moving a document and preserve one canonical authority home. Use deterministic helpers only for bounded, agent-selected operations; they do not decide semantic changes. Reinspect on partial failure, report completed work and unresolved differences, and preserve the previous schema label while work remains incomplete.
43
+
44
+ ## 6. Validate
45
+
46
+ Run deterministic validation and inspect every error and warning. Assess semantic consistency across declarations, decisions, projections, and local instructions separately. Confirm preserved project-specific knowledge and correct Git boundaries. If the context still bears an unsupported schema label, the validator's version finding is expected: establish that all other target requirements pass before promotion. Never ignore malformed metadata, unknown-version ambiguity, or unresolved semantic conflicts as merely a version mismatch. Obtain required human decisions before finalizing.
47
+
48
+ ## 7. Finalize
49
+
50
+ Only after target structural requirements and semantic consistency are satisfied, update `ctx/adsm.json` to version `0.6`, preserving meaningful metadata fields. A version edit records successful evolution; it does not perform it. Do not promote partially evolved contexts. Run validation again against the final metadata; investigate any failure and retain or restore the prior label if conformance is not established. Do not overwrite an unknown future schema based on this package's older target conventions.
51
+
52
+ Report changes and rationale, preserved content, deterministic results, semantic review scope and limits, remaining warnings, human decisions, and relevant Git histories. On a repeat request, compare the actual state again and make only necessary authorized changes. Repeated CLI validation remain read-only regardless of context state.
53
+
54
+
55
+ ## Package Updates And Schema Compatibility
56
+
57
+ A package update replaces the npm implementation; explicitly rerun `adsm-ctx install-skill <skills-root>` to replace its bundled agent guidance. This does not change any context schema metadata and does not imply context evolution is required. Schema versions describe accepted context conventions; package versions describe implementation releases. Package `0.6.1` targets schema `0.6` unchanged. Never infer compatibility from numerical equality.
58
+
59
+ Read the current schema from the project's `ctx/adsm.json`; identify this installed skill's target from Target Conventions above, not the npm version shown by `adsm-ctx --version`. Compare actual context with those conventions and use `validate` to check recorded and supported schema labels plus structural findings. If already conforming to the same schema, no evolution is needed merely because the package changed. Classify structural repairs separately from semantic changes; use the seven phases above for needed evolution and obtain human approval for changes to accepted meaning or authority. Unsupported labels require investigation; no version-specific migration is provided. Never relabel an older context based solely on package installation.
@@ -1,7 +1,7 @@
1
1
  # Context Lifecycle
2
2
 
3
- - Path: `skill/references/context-lifecycle.md`
4
- - Changed: `20260917`
3
+ - Path: `skills/adsm-ctx/references/context-lifecycle.md`
4
+ - Changed: `20261024`
5
5
 
6
6
  `adsm-ctx` manages six lifecycle modes for project cognitive context.
7
7
 
@@ -13,26 +13,33 @@ The skill manages generic lifecycle structure. It does not define a project's bu
13
13
 
14
14
  - `init` creates the baseline. Create the root `AGENTS.md`, `ctx/` baseline, starter documents, and `ctx/adsm.json` only where they are missing. Use `templates/ctx/`; create placeholders rather than project facts when context is unknown.
15
15
  - `design` shapes context for the actual project. Classify the project, choose justified generic branches and nested structure, decide whether semantic skins are needed, and route specializations. Use [design-questionnaire.md](design-questionnaire.md) and [specialized-skills.md](specialized-skills.md).
16
- - `validate` checks formal structural integrity without destructive edits. Check baseline paths, context metadata, the four declarative documentation levels, optional Verification Layer adoption, local `AGENTS.md` placement, document headers, agent/skin pairs, reversible skin naming, redundant `Agent Document` sections, local document links, and `ctx/assets/**` exclusion. Do not score semantic compactness, cognitive load, or word counts.
16
+ - `validate` checks formal structural integrity without destructive edits. Check baseline paths, context metadata, the four declarative documentation levels, mandatory Verification Layer structure, local `AGENTS.md` placement, document headers, agent/skin pairs, reversible skin naming, redundant `Agent Document` sections, local document links, and `ctx/assets/**` exclusion. Do not score semantic compactness, cognitive load, or word counts.
17
17
  - `quality-audit` guides semantic documentation review. It is report-only by default; use [documentation-quality-audit.md](documentation-quality-audit.md) after validation.
18
18
  - `documentation-compression` guides controlled documentation rewrite that preserves accepted meaning. Use [documentation-compression.md](documentation-compression.md); do not treat it as an automatic semantic rewrite.
19
- - `upgrade` is the non-destructive migration entry point. The current implementation checks for metadata and reports that no automatic migrations are available; preserve project-specific content and use [upgrade-policy.md](upgrade-policy.md) when explicit migrations exist.
19
+ - Evolution is agent-driven context interpretation and authorized change across historical states, methodology, organization, authority, and projections. Follow [the evolution procedure](context-evolution.md). There is no evolution CLI command; use `validate` for deterministic findings.
20
20
 
21
- The lifecycle is iterative. A project may return to `design`, `validate`, `quality-audit`, `documentation-compression`, and `upgrade` many times after initialization.
21
+ The lifecycle is iterative. A project may return to `design`, `validate`, `quality-audit`, `documentation-compression`, and evolution many times after initialization.
22
22
 
23
23
  `quality-audit` is an agent-guided mode. It is not a CLI semantic scoring command.
24
24
 
25
25
  `documentation-compression` is an agent-guided rewrite mode. It is not a CLI semantic scoring command and must not change project meaning.
26
26
 
27
- The package-level `adsm-ctx install-skill <skills-root>` command installs the version-matched skill payload into an agent skills root.
27
+ The package-level `adsm-ctx install-skill <skills-root>` command installs the version-matched skill payload into an explicitly supplied agent skills root. After installation or update, run:
28
+
29
+ ```sh
30
+ npm install --global git+ssh://git@github.com/flancer32/skill-adsm-ctx.git
31
+ adsm-ctx install-skill "$HOME/.agents/skills"
32
+ ```
33
+
34
+ The second command is required; npm lifecycle hooks do not install or update agent skills.
28
35
 
29
36
  It is not a context lifecycle mode.
30
37
 
31
38
  All lifecycle modes that operate on `ctx/docs/` use the documentation projection model in [document-projections.md](document-projections.md).
32
39
 
33
- The lifecycle must preserve ADSM's four ordered declarative documentation levels under `ctx/docs/` while allowing project-specific nested subdirectories inside them and an optional cross-cutting Verification Layer as defined in [document-projections.md](document-projections.md).
40
+ The lifecycle must preserve ADSM's four ordered declarative documentation levels under `ctx/docs/` while allowing project-specific nested subdirectories inside them and a mandatory cross-cutting Verification Layer as defined in [document-projections.md](document-projections.md).
34
41
 
35
- Validation, audit, compression, and upgrade work must recognize agent documents, semantic skins, agent/skin pairs, orphan skins, projection drift, and `ctx/assets/**` as non-authoritative artifact space.
42
+ Validation, audit, compression, and evolution work must recognize agent documents, semantic skins, agent/skin pairs, orphan skins, projection drift, and `ctx/assets/**` as non-authoritative artifact space.
36
43
 
37
44
  When a repository provides a deterministic validation command, validation work must discover and run it. Report errors and warnings separately; warning-only output is not a clean result. Clear structural errors before a quality audit.
38
45
 
@@ -49,7 +56,7 @@ The Software Evolution Loop is broader than Verification. Architecture defines b
49
56
  - Establish product meaning before architecture, then architecture before environment or code constraints. Lower levels refine but do not create upstream meaning.
50
57
  - Keep `ctx/docs/filesystem.md` limited to root-level repository navigation. Describe lower structure only in the appropriate local `AGENTS.md` files.
51
58
  - Preserve project-local materials under `ctx/agent/`; this skill defines only its boundary `AGENTS.md` and never invents tool instructions, workflows, labels, events, prompts, profiles, or agent roles.
52
- - Use only `product/`, `architecture/`, `environment/`, and `code/` as ordered ADSM declarative levels. `verification/` may be an optional cross-cutting documentation block, never a fifth level; nested structure remains project-specific.
59
+ - Use only `product/`, `architecture/`, `environment/`, and `code/` as ordered ADSM declarative levels. `verification/` is a mandatory cross-cutting documentation block, never a fifth level; nested structure remains project-specific.
53
60
  - Keep each documentation level within nine direct directories and nine direct ordinary files, excluding `AGENTS.md` and paired `*.skin.<lang>.md` files, where practical. When a level deliberately exceeds either value, its local `AGENTS.md` must explicitly record a `Documentation Capacity Exception` and the reason.
54
61
  - Place visual, generated, rendered, and auxiliary artifacts under `ctx/assets/**`; they cannot introduce authoritative project meaning.
55
62
  - Read a matching semantic skin before changing its agent document. Report projection drift or a required human decision when a change would alter skin-controlled meaning.
@@ -59,3 +66,7 @@ The Software Evolution Loop is broader than Verification. Architecture defines b
59
66
  Use the baseline architecture branch to translate accepted product intent into stable engineering structure. Typical template documents are `overview.md`, `structure.md`, `behavior.md`, `state.md`, `integration.md`, `constraints.md`, `checklists.md`, `decisions.md`, and `supervision.md`.
60
67
 
61
68
  Refine those documents or add justified nested structure, but do not introduce architectural owners, durable state, external integrations, system boundaries, or product behavior without the required upstream documentation and human approval. When architecture exposes a load-bearing product capability, invariant, or authority boundary absent from product documentation, update the product layer first or report the gap. Prefer updating documentation before code when a new architectural concept appears.
69
+
70
+ Package updates replace implementation and explicitly installed skill files; context evolution changes a project toward supported conventions. These are separate operations. A package-only update requires no evolution when the context already conforms to the supported schema; compare project metadata and actual requirements using [context evolution](context-evolution.md).
71
+
72
+ Design is agent-performed guidance using the questionnaire and specialized-skill routing; no CLI design command is provided.
@@ -1,7 +1,7 @@
1
1
  # Design Questionnaire
2
2
 
3
- - Path: `skill/references/design-questionnaire.md`
4
- - Changed: `20260917`
3
+ - Path: `skills/adsm-ctx/references/design-questionnaire.md`
4
+ - Changed: `20261024`
5
5
 
6
6
  Use this questionnaire at the start of `design` mode to classify the project and decide which specialized ADSM skills may be relevant.
7
7
 
@@ -53,4 +53,4 @@ Use this questionnaire at the start of `design` mode to classify the project and
53
53
 
54
54
  ## Verification Design Guidance
55
55
 
56
- Do not create `ctx/docs/verification/` merely because these questions were asked. When a durable specification is justified, place it under the category of its primary declaration target, link secondary targets instead of duplicating it, and route concrete test execution, monitoring, signal transport, or distributed feedback work to a specialized skill or project-local design.
56
+ Keep the mandatory `ctx/docs/verification/AGENTS.md` boundary even when no specifications are justified. Asking these questions does not justify creating target categories or placeholder specifications. When a durable specification is justified, place it under the category of its primary declaration target, link secondary targets instead of duplicating it, and route concrete test execution, monitoring, signal transport, or distributed feedback work to a specialized skill or project-local design.