@sabaiway/agent-workflow-kit 14.47.0 → 14.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,55 @@ Semantically versioned ([semver](https://semver.org)), newest first. The `versio
4
4
  is the current release. `upgrade` mode reads a project's `docs/ai/.workflow-version` and applies
5
5
  every `migrations/<version>-<slug>.md` newer than it, in semver order.
6
6
 
7
+ ## 14.49.0 — the upgrade writes the kit's current scripts and hook installer with no question and no kept-aside copy (AD-202)
8
+
9
+ **`/agent-workflow-kit upgrade` no longer asks about its own scripts.** Before, an edited or absent kit script in
10
+ `scripts/` waited for the upgrade's one yes, and an edit was kept aside under `.agent-workflow/kept-aside/` first. Now
11
+ the upgrade's `scripts` step writes every kit script that is not the bundled body, the hook installer and its two
12
+ suites first, with no question and no copy kept:
13
+
14
+ - **Each file by proof.** A body an earlier release shipped is refreshed, an edited body replaced in place, an absent
15
+ file placed; the current body is left. The line of an edited file names where an edit meant to last goes:
16
+ `scripts/pre-commit.local` for the installer, a script or suite of your own under its own name in `scripts/`, or a
17
+ config the script reads, for the rest. One closing line says the commit hook runs the files written, so they may
18
+ stop the next commit.
19
+ - **Only where you took the kit's scripts.** The step works once a kit script other than the four that memory also
20
+ places on its own (`archive-decisions.mjs`, its suite, and the `markdown-blocks.mjs` and `_expect-shim.mjs` that
21
+ memory's copied files import) stands in `scripts/`. A
22
+ project that declined the enforcement offer keeps those standing copies current, with an absent one they import
23
+ placed, gets no other kit script, and one line says so.
24
+ - **The one yes is the spec layer's alone.** The replace block and its yes now name only the four spec-layer files,
25
+ whose edit is still kept aside first. The `--only scripts` run no longer surveys the spec layer, and the step's
26
+ tokens are `seeded`, `refreshed`, `already-present`, `not-placed`, `old-adr-layout-migration-instructed` and
27
+ `skipped-no-node-evidence` (a dry run: `would-seed`, `would-refresh`); it never prints `pending`.
28
+ - **The hook line names the plain upgrade.** When the `commit-guard` or `hook-checks` apply finds a hook line the
29
+ installer left out, its line says the upgrade writes the kit's current installer over any other body with no
30
+ question; migration note 3.0.0 step 4 says the same.
31
+ - **The guide names the reserved names.** `references/contracts.md` gains *Reserved names and channels*: the names
32
+ the kit writes over are its own, a declaration seeded once is yours, five places hold your own checks, scripts,
33
+ settings, rules and an agent's model, and no path the kit bundles and places as its own has a dot-separated part
34
+ exactly `local`, so a name like `scripts/pre-commit.local` is yours (the section names its two exceptions).
35
+ - **Unchanged:** the hold-back of the decisions files on an older ADR layout, the unreadable layout keeping the
36
+ installer set current, and the upgrade never running the installer.
37
+
38
+ MINOR: no question for the kit's scripts, and a new guide section.
39
+
40
+ ## 14.48.0 — the kit's decisions script brings an ADR store current in one command; a copy of its previous body is now a known earlier body (AD-200)
41
+
42
+ **`references/scripts/archive-decisions.mjs` is memory 8.5.0's script, byte for byte.** Its new `--ensure-current`
43
+ mode judges the ADR store before any write and brings it current (migrate, rotate, the navigator only when it
44
+ differs), writing nothing when it already is; every write it makes to a project file, in every mode, replaces that
45
+ file whole through a temporary file and a rename. Detail: memory's CHANGELOG, 8.5.0.
46
+
47
+ - **The previous body is now a known earlier body.** A `scripts/archive-decisions.mjs` as memory 8.1.3 to 8.4.0
48
+ shipped it is refreshed by the upgrade's `scripts` step with no question, unless the project is on an older ADR
49
+ layout, where the decisions files stay held back, or its ADR layout cannot be read. Without this row the new bundled
50
+ body would make that copy read as an edit, named in the replace block and kept aside on the yes.
51
+ - **Unchanged until a later release:** the upgrade does not run the new mode yet; its text, the `migrate-adr-store`
52
+ mode and the hold-back of the decisions files on an older ADR layout stay as they are.
53
+
54
+ MINOR: the mirrored mode and one catalog row.
55
+
7
56
  ## 14.47.0 — the `hook-checks` item no longer replaces your hook installer; a hook line it left out names the upgrade (AD-199)
8
57
 
9
58
  **Applying `hook-checks` no longer replaces your hook installer.** Before, its apply first replaced a
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: agent-workflow-kit
3
3
  description: Deploy or upgrade a portable AI-agent memory-and-workflow system in any project. Use when the user wants to bootstrap `docs/ai/` + an entry-point `AGENTS.md` (+ `CLAUDE.md` alias) + cap/archive/index enforcement in a new or existing repo, set up the Memory Map and session protocols, install the docs-rotation pre-commit hook, or run `/agent-workflow-kit` / `/agent-workflow-kit upgrade`. Triggers on phrases like "set up the memory system", "deploy the AI workflow here", "bootstrap docs/ai", "upgrade the workflow". New to the epic, story and task tier? Run `/agent-workflow-kit tier`. A typed decision with a confidence from Jev? Run `/agent-workflow-kit jev`.
4
4
  disable-model-invocation: true
5
5
  metadata:
6
- version: '14.47.0'
6
+ version: '14.49.0'
7
7
  ---
8
8
 
9
9
  # agent-workflow-kit
package/capability.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schema": 1,
4
4
  "name": "agent-workflow-kit",
5
5
  "kind": "composition-root",
6
- "version": "14.47.0",
6
+ "version": "14.49.0",
7
7
  "provides": [],
8
8
  "roles": {},
9
9
  "detect": {
@@ -29,9 +29,8 @@ loudly, never silently.
29
29
  back to verify the arm took. A 2.x deployment's project-local `scripts/install-git-hooks.mjs`
30
30
  predates the arm: an unarmed hook after the installer's exit 0 makes the apply exit 6 with
31
31
  one line naming the hook and the guard line the installer left out, ending with the upgrade
32
- route — `/agent-workflow-kit upgrade` keeps that installer aside and replaces it with the kit's
33
- current body on its one yes (an installer this old is never refreshed without that yes) — and
34
- the item returns at the next run.
32
+ route — `/agent-workflow-kit upgrade` writes the kit's current installer over it with no
33
+ question — and the item returns at the next run.
35
34
  5. **Re-stamp:** init/upgrade re-stamps `docs/ai/.workflow-version` to 3.0.0.
36
35
 
37
36
  ## Verification
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sabaiway/agent-workflow-kit",
3
- "version": "14.47.0",
3
+ "version": "14.49.0",
4
4
  "description": "Portable, cross-agent memory & workflow for AI coding agents — Claude Code, Codex, Cursor, Devin Desktop. One command deploys an AGENTS.md entry point + docs/ai context with cap/archive/index enforcement into any repo.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -1,7 +1,8 @@
1
1
  # Setup contracts
2
2
 
3
3
  The three choices the bootstrap makes with the user — **visibility**, **conversational
4
- language**, and **agent attribution** — each have a contract below. `SKILL.md` links here so the
4
+ language**, and **agent attribution** — each have a contract below, and the names the kit bundles
5
+ and writes have theirs beside them, under *Reserved names and channels*. `SKILL.md` links here so the
5
6
  main procedure stays lean; load this file when you need the full rule for a contract (e.g. while
6
7
  filling the matching `AGENTS.md` block, or when an `upgrade` migration touches it).
7
8
 
@@ -44,7 +45,7 @@ diverge:
44
45
 
45
46
  The kit's OWN footprint (`KIT_OWN_PATHS`) — `AGENTS.md`, `CLAUDE.md`, `docs/ai/` (subsumes the stamp), the added `scripts/*.mjs`, `docs/plans/`, `.claude/settings.local.json`, `.claude/settings.json` (hidden-only — visible mode commits it), and `.mcp.json` (the `mcp` mode's registration; hidden-only for the same reason, and it carries an absolute machine path) — is always a candidate in hidden mode.
46
47
 
47
- `.agent-workflow/` is the family's reserved folder. Before an upgrade replaces a kit file the user edited, it keeps the edit there, unchanged, at `.agent-workflow/kept-aside/<16 hex>/<path>`; the folder's own `.gitignore` (`*`) keeps git from seeing the copies in either visibility mode. The copies are the user's, outside the kit's own paths: no kit tool overwrites, deletes or hides them. The kit's literal search never walks into the reserved `.agent-workflow` folder, at any depth, unless that folder or a path inside it is named as a target, and the plan-shape checks never walk into it, so an unnamed kept-aside copy never stands beside the live file in their results.
48
+ `.agent-workflow/` is the family's reserved folder. Before an upgrade replaces a spec-layer file the user edited (`scripts/spec-schema.mjs`, `scripts/spec-schema.test.mjs`, `scripts/check-docs-size.mjs`, `scripts/check-docs-size.test.mjs`), it keeps the edit there, unchanged, at `.agent-workflow/kept-aside/<16 hex>/<path>`; every other kit script is written over with no copy kept. The folder's own `.gitignore` (`*`) keeps git from seeing the copies in either visibility mode. The copies are the user's, outside the kit's own paths: no kit tool overwrites, deletes or hides them. The kit's literal search never walks into the reserved `.agent-workflow` folder, at any depth, unless that folder or a path inside it is named as a target, and the plan-shape checks never walk into it, so an unnamed kept-aside copy never stands beside the live file in their results.
48
49
 
49
50
  Not in this version: a fully-external hidden mode (artifacts relocated outside the repo tree).
50
51
  Deferred to a later release + migration.
@@ -87,3 +88,27 @@ block is about *attribution*, not authorship of the actual changes — quality,
87
88
  before commit" rule are unchanged either way.
88
89
 
89
90
  On `upgrade`, a pre-1.2.0 deployment with no block gets one (the agent asks, defaulting to `off`).
91
+
92
+ ---
93
+
94
+ ## Reserved names and channels
95
+
96
+ Every name the kit bundles and writes over on an upgrade is the kit's, and an edit there is never a
97
+ customization: the kit's scripts outside the spec layer and the hook installer set are written over
98
+ by the next upgrade with no question and no copy kept. The spec layer's pair files are replaced on
99
+ the upgrade's one yes, the edit kept aside first. A declaration seeded once from a template and never
100
+ replaced by the upgrade's ensures (a migration rewrites one only on the user's explicit yes) is the
101
+ user's own file. A customization goes into one of five channels instead:
102
+
103
+ - **Your own commit checks** go in the local hook file `scripts/pre-commit.local`: the managed
104
+ pre-commit hook runs it first, once the installer has run.
105
+ - **Your own scripts and suites** go in `scripts/` under names of your own.
106
+ - **A setting** goes in a config a script reads.
107
+ - **Your own rules** go in the local rules file `docs/ai/rules/local/<theme>.md`.
108
+ - **An agent's model** goes in the vehicle settings `docs/ai/vehicles.json`.
109
+
110
+ No path segment of a file the kit bundles and places as its own has a dot-separated part exactly
111
+ `local`; a path of that form is the user's, and no kit tool writes one on its own. Outside that rule:
112
+ `.claude/settings.local.json`, the host's local settings file, into which the kit only merges keys on
113
+ a consented item (the `--worktrees` grant), and `docs/ai/rules/local/<theme>.md`, which the agent
114
+ writes only on the user's own request.
@@ -12,7 +12,7 @@ Requires: ${CLAUDE_SKILL_DIR}/references/shared/report-footer.md · ${CLAUDE_SKI
12
12
 
13
13
  1. `pointers` — `node ${CLAUDE_SKILL_DIR}/tools/inject-methodology.mjs reconcile <project>/AGENTS.md` → per pointer: added · already present · skipped (reported) · a hard STOP; per Memory Map row of a rules theme: added · already present · refreshed · skipped (reported).
14
14
  2. `footprint` — `node ${CLAUDE_SKILL_DIR}/tools/hide-footprint.mjs --dir <project> --reconcile --dry-run` → visibility: visible · ambiguous · hidden — consent (conditional): ambiguous → ask which it is BEFORE anything; hidden → the conditional re-run without `--dry-run` (its surfaced paths ask per bootstrap step 9).
15
- 3. `configs` — `node ${CLAUDE_SKILL_DIR}/tools/ensure-configs.mjs --reconcile --cwd <project>` → one line per ensure: `seeded` / `note-refreshed` / `refreshed` / `regenerated` / `pending` / `already-current` / `customized-preserved` / `malformed-preserved` / `already-present` / `not-placed` / `skipped-no-node-evidence` / `old-adr-layout-migration-instructed` / `failed` — consent (conditional): a replace line → ONE yes naming every file its block names, each edit's kept-aside copy and that the bundled body replaces it, asked even on a non-zero exit; on the yes run the printed line, then STOP if that run fails or an op it does not re-run failed; on a no STOP on any failed op.
15
+ 3. `configs` — `node ${CLAUDE_SKILL_DIR}/tools/ensure-configs.mjs --reconcile --cwd <project>` → one line per ensure: `seeded` / `note-refreshed` / `refreshed` / `regenerated` / `pending` / `already-current` / `customized-preserved` / `malformed-preserved` / `already-present` / `not-placed` / `skipped-no-node-evidence` / `old-adr-layout-migration-instructed` / `failed` — consent (conditional): a replace line → ONE yes naming every spec-layer file its block names, each edit's kept-aside copy and that the bundled body replaces it, asked even on a non-zero exit; on the yes run the printed line, then STOP if that run fails or an op it does not re-run failed; on a no STOP on any failed op.
16
16
  4. `gates-migration` — `node ${CLAUDE_SKILL_DIR}/references/scripts/migrate-gates.mjs --kit-tools ${CLAUDE_SKILL_DIR}/tools --cwd <project>` → the preview plan · INERT checker · CUSTOMIZED entries, each named — consent: apply only on an explicit yes, re-run with `--apply`.
17
17
  5. `bridges` — `node ${CLAUDE_SKILL_DIR}/tools/setup-backends.mjs --refresh-placed` → per-bridge lines: refreshed · already current · skipped — with its stated reason (not placed / newer than the bundle / unsupported host) · `skipped-readonly` · could not refresh.
18
18
  6. `lens` — `node ${CLAUDE_SKILL_DIR}/tools/lens-region.mjs reconcile <project>/docs/ai/agent_rules.md` → per section: refreshed · already current · custom edit preserved · file absent / engine too old — skipped · over the line cap — refused · section absent — noted · a fully absent/invalid engine → hard STOP.
@@ -33,7 +33,7 @@ Requires: ${CLAUDE_SKILL_DIR}/references/shared/report-footer.md · ${CLAUDE_SKI
33
33
 
34
34
  **`footprint` — hidden-mode footprint reconcile (D9 / AD-014).** A deployment does not record whether it chose `hidden`, so first **infer visibility** — the dry-run writes **zero bytes** and reports one of — **visible** (the entry point is tracked) → nothing to do; **ambiguous** (untracked but not ignored — could be a fresh uncommitted repo, or a hide that broke) → **ASK** the user which it is, never guess; **hidden** → re-run without `--dry-run` to migrate any older **machine-global** hide to the **project-local** `.git/info/exclude` (one managed block; folds in the legacy `.claude/skills/` line), idempotently (a clean re-run is zero-diff). Handle its surfaced paths exactly as bootstrap step 9 (`${CLAUDE_SKILL_DIR}/references/modes/bootstrap.md`) (already-committed → show `git rm --cached`, ask before `--include`; generic-name present file → ask; **a leftover machine-wide ignore block is kept + reported — the advisor's `footprint-global` item removes it**). This runs on **every** hidden upgrade, like the methodology slot — no lineage-head bump, no migration file.
35
35
 
36
- **`configs` — the project-configuration ensures, ONE run.** The ONE command performs **all nine** ensures — orchestration config · gate declaration · autonomy declaration · vehicles declaration · executor check · enforcement scripts · spec layer · project rules · navigator index — in a fixed order, and prints **one outcome line per ensure**: paste those lines into the step 4 / step 8 success report. Every SEED is **create-only** (an existing file is preserved byte-for-byte); a refresh-class op rewrites only what it owns — the outcome tokens by ensure, below, name each arm. One ensure failing **never** skips the others: each reports its own outcome and the run exits non-zero when any of them `failed`. The outcome tokens, by ensure: orchestration → `seeded` / `note-refreshed` / `already-current` / `customized-preserved` / `malformed-preserved`; gates, autonomy and vehicles → `seeded` / `already-present`; executor → `not-placed` / `already-current` / `pending`; scripts → `refreshed` / `pending` / `already-present` / `not-placed` / `old-adr-layout-migration-instructed` / `skipped-no-node-evidence`, with `seeded` on the replace run; specs → `seeded` / `refreshed` / `already-present` / `customized-preserved` / `skipped-no-node-evidence`; rules → `seeded` / `refreshed` / `regenerated` / `pending` / `customized-preserved` / `already-current`; index → `regenerated` / `already-current` / `customized-preserved`; and any ensure may report `failed`, whose line OPENS with the cause (relay it with that cause — never soften it into a skip; an op that copies file by file also states when it stopped partway). The cause vocabulary is CLOSED — one of `race-unresolved`, `template-unreadable`, `bundle-unreadable`, `adr-layout-unverifiable`, `node-evidence-unverifiable`, `wrong-node-kind`, `vehicle-settings-unreadable`, `write-refused`, `unexpected-error`, `generator-unlaunchable`, `generator-failed`, `index-probe-failed`, `index-stale-after-write` — and every cause that can only arise AFTER the generator ran (`generator-failed`, and `index-probe-failed` / `index-stale-after-write` when they follow a reported regeneration) DISCLOSES in its own line that a write may already have landed. **A non-zero exit STOPs this upgrade — once row 3's replace ask is answered when a replace line printed, then as that ask says** — before the equal-head exit, the migrations and the re-stamp. Add `--dry-run` to preview without writing a byte. Like the pointer slots + the footprint reconcile, all nine reach an equal-head deployment **without a lineage-head bump or a migration file**.
36
+ **`configs` — the project-configuration ensures, ONE run.** The ONE command performs **all nine** ensures — orchestration config · gate declaration · autonomy declaration · vehicles declaration · executor check · enforcement scripts · spec layer · project rules · navigator index — in a fixed order, and prints **one outcome line per ensure**: paste those lines into the step 4 / step 8 success report. Every SEED is **create-only** (an existing file is preserved byte-for-byte); a refresh-class op rewrites only what it owns — the outcome tokens by ensure, below, name each arm. One ensure failing **never** skips the others: each reports its own outcome and the run exits non-zero when any of them `failed`. The outcome tokens, by ensure: orchestration → `seeded` / `note-refreshed` / `already-current` / `customized-preserved` / `malformed-preserved`; gates, autonomy and vehicles → `seeded` / `already-present`; executor → `not-placed` / `already-current` / `pending`; scripts → `seeded` / `refreshed` / `already-present` / `not-placed` / `old-adr-layout-migration-instructed` / `skipped-no-node-evidence`; specs → `seeded` / `refreshed` / `already-present` / `customized-preserved` / `skipped-no-node-evidence`; rules → `seeded` / `refreshed` / `regenerated` / `pending` / `customized-preserved` / `already-current`; index → `regenerated` / `already-current` / `customized-preserved`; and any ensure may report `failed`, whose line OPENS with the cause (relay it with that cause — never soften it into a skip; an op that copies file by file also states when it stopped partway). The cause vocabulary is CLOSED — one of `race-unresolved`, `template-unreadable`, `bundle-unreadable`, `adr-layout-unverifiable`, `node-evidence-unverifiable`, `wrong-node-kind`, `vehicle-settings-unreadable`, `write-refused`, `unexpected-error`, `generator-unlaunchable`, `generator-failed`, `index-probe-failed`, `index-stale-after-write` — and every cause that can only arise AFTER the generator ran (`generator-failed`, and `index-probe-failed` / `index-stale-after-write` when they follow a reported regeneration) DISCLOSES in its own line that a write may already have landed. **A non-zero exit STOPs this upgrade — once row 3's replace ask is answered when a replace line printed, then as that ask says** — before the equal-head exit, the migrations and the re-stamp. Add `--dry-run` to preview without writing a byte. Like the pointer slots + the footprint reconcile, all nine reach an equal-head deployment **without a lineage-head bump or a migration file**.
37
37
 
38
38
  **What the orchestration-config ensure does.** `docs/ai/orchestration.json` must exist **and its onboarding note must be current**: created from the canonical seed if missing; if it already exists, **every activity/slot the user set is preserved** and ONLY the `_README` note is refreshed, and only when the existing one still matches a known prior canonical — `refreshIfCanonical` / `refreshReadme` in `tools/orchestration-config.mjs` decide it (CRLF/whitespace normalized first; a *customized* `_README` is preserved verbatim → `customized-preserved`; a *malformed* existing config is **preserved untouched + LOUD** → `malformed-preserved`, never clobbered and never silently skipped). The current note points at `/agent-workflow-kit set-recipe`. **Kit-owned:** in the **delegated** path memory only seeds/preserves the file (memory upgrade step 2) and this ensure applies the `_README` refresh; in the **fallback** path it does both. (Memory stays standalone.)
39
39
 
@@ -43,7 +43,7 @@ Requires: ${CLAUDE_SKILL_DIR}/references/shared/report-footer.md · ${CLAUDE_SKI
43
43
 
44
44
  **What the executor ensure does.** It never writes: a placed `.claude/agents/executor.md` whose bytes differ from the body derived from `docs/ai/vehicles.json` is `pending` — the advisor's `executor-vehicle.differing` item re-derives it on the user's yes — and an absent one is `not-placed` (the agents mode places it on consent).
45
45
 
46
- **What the enforcement-script ensure does.** It judges every kit script — each `*.mjs` of `${CLAUDE_SKILL_DIR}/references/scripts/` but the spec-layer pairs — once the component is accepted: one of them stands in `scripts/` as a regular file (else `not-placed`, nothing written). Each file by proof: a body a release shipped is refreshed to the bundled one with no yes; the current body is left; an edited body and an absent file are named in the replace block, kept aside and replaced or placed only on row 3's one yes, each line adding that the commit hook runs it, so it may stop the next commit. The hook installer and its two suites are written first. **OLD ADR-store layout — DETECTED, never auto-migrated (AD-051, Decision 13):** on a `docs/ai/history/decisions-archive*.md` monolith (`old`), or no monolith but a deployed rotator predating the store (`old-unrotated`), the decisions group (`archive-decisions.mjs`, `archive-decisions.test.mjs`, `archiver-structure.test.mjs`) is held back and the ensure reports `old-adr-layout-migration-instructed`. Relay it as the LOUD instruct it is: the fix is the opt-in **`/agent-workflow-kit migrate-adr-store`** (consent-gated; previews first, never commits); the next upgrade judges the group. A layout the ensure cannot READ is `failed`: the installer set alone is kept current, every other kit script waits. Where the size practice measures `scripts/`, a refresh or a placement may grow a root past its record: the size check names its own reasoned `--write-baseline`. **Whether Node runs here is PROVEN, never proxied:** the ensure runs on a regular `package.json` at the root OR on any kit-seeded `scripts/*.mjs` already deployed; only when every probe answers absent does it report `skipped-no-node-evidence`, a line naming every probe it checked, while the config ensures still run; a probe that cannot be read is `failed` with the cause `node-evidence-unverifiable`, nothing written. **A `skipped-*` outcome whose stated reason this tool could itself disprove may not exist**. A deployed pre-commit hook takes a new installer body only when the installer next runs: the `enforcement` check line and apply, by the consent route, re-run it (it refuses a non-marker hook as always); until then `scripts/pre-commit.local` does not run.
46
+ **What the enforcement-script ensure does.** It judges every kit script — each `*.mjs` of `${CLAUDE_SKILL_DIR}/references/scripts/` but the spec-layer pairs — once the component is accepted: a kit script outside the seed names (memory's own copies) stands in `scripts/` as a regular file. Each file by proof, with no question and no copy kept: a shipped prior is refreshed, an edited body replaced (its line names where a lasting edit goes), an absent file placed, the current body left. The hook installer and its two suites go first; a closing line says the commit hook runs the files written. A declined enforcement offer keeps the standing seed files current with the modules they import, places no other kit script (one line says so) and words that hook-run line as a condition. With no kit script there: `not-placed`, nothing written. **OLD ADR-store layout — DETECTED, never auto-migrated (AD-051, Decision 13):** on a `docs/ai/history/decisions-archive*.md` monolith (`old`), or no monolith but a deployed rotator predating the store (`old-unrotated`), the decisions group (`archive-decisions.mjs`, `archive-decisions.test.mjs`, `archiver-structure.test.mjs`) is held back and the ensure reports `old-adr-layout-migration-instructed`. Relay it LOUD: the fix is the opt-in **`/agent-workflow-kit migrate-adr-store`** (previews first, never commits); the next upgrade judges the group. A layout the ensure cannot READ is `failed`: the installer set alone is kept current, every other kit script waits. Where the size practice measures `scripts/`, a write may grow a root past its record: the size check names its own reasoned `--write-baseline`. **Whether Node runs here is PROVEN, never proxied:** the ensure runs on a regular `package.json` at the root OR on any kit-seeded `scripts/*.mjs` already deployed; only when every probe answers absent does it report `skipped-no-node-evidence`, a line naming every probe it checked, while the config ensures still run; a probe that cannot be read is `failed` with the cause `node-evidence-unverifiable`, nothing written. **A `skipped-*` outcome whose stated reason this tool could itself disprove may not exist**. A deployed pre-commit hook takes a new installer body only when the installer next runs: the `enforcement` check line and apply, by the consent route, re-run it (it refuses a non-marker hook as always); until then `scripts/pre-commit.local` does not run.
47
47
 
48
48
  **What the navigator ensure does.** `docs/ai/index.md` is the always-loaded navigator the entry point declares, and it is GENERATED — no template ships it, so a deployment that never ran the generator boots from a broken entry point (and a Node project's hook fails its index check). The ensure runs the bundled generator's finalizer and reports `regenerated` (it was missing or stale — it was written) or `already-current` (nothing written); under a hook module that is not the bundled one, a write the project's own checker rejects is put back → `customized-preserved`. It never skips a No-Node project: the generator runs from `${CLAUDE_SKILL_DIR}/references/scripts/` on the agent host, not from the project's `scripts/`. **Its position in the run-list is EARLY and therefore NOT authoritative** — `lens` (and, on the migrated path, steps 6–7) still change `docs/ai` afterwards — so the authoritative run is the LATE `--only index` rung documented at both exits; the early one is idempotent: an untouched tree changes nothing.
49
49