@flancer32/skill-adsm-ctx 0.4.0 → 0.5.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 (65) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +42 -39
  3. package/bin/adsm-ctx.mjs +1 -1
  4. package/package.json +4 -18
  5. package/{skill → skills/adsm-ctx}/SKILL.md +21 -5
  6. package/{skill → skills/adsm-ctx}/references/agents-hierarchy.md +1 -1
  7. package/skills/adsm-ctx/references/context-evolution.md +55 -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 +10 -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/templates/AGENTS.md +19 -0
  17. package/skills/adsm-ctx/templates/ctx/AGENTS.md +46 -0
  18. package/{skill → skills/adsm-ctx}/templates/ctx/README.md +1 -1
  19. package/{skill → skills/adsm-ctx}/templates/ctx/adsm.json +1 -1
  20. package/skills/adsm-ctx/templates/ctx/agent/AGENTS.md +32 -0
  21. package/skills/adsm-ctx/templates/ctx/docs/AGENTS.md +64 -0
  22. package/{skill → skills/adsm-ctx}/templates/ctx/docs/code/testing.md +1 -1
  23. package/skills/adsm-ctx/templates/ctx/docs/verification/AGENTS.md +31 -0
  24. package/src/Init/Service.mjs +5 -26
  25. package/src/Shared/Constants.mjs +3 -1
  26. package/src/Skill/Installer.mjs +3 -3
  27. package/src/Validate/Service.mjs +73 -18
  28. package/types.d.ts +0 -4
  29. package/migrations/README.md +0 -13
  30. package/skill/references/upgrade-policy.md +0 -29
  31. package/skill/templates/AGENTS.md +0 -120
  32. package/skill/templates/ai/AGENTS.md +0 -59
  33. package/skill/templates/ctx/AGENTS.md +0 -45
  34. package/skill/templates/ctx/agent/AGENTS.md +0 -36
  35. package/skill/templates/ctx/docs/AGENTS.md +0 -58
  36. package/src/Cli/Command/Design.mjs +0 -17
  37. package/src/Cli/Command/Upgrade.mjs +0 -19
  38. package/src/Design/Service.mjs +0 -38
  39. package/src/Upgrade/Service.mjs +0 -44
  40. /package/{skill/templates/work → skills/adsm-ctx/assets}/context/semantic-skin.md +0 -0
  41. /package/{skill/templates/work → skills/adsm-ctx/assets}/report/documentation-compression.md +0 -0
  42. /package/{skill/templates/work → skills/adsm-ctx/assets}/report/documentation-quality-audit.md +0 -0
  43. /package/{skill → skills/adsm-ctx}/templates/ctx/assets/.gitkeep +0 -0
  44. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/ai-intro.md +0 -0
  45. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/AGENTS.md +0 -0
  46. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/behavior.md +0 -0
  47. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/checklists.md +0 -0
  48. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/constraints.md +0 -0
  49. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/decisions.md +0 -0
  50. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/integration.md +0 -0
  51. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/overview.md +0 -0
  52. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/state.md +0 -0
  53. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/structure.md +0 -0
  54. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/architecture/supervision.md +0 -0
  55. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/code/AGENTS.md +0 -0
  56. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/code/overview.md +0 -0
  57. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/environment/AGENTS.md +0 -0
  58. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/environment/overview.md +0 -0
  59. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/filesystem.md +0 -0
  60. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/AGENTS.md +0 -0
  61. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/domain.md +0 -0
  62. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/glossary.md +0 -0
  63. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/overview.md +0 -0
  64. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/roles.md +0 -0
  65. /package/{skill → skills/adsm-ctx}/templates/ctx/docs/product/use-cases.md +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  All notable changes to this package are documented in this file.
4
4
 
5
+ ## 0.5.0 — 2026-10-24
6
+
7
+ - 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.
8
+ - 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`.
9
+ - 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.
10
+ - 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.
11
+ - 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.
12
+ - 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.
13
+ - Improve read-only validation of verification structure, context-side AGENTS sections, and documentation navigation. Align repository documentation, semantic skins, and durable verification contracts.
14
+ - Add CI on Node.js 20 and 24, complete-payload archive and isolated installation checks, version-independence coverage, and whole-context preservation checks.
15
+
5
16
  ## 0.4.0 - 2026-09-23
6
17
 
7
18
  ### Added
package/README.md CHANGED
@@ -4,7 +4,7 @@ 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
 
@@ -15,8 +15,8 @@ The package includes:
15
15
  - the `adsm-ctx` CLI for lifecycle operations;
16
16
  - the `adsm-ctx` skill payload for AI agents;
17
17
  - reusable `ctx/` templates for bootstrapping ADSM-compatible projects;
18
- - optional Verification Layer documentation lifecycle support;
19
- - working templates for agent-produced reports.
18
+ - mandatory Verification Layer documentation lifecycle support;
19
+ - supporting assets for agent-produced reports.
20
20
 
21
21
  ## Purpose
22
22
 
@@ -27,10 +27,10 @@ Use this package when you need to:
27
27
  - validate whether an existing context follows expected ADSM structure;
28
28
  - audit a documentation corpus against ADSM documentation quality criteria;
29
29
  - 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.
30
+ - evolve a context using the skill when ADSM conventions change;
31
+ - design, validate, audit, or compress a mandatory cross-cutting Verification Layer.
32
32
 
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.
33
+ 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
34
 
35
35
  The bundled baseline now covers both:
36
36
 
@@ -46,7 +46,7 @@ This package does not:
46
46
  - write domain-specific architecture content as if it knew the project;
47
47
  - perform automatic semantic scoring or correction of documentation quality;
48
48
  - change project meaning during documentation compression;
49
- - perform destructive upgrades without explicit review.
49
+ - change accepted meaning without explicit review.
50
50
 
51
51
  ## Requirements
52
52
 
@@ -55,18 +55,15 @@ This package does not:
55
55
 
56
56
  ## Installation And Update
57
57
 
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:
58
+ Install the package and then explicitly install its matching agent payload:
65
59
 
66
60
  ```sh
61
+ npm install --global git+ssh://git@github.com/flancer32/skill-adsm-ctx.git
67
62
  adsm-ctx install-skill "$HOME/.agents/skills"
68
63
  ```
69
64
 
65
+ 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.
66
+
70
67
  The command replaces only `$HOME/.agents/skills/adsm-ctx`; it does not modify other installed skills.
71
68
 
72
69
  Verify the runtime and payload:
@@ -79,11 +76,11 @@ test -f "$HOME/.agents/skills/adsm-ctx/SKILL.md"
79
76
  To update, update the global npm package and reinstall its payload:
80
77
 
81
78
  ```sh
82
- npm update --global @flancer32/skill-adsm-ctx
79
+ npm install --global git+ssh://git@github.com/flancer32/skill-adsm-ctx.git
83
80
  adsm-ctx install-skill "$HOME/.agents/skills"
84
81
  ```
85
82
 
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.
83
+ 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
84
 
88
85
  For a project-pinned CI or team workflow, install the package locally and invoke the same public launcher with npm:
89
86
 
@@ -106,12 +103,6 @@ Initialize a context in the current directory:
106
103
  adsm-ctx init
107
104
  ```
108
105
 
109
- Design guidance for a project context:
110
-
111
- ```sh
112
- adsm-ctx design
113
- ```
114
-
115
106
  Validate an existing project context:
116
107
 
117
108
  ```sh
@@ -124,11 +115,7 @@ Validate a specific path:
124
115
  adsm-ctx validate <project-root>
125
116
  ```
126
117
 
127
- Run the upgrade entry point:
128
-
129
- ```sh
130
- adsm-ctx upgrade
131
- ```
118
+ For existing contexts, ask the agent to use skill `adsm-ctx` and its evolution procedure. There is no CLI evolution command.
132
119
 
133
120
  Install the bundled skill payload:
134
121
 
@@ -146,15 +133,15 @@ teq --host @flancer32/skill-adsm-ctx adsm-ctx:validate .
146
133
 
147
134
  ### `init`
148
135
 
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.
136
+ Creates the minimal ADSM-compatible context structure, starter documents, and `ctx/adsm.json` metadata. Schema `0.5.0` creates all five documentation directories, including `ctx/docs/verification/AGENTS.md`, without empty target categories or placeholder specifications.
150
137
 
151
138
  ### `design`
152
139
 
153
- Provides guidance for classifying the project, choosing relevant documentation branches, and identifying when specialized ADSM skills should be used.
140
+ 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
141
 
155
142
  ### `validate`
156
143
 
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.
144
+ 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
145
 
159
146
  ### `quality-audit`
160
147
 
@@ -168,21 +155,21 @@ Guides an agent through controlled rewrite of a documentation corpus to reduce s
168
155
 
169
156
  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
157
 
171
- ### `upgrade`
158
+ ### Agent-driven evolution
172
159
 
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.
160
+ 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.5.0` only after structural checks and semantic review succeed, then validates again. npm versioning remains independent.
174
161
 
175
162
  ## Workflow
176
163
 
177
164
  Recommended sequence:
178
165
 
179
166
  1. Run `adsm-ctx init` in a new project repository.
180
- 2. Run `adsm-ctx design` to shape the context for the actual project.
167
+ 2. Ask the agent to use the skill’s design questionnaire to shape the context for the actual project.
181
168
  3. Use specialized skills where the project needs domain-specific documentation.
182
169
  4. Run `adsm-ctx validate` as the deterministic preflight as the context evolves.
183
170
  5. Use the skill's `quality-audit` mode only after structural validation passes or leaves warnings only.
184
171
  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.
172
+ 7. Use the skill evolution procedure when conventions change; CLI validation supplies read-only structural findings.
186
173
 
187
174
  ## Documentation Levels
188
175
 
@@ -197,7 +184,7 @@ product
197
184
 
198
185
  Use the architecture level once product meaning is clear enough to define stable engineering guardrails.
199
186
 
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.
187
+ `ctx/docs/verification/` is mandatory and cross-cutting in schema `0.5.0`. 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
188
 
202
189
  The bundled architecture templates expect these top-level documents:
203
190
 
@@ -230,11 +217,11 @@ For `AGENTS.md` authoring, `Level Boundary` sections should stay compact and gua
230
217
 
231
218
  The CLI performs local filesystem operations and structural validation.
232
219
 
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.
220
+ 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
221
 
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`.
222
+ 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
223
 
237
- Documentation compression uses `skill/references/documentation-compression.md` and the working report template at `skill/templates/work/report/documentation-compression.md`.
224
+ Documentation compression uses `skills/adsm-ctx/references/documentation-compression.md` and the report asset at `skills/adsm-ctx/assets/report/documentation-compression.md`.
238
225
 
239
226
  The skill does not directly invoke other skills. It instructs the agent to select and use them when relevant.
240
227
 
@@ -262,7 +249,7 @@ npm test
262
249
 
263
250
  ## Changelog
264
251
 
265
- See [CHANGELOG.md](CHANGELOG.md) for the prepared, unpublished 0.4.0 release notes.
252
+ See [CHANGELOG.md](CHANGELOG.md) for the dated release notes.
266
253
 
267
254
  ## Status
268
255
 
@@ -271,3 +258,19 @@ This repository contains a working skeleton intended as a foundation for future
271
258
  ## License
272
259
 
273
260
  Apache-2.0
261
+
262
+ ## Versioning And Compatibility
263
+
264
+ Release `0.5.0` uses npm package `0.5.0` and context schema `0.5.0`. These numbers have independent responsibilities: the package versions CLI, validator, skill, templates, and fixes; the schema versions accepted context conventions. Package `0.5.1` may fix a validator while retaining schema `0.5.0`, requiring no context evolution.
265
+
266
+ `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.5.0`; older labels receive evolution guidance and unknown versions require investigation.
267
+
268
+ 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.
269
+
270
+ ## Continuous Integration
271
+
272
+ 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`, context validation, and `npm pack --dry-run`.
273
+
274
+ 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.
275
+
276
+ 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.5.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,12 @@
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": "npm run test:unit && npm run test:integration && npm run test:package"
35
33
  },
36
34
  "dependencies": {
37
35
  "@teqfw/cli": "^2.2.0",
@@ -56,24 +54,12 @@
56
54
  "arguments": [{"name": "target-path", "kind": "string", "description": "Project root; defaults to the current working directory."}],
57
55
  "component": "Fl32_Skill_Adsm_Ctx_Cli_Command_Init$"
58
56
  },
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
57
  {
66
58
  "id": "adsm-ctx:validate",
67
59
  "summary": "Validate an ADSM context.",
68
60
  "arguments": [{"name": "target-path", "kind": "string", "description": "Project root; defaults to the current working directory."}],
69
61
  "component": "Fl32_Skill_Adsm_Ctx_Cli_Command_Validate$"
70
62
  },
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
63
  {
78
64
  "id": "adsm-ctx:install-skill",
79
65
  "summary": "Install the bundled agent skill payload.",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: adsm-ctx
3
- description: Use when initializing, designing, validating, auditing, compressing, or upgrading ADSM project cognitive context. This skill orchestrates generic context lifecycle work and routes agents toward specialized skills when project-specific context branches are needed.
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
4
  ---
5
5
 
6
6
  # ADSM Context Lifecycle
@@ -26,12 +26,14 @@ Humans own direction, accepted meaning, approval, and accountability. Agents ref
26
26
  | `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. |
27
27
  | `quality-audit` | Run `validate` first; then load [documentation-quality-audit.md](references/documentation-quality-audit.md). Report findings; do not rewrite project meaning. |
28
28
  | `documentation-compression` | Load [documentation-compression.md](references/documentation-compression.md). Rewrite only with authorization and preserve accepted meaning. |
29
- | `upgrade` | Load [upgrade-policy.md](references/upgrade-policy.md) and [context-lifecycle.md](references/context-lifecycle.md). Apply only safe, explicit migrations. |
29
+ | 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. |
30
30
  | `AGENTS.md` or local context routing | Load [agents-hierarchy.md](references/agents-hierarchy.md). |
31
31
  | `ctx/agent/`, templates, or generic ownership boundary | Load [orchestration-model.md](references/orchestration-model.md). |
32
32
  | Browser, backend, data, deployment, or concrete tool workflow | Load [specialized-skills.md](references/specialized-skills.md), then use a matching available specialized skill. |
33
33
 
34
- `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.
34
+ `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.
35
+
36
+ Context design is performed by the agent using the questionnaire and references; there is no CLI `design` command.
35
37
 
36
38
  ## Non-Negotiable Boundaries
37
39
 
@@ -40,9 +42,23 @@ Humans own direction, accepted meaning, approval, and accountability. Agents ref
40
42
  - 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.
41
43
  - Keep `ctx/agent/` project-local: install only its boundary `AGENTS.md`; do not impose tool-specific structure, labels, prompts, roles, or executable profiles.
42
44
  - Keep assets under `ctx/assets/**`; they may illustrate, but never define, authoritative meaning.
43
- - Preserve the four ordered declarative documentation levels under `ctx/docs/`: `product`, `architecture`, `environment`, and `code`. Allow an optional cross-cutting `verification/` block only as defined in [document-projections.md](references/document-projections.md); it is never a fifth level.
45
+ - 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.
44
46
  - 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`.
45
47
 
48
+ ## Evolution Authority
49
+
50
+ 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.
51
+
46
52
  ## Completion
47
53
 
48
- Finish with explicit validation results, Verification Layer adoption state when relevant, specialization gaps, human decisions, and any preserved project-specific content. Use the relevant templates under `templates/ctx/` for initialization and `templates/work/` only when a working report is requested.
54
+ 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.
55
+
56
+ The current target is schema `0.5.0`. npm package updates and context evolution are separate: package patches may retain the same supported schema. 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.
57
+
58
+ ## Resource Ownership
59
+
60
+ - `references/` contains methodology, instructions, and agent guidance.
61
+ - `templates/AGENTS.md` and `templates/ctx/` are the deterministic, non-destructive project initialization sources.
62
+ - `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.
63
+
64
+ 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,6 +1,6 @@
1
1
  # AGENTS Hierarchy
2
2
 
3
- - Path: `skill/references/agents-hierarchy.md`
3
+ - Path: `skills/adsm-ctx/references/agents-hierarchy.md`
4
4
  - Changed: `20260715`
5
5
 
6
6
  This reference operationalizes `AGENTS.md` handling for ADSM contexts.
@@ -0,0 +1,55 @@
1
+ # Agent-Driven Context Evolution
2
+
3
+ - Path: `skills/adsm-ctx/references/context-evolution.md`
4
+ - Changed: `20261024`
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
+ ## Target And Responsibilities
9
+
10
+ The current target is context schema `adsm-context` version `0.5.0`, independent of the npm package version. 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.
11
+
12
+ 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.
13
+
14
+ ## 1. Discover
15
+
16
+ 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.
17
+
18
+ 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.
19
+
20
+ ## 2. Interpret
21
+
22
+ 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.
23
+
24
+ ## 3. Compare
25
+
26
+ Compare actual structure and meaning with current target conventions, even when the recorded version is unknown or already `0.5.0`. 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.
27
+
28
+ 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.
29
+
30
+ ## 4. Plan
31
+
32
+ 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.
33
+
34
+ ## 5. Evolve
35
+
36
+ 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.5.0`, 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.
37
+
38
+ 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.
39
+
40
+ ## 6. Validate
41
+
42
+ 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 a known older 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.
43
+
44
+ ## 7. Finalize
45
+
46
+ Only after target structural requirements and semantic consistency are satisfied, update `ctx/adsm.json` to version `0.5.0`, 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.
47
+
48
+ 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.
49
+
50
+
51
+ ## Package Updates And Schema Compatibility
52
+
53
+ 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.5.1` may support schema `0.5.0` unchanged. Never infer compatibility from numerical equality.
54
+
55
+ 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. Older or intermediate labels, including `0.3.0`, do not require sequential migrations; investigate actual state and evolve directly toward the understood target. 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.
@@ -1,9 +1,9 @@
1
1
  # Documentation Projections
2
2
 
3
- - Path: `skill/references/document-projections.md`
4
- - Changed: `20260917`
3
+ - Path: `skills/adsm-ctx/references/document-projections.md`
4
+ - Changed: `20261024`
5
5
 
6
- Use this reference whenever an agent initializes, designs, validates, audits, compresses, or upgrades ADSM documentation under `ctx/docs/`.
6
+ Use this reference whenever an agent initializes, designs, validates, audits, compresses, or evolves ADSM documentation under `ctx/docs/`.
7
7
 
8
8
  ## Core Model
9
9
 
@@ -100,7 +100,7 @@ Projection drift includes:
100
100
 
101
101
  Validation should report structural drift such as orphan skins.
102
102
 
103
- Audit, compression, and upgrade work should report semantic drift when it can be evidenced from the documents.
103
+ Audit, compression, and evolution work should report semantic drift when it can be evidenced from the documents.
104
104
 
105
105
  ## Documentation Levels And Verification Layer
106
106
 
@@ -120,9 +120,9 @@ Their meanings remain:
120
120
  - `environment` — accepted runtime and deployment conditions;
121
121
  - `code` — accepted implementation and engineering constraints.
122
122
 
123
- `ctx/docs/verification/` is an optional cross-cutting documentation block. It relates declarations to observations of reality, but is not a fifth refinement level and does not change declaration authority.
123
+ `ctx/docs/verification/` is a mandatory cross-cutting documentation block. It relates declarations to observations of reality, but is not a fifth refinement level and does not change declaration authority.
124
124
 
125
- Create the block only when the project has a durable verification specification. Its root requires `AGENTS.md`; direct categories are optional `product/`, `architecture/`, `environment/`, and `code/`. Create a category only when a durable specification exists beneath it. Do not initialize empty categories or placeholder specifications.
125
+ Require the block in schema `0.5.0`, even when it contains only `AGENTS.md`. Its root requires `AGENTS.md`; direct categories are optional `product/`, `architecture/`, `environment/`, and `code/`. Create a category only when a durable specification exists beneath it. Do not initialize empty categories or placeholder specifications.
126
126
 
127
127
  A verification specification has one canonical home selected by its **primary verification target**: the declaration or bounded declaration group whose truth it chiefly evaluates. It may link to secondary declarations, executable tests, monitors, environments, dependencies, and other contexts. Mechanism, test framework, source path, CI job, endpoint, reporting context, and current Responsible Context do not determine placement.
128
128
 
@@ -202,7 +202,7 @@ Do not use `AGENTS.md` as a replacement for agent documents or skins.
202
202
 
203
203
  Documentation quality audit should:
204
204
 
205
- - recursively include ordinary `*.md` agent documents under the four declarative levels and under an adopted `verification/` block;
205
+ - recursively include ordinary `*.md` agent documents under the four declarative levels and under the mandatory `verification/` block;
206
206
  - classify `*.skin.<lang>.md` files as human-facing semantic skins;
207
207
  - detect agent/skin document groups by same basename and directory;
208
208
  - report orphan skins;
@@ -217,7 +217,7 @@ Deterministic validation should:
217
217
  - require every `*.skin.<lang>.md` file to have a paired non-skin `*.md` document and an explicit valid language marker;
218
218
  - require an explicit valid language marker, reversible paired-base resolution, and no redundant `Agent Document` section;
219
219
  - verify local markdown document links under `ctx/docs/**`;
220
- - accept absence of `ctx/docs/verification/`, but when it is present require its `AGENTS.md`, recognized primary-target category directories, and at least one durable specification in every created category;
220
+ - require `ctx/docs/verification/AGENTS.md`, accept an AGENTS-only root, and require recognized primary-target categories with at least one durable specification in every created category;
221
221
  - keep verification category placement and evidence sufficiency as semantic audit work rather than claiming them from directory shape;
222
222
  - warn when a documentation level contains more than nine direct directories or more than nine direct ordinary files (excluding `AGENTS.md` and paired `*.skin.<lang>.md` files), and require an explicit `Documentation Capacity Exception` in that level's `AGENTS.md`;
223
223
  - keep ordinary agent-document shape checks minimal instead of imposing a rigid body template.
@@ -238,9 +238,9 @@ When compressing an agent document with a matching skin, preserve the skin's pur
238
238
 
239
239
  When an agent document contains human-facing semantic framing that should be preserved independently for human supervision, recommend extracting a matching skin unless the human has not authorized that migration.
240
240
 
241
- ## Upgrade Rules
241
+ ## Evolution Rules
242
242
 
243
- Upgrades should:
243
+ Follow [the agent evolution procedure](context-evolution.md). Deterministic CLI checks do not change context or metadata. Agent evolution should:
244
244
 
245
245
  - preserve existing agent documents and project-specific nested subdirectories;
246
246
  - add or recommend skins only where human semantic control is clear;
@@ -1,7 +1,7 @@
1
1
  # Documentation Compression
2
2
 
3
- - Path: `skill/references/documentation-compression.md`
4
- - Changed: `20260917`
3
+ - Path: `skills/adsm-ctx/references/documentation-compression.md`
4
+ - Changed: `20261024`
5
5
 
6
6
  Use this reference when an agent must compress an existing ADSM cognitive documentation corpus while preserving accepted project meaning.
7
7
 
@@ -16,7 +16,7 @@ Compress the project cognitive documentation corpus under `ctx/docs/`.
16
16
  Follow this method:
17
17
 
18
18
  1. Read the applicable `AGENTS.md` hierarchy from the repository root to the target documentation scope. For the default scope, this means the hierarchy from the repository root to `ctx/docs/`.
19
- 2. Read `skill/references/document-projections.md` for agent/skin classification and projection drift rules.
19
+ 2. Read [document-projections.md](document-projections.md) from this installed skill for agent/skin classification and projection drift rules.
20
20
  3. Use `ctx/docs/` as the default corpus unless the human explicitly provides another scope.
21
21
  4. Exclude operational context outside `ctx/docs/` by default, including `ctx/agent/`, workflow configuration, prompt assets, generated reports, runtime materials, and `ctx/assets/**`.
22
22
  5. Treat ordinary `*.md` files as agent-facing operational context documents and `*.skin.<lang>.md` files as human-facing semantic skins.
@@ -28,13 +28,13 @@ Follow this method:
28
28
  11. Avoid inventing, weakening, generalizing, or silently deleting project-specific knowledge.
29
29
  12. Update `Changed` attributes for every modified context document.
30
30
  13. Report non-editorial uncertainty and skin contradictions as human decisions instead of resolving them by rewrite.
31
- 14. Use `templates/work/report/documentation-compression.md` as the report structure when a file report is requested.
31
+ 14. Use [the compression report template](../assets/report/documentation-compression.md) as the report structure when a file report is requested.
32
32
 
33
33
  ## Corpus Selection
34
34
 
35
35
  The default corpus is `ctx/docs/`.
36
36
 
37
- Documentation compression is intended for declarative project documentation under the four ADSM levels: product, architecture, environment, and code, plus an adopted optional Verification Layer when it is in scope.
37
+ Documentation compression is intended for declarative project documentation under the four ADSM levels: product, architecture, environment, and code, plus the mandatory Verification Layer when it is in scope.
38
38
 
39
39
  Do not include operational context outside `ctx/docs/` by default, including `ctx/agent/`, generated reports, prompt assets, workflow configuration, runtime materials, `ctx/assets/**`, or other agent-operation artifacts.
40
40