@inventarch/compliance 1.0.0 → 1.1.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/LANGUAGE.md ADDED
@@ -0,0 +1,56 @@
1
+ # Public IA language
2
+
3
+ IA records declare typed identities, fields and relationships. Owning canonical schemas define the structural contract; language syntax and reference resolution preserve those declarations.
4
+
5
+ The selected vocabulary below is shared by this release. Use `ia vocabulary --json` for its attributed catalogue and `ia vocabulary --schema` for canonical field schemas. `ia validate` reports structural and evaluated evidence separately. An admitted declaration does not establish semantic quality or grant execution authority.
6
+
7
+ Spec source locators do not load documents. Resource capture and disclosure require explicit selection, matching pins and a host-owned disclosure boundary. Model, operation, evaluator and authority callbacks belong to the application host.
8
+
9
+ | Word | Owner | Meaning |
10
+ | --- | --- | --- |
11
+ | @agent | agent-system | Names a participant and the vocabulary to which its governance applies. It does not grant host permissions. |
12
+ | @agent-profile | agent-composition-system | Composes an agent, capabilities, optional mandate/voice/delegates and installed execution contracts. |
13
+ | @artifact-set | taxonomy | Defines a closed grouping of artifact genres. |
14
+ | @authoring-guide | authoring-system | Associates a vocabulary owner and schema with an authoring reference and usage guidance. |
15
+ | @axis | taxonomy | Defines a closed coordinate axis for selection. |
16
+ | @capability | agent-composition-system | Groups operations, procedures, templates, checks and included capabilities with declared execution bounds. |
17
+ | @cardinality | taxonomy | Defines relationship multiplicity constraints. |
18
+ | @case | compliance-system | Declares scenario inputs, expected behavior and evaluator attribution. A declaration is not an observed test result. |
19
+ | @category | taxonomy | Defines a closed concept classification used by record shapes and contextual selection. |
20
+ | @check | compliance-system | Names a check implementation and scope. Declaring an implementation name does not install or execute it. |
21
+ | @contract | compliance-system | Names versioned requirements that may be adopted by other records. Requirements need explicit evaluation evidence. |
22
+ | @convention | governance-system | Declares a convention in the shared governance shape. |
23
+ | @decision | work-system | Represents a choice that is needed or has been made: the question, options and decider, and once made, the choice and rationale. |
24
+ | @dimension | taxonomy | Defines a supported record dimension used by conditions and lookup. |
25
+ | @distribution | workspace-system | Declares root records from which a distributable closure is selected. |
26
+ | @execution-binding | agent-composition-system | Connects a native target to a host-installed entry or operation descriptor. |
27
+ | @harness | agent-composition-system | Composes profiles and execution bindings in a workspace under a host contract. |
28
+ | @hook | hook-authoring-system | Represents a host event, tool/path selection and guard message. Registration and executing a guard require a host adapter. |
29
+ | @improvement | learning-system | Represents a proposed change, review metadata and publication metadata. It does not authorize or apply the proposal. |
30
+ | @intent-shape | taxonomy | Defines a request framing and its retrieval defaults. |
31
+ | @kind | taxonomy | Defines a closed semantic role for records; lowering determines the role of each registered word. |
32
+ | @lane | taxonomy | Defines a retrieval lane associated with record kinds. |
33
+ | @law | governance-system | Declares a rule with severity. Structural admission cannot establish the truth or suitability of its prose. |
34
+ | @mandate | agent-system | States bounded authority and conditions for a participant. Host authorization remains independent. |
35
+ | @milestone | work-system | Represents an outcome with an exit criterion inside exactly one plan; it names a condition, not the work toward it. |
36
+ | @move | taxonomy | Defines the closed classification of an agent action or activity. |
37
+ | @observation | learning-system | Represents an attributed evidence account with interpretation and retention metadata. Evidence claims are not verified by field typing. |
38
+ | @operation | authoring-system | Binds a declared operation to an implementation/input/output/effect contract; the host installs implementations. |
39
+ | @phase | taxonomy | Defines a cognitive phase coordinate: orient, plan, act or learn. |
40
+ | @placement | taxonomy | Defines source authority and reach metadata. |
41
+ | @plan | work-system | Represents an arrangement of milestones toward an intent; it heads the work hierarchy and has no parent. Plans do not nest. |
42
+ | @playbook | governance-system | Represents a procedure as phase/primitive cells. Cell delivery is generic; the authored method belongs to its author. |
43
+ | @predicate | taxonomy | Defines a directed relationship and its inverse spelling. |
44
+ | @primitive | taxonomy | Defines a cognitive primitive coordinate; a cell is selected using its phase and primitive. |
45
+ | @principle | governance-system | Declares a governing rationale in the shared governance shape. |
46
+ | @run | session-system | Represents a governed run identity, declared phase, status and owner. Declaration does not start execution. |
47
+ | @schema | floor | Declares the structural contract for exactly one registered discriminator. |
48
+ | @spec | work-system | Represents a maintained specification with explicit status and at most one same-word supersession. Contents and document membership belong to its author; a source locator does not load a body or prove semantic quality. |
49
+ | @system | floor | Registers vocabulary, direct system dependencies, a local steward and consent for relationships. |
50
+ | @task | work-system | Represents one owner's action toward exactly one milestone. Whether it is ready to start is computed by a work evaluator, never stored on the record. |
51
+ | @template | template-system | Represents bounded rendering inputs and output structure. Rendering does not publish or install output. |
52
+ | @value-type | taxonomy | Defines the field types that schemas may require. |
53
+ | @voice | agent-composition-system | Declares communication attributes separate from authority and procedure. |
54
+ | @workspace | workspace-system | Groups systems into an explicit work boundary; relationships can describe dependencies between boundaries. |
55
+
56
+ This guide describes the selected structural vocabulary. Private expert procedures, live provider behavior and unobserved platform qualification are separate from the installed public contract.
package/SPEC.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Compliance specification
2
2
 
3
- Evaluator catalog extension: the producer side of trusted evaluator catalog and obligations is implemented by C25–C29 below (EVAL-01..04, OBL-01..03 including the strict-typing-v1 profile mapping; qualification cases EVAL-Q01, Q02, Q07 and Q08, and the producer side of Q03, in tests/evaluator-catalog.test.ts). It is explicit and optional: calls without a catalog keep the built-in-only behavior, and unknown check.runs ids still refuse. Still open and owned elsewhere: the API transactional controller and managed transition seam (spec §4, LK-06), the ia-apps fixed-to-catalog consumer (LK-05), the consumer-side cases EVAL-Q04–Q06 (late edit/reevaluation, concurrent workers and durable intent, silent agents), the consumer side of EVAL-Q03 (a real compiler evaluator and excluded-source detection), and enrolment of the new codes in the repository fixture gate (C29). No scheduler, execution, persistence or native word is added here.
3
+ Evaluator catalog extension: the producer side of trusted evaluator catalog and obligations is implemented by C25–C29 below (EVAL-01..04, OBL-01..03 including the strict-typing-v1 profile mapping; qualification cases EVAL-Q01, Q02, Q07 and Q08, and the producer side of Q03, in tests/evaluator-catalog.test.ts). It is explicit and optional: calls without a catalog keep the built-in-only behavior, and unknown check.runs ids still refuse. Still open and owned elsewhere: the API transactional controller and managed transition seam (spec §4, LK-06), the ia-apps fixed-to-catalog consumer (LK-05), the consumer-side cases EVAL-Q04–Q06 (late edit/reevaluation, concurrent workers and durable intent, silent agents), the consumer side of EVAL-Q03 (a real compiler evaluator and excluded-source detection). No scheduler, execution, persistence or native word is added here.
4
4
 
5
5
  Status: implemented through stage C and the D/R/E integration clauses C21–C23. Task evidence below is chronological; statements of later work within early checkpoints describe that checkpoint only. Shared owners: systems design sections 3–5 and language section 4.3.
6
6
 
@@ -123,6 +123,6 @@ C29 (evaluation profiles, OBL-02; facilitator decision D6). `EVALUATION_PROFILES
123
123
 
124
124
  Facilitator decisions recorded for LK-04 repair (2026-09-28): D1 package metadata never weakens a root-adopted obligation (C27); D2 admission is bound to a verified resolver-issued resolution (C27, C28); D3 service trust needs a host verifier, `minimumTrust` is required and trust is recorded (C28); D4 only CHECK_IDS are built in, `options.builtins` only reserves ids (C25, C26); D5 COMP-CHECK treats revoked as an error and unavailable as not-evaluated (C26); D6 the strict-typing-v1 producer mapping belongs to this package (C29).
125
125
 
126
- Public type note: `Finding['code']` now also admits `EvidenceCode`, an additive widening of the exported union; consumers that switch exhaustively over `Finding['code']` must handle the new codes. C25–C29 codes are exported as `EVIDENCE_CODES`, separate from COMP_CODES. They are outside the repository fixture gate: tools/compliance/check.ts requires a boundary fixture for every COMP_CODES code, and tools/compliance/check.test.ts pins the boundary count. Open follow-up (repository-tool owner): enrol EVIDENCE_CODES there with boundary fixtures, and qualify the coverage claim beside tools/compliance/check.ts:63, which today covers COMP_CODES only. Their refusals are covered by tests/evaluator-catalog.test.ts.
126
+ Public type note: `Finding['code']` now also admits `EvidenceCode`, an additive widening of the exported union; consumers that switch exhaustively over `Finding['code']` must handle the new codes. C25–C29 codes are exported as `EVIDENCE_CODES`, separate from COMP_CODES. The repository fixture gate now requires successful producer observations for both inventories. `tools/compliance/evidence-fixtures.ts` executes 28 catalog, binding, obligation, receipt and admission refusals through the actual pure APIs, after valid catalog/receipt/admission positive controls. Removing or failing the sole observation for any evidence code fails COMP-FIXTURES. Direct package tests remain in tests/evaluator-catalog.test.ts. Synthetic local unsigned receipts establish no live host, writer, reviewer or service authorization.
127
127
 
128
128
  LK-04 delivered (2026-09-28): C25–C28 with 23 tests. LK-04 repair (2026-09-28) added D1–D6, the M2/M3 fixes and C29, bringing tests/evaluator-catalog.test.ts to 35 tests. They cover EVAL-Q01, Q02, Q07, Q08, the producer side of Q03, OBL-01..03 and each catalog, binding, resolution, receipt and admission refusal, plus a byte-identical report regression without a catalog. The pre-change report digests on the native corpus (with and without supplied observations) were unchanged after the original change and after the repair.
@@ -1,7 +1,3 @@
1
- /**
2
- * docs/specs/host-plugin-distribution/README.md §6.1 (amended: rendered at apply time). A pure function:
3
- * the same input always yields the same files, so the caller's digest of the output identifies the plugin.
4
- */
5
1
  export declare const CLAUDE_PLUGIN = "ia";
6
2
  export declare const CLAUDE_MARKETPLACE = "inventarch";
7
3
  export declare const PLUGIN_MARKER = "<!-- Generated by ia host --user; do not edit. -->";
@@ -14,10 +10,17 @@ export interface ClaudePluginInput {
14
10
  readonly entry: string;
15
11
  /** §5's update instruction, which the hook repeats when `ia` cannot be found. */
16
12
  readonly install: string;
13
+ /**
14
+ * The absolute path of the Node executable that runs the hook on macOS and Linux: the Node running `ia host claude
15
+ * --user --apply`. hooks.json names it in quotes there, so the host's sh looks no `node` up from the project.
16
+ * The Windows rendering does not use it.
17
+ */
18
+ readonly node: string;
17
19
  }
18
20
  export interface PluginFile {
19
21
  readonly path: string;
20
22
  readonly text: string;
21
23
  }
22
- export declare function renderClaudePlugin(input: ClaudePluginInput): readonly PluginFile[];
24
+ /** `platform` is the machine the plugin is installed on: `ia host claude --user --apply` renders it there. */
25
+ export declare function renderClaudePlugin(input: ClaudePluginInput, platform?: NodeJS.Platform): readonly PluginFile[];
23
26
  //# sourceMappingURL=host-plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-plugin.d.ts","sourceRoot":"","sources":["../src/host-plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,aAAa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AM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAkMD,8GAA8G;AAC9G,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAC3C,SAAS,UAAU,EAAE,CAkDvB"}
@@ -2,6 +2,7 @@
2
2
  * docs/specs/host-plugin-distribution/README.md §6.1 (amended: rendered at apply time). A pure function:
3
3
  * the same input always yields the same files, so the caller's digest of the output identifies the plugin.
4
4
  */
5
+ import { posix } from 'node:path';
5
6
  export const CLAUDE_PLUGIN = 'ia';
6
7
  export const CLAUDE_MARKETPLACE = 'inventarch';
7
8
  export const PLUGIN_MARKER = '<!-- Generated by ia host --user; do not edit. -->';
@@ -36,9 +37,11 @@ const HOOK = [
36
37
  "import { fileURLToPath } from 'node:url';",
37
38
  'const here = dirname(fileURLToPath(import.meta.url));',
38
39
  '// Only fully qualified PATH entries count. An empty or relative entry names the project directory, which the',
39
- '// repository controls, and on Windows a rooted entry without a drive or share depends on the current drive (LKI-41).',
40
+ '// repository controls, and on Windows a rooted entry without a drive depends on the current drive. A Windows',
41
+ '// share, in any spelling that starts with two separators, does not count either: a synchronous check of one that',
42
+ '// cannot be reached waits on the network with no bound the hook can set.',
40
43
  'function qualified(path) {',
41
- " return isAbsolute(path) && (process.platform !== 'win32' || parse(path).root.length > 1);",
44
+ " return isAbsolute(path) && (process.platform !== 'win32' || /^[A-Za-z]:[\\\\/]$/.test(parse(path).root));",
42
45
  '}',
43
46
  '// PATH entries that count: qualified ones only. Windows allows an entry in quotes and no quote in a file name, so the',
44
47
  '// quotes go there; on POSIX a quote is part of a directory name and every entry stays as written.',
@@ -47,7 +50,7 @@ const HOOK = [
47
50
  " return (process.platform === 'win32' ? entries.map((entry) => entry.replace(/\"/g, '')) : entries).filter(qualified);",
48
51
  '}',
49
52
  '// The hook looks ia up itself on every platform: cmd.exe reports an unknown command only as a localized message',
50
- '// with exit 1, the status a real ia doctor failure can have, so no shell is ever asked to fail (LKI-40). Only the four',
53
+ '// with exit 1, the status a real ia doctor failure can have, so no shell is ever asked to fail. Only the four',
51
54
  '// types cmd.exe starts as programs count; the PATHEXT script types would start through Windows Script Host.',
52
55
  'function findOnPath(name) {',
53
56
  " const windows = process.platform === 'win32';",
@@ -58,7 +61,7 @@ const HOOK = [
58
61
  ' } catch { continue; /* a missing directory costs one check, not one per name */ }',
59
62
  ' for (const candidate of names) {',
60
63
  ' const file = join(dir, candidate);',
61
- " if (windows && file.includes('%')) continue; // cmd.exe would expand %NAME% even inside quotes",
64
+ " if (windows && batch(file) && file.includes('%')) continue; // cmd.exe would expand %NAME% even inside quotes",
62
65
  ' try {',
63
66
  ' if (!statSync(file).isFile()) continue;',
64
67
  ' if (!windows) accessSync(file, constants.X_OK);',
@@ -68,12 +71,21 @@ const HOOK = [
68
71
  ' }',
69
72
  ' return null;',
70
73
  '}',
74
+ '// A .bat or .cmd file, which Node starts only through a shell, so the hook runs it through cmd.exe. A .com or .exe is',
75
+ '// a program and starts directly. The extension is the one the lookup added.',
76
+ 'function batch(file) {',
77
+ ' return /\\.(bat|cmd)$/.test(file);',
78
+ '}',
79
+ "// Windows' System32 directory, under SystemRoot when that is qualified and under the default Windows directory otherwise.",
80
+ 'function systemDirectory() {',
81
+ " const root = process.env.SystemRoot || '';",
82
+ " return join(qualified(root) ? root : 'C:/Windows', 'System32');",
83
+ '}',
71
84
  '// cmd.exe by absolute path, since a bare cmd.exe would itself be looked up in the current directory first, and never',
72
85
  "// ComSpec: Node gives a shell cmd.exe's switches only when its path matches cmd.exe with backslashes, so it would pass",
73
- '// -c to another program or to cmd.exe spelled with forward slashes. The hook passes the switches itself (LKI-41).',
86
+ '// -c to another program or to cmd.exe spelled with forward slashes. The hook passes the switches itself.',
74
87
  'function windowsShell() {',
75
- " const root = process.env.SystemRoot || '';",
76
- " return join(qualified(root) ? root : 'C:/Windows', 'System32', 'cmd.exe');",
88
+ " return join(systemDirectory(), 'cmd.exe');",
77
89
  '}',
78
90
  "// cmd.exe's switches, passed verbatim: /d skips AutoRun commands, /v:off stops a delayed expansion that the registry",
79
91
  '// turns on from reading a ! in the path, and /s /c runs the line inside the outer quotes as written.',
@@ -82,13 +94,14 @@ const HOOK = [
82
94
  '}',
83
95
  '// Every child the hook starts (doctor, an ia launcher, the update refresh) sees only the qualified entries and, on',
84
96
  "// Windows, no implicit current directory, so its own lookups (npm's ia.cmd runs node by name; doctor runs git) cannot",
85
- '// reach the project either (LKI-41).',
97
+ '// reach the project either.',
86
98
  'function childEnv() {',
87
99
  ' const env = {};',
88
100
  " for (const [key, value] of Object.entries(process.env)) if (key.toUpperCase() !== 'PATH') env[key] = value;",
89
101
  ' const entries = pathEntries();',
90
- ' // POSIX reads an empty PATH as the current directory, so a PATH with no qualified entry becomes the system one.',
91
- " env.PATH = entries.length > 0 || process.platform === 'win32' ? entries.join(delimiter) : '/usr/bin:/bin';",
102
+ ' // POSIX reads an empty PATH as the current directory, and on Windows it finds nothing at all, so a PATH with no',
103
+ ' // qualified entry becomes the system one: /usr/bin:/bin, or the System32 directory that holds cmd.exe.',
104
+ " env.PATH = entries.length > 0 ? entries.join(delimiter) : process.platform === 'win32' ? systemDirectory() : '/usr/bin:/bin';",
92
105
  " if (process.platform === 'win32') env.NoDefaultCurrentDirectoryInExePath = '1';",
93
106
  ' return env;',
94
107
  '}',
@@ -102,11 +115,12 @@ const HOOK = [
102
115
  ' const hasEntry = existsSync(meta.entry);',
103
116
  " const found = hasEntry ? null : findOnPath('ia');",
104
117
  ' if (!hasEntry && found === null) return notFound;',
105
- ' // The file found runs by its absolute path, on Windows through cmd.exe (a .cmd launcher needs it), so no step of',
106
- ' // the launch searches the project directory (LKI-41). Not found is decided here, before anything starts.',
118
+ ' // The file found runs by its absolute path, a Windows .bat or .cmd launcher through cmd.exe and anything else',
119
+ ' // directly, so no step of the launch searches the project directory. Not found is decided here,',
120
+ ' // before anything starts.',
107
121
  ' const run = hasEntry',
108
122
  ' ? spawnSync(process.execPath, [meta.entry].concat(args), Object.assign({}, options, { env: childEnv() }))',
109
- " : process.platform === 'win32'",
123
+ " : process.platform === 'win32' && batch(found)",
110
124
  ' ? spawnSync(windowsShell(), windowsArgs(found, args), Object.assign({}, options, { env: childEnv(), windowsVerbatimArguments: true }))',
111
125
  ' : spawnSync(found, args, Object.assign({}, options, { env: childEnv() }));',
112
126
  " if (run.error && run.error.code === 'ETIMEDOUT') return { context: 'IA status unavailable: ia doctor timed out.', notice: null };",
@@ -125,6 +139,8 @@ const HOOK = [
125
139
  ' else { mkdirSync(process.env.CLAUDE_PLUGIN_DATA, { recursive: true }); writeFileSync(file, today); }',
126
140
  ' } catch { /* the nudge file is best-effort; never let it block the briefing */ }',
127
141
  ' }',
142
+ ' // The refresh starts in the home directory, which the repository does not control. A missing one fails the start,',
143
+ ' // which the hook ignores, so it costs the refresh and never the briefing.',
128
144
  ' if (Array.isArray(session.refresh) && session.refresh.length > 0) {',
129
145
  ' try {',
130
146
  " const child = spawn(session.refresh[0], session.refresh.slice(1), { cwd: homedir(), env: childEnv(), detached: true, stdio: 'ignore', windowsHide: true });",
@@ -142,7 +158,31 @@ const HOOK = [
142
158
  'process.exitCode = 0;',
143
159
  '',
144
160
  ].join('\n');
145
- export function renderClaudePlugin(input) {
161
+ /**
162
+ * The hook's command in hooks.json, in shell form (no `args`) like the earlier command, so it needs no host that
163
+ * supports exec form. Claude Code's hooks reference passes such a command to `sh -c` on macOS and
164
+ * Linux, to Git Bash on Windows, or to PowerShell when Git Bash isn't installed. On macOS and Linux it names the
165
+ * recorded Node by absolute path in double quotes, so sh starts that file and looks no `node` up. On Windows it stays
166
+ * the earlier `node "…"`: PowerShell reads a line that opens with a quoted string as an expression, not a command, so a
167
+ * quoted path that Git Bash would run does not run there. `node` is still looked up on PATH on Windows.
168
+ */
169
+ const HOOK_SCRIPT = '"${CLAUDE_PLUGIN_ROOT}/hooks/session-start.mjs"';
170
+ function hookCommand(node, platform) {
171
+ if (platform === 'win32')
172
+ return `node ${HOOK_SCRIPT}`;
173
+ // Absolute, and without `${`, which the host would substitute.
174
+ if (!posix.isAbsolute(node) || node.includes('$' + '{'))
175
+ throw new Error(`renderClaudePlugin: node must be the fully qualified path of a Node executable, without "$` +
176
+ `{"; got ${JSON.stringify(node)}`);
177
+ // Inside double quotes sh reads $, ` and ", and a backslash before another backslash or the closing quote; cmd.exe
178
+ // would expand % and !; a control character can end the line or hide in it.
179
+ if (/["$`%!\p{Cc}]|\\\\|\\$/u.test(node))
180
+ throw new Error(`renderClaudePlugin: node must read the same inside double quotes in sh, so it holds no ", $, \`, %, !, control character, doubled backslash or final backslash; got ${JSON.stringify(node)}`);
181
+ return `"${node}" ${HOOK_SCRIPT}`;
182
+ }
183
+ /** `platform` is the machine the plugin is installed on: `ia host claude --user --apply` renders it there. */
184
+ export function renderClaudePlugin(input, platform = process.platform) {
185
+ const hook = { type: 'command', command: hookCommand(input.node, platform), timeout: 10 };
146
186
  const files = [
147
187
  {
148
188
  path: '.claude-plugin/marketplace.json',
@@ -171,18 +211,7 @@ export function renderClaudePlugin(input) {
171
211
  { path: 'plugins/ia/agents/ia-author.md', text: AUTHOR },
172
212
  {
173
213
  path: 'plugins/ia/hooks/hooks.json',
174
- text: json({
175
- hooks: {
176
- SessionStart: [
177
- {
178
- matcher: 'startup|clear',
179
- hooks: [
180
- { type: 'command', command: 'node "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.mjs"', timeout: 10 },
181
- ],
182
- },
183
- ],
184
- },
185
- }),
214
+ text: json({ hooks: { SessionStart: [{ matcher: 'startup|clear', hooks: [hook] }] } }),
186
215
  },
187
216
  { path: 'plugins/ia/hooks/session-start.mjs', text: HOOK },
188
217
  {
@@ -1 +1 @@
1
- {"version":3,"file":"host-plugin.js","sourceRoot":"","sources":["../src/host-plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,MAAM,kBAA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,EACT,sLAAsL;gBACxL,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;aAC/B,CAAC;SACH;QACD,EAAE,IAAI,EAAE,gCAAgC,EAAE,IAAI,EAAE,MAAM,EAAE;QACxD;YACE,IAAI,EAAE,6BAA6B;YACnC,IAAI,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;SACvF;QACD,EAAE,IAAI,EAAE,oCAAoC,EAAE,IAAI,EAAE,IAAI,EAAE;QAC1D;YACE,IAAI,EAAE,2BAA2B;YACjC,IAAI,EAAE,IAAI,CAAC;gBACT,MAAM,EAAE,qBAAqB;gBAC7B,GAAG,EAAE,KAAK,CAAC,UAAU;gBACrB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,OAAO,EAAE,KAAK,CAAC,OAAO;aACvB,CAAC;SACH;QACD,EAAE,IAAI,EAAE,sCAAsC,EAAE,IAAI,EAAE,SAAS,EAAE;QACjE,EAAE,IAAI,EAAE,mCAAmC,EAAE,IAAI,EAAE,MAAM,EAAE;QAC3D,EAAE,IAAI,EAAE,iCAAiC,EAAE,IAAI,EAAE,IAAI,EAAE;KACxD,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** An inert, deterministic bundled selector; it never imports authored code or executes effects. */
2
+ export declare function authoringRoutine(data: {
3
+ revision: string;
4
+ source: string;
5
+ purpose: string;
6
+ cells: readonly {
7
+ phase: string;
8
+ primitive: string;
9
+ text: string;
10
+ condition?: readonly {
11
+ axis: string;
12
+ value: string;
13
+ }[];
14
+ }[];
15
+ }, marker: string): string;
16
+ //# sourceMappingURL=skill-routine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-routine.d.ts","sourceRoot":"","sources":["../src/skill-routine.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE;IACJ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,SAAS;QACd,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,SAAS;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACxD,EAAE,CAAC;CACL,EACD,MAAM,EAAE,MAAM,GACb,MAAM,CAmBR"}
@@ -0,0 +1,22 @@
1
+ /** An inert, deterministic bundled selector; it never imports authored code or executes effects. */
2
+ export function authoringRoutine(data, marker) {
3
+ return `/*\n${marker}\n*/
4
+ const method = ${JSON.stringify(data)};
5
+ try {
6
+ const args = process.argv.slice(2);
7
+ if (args.length !== 8 || args[0] !== '--phase' || args[2] !== '--primitive' || args[4] !== '--mode' || args[6] !== '--revision') throw new Error('Usage: context.mjs --phase <orient|plan|act|learn> --primitive <Memory|Attention|Inference|Decision|Escalation|Learning> --mode <audit|edit|system-design> --revision <source revision>');
8
+ const [phase, primitive, mode, revision] = [args[1], args[3], args[5], args[7]];
9
+ if (!['audit', 'edit', 'system-design'].includes(mode)) throw new Error('Unknown authoring mode');
10
+ if (revision !== method.revision) throw new Error('Bundled source revision is stale; refresh the selected skill package');
11
+ const cells = method.cells.filter(cell => cell.phase === phase && cell.primitive === primitive);
12
+ if (!cells.length) throw new Error('Unknown or missing method coordinate');
13
+ const clauses = cells.map(cell => ({text: cell.text, condition: cell.condition ?? null}));
14
+ const core = method.cells.filter(cell => cell.phase === 'orient' && ['Memory', 'Attention'].includes(cell.primitive));
15
+ const result = { sourceRevision: revision, source: method.source, mode, phase, primitive, purpose: method.purpose, core, instruction: cells.filter(cell => cell.condition === undefined).map(cell => cell.text).join('\\n\\n') || null, clauses, conditionEvaluation: 'caller-required', effectAuthority: 'none', liveAuthority: 'unverified', delivery: 'unconfirmed' };
16
+ const output = JSON.stringify(result), bytes = Buffer.byteLength(output);
17
+ if (bytes > 32768 || Math.ceil(bytes / 4) > 8192) throw new Error('Selected method exceeds the finite context budget');
18
+ process.stdout.write(output + '\\n');
19
+ } catch (error) { process.stderr.write(JSON.stringify({ code: 'IA-SKILL-CONTEXT-INVALID', message: error.message }) + '\\n'); process.exitCode = 1; }
20
+ `;
21
+ }
22
+ //# sourceMappingURL=skill-routine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-routine.js","sourceRoot":"","sources":["../src/skill-routine.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,MAAM,UAAU,gBAAgB,CAC9B,IAUC,EACD,MAAc;IAEd,OAAO,OAAO,MAAM;iBACL,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;CAgBpC,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"steward-profile.d.ts","sourceRoot":"","sources":["../src/steward-profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,sBAAsB,CAAC;AAG1E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;WAMvB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;EACjD,CAAC;AACH,wHAAwH;AACxH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAqE,CAAC;AACxH;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAC1B;IAAE,QAAQ,CAAC,IA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AAQ,CAAC,SAAS,EAAE,SAAS,cAAc,EAAE,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AA+DN;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,KAAK,EAAE,cAAc,EACrB,eAAe,EAAE,OAAO,GACvB,kBAAkB,CAOpB"}
@@ -44,6 +44,38 @@ const scalar = (record, section, key) => {
44
44
  return field === undefined ? undefined : text(field.value);
45
45
  };
46
46
  const entries = (list) => list.map((r) => `- ${r.name}: ${says(r)} (${r.source.path}:${r.source.line})`).join('\n');
47
+ const mandateLimits = [
48
+ 'limit-steps',
49
+ 'limit-model-calls',
50
+ 'limit-operations',
51
+ 'limit-tokens',
52
+ 'limit-children',
53
+ 'limit-depth',
54
+ 'limit-bytes',
55
+ 'limit-duration-ms',
56
+ ];
57
+ /** This prose host supports a closed subset; admitted executable fields must never disappear silently. */
58
+ function executionSubset(record, allowed) {
59
+ const seen = new Set();
60
+ for (const field of record.sections
61
+ .filter((section) => section.name === 'execution')
62
+ .flatMap((section) => section.fields)) {
63
+ if (!('key' in field))
64
+ return fail(`${record.discriminator} ${record.name}: unsupported execution item`);
65
+ if (!allowed.includes(field.key) || seen.has(field.key) || field.when || field.fields)
66
+ fail(`${record.discriminator} ${record.name}: unsupported, duplicate or conditional execution.${field.key}`);
67
+ seen.add(field.key);
68
+ if (field.key.startsWith('limit-')) {
69
+ const value = Number(text(field.value));
70
+ if (!['scalar', 'string', 'prose'].includes(field.value.kind) ||
71
+ !text(field.value).trim() ||
72
+ !Number.isSafeInteger(value) ||
73
+ value < 0 ||
74
+ (field.key === 'limit-duration-ms' && value === 0))
75
+ fail(`Mandate ${record.name}: invalid execution.${field.key}`);
76
+ }
77
+ }
78
+ }
47
79
  /**
48
80
  * Compose one steward from the `@agent-profile` whose `composition.agent` names it. Reads compiled records
49
81
  * generically by discriminator and field names; it does not import the composition system's code.
@@ -72,6 +104,7 @@ function compose(records, agent, requireProfiles) {
72
104
  if (profiles.length > 1)
73
105
  fail(`Steward ${agent.name} has ${profiles.length} @agent-profile records; expected one`);
74
106
  const profile = profiles[0], where = `Steward profile ${profile.name}`;
107
+ executionSubset(profile, ['role', 'outcomes', 'mandate-contract']);
75
108
  const role = scalar(profile, 'execution', 'role'), outcomes = scalar(profile, 'execution', 'outcomes'), contract = scalar(profile, 'execution', 'mandate-contract');
76
109
  if (role !== agent.name)
77
110
  fail(`${where}: execution.role ${role ?? '(missing)'} must equal the steward name ${agent.name}`);
@@ -82,6 +115,7 @@ function compose(records, agent, requireProfiles) {
82
115
  if (refs(fieldOf(profile, 'composition', 'delegates')?.value).length > 0)
83
116
  fail(`${where}: composition.delegates is not supported for a steward`);
84
117
  const mandate = resolve(records, fieldOf(profile, 'composition', 'mandate')?.value, 'mandate', `${where}: composition.mandate`);
118
+ executionSubset(mandate, ['contract', ...mandateLimits]);
85
119
  const mandateContract = scalar(mandate, 'execution', 'contract');
86
120
  if (mandateContract !== undefined && mandateContract !== STEWARD_HOST_TABLE.mandateContract)
87
121
  fail(`Mandate ${mandate.name}: execution.contract ${mandateContract} does not match the steward mandate contract ${STEWARD_HOST_TABLE.mandateContract}`);
@@ -101,6 +135,7 @@ function compose(records, agent, requireProfiles) {
101
135
  const effects = new Set(), playbooks = [], sources = [profile, mandate, ...(voice ? [voice] : [])], capabilityText = [];
102
136
  for (const value of capabilityRefs) {
103
137
  const capability = resolve(records, value, 'capability', `${where}: composition.capabilities`);
138
+ executionSubset(capability, ['effects']);
104
139
  if (refs(fieldOf(capability, 'composition', 'includes')?.value).length > 0)
105
140
  fail(`Capability ${capability.name}: composition.includes is not expanded for a steward`);
106
141
  const listed = (key, discriminator) => refs(fieldOf(capability, 'composition', key)?.value).map((item) => resolve(records, item, discriminator, `Capability ${capability.name}: composition.${key}`));
@@ -134,7 +169,7 @@ function compose(records, agent, requireProfiles) {
134
169
  .join('\n')}`,
135
170
  ];
136
171
  const body = [
137
- `## Mandate\n\nSource: ${cite(mandate)}\n\n${says(mandate)}\n\n${bounds.text}${limits.length ? `\n\nLimits: ${limits.join('; ')}.` : ''}`,
172
+ `## Mandate\n\nSource: ${cite(mandate)}\n\n${says(mandate)}\n\n${bounds.text}${limits.length ? `\n\nAdvisory limits (this prose projection does not enforce runtime ceilings): ${limits.join('; ')}.` : ''}`,
138
173
  ...voiceText,
139
174
  `## Capabilities\n\nSource: ${cite(profile)}\n\n${capabilityText.join('\n\n')}`,
140
175
  ].join('\n\n');
@@ -1 +1 @@
1
- {"version":3,"file":"steward-profile.js","sourceRoot":"","sources":["../src/steward-profile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAErG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,qBAAqB;IAC/B,eAAe,EAAE,sBAAsB;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7C,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;KACxD,CAAgD;CAClD,CAAC,CAAC;AACH,wHAAwH;AACxH,MAAM,CAAC,MAAM,oBAAoB,GAAsB,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACxH;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAa7C,MAAM,OAAQ,S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E,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAE,CAAC,CAAC,CAAC;IAC7F,MAAM,KAAK,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IACvE,MAAM,SAAS,GACb,KAAK,KAAK,SAAS;QACjB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACE,uBAAuB,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;iBACxF,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;iBACzC,IAAI,CAAC,IAAI,CAAC,EAAE;SAChB,CAAC;IACR,MAAM,IAAI,GAAG;QACX,yBAAyB,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,kFAAkF,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5M,GAAG,SAAS;QACZ,8BAA8B,IAAI,CAAC,OAAO,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;KAChF,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACf,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACpE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inventarch/compliance",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -69,6 +69,10 @@
69
69
  "types": "./dist/shape.d.ts",
70
70
  "default": "./dist/shape.js"
71
71
  },
72
+ "./internal/skill-routine": {
73
+ "types": "./dist/skill-routine.d.ts",
74
+ "default": "./dist/skill-routine.js"
75
+ },
72
76
  "./internal/steward-profile": {
73
77
  "types": "./dist/steward-profile.d.ts",
74
78
  "default": "./dist/steward-profile.js"
@@ -100,11 +104,12 @@
100
104
  "README.md",
101
105
  "SPEC.md",
102
106
  "LICENSE",
103
- "NOTICE"
107
+ "NOTICE",
108
+ "LANGUAGE.md"
104
109
  ],
105
110
  "dependencies": {
106
- "@inventarch/language": "1.0.0",
107
- "@inventarch/graph": "1.0.0"
111
+ "@inventarch/language": "1.1.0",
112
+ "@inventarch/graph": "1.1.0"
108
113
  },
109
114
  "devDependencies": {
110
115
  "@types/node": "^22.19.0",
@@ -112,13 +117,13 @@
112
117
  "vitest": "^4.1.4"
113
118
  },
114
119
  "license": "Apache-2.0",
120
+ "engines": {
121
+ "node": ">=22.22.0 <23"
122
+ },
115
123
  "publishConfig": {
116
124
  "access": "public",
117
125
  "registry": "https://registry.npmjs.org"
118
126
  },
119
- "engines": {
120
- "node": ">=22.22.0 <23"
121
- },
122
127
  "repository": {
123
128
  "type": "git",
124
129
  "url": "git+https://github.com/inventarch/ia.git",