@inventarch/cli 3.1.0 → 3.1.1

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 (93) hide show
  1. package/README.md +221 -23
  2. package/SPEC.md +20 -20
  3. package/assets/base/df626d1dc4949649ba7203842b29b4f064e0552e8db8c2c41ff74b6462b81b75.ia.tgz +0 -0
  4. package/assets/base.json +3 -3
  5. package/assets/host/f91ffe4c2071b196e925e93507bd661b3e09f5dc75392f7d6453fdbec5e28d62.tgz +0 -0
  6. package/assets/host.json +3 -3
  7. package/assets/vocabulary.json +1 -1
  8. package/dist/author.d.ts.map +1 -1
  9. package/dist/author.js +6 -7
  10. package/dist/author.js.map +1 -1
  11. package/dist/briefing.d.ts +2 -2
  12. package/dist/briefing.d.ts.map +1 -1
  13. package/dist/capture.d.ts +2 -2
  14. package/dist/capture.js +7 -7
  15. package/dist/commands.d.ts +7 -7
  16. package/dist/commands.d.ts.map +1 -1
  17. package/dist/commands.js +26 -28
  18. package/dist/commands.js.map +1 -1
  19. package/dist/consumer.d.ts +24 -24
  20. package/dist/consumer.js +33 -33
  21. package/dist/consumer.js.map +1 -1
  22. package/dist/decline.js +1 -1
  23. package/dist/distribute.d.ts +13 -14
  24. package/dist/distribute.d.ts.map +1 -1
  25. package/dist/distribute.js +17 -17
  26. package/dist/distribute.js.map +1 -1
  27. package/dist/doctor-user.d.ts +1 -1
  28. package/dist/doctor-user.d.ts.map +1 -1
  29. package/dist/doctor-user.js +2 -2
  30. package/dist/doctor-user.js.map +1 -1
  31. package/dist/doctor.d.ts +1 -1
  32. package/dist/doctor.d.ts.map +1 -1
  33. package/dist/doctor.js +53 -54
  34. package/dist/doctor.js.map +1 -1
  35. package/dist/format.js +3 -3
  36. package/dist/format.js.map +1 -1
  37. package/dist/home-remedy.d.ts +1 -1
  38. package/dist/home-remedy.js +1 -1
  39. package/dist/host-projection.d.ts +38 -38
  40. package/dist/host-projection.d.ts.map +1 -1
  41. package/dist/host-projection.js +69 -70
  42. package/dist/host-projection.js.map +1 -1
  43. package/dist/host.d.ts +37 -38
  44. package/dist/host.d.ts.map +1 -1
  45. package/dist/host.js +54 -57
  46. package/dist/host.js.map +1 -1
  47. package/dist/init.d.ts +60 -56
  48. package/dist/init.d.ts.map +1 -1
  49. package/dist/init.js +98 -99
  50. package/dist/init.js.map +1 -1
  51. package/dist/main.js +4 -4
  52. package/dist/main.js.map +1 -1
  53. package/dist/next.js +15 -15
  54. package/dist/next.js.map +1 -1
  55. package/dist/operation-help.d.ts +3 -3
  56. package/dist/operation-help.d.ts.map +1 -1
  57. package/dist/operation-help.js +9 -9
  58. package/dist/operation-help.js.map +1 -1
  59. package/dist/pack.js +6 -6
  60. package/dist/position.d.ts.map +1 -1
  61. package/dist/position.js +10 -11
  62. package/dist/position.js.map +1 -1
  63. package/dist/preview.d.ts +4 -4
  64. package/dist/preview.d.ts.map +1 -1
  65. package/dist/preview.js +27 -28
  66. package/dist/preview.js.map +1 -1
  67. package/dist/profile.d.ts +23 -23
  68. package/dist/profile.d.ts.map +1 -1
  69. package/dist/profile.js +50 -51
  70. package/dist/profile.js.map +1 -1
  71. package/dist/project.d.ts +7 -8
  72. package/dist/project.d.ts.map +1 -1
  73. package/dist/project.js +24 -27
  74. package/dist/project.js.map +1 -1
  75. package/dist/read.d.ts +1 -1
  76. package/dist/read.d.ts.map +1 -1
  77. package/dist/read.js +4 -4
  78. package/dist/read.js.map +1 -1
  79. package/dist/render.d.ts +3 -3
  80. package/dist/render.js +3 -3
  81. package/dist/session.d.ts +9 -9
  82. package/dist/session.d.ts.map +1 -1
  83. package/dist/session.js +10 -10
  84. package/dist/session.js.map +1 -1
  85. package/dist/validate.d.ts +8 -8
  86. package/dist/validate.d.ts.map +1 -1
  87. package/dist/validate.js +34 -37
  88. package/dist/validate.js.map +1 -1
  89. package/dist/vocabulary.js +2 -2
  90. package/dist/vocabulary.js.map +1 -1
  91. package/package.json +6 -6
  92. package/assets/base/7db20e0dbbc2b88701ea24991886b4a8e08d419dda469cce5caff66911f81e4c.ia.tgz +0 -0
  93. package/assets/host/7e80bd7098018c1c13e3fae4cd363acfeffedccd5b6ec06c4952b62f449a4246.tgz +0 -0
package/dist/host.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Context, Result } from './consumer.js';
5
5
  import { Refusal } from './consumer.js';
6
6
  import type { HookCache, HostName } from './host-projection.js';
7
7
  import type { Capabilities } from './render.js';
8
- /** §5.1's elements. `ia host` registers no steward guard since milestone position-packet (B11), so none is `hooks`. */
8
+ /** §5.1's elements. `ia host` registers no steward guard any more, so none is `hooks`. */
9
9
  export type ElementId = 'mcp' | 'context' | 'projection';
10
10
  /**
11
11
  * §5.4's four capabilities, plus `absent` for a removal row whose element this workspace does not own: claiming
@@ -32,13 +32,13 @@ export interface Element {
32
32
  readonly capability: Capability;
33
33
  readonly conflict: Conflict | null;
34
34
  /**
35
- * The projection's per-file actions (B9). `remove` includes each 1.x steward file the state owns; `foreign` is a
35
+ * The projection's per-file actions. `remove` includes each 1.x steward file the state owns; `foreign` is a
36
36
  * `.claude/agents/*.md` file it does not own, marked or not: listed and never touched, so it is not a conflict.
37
37
  */
38
38
  readonly files?: readonly ProjectionAction[];
39
- /** The projection's B11 step: `retire` when the apply first removes a steward-guard registration this workspace owns. */
39
+ /** The projection's guard retirement: `retire` when the apply first removes a steward-guard registration it owns. */
40
40
  readonly guard?: 'retire' | 'none';
41
- /** The projection's hook groups (claude): what the apply does to each authored `@hook`'s group (plan amendment C9). */
41
+ /** The projection's hook groups (claude): what the apply does to each authored `@hook`'s group. */
42
42
  readonly hooks?: readonly HookAction[];
43
43
  /** The authored records the host does not take, each with the reason (an unregistered hook included). */
44
44
  readonly unsupported?: readonly UnsupportedRow[];
@@ -64,7 +64,7 @@ export interface HostView {
64
64
  readonly userPlugin: UserPlugin | null;
65
65
  /**
66
66
  * The projection rendering this plan made, on the session an apply's mandate gate judged; null for a removal. The apply
67
- * writes exactly it, so the profile and the files written read one snapshot (review C3-N2).
67
+ * writes exactly it, so the profile and the files written read one snapshot.
68
68
  */
69
69
  readonly rendered: HostOutput | null;
70
70
  }
@@ -80,8 +80,8 @@ export declare const MACHINE_LOCAL: Readonly<Record<HostName, string>>;
80
80
  /** §5.4: the MCP element's one fixed addition, from §2.3's host facts. */
81
81
  export declare const MCP_APPROVAL = "Claude Code asks for approval before starting a project MCP server.";
82
82
  /**
83
- * Operator decision 2026-10-08 (plan amendment B11), said where the guard used to be registered, as operator decision
84
- * 2026-09-23 ("narrow + disclose") said what it refused: the guard is retired, so nothing it refused is refused now.
83
+ * From 2026-10-08 this says where the guard used to be registered, as from 2026-09-23 it said what the guard refused:
84
+ * the guard is retired, so nothing it refused is refused now.
85
85
  */
86
86
  export declare const GUARD_SCOPE = "ia host registers one guard group per authored @hook, which refuses an edit its paths and tools select unless the acting agent holds a governing @mandate granting Synthesis there; it registers no per-system steward guard, and applying the projection retires one an earlier release registered.";
87
87
  /** §5.1's files, exported once so `ia doctor` names the same ones. */
@@ -90,8 +90,8 @@ export declare const SETTINGS = ".claude/settings.local.json";
90
90
  export declare const HOSTS_AREA = ".ia/distributions/hosts";
91
91
  /**
92
92
  * §5.1's state files. Their presence says whether this workspace owns an element; their content is the mechanisms'.
93
- * `hooks` is a steward-guard registration an earlier release made, which the projection apply retires (B11), and
94
- * `receipt` the receipt it writes beside the projection state (B12).
93
+ * `hooks` is a steward-guard registration an earlier release made, which the projection apply retires, and `receipt`
94
+ * the receipt it writes beside the projection state.
95
95
  */
96
96
  export declare const STATE: {
97
97
  readonly mcp: (host: HostName) => string;
@@ -117,9 +117,9 @@ export declare const JOURNALS: readonly (readonly [string, string])[];
117
117
  /** §8: the lock every host sub-transaction holds while it writes (`acquireHostRegistrationLock`). */
118
118
  export declare const HOST_LOCK = ".ia/distributions/hosts/lock.json";
119
119
  /**
120
- * The close of a remedy whose follow-up is the refused command itself, run again as typed, so the recovery before it
121
- * is the one command named (design row 27). `ia init --host` cannot simply be run again once it has initialized, so it
122
- * names `ia host` instead of such a remedy.
120
+ * The close of a remedy whose follow-up is the refused command itself, run again as typed, so the recovery before it is
121
+ * the one command named. `ia init --host` cannot simply be run again once it has initialized, so it names `ia host`
122
+ * instead of such a remedy.
123
123
  */
124
124
  export declare const THEN_RERUN = ", then rerun.";
125
125
  /** An installed CLI recovery, delegating the named distribution mechanism with an explicit root. */
@@ -157,7 +157,7 @@ export declare function pinnedRelease(packageRoot: string): Pinned;
157
157
  export declare function requireInitialized(root: string, named?: string): void;
158
158
  /** The journal a failed transaction left behind, if any, with the command that recovers it. */
159
159
  export declare const pendingJournal: (root: string) => readonly [string, string] | undefined;
160
- /** Design row 27: the recovery is the one command named; the refused command is simply run again after it. */
160
+ /** The recovery is the one command named; the refused command is simply run again after it. */
161
161
  export declare const recoverNext: (root: string, command: string) => string;
162
162
  /**
163
163
  * A next action of this verb made runnable from any cwd: every quoted `ia host <host>` or `ia project <host>` command
@@ -173,15 +173,14 @@ export declare const hostNext: (text: string, host: HostName, root: string, root
173
173
  export declare const refusedPath: (error: unknown) => string | null;
174
174
  /**
175
175
  * §6.3: the repair for a projection refusal with `code` located at `path`. The ownership state has its own repair; a
176
- * guard group the retirement (B11) refuses as changed is deleted by hand, after which the retirement removes the
177
- * ownership state alone, and settings it cannot read are fixed; any other file is never replaced or adopted, so it is
178
- * moved or deleted first. `ia host`, `ia doctor` and the install refresh all name it this way.
176
+ * guard group the retirement refuses as changed is deleted by hand, after which the retirement removes the ownership
177
+ * state alone, and settings it cannot read are fixed; any other file is never replaced or adopted, so it is moved or
178
+ * deleted first. `ia host`, `ia doctor` and the install refresh all name it this way.
179
179
  */
180
180
  export declare const projectionRepair: (host: HostName, path: string, rerun: string, code?: string) => string;
181
181
  /**
182
- * What a hook-registration refusal carries so it can name its own recovery (review findings H-R1 and H-R4): an owned
183
- * group deleted (`missing`), or changed or duplicated (`modified`), by hand, or a recorded host payload a change of hooks
184
- * needs and cannot use.
182
+ * What a hook-registration refusal carries so it can name its own recovery: an owned group deleted (`missing`), or
183
+ * changed or duplicated (`modified`), by hand, or a recorded host payload a change of hooks needs and cannot use.
185
184
  */
186
185
  export type HookRefusal = {
187
186
  readonly drift: 'missing' | 'modified';
@@ -193,7 +192,7 @@ export type HookRefusal = {
193
192
  } | {
194
193
  readonly payload: string;
195
194
  };
196
- /** The populated skill folder a projection refusal names (distribution's `skillFolder`, review finding A-F2), if any. */
195
+ /** The populated skill folder a projection refusal names (distribution's `skillFolder`), if any. */
197
196
  export declare const skillFolderOf: (error: unknown) => string | undefined;
198
197
  /** The repair for a generated skill refused at a folder that holds the user's files: those files go, or the name changes. */
199
198
  export declare const folderRepair: (folder: string, rerun: string) => string;
@@ -214,24 +213,24 @@ export declare function projectionFailure(error: unknown, root: string, host: Ho
214
213
  */
215
214
  export declare const projectedHosts: (root: string) => readonly HostName[];
216
215
  /**
217
- * The apply that repairs `host`'s projection, which `ia doctor` and the install refresh both name (task
218
- * ia-project-verb): `ia host <host> --apply` for a registered host, and `ia project <host> --apply` for a projection
219
- * `ia project` wrote without a registration, which `ia host` would also register an MCP server for.
216
+ * The apply that repairs `host`'s projection, which `ia doctor` and the install refresh both name:
217
+ * `ia host <host> --apply` for a registered host, and `ia project <host> --apply` for a projection `ia project` wrote
218
+ * without a registration, which `ia host` would also register an MCP server for.
220
219
  */
221
220
  export declare const projectionRerun: (root: string, host: HostName) => string;
222
221
  /** §8: a pending journal refuses the whole verb and names the recovery that clears it. `ia project` shares it. */
223
222
  export declare function requireIdle(root: string, supplied: string): void;
224
223
  /**
225
- * §5.1 `projection`, planned by the real planners: B11's retirement of an owned guard registration, then the file plan
226
- * (B9). Both read only the workspace, so the plan is exactly apply's. A retirement is a change, and so is a missing
227
- * receipt, which every apply writes (B12), so a projection whose files are unchanged is then an update; a removal that
228
- * finds only a guard registration or a receipt removes them. `ia project` plans with it, and both verbs' applies
229
- * re-plan with it (`replanProjection`), so no two of them can plan the projection differently.
224
+ * §5.1 `projection`, planned by the real planners: the retirement of an owned guard registration, then the file plan.
225
+ * Both read only the workspace, so the plan is exactly apply's. A retirement is a change, and so is a missing receipt,
226
+ * which every apply writes, so a projection whose files are unchanged is then an update; a removal that finds only a
227
+ * guard registration or a receipt removes them. `ia project` plans with it, and both verbs' applies re-plan with it
228
+ * (`replanProjection`), so no two of them can plan the projection differently.
230
229
  */
231
230
  export declare function projectionElement(root: string, host: HostName, rendered: HostOutput | null, cache?: HookCache): Element;
232
231
  /** §4's plan. It reads the workspace and the package's pin and writes nothing, the payload included. */
233
232
  export declare function collectHost(context: Context): HostView;
234
- /** One applied element; the projection's also says whether it retired a steward-guard registration first (B11). */
233
+ /** One applied element; the projection's also says whether it retired a steward-guard registration first. */
235
234
  export interface AppliedElement {
236
235
  readonly id: ElementId;
237
236
  readonly status: string;
@@ -242,7 +241,7 @@ export interface HostApplied {
242
241
  readonly elements: readonly AppliedElement[];
243
242
  readonly observed: false;
244
243
  }
245
- /** What an apply that retired the steward guard (B11) says it did. */
244
+ /** What an apply that retired the steward guard says it did. */
246
245
  export declare const GUARD_RETIRED = "Retired the steward guard an earlier release registered: its group in .claude/settings.local.json and its ownership state are removed.";
247
246
  /**
248
247
  * Apply's re-plan of the projection, shared by `ia host --apply` and `ia project --apply`: the projection element
@@ -253,34 +252,34 @@ export declare const GUARD_RETIRED = "Retired the steward guard an earlier relea
253
252
  export declare function replanProjection(root: string, host: HostName, rendered: HostOutput | null, refuse: (conflict: Conflict) => Refusal, cache?: HookCache): void;
254
253
  /**
255
254
  * §8: mcp, projection in order; removal in reverse. The payload is materialized, then every sub-transaction is
256
- * re-planned with the verifying planners before any is applied — the projection's guard retirement (B11) and file plan
255
+ * re-planned with the verifying planners before any is applied — the projection's guard retirement and file plan
257
256
  * included — so a refusal any planner can find is raised before the workspace changes; each apply then re-plans under
258
257
  * the host lock and refuses a plan that went stale. The projection is applied through `applyHostProjection`, the one
259
- * writer of projection files, which retires an owned steward guard before any projection file changes and reports it
260
- * as the element's `guard`. Cancellation is observed between sub-transactions. A failure after an element was written
258
+ * writer of projection files, which retires an owned steward guard before any projection file changes and reports it as
259
+ * the element's `guard`. Cancellation is observed between sub-transactions. A failure after an element was written
261
260
  * names the rerun that finishes the set, or the recovery a pending journal needs. `checkpoint` runs after each element
262
261
  * completes, which is where an interruption test cuts.
263
262
  */
264
263
  export declare function applyHostSet(view: HostView, packageRoot: string, signal?: AbortSignal, checkpoint?: (id: ElementId) => void): HostApplied;
265
264
  /**
266
- * A conflict as the `--json` envelopes print it (review finding A-F4): its code, path and reason. The descriptors a
267
- * refusal carries to word its own repair (`hook`, `folder`) stay internal; the repair is the refusal's `next`.
265
+ * A conflict as the `--json` envelopes print it: its code, path and reason. The descriptors a refusal carries to word
266
+ * its own repair (`hook`, `folder`) stay internal; the repair is the refusal's `next`.
268
267
  */
269
268
  export declare const printedConflict: (conflict: Conflict | null) => Conflict | null;
270
- /** A projection plan's B11 step as its plan says it, in `ia host` and `ia project` alike. */
269
+ /** A projection plan's guard retirement as its plan says it, in `ia host` and `ia project` alike. */
271
270
  export declare const GUARD_RETIRE = "first retires the steward guard registered in .claude/settings.local.json";
272
271
  /**
273
272
  * Each projected file with its action, at `column`; a foreign steward file says why it is left alone. `ia host` nests
274
273
  * the rows under its projection element and `ia project` lists them as its file plan, so both word them alike.
275
274
  */
276
275
  export declare const projectionFileRows: (files: readonly ProjectionAction[], column: number, caps: Capabilities) => readonly string[];
277
- /** Each authored `@hook`'s group with its action (plan amendment C9), worded alike by `ia host` and `ia project`. */
276
+ /** Each authored `@hook`'s group with its action, worded alike by `ia host` and `ia project`. */
278
277
  export declare const projectionHookRows: (hooks: readonly HookAction[], column: number, caps: Capabilities) => readonly string[];
279
278
  /** Each authored record the host does not take, with the reason, worded alike by `ia host` and `ia project`. */
280
279
  export declare const unsupportedRows: (rows: readonly UnsupportedRow[], column: number, caps: Capabilities) => readonly string[];
281
280
  /**
282
281
  * §5.3's machine-local sentence and, for a Claude registration, §5.4's approval note and the guard's retirement (only
283
- * Claude ever registered the guard, B11). `ia init --host` prints the same blocks after its host step, so the two verbs
282
+ * Claude ever registered the guard). `ia init --host` prints the same blocks after its host step, so the two verbs
284
283
  * cannot word them differently.
285
284
  */
286
285
  export declare const hostNotes: (host: HostName, caps: Capabilities, remove?: boolean) => readonly (readonly string[])[];
@@ -1 +1 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAwB,OAAO,EAA0B,MAAM,eAAe,CAAC;AAEtF,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAUhE,OAAO,KAAK,EAAE,YAAY,EAAqB,MAAM,aAAa,CAAC;AAsBnE,uHAAuH;AACvH,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,YAAY,CAAC;AACzD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,cAAc,GAAG,qBAAqB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACtG,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,kFAAkF;IAClF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB;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,MAAM,kBAAkB,GAC7B,OAAO,SAAS,UAAU,EAAE,EAC5B,QAAQ,MAAM,EACd,MAAM,YAAY,KACjB,SAAS,MAAM,EAOf,CAAC;AACJ,gHAAgH;AAChH,eAAO,MAAM,eAAe,GAC1B,MAAM,SAAS,cAAc,EAAE,EAC/B,QAAQ,MAAM,EACd,MAAM,YAAY,KACjB,SAAS,MAAM,EAOf,CAAC;AA6BJ;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,QAAQ,EAAE,MAAM,YAAY,EAAE,gBAAc,KAAG,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAQ1G,CAAC;AAYF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,IAAI,EAAE,YAAY,EAClB,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAsCR;AAID,eAAO,MAAM,YAAY,yCAAyC,CAAC;AAGnE,wBAAsB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA8D/D"}
package/dist/host.js CHANGED
@@ -4,27 +4,24 @@
4
4
  * One verb owns the managed host set of §5.1: the MCP entry and the workspace projection, plus the context element
5
5
  * §5.2's gate keeps unselected. It plans by default and never writes while planning — the payload's location is
6
6
  * computed, not created. `--apply` materializes the embedded payload once per user (§3.3), re-plans every
7
- * sub-transaction against the verified payload, then applies them in order — mcp, projection — and removal runs them
8
- * in reverse (§8). No cross-file atomicity is claimed: a rerun converges, and a pending journal refuses naming its
9
- * recovery. Nothing here reports that a server answered or a hook ran; `applied.observed` is always false (plan-0002
10
- * M5 exit).
7
+ * sub-transaction against the verified payload, then applies them in order — mcp, projection — and removal runs them in
8
+ * reverse (§8). No cross-file atomicity is claimed: a rerun converges, and a pending journal refuses naming its
9
+ * recovery. Nothing here reports that a server answered or a hook ran; `applied.observed` is always false.
11
10
  *
12
- * Milestone position-packet task replace-renderers (plan amendments B9, B11 and B12): the projection is the position
13
- * packet's consumer rendering, and `ia host` registers no steward guard. The projection element lists instead the
14
- * retirement of a guard an earlier release registered, which `applyHostProjection` (host-projection.ts) performs before
15
- * any projection file changes, the owned 1.x steward files it deletes and the foreign files it leaves. Task
16
- * ia-project-verb: `ia project` (project.ts) plans and applies that element alone, through the same planner
11
+ * The projection is the position packet's consumer rendering, and `ia host` registers no steward guard. The projection
12
+ * element lists instead the retirement of a guard an earlier release registered, which `applyHostProjection`
13
+ * (host-projection.ts) performs before any projection file changes, the owned 1.x steward files it deletes and the
14
+ * foreign files it leaves. `ia project` (project.ts) plans and applies that element alone, through the same planner
17
15
  * (`projectionElement`), re-plan (`replanProjection`) and writer, and its file rows (`projectionFileRows`).
18
16
  *
19
17
  * The plan asks the mechanisms themselves. `planHostFor` plans against the payload apply will materialize, described
20
18
  * from the pin without reading it (`expectedHostCache`), so a conflict in the preview is the service's own refusal —
21
19
  * its code and message unchanged (contract §4.1) — and is the refusal apply would raise.
22
20
  *
23
- * Milestone generation-binding (plan amendments C16 and C24, design item 9): the apply reads the join receipts before it
24
- * writes anything, refusing ones it cannot read, and once every element is applied it records the host's join from the
25
- * committed registration (`joinHost`): the installed-implementation catalog of the payload it names, at the workspace's
26
- * authored revision. A removal drops it (`leaveHost`). The plan and the envelope do not change; `ia doctor` reports
27
- * the join.
21
+ * The apply reads the join receipts before it writes anything, refusing ones it cannot read, and once every element is
22
+ * applied it records the host's join from the committed registration (`joinHost`): the installed-implementation catalog
23
+ * of the payload it names, at the workspace's authored revision. A removal drops it (`leaveHost`). The plan and the
24
+ * envelope do not change; `ia doctor` reports the join.
28
25
  */
29
26
  import { createHash } from 'node:crypto';
30
27
  import { existsSync, realpathSync, statSync } from 'node:fs';
@@ -60,8 +57,8 @@ export const MACHINE_LOCAL = {
60
57
  /** §5.4: the MCP element's one fixed addition, from §2.3's host facts. */
61
58
  export const MCP_APPROVAL = 'Claude Code asks for approval before starting a project MCP server.';
62
59
  /**
63
- * Operator decision 2026-10-08 (plan amendment B11), said where the guard used to be registered, as operator decision
64
- * 2026-09-23 ("narrow + disclose") said what it refused: the guard is retired, so nothing it refused is refused now.
60
+ * From 2026-10-08 this says where the guard used to be registered, as from 2026-09-23 it said what the guard refused:
61
+ * the guard is retired, so nothing it refused is refused now.
65
62
  */
66
63
  export const GUARD_SCOPE = 'ia host registers one guard group per authored @hook, which refuses an edit its paths and tools select unless the acting agent holds a governing @mandate granting Synthesis there; it registers no per-system steward guard, and applying the projection retires one an earlier release registered.';
67
64
  /** §5.1's files, exported once so `ia doctor` names the same ones. */
@@ -70,8 +67,8 @@ export const SETTINGS = '.claude/settings.local.json';
70
67
  export const HOSTS_AREA = '.ia/distributions/hosts';
71
68
  /**
72
69
  * §5.1's state files. Their presence says whether this workspace owns an element; their content is the mechanisms'.
73
- * `hooks` is a steward-guard registration an earlier release made, which the projection apply retires (B11), and
74
- * `receipt` the receipt it writes beside the projection state (B12).
70
+ * `hooks` is a steward-guard registration an earlier release made, which the projection apply retires, and `receipt`
71
+ * the receipt it writes beside the projection state.
75
72
  */
76
73
  export const STATE = {
77
74
  mcp: (host) => `${HOSTS_AREA}/${host}-${HOST_REGISTRATION}.json`,
@@ -104,7 +101,7 @@ export function stateRepair(host, path, rerun) {
104
101
  return `Delete ${path} and ${OWNED_MCP[host]}, then run "${rerun}".`;
105
102
  if (host === 'claude' && path === STATE.hooks)
106
103
  return `Delete ${path} and ${OWNED_GUARD}, then run "${rerun}".`;
107
- // Review finding H-N3: the hook ownership state names the groups it owns, so both go before the rerun.
104
+ // The hook ownership state names the groups it owns, so both go before the rerun.
108
105
  if (host === 'claude' && path === STATE.hookGroups)
109
106
  return `Delete ${path} and ${OWNED_HOOKS}, then run "${rerun}".`;
110
107
  if (path === STATE.projection(host) || path === STATE.receipt(host))
@@ -128,9 +125,9 @@ export const JOURNALS = [
128
125
  /** §8: the lock every host sub-transaction holds while it writes (`acquireHostRegistrationLock`). */
129
126
  export const HOST_LOCK = `${HOSTS_AREA}/lock.json`;
130
127
  /**
131
- * The close of a remedy whose follow-up is the refused command itself, run again as typed, so the recovery before it
132
- * is the one command named (design row 27). `ia init --host` cannot simply be run again once it has initialized, so it
133
- * names `ia host` instead of such a remedy.
128
+ * The close of a remedy whose follow-up is the refused command itself, run again as typed, so the recovery before it is
129
+ * the one command named. `ia init --host` cannot simply be run again once it has initialized, so it names `ia host`
130
+ * instead of such a remedy.
134
131
  */
135
132
  export const THEN_RERUN = ', then rerun.';
136
133
  /** An installed CLI recovery, delegating the named distribution mechanism with an explicit root. */
@@ -205,7 +202,7 @@ export function requireInitialized(root, named = root) {
205
202
  }
206
203
  /** The journal a failed transaction left behind, if any, with the command that recovers it. */
207
204
  export const pendingJournal = (root) => JOURNALS.find(([path]) => existsSync(resolve(root, path)));
208
- /** Design row 27: the recovery is the one command named; the refused command is simply run again after it. */
205
+ /** The recovery is the one command named; the refused command is simply run again after it. */
209
206
  export const recoverNext = (root, command) => `Run "${recoverCommand(command, root)}"${THEN_RERUN}`;
210
207
  /**
211
208
  * A next action of this verb made runnable from any cwd: every quoted `ia host <host>` or `ia project <host>` command
@@ -227,9 +224,9 @@ export const refusedPath = (error) => /^IA-/.test(codeOf(error, '')) &&
227
224
  : null;
228
225
  /**
229
226
  * §6.3: the repair for a projection refusal with `code` located at `path`. The ownership state has its own repair; a
230
- * guard group the retirement (B11) refuses as changed is deleted by hand, after which the retirement removes the
231
- * ownership state alone, and settings it cannot read are fixed; any other file is never replaced or adopted, so it is
232
- * moved or deleted first. `ia host`, `ia doctor` and the install refresh all name it this way.
227
+ * guard group the retirement refuses as changed is deleted by hand, after which the retirement removes the ownership
228
+ * state alone, and settings it cannot read are fixed; any other file is never replaced or adopted, so it is moved or
229
+ * deleted first. `ia host`, `ia doctor` and the install refresh all name it this way.
233
230
  */
234
231
  export const projectionRepair = (host, path, rerun, code) => code === 'IA-CLI-FAILED'
235
232
  ? `Make ${path} writable and release any file lock, then run "${rerun}".`
@@ -239,7 +236,7 @@ export const projectionRepair = (host, path, rerun, code) => code === 'IA-CLI-FA
239
236
  : code === undefined || code === 'IA-DIST-LOCAL-MODIFICATION'
240
237
  ? `Delete only the IA guard group in ${path}, then run "${rerun}".`
241
238
  : `Fix ${path}, then run "${rerun}".`));
242
- /** The populated skill folder a projection refusal names (distribution's `skillFolder`, review finding A-F2), if any. */
239
+ /** The populated skill folder a projection refusal names (distribution's `skillFolder`), if any. */
243
240
  export const skillFolderOf = (error) => error !== null && typeof error === 'object' && 'skillFolder' in error && typeof error.skillFolder === 'string'
244
241
  ? error.skillFolder
245
242
  : undefined;
@@ -292,9 +289,9 @@ export function projectionFailure(error, root, host, rerun) {
292
289
  */
293
290
  export const projectedHosts = (root) => WORKSPACE_HOSTS.filter((host) => existsSync(resolve(root, STATE.projection(host))));
294
291
  /**
295
- * The apply that repairs `host`'s projection, which `ia doctor` and the install refresh both name (task
296
- * ia-project-verb): `ia host <host> --apply` for a registered host, and `ia project <host> --apply` for a projection
297
- * `ia project` wrote without a registration, which `ia host` would also register an MCP server for.
292
+ * The apply that repairs `host`'s projection, which `ia doctor` and the install refresh both name:
293
+ * `ia host <host> --apply` for a registered host, and `ia project <host> --apply` for a projection `ia project` wrote
294
+ * without a registration, which `ia host` would also register an MCP server for.
298
295
  */
299
296
  export const projectionRerun = (root, host) => existsSync(resolve(root, STATE.mcp(host))) ? `ia host ${host} --apply` : `ia project ${host} --apply`;
300
297
  /** §8: a pending journal refuses the whole verb and names the recovery that clears it. `ia project` shares it. */
@@ -356,11 +353,11 @@ const contextElement = (host) => ({
356
353
  conflict: null,
357
354
  });
358
355
  /**
359
- * §5.1 `projection`, planned by the real planners: B11's retirement of an owned guard registration, then the file plan
360
- * (B9). Both read only the workspace, so the plan is exactly apply's. A retirement is a change, and so is a missing
361
- * receipt, which every apply writes (B12), so a projection whose files are unchanged is then an update; a removal that
362
- * finds only a guard registration or a receipt removes them. `ia project` plans with it, and both verbs' applies
363
- * re-plan with it (`replanProjection`), so no two of them can plan the projection differently.
356
+ * §5.1 `projection`, planned by the real planners: the retirement of an owned guard registration, then the file plan.
357
+ * Both read only the workspace, so the plan is exactly apply's. A retirement is a change, and so is a missing receipt,
358
+ * which every apply writes, so a projection whose files are unchanged is then an update; a removal that finds only a
359
+ * guard registration or a receipt removes them. `ia project` plans with it, and both verbs' applies re-plan with it
360
+ * (`replanProjection`), so no two of them can plan the projection differently.
364
361
  */
365
362
  export function projectionElement(root, host, rendered, cache = null) {
366
363
  const refused = (conflict) => ({
@@ -452,12 +449,12 @@ export function collectHost(context) {
452
449
  located(null, homeSrcRemedy(home, plan), () => assertIaHomeUsable(home));
453
450
  const { pin: bundled } = bundledPin(host.packageRoot);
454
451
  requireIdle(root, supplied);
455
- // §4: zero error findings before anything is rendered or registered. A removal renders nothing and reads no record, so
456
- // it needs neither an admitting workspace nor records that open (review findings H-R2 and H-R8): it is what restores
457
- // editing when a broken record or an unreadable workspace leaves a hook group refusing the repair.
458
- // Review C2-R7: a workspace apply writes the projection `ia project --apply` writes, so it is the effect mode (Execution)
459
- // under the participant's mandate profile, judged on the rendering session before the confirmation; its plan writes
460
- // nothing, `--remove` restores editing, and `--user` reads no workspace, so none of them is gated.
452
+ // §4: zero error findings before anything is rendered or registered. A removal renders nothing and reads no record,
453
+ // so it needs neither an admitting workspace nor records that open: it is what restores editing when a broken record
454
+ // or an unreadable workspace leaves a hook group refusing the repair.
455
+ // A workspace apply writes the projection `ia project --apply` writes, so it is the effect mode (Execution) under the
456
+ // participant's mandate profile, judged on the rendering session before the confirmation; its plan writes nothing,
457
+ // `--remove` restores editing, and `--user` reads no workspace, so none of them is gated.
461
458
  const rendered = remove
462
459
  ? null
463
460
  : renderProjectionFor(root, name, args.flag('apply') ? sessionGate(context, 'effect') : undefined);
@@ -483,7 +480,7 @@ export function collectHost(context) {
483
480
  rendered,
484
481
  };
485
482
  }
486
- /** What an apply that retired the steward guard (B11) says it did. */
483
+ /** What an apply that retired the steward guard says it did. */
487
484
  export const GUARD_RETIRED = 'Retired the steward guard an earlier release registered: its group in .claude/settings.local.json and its ownership state are removed.';
488
485
  /** A next action of this verb as printed: with `--root` given, each `ia host` command in it carries the root. */
489
486
  const say = (view, text) => hostNext(text, view.host, view.root, view.rooted);
@@ -555,11 +552,11 @@ function materialize(view, packageRoot) {
555
552
  }
556
553
  /**
557
554
  * §8: mcp, projection in order; removal in reverse. The payload is materialized, then every sub-transaction is
558
- * re-planned with the verifying planners before any is applied — the projection's guard retirement (B11) and file plan
555
+ * re-planned with the verifying planners before any is applied — the projection's guard retirement and file plan
559
556
  * included — so a refusal any planner can find is raised before the workspace changes; each apply then re-plans under
560
557
  * the host lock and refuses a plan that went stale. The projection is applied through `applyHostProjection`, the one
561
- * writer of projection files, which retires an owned steward guard before any projection file changes and reports it
562
- * as the element's `guard`. Cancellation is observed between sub-transactions. A failure after an element was written
558
+ * writer of projection files, which retires an owned steward guard before any projection file changes and reports it as
559
+ * the element's `guard`. Cancellation is observed between sub-transactions. A failure after an element was written
563
560
  * names the rerun that finishes the set, or the recovery a pending journal needs. `checkpoint` runs after each element
564
561
  * completes, which is where an interruption test cuts.
565
562
  */
@@ -602,9 +599,9 @@ export function applyHostSet(view, packageRoot, signal, checkpoint = () => { })
602
599
  checkpoint(id);
603
600
  };
604
601
  /**
605
- * Design item 9 (plan amendment C16): the host's join receipts. Receipts that cannot be read are never replaced, and a
606
- * rerun alone would refuse again, so their refusal names deleting them first: they are derived, and the rerun records
607
- * them again. Any other failure is `failure`'s.
602
+ * The host's join receipts. Receipts that cannot be read are never replaced, and a rerun alone would refuse again, so
603
+ * their refusal names deleting them first: they are derived, and the rerun records them again. Any other failure is
604
+ * `failure`'s.
608
605
  */
609
606
  const joinFailure = (error) => {
610
607
  if (refusedPath(error) !== JOINS || pendingJournal(root) !== undefined)
@@ -625,8 +622,8 @@ export function applyHostSet(view, packageRoot, signal, checkpoint = () => { })
625
622
  throw joinFailure(error);
626
623
  }
627
624
  };
628
- // Review finding B-N1: receipts that cannot be read refuse before anything is written, the payload included, rather
629
- // than after the MCP registration (`joinHost` and `leaveHost` read them again under the host lock).
625
+ // Receipts that cannot be read refuse before anything is written, the payload included, rather than after the MCP
626
+ // registration (`joinHost` and `leaveHost` read them again under the host lock).
630
627
  try {
631
628
  readJoins(root);
632
629
  }
@@ -640,12 +637,12 @@ export function applyHostSet(view, packageRoot, signal, checkpoint = () => { })
640
637
  if (!view.remove) {
641
638
  const cache = materialize(view, packageRoot);
642
639
  const mcp = replan(view, 'mcp', MCP_PATH[host], () => planHost(root, host, cache));
643
- // Review C3-N2: the rendering the plan's gated session made, re-planned against the files as they are now.
640
+ // The rendering the plan's gated session made, re-planned against the files as they are now.
644
641
  const { rendered } = view;
645
642
  // Only a removal's view carries no rendering (collectHost); an apply always has the one its gated plan made.
646
643
  if (rendered === null)
647
644
  throw new Error('A host apply view carries no rendering');
648
- // The hook groups run the guard in the payload just materialized and verified (plan amendment C9).
645
+ // The hook groups run the guard in the payload just materialized and verified.
649
646
  replanProjection(root, host, rendered, (conflict) => refusalFor(view, 'projection', conflict), {
650
647
  verified: cache,
651
648
  });
@@ -668,8 +665,8 @@ export function applyHostSet(view, packageRoot, signal, checkpoint = () => { })
668
665
  return { status: 'host-removed', elements: done, observed: false };
669
666
  }
670
667
  /**
671
- * A conflict as the `--json` envelopes print it (review finding A-F4): its code, path and reason. The descriptors a
672
- * refusal carries to word its own repair (`hook`, `folder`) stay internal; the repair is the refusal's `next`.
668
+ * A conflict as the `--json` envelopes print it: its code, path and reason. The descriptors a refusal carries to word
669
+ * its own repair (`hook`, `folder`) stay internal; the repair is the refusal's `next`.
673
670
  */
674
671
  export const printedConflict = (conflict) => conflict === null ? null : { code: conflict.code, path: conflict.path, reason: conflict.reason };
675
672
  /** §4 `--json`: the plan always, and `applied` only after an apply. */
@@ -717,7 +714,7 @@ function elementFields(view) {
717
714
  };
718
715
  });
719
716
  }
720
- /** A projection plan's B11 step as its plan says it, in `ia host` and `ia project` alike. */
717
+ /** A projection plan's guard retirement as its plan says it, in `ia host` and `ia project` alike. */
721
718
  export const GUARD_RETIRE = `first retires the steward guard registered in ${SETTINGS}`;
722
719
  /**
723
720
  * Each projected file with its action, at `column`; a foreign steward file says why it is left alone. `ia host` nests
@@ -737,7 +734,7 @@ const HOOK_SYMBOL = {
737
734
  unchanged: 'info',
738
735
  remove: 'removed',
739
736
  };
740
- /** Each authored `@hook`'s group with its action (plan amendment C9), worded alike by `ia host` and `ia project`. */
737
+ /** Each authored `@hook`'s group with its action, worded alike by `ia host` and `ia project`. */
741
738
  export const projectionHookRows = (hooks, column, caps) => hooks.flatMap((hook) => entry([[atom(hook.hook, 'cyan', 0), ...words(`hook group ${hook.action}`, null, 2)]], { column, symbol: HOOK_SYMBOL[hook.action] }, caps));
742
739
  /** Each authored record the host does not take, with the reason, worded alike by `ia host` and `ia project`. */
743
740
  export const unsupportedRows = (rows, column, caps) => rows.flatMap((row) => entry([[atom(row.identity, 'cyan', 0), ...words(`${row.word} not taken: ${row.reason}`, null, 2)]], { column, symbol: 'warning' }, caps));
@@ -765,7 +762,7 @@ const elementsBlock = (view, caps) => [
765
762
  ];
766
763
  /**
767
764
  * §5.3's machine-local sentence and, for a Claude registration, §5.4's approval note and the guard's retirement (only
768
- * Claude ever registered the guard, B11). `ia init --host` prints the same blocks after its host step, so the two verbs
765
+ * Claude ever registered the guard). `ia init --host` prints the same blocks after its host step, so the two verbs
769
766
  * cannot word them differently.
770
767
  */
771
768
  export const hostNotes = (host, caps, remove = false) => [