@intutic/sync-daemon 2.6.0 → 2.8.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/README.md CHANGED
@@ -15,7 +15,7 @@ fetch config → write harness files → compute hashes → report drift
15
15
  On each sync cycle the daemon:
16
16
 
17
17
  1. **Fetches** the latest SOP configuration from the control plane
18
- 2. **Writes** harness-specific config files using its format-aware config writers
18
+ 2. **Writes** harness-specific config files: the CLI's harness adapters write the rules files, and this package's gate writers and config mergers the gates and settings they need
19
19
  3. **Computes** content hashes for drift detection
20
20
  4. **Reports** any detected drift back to the control plane
21
21
 
@@ -23,27 +23,27 @@ On each sync cycle the daemon:
23
23
 
24
24
  ### Config Writers
25
25
 
26
- Harness-specific config writers (one module per harness under `src/harness/`) that translate governance SOPs into native configuration formats (YAML, JSON, TOML, Markdown, environment variables); most of them emit blocking pre-tool gates. The authoritative list of which harness gets which gate shape is `gateKind.ts` in `@intutic/shared-types`, and `__tests__/harness/gateRegistry.ts` exercises every generated gate — counts are not repeated here because they drifted every time a harness was added.
26
+ The rules files are written by the CLI's harness adapters (one module per harness under `tools/cli/src/harness/`), which `intutic connect` runs. This package's `src/harness/` holds what they call: the gate writers (`*Hooks.ts`) and config mergers that translate governance SOPs into native configuration formats (YAML, JSON, TOML, Markdown, environment variables); most harnesses get a blocking pre-tool gate. The authoritative list of which harness gets which gate shape is `gateKind.ts` in `@intutic/shared-types`, and `__tests__/harness/gateRegistry.ts` exercises every generated gate — counts are not repeated here because they drifted every time a harness was added.
27
27
 
28
28
  ### Atomic Writes
29
29
 
30
- All config file writes use a write-to-tmp + rename pattern to prevent partial writes from corrupting harness configurations.
30
+ Every write of a file a harness or gate reads (gate scripts, hook registrations, harness settings, the policy snapshot) goes to a temp file beside the target and is renamed over it (`src/lib/atomicWrite.ts`), so a reader never sees a partial file.
31
31
 
32
32
  ### macOS Immutable Flag Enforcement
33
33
 
34
- On macOS, the daemon sets the immutable flag (`chflags uchg`) on managed config files to prevent accidental manual edits that would cause governance drift.
34
+ When the workspace's `bypassEnforcementTier` is `immutable`, the daemon sets the macOS immutable flag (`chflags uchg`) on the rules files it manages between cycles, so a hand edit fails. The default tier, `rewrite`, sets no flag.
35
35
 
36
36
  ### Drift Detection
37
37
 
38
- Content-hash-based drift detection identifies when harness config files have been modified outside of the sync loop and reports the discrepancy to the control plane.
38
+ Content-hash-based drift detection identifies when a harness rules file has been modified outside of the sync loop and reports the discrepancy to the control plane. Under the default `rewrite` tier the daemon also puts the file back, keeping the edited copy as `<file>.drift-backup`; under `alert-only` the edit stays and is only reported.
39
39
 
40
40
  ### Trajectory Monitoring
41
41
 
42
- Watches the proxy's live trace events, buffers them per session in a sliding window, and submits trajectory summaries to the control plane for governance evaluation. No LLM runs on the developer machine.
42
+ Runs in the `intutic connect` process: watches the proxy's live trace events, buffers them per session in a sliding window, and submits trajectory summaries to the control plane for governance evaluation. A summary the control plane cannot take yet is spooled to `~/.intutic/events/offline-trajectories.jsonl` (capped at 16 MB) and retried; one it refuses with a non-retryable 4xx is dropped. No LLM runs on the developer machine.
43
43
 
44
44
  ### Config Capture
45
45
 
46
- Captures point-in-time snapshots of all harness configurations for audit, compliance, and historical comparison.
46
+ Captures each recorded harness's rules file for the workspace's config history. By default a capture is metadata only (path, SHA-256 of the redacted text, size); with the workspace's `configBodyUpload` setting on, it carries the text too, credential-shaped strings replaced by `[redacted]` first.
47
47
 
48
48
  ## Usage
49
49
 
@@ -1 +1 @@
1
- {"version":3,"file":"agentReporter.d.ts","sourceRoot":"","sources":["../src/agentReporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EAUL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAA;AAG9B,oFAAoF;AACpF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,E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illContentForTransport, scanScriptContent, detectScriptLanguage, MAX_SKILL_DIR_DEPTH, MAX_FILES_PER_SKILL, MAX_SCRIPT_SCAN_BYTES, MAX_SCRIPT_HASH_BYTES, gateKindForHarness, } from '@intutic/shared-types';
22
22
  import { discoverMcpServers } from './harness/mcpAutoWrite.js';
23
+ import { listSopFiles, markedNotEnforced } from './lib/sopFiles.js';
23
24
  async function exists(p) {
24
25
  try {
25
26
  await access(p);
@@ -133,17 +134,20 @@ async function countWasmRules() {
133
134
  return 0;
134
135
  }
135
136
  }
136
- /** Role SOPs on disk under `<root>/.intutic/sops`. */
137
+ /**
138
+ * Role SOPs on disk under `<root>/.intutic/sops`: the flat files and the
139
+ * `<set>/` folders, each id'd by the title the proxy loads it under
140
+ * (`deploy`, `safety/rules`).
141
+ */
137
142
  async function collectSops(workspaceRoot) {
138
- const dir = join(workspaceRoot, '.intutic', 'sops');
139
143
  try {
140
- const entries = await readdir(dir);
141
144
  const out = [];
142
- for (const file of entries.filter((e) => e.endsWith('.md'))) {
143
- const body = await readFile(join(dir, file), 'utf8').catch(() => '');
145
+ for (const { path, folder, file } of await listSopFiles(join(workspaceRoot, '.intutic', 'sops'))) {
146
+ const body = await readFile(path, 'utf8').catch(() => '');
144
147
  // An SOP is "enforced" if it declares deny_tools or allow_harnesses.
145
- const enforced = /deny_tools|allow_harnesses/.test(body);
146
- out.push({ sop_id: file.replace(/\.md$/, ''), name: file, enforced });
148
+ const enforced = !markedNotEnforced(body) && /deny_tools|allow_harnesses/.test(body);
149
+ const name = folder === null ? file : `${folder}/${file}`;
150
+ out.push({ sop_id: name.replace(/\.md$/, ''), name, enforced });
147
151
  }
148
152
  return out;
149
153
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agentReporter.js","sourceRoot":"","sources":["../src/agentReporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBA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,EAAE;YAClF,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;YACzD,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC;SACpC,CAAC,CAAA;QACF,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,OAAO,CAAC,IAAI,CAAC,wCAAwC,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;QACxF,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CAAC,uCAAuC,MAAM,CAAC,QAAQ,GAAG,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;IACnH,CAAC;AACH,CAAC"}
@@ -31,14 +31,40 @@ export declare const ENV_INTUTIC_WRITERS: readonly string[];
31
31
  * workspace) or nowhere (see the map's `none` entries).
32
32
  */
33
33
  export declare const HARNESS_FILES: Record<HarnessType, string>;
34
+ /** What {@link loadLocalSopEntries} can be asked besides the workspace. */
35
+ export interface LoadLocalSopOptions {
36
+ /**
37
+ * Control-plane SOP ids already in hand (the synced SOPs). A local file whose
38
+ * `intutic_id:` names one of them is a copy `intutic sops pull` wrote, and
39
+ * loading it as well would put the same SOP into the rules file twice.
40
+ */
41
+ skipSopIds?: ReadonlySet<string>;
42
+ /**
43
+ * Told of a read error other than a missing `.intutic/sops`; the SOPs read
44
+ * before it are still returned. Unset, errors are dropped.
45
+ */
46
+ onError?: (err: unknown) => void;
47
+ /**
48
+ * Load every local SOP whatever the session's selection. For the gate's
49
+ * holds: the selection is made from inside the agent's own chat, so it may
50
+ * narrow what is written into the rules files as prose, never what is
51
+ * enforced.
52
+ */
53
+ ignoreSelection?: boolean;
54
+ }
34
55
  /**
35
- * The workspace's local SOPs (`.intutic/sops/<dir>/*.md`, narrowed by
36
- * `session-context.json`'s `activeLocalSops` when present). Read by the
37
- * gate-cache refresh, which compiles their
38
- * `review_before:` tokens into hold rules. A missing
39
- * directory is an empty list.
56
+ * The workspace's local SOPs: `.intutic/sops/*.md` and `.intutic/sops/<set>/*.md`
57
+ * (see `lib/sopFiles.ts`), the same files the proxy enforces. A session's
58
+ * selection (`session-context.json`'s `activeLocalSops`: folder names and
59
+ * flat file names, see `listSopSets`) narrows them unless `ignoreSelection`.
60
+ * Skipped: `guardrail-*.md` files, which `intutic guardrails pull` writes for
61
+ * a proxy that reads SOPs from disk while a connected machine receives those
62
+ * guardrails from the control plane, and files `intutic sops pull` marked
63
+ * `intutic_enforced: false`. Read by `intutic connect` for the harness rules
64
+ * files and by the gate-cache refresh, which compiles their `review_before:`
65
+ * tokens into hold rules. A missing directory is an empty list.
40
66
  */
41
- export declare function loadLocalSopEntries(workspaceRoot: string, harnesses: HarnessType[]): Promise<SyncSopEntry[]>;
67
+ export declare function loadLocalSopEntries(workspaceRoot: string, harnesses: HarnessType[], opts?: LoadLocalSopOptions): Promise<SyncSopEntry[]>;
42
68
  /** Outcome of a single ADD/DELETE/REPLACE operation within one suggestion's edit set. */
43
69
  export interface ConfigEditOperationOutcome {
44
70
  /** Index into the suggestion's `edits` array. */
@@ -1 +1 @@
1
- {"version":3,"file":"configWriter.d.ts","sourceRoot":"","sources":["../src/configWriter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAKlF;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGpE;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGlE;AAID,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,E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AAsB,gBAAgB,CACpC,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,KAAK,CAAC;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,CAAA;CAC7B,CAAC,EACF,qBAAqB,CAAC,EAAE,MAAM,GAC7B,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAuHnC;AAID;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,qBAAqB,CAAC,EAAE,MAAM,GAC7B,OAAO,CAAC,IAAI,CAAC,CAef"}
@@ -13,6 +13,7 @@ import { execFile as _execFile } from 'node:child_process';
13
13
  import { promisify } from 'node:util';
14
14
  import { HarnessType as HarnessTypes, rulesFileOf } from '@intutic/shared-types';
15
15
  import { writeFileAtomic } from './lib/atomicWrite.js';
16
+ import { listSopFiles, markedNotEnforced, recordedSopId, selectionKeeps } from './lib/sopFiles.js';
16
17
  const execFile = promisify(_execFile);
17
18
  /**
18
19
  * Clear the macOS user-immutable flag so the daemon can rewrite a file it
@@ -72,13 +73,18 @@ export const ENV_INTUTIC_WRITERS = [
72
73
  */
73
74
  export const HARNESS_FILES = Object.fromEntries(Object.values(HarnessTypes).map((h) => [h, rulesFileOf(h) ?? (ENV_INTUTIC_WRITERS.includes(h) ? '.env.intutic' : '')]));
74
75
  /**
75
- * The workspace's local SOPs (`.intutic/sops/<dir>/*.md`, narrowed by
76
- * `session-context.json`'s `activeLocalSops` when present). Read by the
77
- * gate-cache refresh, which compiles their
78
- * `review_before:` tokens into hold rules. A missing
79
- * directory is an empty list.
76
+ * The workspace's local SOPs: `.intutic/sops/*.md` and `.intutic/sops/<set>/*.md`
77
+ * (see `lib/sopFiles.ts`), the same files the proxy enforces. A session's
78
+ * selection (`session-context.json`'s `activeLocalSops`: folder names and
79
+ * flat file names, see `listSopSets`) narrows them unless `ignoreSelection`.
80
+ * Skipped: `guardrail-*.md` files, which `intutic guardrails pull` writes for
81
+ * a proxy that reads SOPs from disk while a connected machine receives those
82
+ * guardrails from the control plane, and files `intutic sops pull` marked
83
+ * `intutic_enforced: false`. Read by `intutic connect` for the harness rules
84
+ * files and by the gate-cache refresh, which compiles their `review_before:`
85
+ * tokens into hold rules. A missing directory is an empty list.
80
86
  */
81
- export async function loadLocalSopEntries(workspaceRoot, harnesses) {
87
+ export async function loadLocalSopEntries(workspaceRoot, harnesses, opts = {}) {
82
88
  const localSopEntries = [];
83
89
  try {
84
90
  const sessionContextPath = node_path.join(workspaceRoot, '.intutic', 'session-context.json');
@@ -91,31 +97,31 @@ export async function loadLocalSopEntries(workspaceRoot, harnesses) {
91
97
  catch {
92
98
  // not configured yet
93
99
  }
94
- const sopsDir = node_path.join(workspaceRoot, '.intutic', 'sops');
95
- const entries = await node_fs.readdir(sopsDir, { withFileTypes: true });
96
- const dirs = entries.filter((e) => e.isDirectory()).map((e) => e.name);
97
- const activeDirs = activeLocalSops !== undefined
98
- ? dirs.filter((d) => activeLocalSops.includes(d))
99
- : dirs;
100
- for (const dirName of activeDirs) {
101
- const dirPath = node_path.join(sopsDir, dirName);
102
- const files = await node_fs.readdir(dirPath);
103
- const mdFiles = files.filter((f) => f.endsWith('.md'));
104
- for (const file of mdFiles) {
105
- const filePath = node_path.join(dirPath, file);
106
- const content = await node_fs.readFile(filePath, 'utf-8');
107
- localSopEntries.push({
108
- sopId: `local:${dirName}:${file}`,
109
- title: `Local SOP: ${dirName}/${file}`,
110
- content,
111
- contentHash: '',
112
- harnessTargets: harnesses,
113
- });
114
- }
100
+ const files = await listSopFiles(node_path.join(workspaceRoot, '.intutic', 'sops'), (_folder, err) => opts.onError?.(err));
101
+ for (const { path, folder, file } of files) {
102
+ if (folder === null && file.startsWith('guardrail-'))
103
+ continue;
104
+ const content = await node_fs.readFile(path, 'utf-8');
105
+ if (markedNotEnforced(content))
106
+ continue;
107
+ if (!opts.ignoreSelection && activeLocalSops !== undefined && !selectionKeeps({ path, folder, file }, content, activeLocalSops))
108
+ continue;
109
+ const recorded = recordedSopId(content);
110
+ if (recorded !== null && opts.skipSopIds?.has(recorded))
111
+ continue;
112
+ const label = folder === null ? file : `${folder}/${file}`;
113
+ localSopEntries.push({
114
+ sopId: folder === null ? `local:${file}` : `local:${folder}:${file}`,
115
+ title: `Local SOP: ${label}`,
116
+ content,
117
+ contentHash: '',
118
+ harnessTargets: harnesses,
119
+ });
115
120
  }
116
121
  }
117
- catch {
118
- // ignore directory read errors (e.g. if sops folder doesn't exist)
122
+ catch (err) {
123
+ if (err?.code !== 'ENOENT')
124
+ opts.onError?.(err);
119
125
  }
120
126
  return localSopEntries;
121
127
  }
@@ -1 +1 @@
1
- {"version":3,"file":"configWriter.js","sourceRoot":"","sources":["../src/configWriter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC,CAAA;AAErC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,QAAgB;IACnD,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ;QAAE,OAAM;IACzC,IAAI,CAAC;QAAC,MAAM,QAAQ,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAA;IAAC,CAAC;IAAC,MAAM,CAAC,CAAC,4BAA4B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,CAAC,CAAA;IAExC,2DAA2D;IAC3D,IAAI,qBAAqB,KAAK,WAAW,EAAE,CAAC;QAC1C,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAA;IAC9B,CAAC;AACH,CAAC"}
package/dist/index.d.ts CHANGED
@@ -15,6 +15,9 @@ export { collectDeviceInventory, reportDeviceInventory } from './inventory.js';
15
15
  export type { DetectedHarness } from './inventory.js';
16
16
  export { startHarnessSession, endAllOpenSessions, readGitInfo } from './sessionReporter.js';
17
17
  export { loadLocalSopEntries, HARNESS_FILES, clearImmutable, setImmutable } from './configWriter.js';
18
+ export type { LoadLocalSopOptions } from './configWriter.js';
19
+ export { listSopFiles, listSopSets, markedNotEnforced } from './lib/sopFiles.js';
20
+ export type { SopFile } from './lib/sopFiles.js';
18
21
  export { captureAndUpload, shouldCaptureThisIteration, redactConfigText } from './configReader.js';
19
22
  export { writeBundledSkills } from './skillWriter.js';
20
23
  export { SyncWsClient } from './wsClient.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC9E,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAE3F,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEpG,OAAO,EAAE,gBAA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gB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAGzE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG1D,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AACrE,YAAY,EACV,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,0BAA0B,CAAA"}
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ export { collectAgentReport, reportAgent, fetchLocalProxyInstanceId } from './ag
14
14
  export { collectDeviceInventory, reportDeviceInventory } from './inventory.js';
15
15
  export { startHarnessSession, endAllOpenSessions, readGitInfo } from './sessionReporter.js';
16
16
  export { loadLocalSopEntries, HARNESS_FILES, clearImmutable, setImmutable } from './configWriter.js';
17
+ export { listSopFiles, listSopSets, markedNotEnforced } from './lib/sopFiles.js';
17
18
  export { captureAndUpload, shouldCaptureThisIteration, redactConfigText } from './configReader.js';
18
19
  export { writeBundledSkills } from './skillWriter.js';
19
20
  export { SyncWsClient } from './wsClient.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;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AA;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEzE,yDAAyD;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,mCAAmC;AACnC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * sopFiles.ts — which files under `.intutic/sops/` are SOPs.
3
+ *
4
+ * Two layouts, both read by every reader: `*.md` directly in the directory
5
+ * (what `intutic sops pull` and `intutic guardrails pull` write) and `*.md`
6
+ * one folder down, `<set>/*.md`, a rule set. The proxy reads the same two
7
+ * (`sop_files` in `packages/proxy/src/sops.rs`); before they agreed, the proxy
8
+ * read only the flat files and `intutic connect` only the folders, so a SOP
9
+ * was in force at one layer and missing from the other.
10
+ *
11
+ * @module
12
+ */
13
+ /** One SOP file under `.intutic/sops/`. */
14
+ export interface SopFile {
15
+ /** Absolute path. */
16
+ path: string;
17
+ /** The rule-set folder it is in, or null for a file directly in `.intutic/sops/`. */
18
+ folder: string | null;
19
+ /** The file name, `rules.md`. */
20
+ file: string;
21
+ }
22
+ /**
23
+ * The SOP files in `sopsDir`, sorted by folder then name, flat files first.
24
+ * Deeper folders are not read, nor folders whose name starts with `.` (the
25
+ * proxy skips them because a Kubernetes ConfigMap volume keeps its files under
26
+ * `..data/`; the same set is read here).
27
+ *
28
+ * Rejects when `sopsDir` cannot be read (`ENOENT` when there is none), so a
29
+ * caller can tell "no SOPs" from "SOPs it could not read". A folder that
30
+ * cannot be read is skipped, as the proxy skips it, and handed to `onSkipped`.
31
+ */
32
+ export declare function listSopFiles(sopsDir: string, onSkipped?: (folder: string, err: unknown) => void): Promise<SopFile[]>;
33
+ /**
34
+ * The `intutic_id:` a SOP file's front matter records — the control-plane SOP
35
+ * `intutic sops pull` / `push` synced it with — or null.
36
+ */
37
+ export declare function recordedSopId(content: string): string | null;
38
+ /**
39
+ * Whether `intutic sops pull` marked this file `intutic_enforced: false`: a
40
+ * copy of a SOP the control plane does not enforce (a draft, one under review
41
+ * or invalidated, one no longer active). No local reader enforces it; only
42
+ * that exact value switches a file off, so a typo leaves it enforced. The
43
+ * proxy reads the same key (`pulled_but_not_enforced` in `sops.rs`).
44
+ */
45
+ export declare function markedNotEnforced(content: string): boolean;
46
+ /**
47
+ * The local rule sets a session can select (`intutic loop start --sops`,
48
+ * `/intutic start --sops`): every folder, by its name (`frontend-rules`), and
49
+ * every file directly in `sopsDir` that is the developer's own, by its file
50
+ * name (`deploy.md`). A file that records an `intutic_id:` is a copy of a
51
+ * workspace SOP, governed on the control plane rather than selected per
52
+ * session, and `guardrail-*.md` files are `intutic guardrails pull`'s. Folders
53
+ * first, each group sorted, so a listed option number stays put when a file
54
+ * is added. Empty when `sopsDir` cannot be read.
55
+ */
56
+ export declare function listSopSets(sopsDir: string): Promise<string[]>;
57
+ /**
58
+ * Whether a session selection keeps this file: a folder's files when the
59
+ * folder is selected, a selectable flat file when it is selected by name. A
60
+ * copy of a workspace SOP (it records an `intutic_id:`) is not a selectable
61
+ * set and is kept whatever the selection, as {@link listSopSets} leaves it out.
62
+ */
63
+ export declare function selectionKeeps(file: SopFile, content: string, selection: readonly string[]): boolean;
64
+ //# sourceMappingURL=sopFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sopFiles.d.ts","sourceRoot":"","sources":["../../src/lib/sopFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,2CAA2C;AAC3C,MAAM,WAAW,OAAO;IACtB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,qFAAqF;IACrF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,IAAI,GACjD,OAAO,CAAC,OAAO,EAAE,CAAC,CA2BpB;AAqBD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE5D;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAUpE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAGpG"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * sopFiles.ts — which files under `.intutic/sops/` are SOPs.
3
+ *
4
+ * Two layouts, both read by every reader: `*.md` directly in the directory
5
+ * (what `intutic sops pull` and `intutic guardrails pull` write) and `*.md`
6
+ * one folder down, `<set>/*.md`, a rule set. The proxy reads the same two
7
+ * (`sop_files` in `packages/proxy/src/sops.rs`); before they agreed, the proxy
8
+ * read only the flat files and `intutic connect` only the folders, so a SOP
9
+ * was in force at one layer and missing from the other.
10
+ *
11
+ * @module
12
+ */
13
+ import * as node_fs from 'node:fs/promises';
14
+ import * as node_path from 'node:path';
15
+ /**
16
+ * The SOP files in `sopsDir`, sorted by folder then name, flat files first.
17
+ * Deeper folders are not read, nor folders whose name starts with `.` (the
18
+ * proxy skips them because a Kubernetes ConfigMap volume keeps its files under
19
+ * `..data/`; the same set is read here).
20
+ *
21
+ * Rejects when `sopsDir` cannot be read (`ENOENT` when there is none), so a
22
+ * caller can tell "no SOPs" from "SOPs it could not read". A folder that
23
+ * cannot be read is skipped, as the proxy skips it, and handed to `onSkipped`.
24
+ */
25
+ export async function listSopFiles(sopsDir, onSkipped) {
26
+ const entries = await node_fs.readdir(sopsDir, { withFileTypes: true });
27
+ const byName = (a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
28
+ const flat = [];
29
+ const nested = [];
30
+ for (const e of [...entries].sort(byName)) {
31
+ const path = node_path.join(sopsDir, e.name);
32
+ // A symlink is followed, as the proxy's `is_dir` / `is_file` follow it.
33
+ const kind = e.isSymbolicLink() ? await node_fs.stat(path).catch(() => null) : e;
34
+ if (kind?.isFile() && e.name.endsWith('.md')) {
35
+ flat.push({ path, folder: null, file: e.name });
36
+ }
37
+ else if (kind?.isDirectory() && !e.name.startsWith('.')) {
38
+ let inner;
39
+ try {
40
+ inner = await node_fs.readdir(path, { withFileTypes: true });
41
+ }
42
+ catch (err) {
43
+ onSkipped?.(path, err);
44
+ continue;
45
+ }
46
+ for (const f of [...inner].sort(byName)) {
47
+ const filePath = node_path.join(path, f.name);
48
+ const fileKind = f.isSymbolicLink() ? await node_fs.stat(filePath).catch(() => null) : f;
49
+ if (fileKind?.isFile() && f.name.endsWith('.md'))
50
+ nested.push({ path: filePath, folder: e.name, file: f.name });
51
+ }
52
+ }
53
+ }
54
+ return [...flat, ...nested];
55
+ }
56
+ /**
57
+ * One `key:` scalar from a SOP file's front matter, trimmed and unquoted, or
58
+ * null. Read line by line, no regex over the whole file: the content is
59
+ * whatever an agent wrote.
60
+ */
61
+ function frontMatterValue(content, key) {
62
+ const lines = content.trimStart().split('\n');
63
+ if (lines[0]?.trim() !== '---')
64
+ return null;
65
+ for (const line of lines.slice(1)) {
66
+ const t = line.trim();
67
+ if (t === '---')
68
+ return null;
69
+ if (t.startsWith(key)) {
70
+ const v = t.slice(key.length).trim().replace(/^["']|["']$/g, '');
71
+ return v || null;
72
+ }
73
+ }
74
+ return null;
75
+ }
76
+ /**
77
+ * The `intutic_id:` a SOP file's front matter records — the control-plane SOP
78
+ * `intutic sops pull` / `push` synced it with — or null.
79
+ */
80
+ export function recordedSopId(content) {
81
+ return frontMatterValue(content, 'intutic_id:');
82
+ }
83
+ /**
84
+ * Whether `intutic sops pull` marked this file `intutic_enforced: false`: a
85
+ * copy of a SOP the control plane does not enforce (a draft, one under review
86
+ * or invalidated, one no longer active). No local reader enforces it; only
87
+ * that exact value switches a file off, so a typo leaves it enforced. The
88
+ * proxy reads the same key (`pulled_but_not_enforced` in `sops.rs`).
89
+ */
90
+ export function markedNotEnforced(content) {
91
+ return frontMatterValue(content, 'intutic_enforced:')?.toLowerCase() === 'false';
92
+ }
93
+ /**
94
+ * The local rule sets a session can select (`intutic loop start --sops`,
95
+ * `/intutic start --sops`): every folder, by its name (`frontend-rules`), and
96
+ * every file directly in `sopsDir` that is the developer's own, by its file
97
+ * name (`deploy.md`). A file that records an `intutic_id:` is a copy of a
98
+ * workspace SOP, governed on the control plane rather than selected per
99
+ * session, and `guardrail-*.md` files are `intutic guardrails pull`'s. Folders
100
+ * first, each group sorted, so a listed option number stays put when a file
101
+ * is added. Empty when `sopsDir` cannot be read.
102
+ */
103
+ export async function listSopSets(sopsDir) {
104
+ const files = await listSopFiles(sopsDir).catch(() => []);
105
+ const folders = [...new Set(files.filter((f) => f.folder !== null).map((f) => f.folder))];
106
+ const flat = [];
107
+ for (const f of files) {
108
+ if (f.folder !== null || f.file.startsWith('guardrail-'))
109
+ continue;
110
+ const content = await node_fs.readFile(f.path, 'utf-8').catch(() => null);
111
+ if (content !== null && recordedSopId(content) === null)
112
+ flat.push(f.file);
113
+ }
114
+ return [...folders, ...flat];
115
+ }
116
+ /**
117
+ * Whether a session selection keeps this file: a folder's files when the
118
+ * folder is selected, a selectable flat file when it is selected by name. A
119
+ * copy of a workspace SOP (it records an `intutic_id:`) is not a selectable
120
+ * set and is kept whatever the selection, as {@link listSopSets} leaves it out.
121
+ */
122
+ export function selectionKeeps(file, content, selection) {
123
+ if (file.folder !== null)
124
+ return selection.includes(file.folder);
125
+ return recordedSopId(content) !== null || selection.includes(file.file);
126
+ }
127
+ //# sourceMappingURL=sopFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sopFiles.js","sourceRoot":"","sources":["../../src/lib/sopFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AAYtC;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,OAAe,EACf,SAAkD;IAElD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;IACvE,MAAM,MAAM,GAAG,CAAC,CAAmB,EAAE,CAAmB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7G,MAAM,IAAI,GAAc,EAAE,CAAA;IAC1B,MAAM,MAAM,GAAc,EAAE,CAAA;IAC5B,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1C,MA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I;QAAE,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAChE,OAAO,aAAa,CAAC,OAAO,CAAC,KAAK,IAAI,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzE,CAAC"}
@@ -24,11 +24,11 @@
24
24
  /** Workspace-relative path the rule-author skill is written to. */
25
25
  export declare const RULE_AUTHOR_SKILL_PATH: string;
26
26
  /** Embedded copy of .agents/skills/intutic-rule-author/SKILL.md (canonical). */
27
- export declare const RULE_AUTHOR_SKILL = "---\nname: intutic-rule-author\ndescription: Convert natural-language business rules into compiled WASM governance policies enforced by the local Intutic proxy \u2014 author, compile, dry-run, and install rules without a control plane.\n---\n\n# \uD83D\uDCDC Rule Author \u2014 Business Rules as Enforced WASM Policies\n\nUse this skill whenever the user states a rule that AI agent traffic must obey \u2014 \"block any agent call that touches the prod database\", \"kill requests once the session budget drops below $1\", \"never allow shell tool calls containing rm -rf\". You convert the rule into an AssemblyScript policy, compile it to WebAssembly, dry-run it against mock contexts, and install it into the local Intutic proxy. The proxy hot-loads it within ~5 seconds and enforces it on every intercepted LLM request.\n\n**The other way you get here is `/fix`.** That proxy command scores the workspace's governance posture and, when it finds no custom policy, recommends: *\"Add a WASM rule under `~/.intutic/wasm` to codify a custom guardrail.\"* When that recommendation is the prompt, the rule to author is the gap `/fix` found \u2014 ask the user which specific behaviour they want blocked rather than writing a generic rule, then run `/fix` again after installing to confirm the posture score moved. If it did not, the rule is not loading: check `intutic policy list-local` and the sandbox constraints in \u00A72. A rule that breaks them is not skipped silently: it reaches no verdict, and every request it could not judge is refused with `GOVERNANCE_UNAVAILABLE`.\n\n## 1. The contract your rule sees\n\nThe proxy calls `evaluate(offset, len)` with a JSON-serialized `RequestContext`:\n\n```jsonc\n{\n \"session_id\": \"sess_x\", \"workspace_id\": \"ws_x\", \"virtual_key_prefix\": \"vk_x\",\n \"model\": \"claude-3-5-sonnet\",\n \"tools\": [{ \"name\": \"bash\", \"description\": \"run shell commands\" }],\n \"tool_calls\": [{ \"id\": \"t1\", \"name\": \"bash\", \"arguments\": {} }],\n \"estimated_input_tokens\": 1200,\n \"budget_remaining_usd\": 4.25,\n \"risk_tier\": \"Low\",\n \"dlp_findings\": [{ \"category\": \"secret\", \"pattern_name\": \"aws_access_key\", \"action\": \"redact\", \"offset\": 0, \"length\": 20 }],\n \"tool_sequence\": [\"read_file\", \"bash\"]\n}\n```\n\n`risk_tier` is one of `Low | Medium | High | Critical`. Return an `i32` verdict: `0` = ALLOW, `1` = BLOCK, `3` = REASK (refuse this attempt, tell the agent why, let it retry). `2` is deprecated \u2014 the guest never receives the request body, so redaction was never expressible; the proxy maps it to a block. Prefer `3` over `1` for any finding that is a pattern match, because pattern matches produce false positives.\n\n## 2. Author\n\nStart from the `@intutic/wasm-sdk` template (`packages/wasm-sdk/` in the open-core repo). Add one function per business rule and call it from `runRules()` in `assembly/index.ts`.\n\nSandbox constraints \u2014 a rule that breaks one reaches no verdict, and every call it could not judge is refused with `GOVERNANCE_UNAVAILABLE`, whatever the proxy's fail setting:\n\n- 1,000,000 fuel (instructions), the limit to write against; a 1 s wall-clock backstop; 16 MB memory.\n- Keep logic simple: no unbounded loops over `arguments`, no recursion, no I/O (none exists in the sandbox).\n- Host imports are limited to `env.log_info`, `env.trace`, `env.abort` and `env.read_referenced_file` (reads the bytes of a file the host already resolved before the sandbox existed \u2014 not a filesystem import, and it cannot be used to browse). A rule importing anything else cannot link, so it is refused at `intutic policy install` and refused again when the proxy loads it.\n- **`Math.random()` is unavailable.** AssemblyScript compiles it to an `env.seed` import the proxy does not provide. This list previously named `env.seed`, and a rule using randomness installed clean and then failed to link on every request \u2014 enforcing nothing, silently. Beyond the missing import, a verdict that samples is not a verdict: the same request would get different answers, and the audit trail would not explain either.\n\n## 3. Compile\n\n```bash\nintutic policy compile --src assembly/index.ts --out build/rule.wasm\n```\n\nRequires AssemblyScript in the project: `pnpm add -D assemblyscript assemblyscript-json`.\n\n## 4. Dry-run \u2014 required before install\n\nAuthor BOTH mock contexts and verify both outcomes before installing:\n\n```bash\nintutic policy test --wasm build/rule.wasm --mock should-block.json\nintutic policy test --wasm build/rule.wasm --mock should-allow.json\n```\n\nThe first must report BLOCK, the second ALLOW. A rule that blocks everything is as broken as one that blocks nothing.\n\n## 5. Install\n\n```bash\nintutic policy install --wasm build/rule.wasm --name block-prod-db --priority 50\nintutic policy list-local\n```\n\nRules install to `~/.intutic/wasm/` as `NN_name.wasm` (lower `NN` runs first; default 100). The proxy picks up changes within ~5 s on the next request \u2014 no restart needed.\n\n## 6. Guardrails\n\n- **Never embed secrets** (API keys, tokens, passwords) in rule sources or mock contexts \u2014 `intutic skill audit` flags them.\n- **Local rules cannot weaken central rules.** Verdicts merge most-restrictive-wins: a BLOCK from any rule \u2014 local or centrally synced \u2014 ends the request. \"Allow-override\" rules are no-ops by design; do not author them.\n- Keep rule sources (`assembly/*.ts`, mock JSON files) in version control alongside the workspace.\n";
27
+ export declare const RULE_AUTHOR_SKILL = "---\nname: intutic-rule-author\ndescription: Convert natural-language business rules into compiled WASM governance policies enforced by the local Intutic proxy \u2014 author, compile, dry-run, and install rules without a control plane.\n---\n\n# \uD83D\uDCDC Rule Author \u2014 Business Rules as Enforced WASM Policies\n\nUse this skill whenever the user states a rule that AI agent traffic must obey \u2014 \"block any agent call that touches the prod database\", \"kill requests once the session budget drops below $1\", \"never allow shell tool calls containing rm -rf\". You convert the rule into an AssemblyScript policy, compile it to WebAssembly, dry-run it against mock contexts, and install it into the local Intutic proxy. The proxy hot-loads it within ~5 seconds and enforces it on every intercepted LLM request.\n\n**The other way you get here is `/fix`.** That proxy command scores the workspace's governance posture and, when it finds no custom policy, recommends: *\"Add a WASM rule under `~/.intutic/wasm` to codify a custom guardrail.\"* When that recommendation is the prompt, the rule to author is the gap `/fix` found \u2014 ask the user which specific behaviour they want blocked rather than writing a generic rule, then run `/fix` again after installing to confirm the posture score moved. If it did not, the rule is not loading: check `intutic policy list-local` and the sandbox constraints in \u00A72. A rule that breaks them is not skipped silently: it reaches no verdict, and every request it could not judge is refused with `GOVERNANCE_UNAVAILABLE`.\n\n## 1. The contract your rule sees\n\nThe proxy calls `evaluate(offset, len)` with a JSON-serialized `RequestContext`:\n\n```jsonc\n{\n \"session_id\": \"sess_x\", \"workspace_id\": \"ws_x\", \"virtual_key_prefix\": \"vk_x\",\n \"model\": \"claude-3-5-sonnet\",\n \"tools\": [{ \"name\": \"bash\", \"description\": \"run shell commands\" }],\n \"tool_calls\": [{ \"id\": \"t1\", \"name\": \"bash\", \"arguments\": {} }],\n \"estimated_input_tokens\": 1200,\n \"budget_remaining_usd\": 4.25,\n \"risk_tier\": \"Low\",\n \"dlp_findings\": [{ \"category\": \"secret\", \"pattern_name\": \"aws_access_key\", \"action\": \"redact\", \"offset\": 0, \"length\": 20 }],\n \"tool_sequence\": [\"read_file\", \"bash\"]\n}\n```\n\n`risk_tier` is one of `Low | Medium | High | Critical`. Return an `i32` verdict: `0` = ALLOW, `1` = BLOCK, `3` = REASK (refuse this attempt, tell the agent why, let it retry). `2` is deprecated \u2014 the guest never receives the request body, so redaction was never expressible; the proxy maps it to a block. Prefer `3` over `1` for any finding that is a pattern match, because pattern matches produce false positives.\n\n## 2. Author\n\nStart from the `@intutic/wasm-sdk` template (`packages/wasm-sdk/` in the open-core repo). Add one function per business rule and call it from `runRules()` in `assembly/index.ts`.\n\nSandbox constraints \u2014 a rule that breaks one reaches no verdict, and every call it could not judge is refused with `GOVERNANCE_UNAVAILABLE`, whatever the proxy's fail setting:\n\n- 1,000,000 fuel (instructions), the limit to write against; a 1 s wall-clock backstop; 16 MB memory.\n- Keep logic simple: no unbounded loops over `arguments`, no recursion, no I/O (none exists in the sandbox).\n- Host imports are limited to `env.log_info`, `env.trace`, `env.abort` and `env.read_referenced_file` (reads the bytes of a file the host already resolved before the sandbox existed \u2014 not a filesystem import, and it cannot be used to browse). A rule importing anything else cannot link, so it is refused at `intutic policy install` and refused again when the proxy loads it.\n- **`Math.random()` is unavailable.** AssemblyScript compiles it to an `env.seed` import the proxy does not provide. This list previously named `env.seed`, and a rule using randomness installed clean and then failed to link on every request \u2014 enforcing nothing, silently. Beyond the missing import, a verdict that samples is not a verdict: the same request would get different answers, and the audit trail would not explain either.\n\n## 3. Compile\n\n```bash\nintutic policy compile --src assembly/index.ts --out build/rule.wasm\n```\n\nRequires AssemblyScript in the project: `pnpm add -D assemblyscript assemblyscript-json`.\n\n## 4. Dry-run \u2014 required before install\n\nAuthor BOTH mock contexts and verify both outcomes before installing:\n\n```bash\nintutic policy test --wasm build/rule.wasm --mock should-block.json\nintutic policy test --wasm build/rule.wasm --mock should-allow.json\n```\n\nThe first must report BLOCK, the second ALLOW. A rule that blocks everything is as broken as one that blocks nothing.\n\n## 5. Install\n\n```bash\nintutic policy install --wasm build/rule.wasm --name block-prod-db --priority 50\nintutic policy list-local\n```\n\nRules install to `~/.intutic/wasm/` as `NN_name.wasm` (lower `NN` runs first; default 100). The proxy picks up changes within ~5 s on the next request \u2014 no restart needed.\n\n## 6. Guardrails\n\n- **Never embed secrets** (API keys, tokens, passwords) in rule sources or mock contexts. `intutic skill audit` will not catch them there: it reads the skill directories (`.agents/skills`, `.claude/skills`) and root rule files such as `CLAUDE.md` and `.cursorrules`, not rule sources.\n- **Local rules cannot weaken central rules.** Verdicts merge most-restrictive-wins: a BLOCK from any rule \u2014 local or centrally synced \u2014 ends the request. \"Allow-override\" rules are no-ops by design; do not author them.\n- Keep rule sources (`assembly/*.ts`, mock JSON files) in version control alongside the workspace.\n";
28
28
  /** Workspace-relative path the Kitkat skill is written to. */
29
29
  export declare const KITKAT_SKILL_PATH: string;
30
30
  /** Embedded copy of .agents/skills/intutic-governance-kitkat/SKILL.md (canonical). */
31
- export declare const KITKAT_SKILL = "---\nname: intutic-governance-kitkat\ndescription: Guide and execute Intutic governed developer workflows, ticket cost attributions, pre-flight token predictions, and safety policy interceptions using the Kitkat persona.\n---\n\n# \uD83D\uDC31 Kitkat \u2014 Intutic Agentic Governance Skill\n\nHello! I am **Kitkat**, your friendly agentic control plane assistant for the Intutic Governance Engine. I ensure that your AI agentic workflows are safe, structured, FinOps-optimized, and compliant with both global enterprise policies (Notion/Confluence) and local rules.\n\n---\n\n## \uD83D\uDEE0\uFE0F CLI Reference Catalog\n\nUse the `intutic` CLI commands to manage the daemon, inspect execution traces, or manage governed task loops in your workspace:\n\n### 1. Connection & Session Setup\n- **Authenticate:** `intutic login [--control-plane-url <url>]` (authenticates with your Intutic control plane).\n- **Initialize Workspace:** `intutic init` (detects the developer harnesses in the workspace, like Claude Code or Cursor, and records them for sync).\n- **Start Connection:** `intutic connect` (boots the local interceptor proxy, writes each recorded harness's rules and hooks, keeps them in sync with the control plane, and writes this skill and the rule-author skill into `.agents/skills/` when they are missing).\n- **Stop Governing:** `intutic disconnect [--harness <id>] [--dry-run] [--keep-login]` (undoes `connect` on this machine: restores every harness config it changed, removes its hooks, services and the skills it wrote, and logs out). Run it only when the user asks; `--dry-run` shows what would change.\n- **Offline Spend Sync:** The sync daemon automatically reconciles offline query consumption logs (`traces-*.jsonl`) and local budgets back to the control plane on reconnect.\n\n### 2. Traces & Auditing\n- **Check Budget:** `intutic budget` (displays overall monthly/daily spend limits, local spend caps, and active task loops).\n- **List Sessions:** `intutic traces list`\n- **Inspect Session Trace:** `intutic traces inspect <trace_id>`\n- **Push SOP Rules:** `intutic sops push <name>` (promotes local SOP rules to central repository).\n\n### 3. Governed Task Loops\n- **Start Task Loop:** `intutic loop start --name <name> [--budget <USD>] [--sops <indices_or_names>] [--auto-judge]`\n- **Execute Wrapped Agent:** `intutic loop exec --name <name> [--budget <USD>] [--sops <indices_or_names>] [--auto-judge] -- <command>`\n- **Complete/Kill Loop:** `intutic loop complete <loopRunId>` / `intutic loop kill <loopRunId>`\n- **List Active Loops:** `intutic loop list`\n\n---\n\n## \uD83D\uDD0C Interception & Command Prepends\n\nWhen interacting with LLM providers through the local proxy, prepend requests with `@intutic` (or `/intutic`) to control the active governance session:\n\n### 1. Cost & Task Attribution\n- **Initialize Picker:** `@intutic initialize`\n - *Description:* Lists the open tickets on the workspace's Jira and Linear connections, numbered, and marks the one the current git branch names as Recommended.\n- **Lock Session & Scope Rules:** `@intutic start [<ticket_id>] [--sops=<names_or_indices>] [--auto-judge]`\n - *Description:* Attributes token costs to a ticket (optional) and scopes active local SOP directories for governance.\n - *Examples:*\n * `@intutic start 1 --sops=3 --auto-judge`\n * `@intutic start --sops=security-rules --auto-judge`\n\n### 2. FinOps & Token Projections\n- **Predict Costs:** `@intutic predict <prompt>`\n - *Description:* Estimates input/output tokens and cost breakdown before submitting the request to the upstream model.\n- **Optimize Context:** `@intutic recommend`\n - *Description:* Provides recommendations on prompt adjustments and context reduction strategies to minimize token waste.\n\n### 3. Policy Compliance & E2E Judging\n- **Verify Prompt:** `@intutic verify <prompt>` (or `@intutic check <prompt>`)\n - *Description:* Audits the prompt pre-flight against active SOPs and guidelines, returning pass/fail verdicts and listing any violations before submitting requests to the LLM.\n- **Review Prompt:** `@intutic review <prompt>`\n - *Description:* Quick heuristic check that grades the prompt on its length, its use of action verbs, and whether it names an SOP or policy, with suggestions. No model is involved.\n- **Judge Response:** `@intutic judge <prompt>`\n - *Description:* Submits the prompt to the upstream LLM and evaluates the response stream in parallel using LLM-as-a-judge compliance checkers.\n - *Note:* If no prompt is provided (e.g. `@intutic judge`), returns usage instructions.\n- **Inspect Status:** `@intutic status` (displays active session stats, average compliance, and spent budget).\n- **Inspect Budget:** `@intutic budget` (displays daily monitored limits and workspace progress).\n\n### 4. Posture & Prompt Enhancement\n- **Enhance & Diagnose:** `/fix <prompt>` (aliases: `@fix`, `/intutic-fix`, `@intutic fix`)\n - *Description:* Rewrites the prompt and scores the workspace's governance posture against OWASP categories from what the proxy can see locally \u2014 DLP settings, WASM rules, the SOPs on disk for the caller's role, skills and MCP servers. Returns the enhanced prompt plus concrete recommendations for whatever is missing.\n - *Note:* Blocking by default; it can be configured to pass the enhanced prompt through to the model instead. The recommendations are the handoff points into the rest of the toolchain \u2014 \"add a WASM rule\" is the `intutic-rule-author` skill's job, \"write a role SOP\" and \"enable DLP\" are handled here.\n- **Draw Guardrails:** `/draw` (aliases: `@draw`, `/intutic-draw`, `@intutic draw`)\n - *Description:* Renders a Mermaid diagram plus text summary of the agent's trajectory and the guardrails currently around it. Always blocking \u2014 a visualization has nothing to forward upstream.\n\n---\n\n## \uD83D\uDEA6 When a Call Is Refused or Held\n\nIntutic names every refusal with a code: an SDK raises it (`ClawdeBlockedError.code`, `IntuticGateRefusal.code`), the MCP proxy puts it in `error.data.code`, a hook gate that answers in JSON (Cline, Grok Build, Antigravity) puts it in `code` beside `ruleId`, and the proxy names a withheld answer in its `x-intutic-refusal` header. A refusal you read as text, starting `[Intutic]` or `[Intutic Governance]`, is the same refusal: the call it names did not run (unless it says the result was withheld). Find the code below and act on it.\n\n### Held: tell the user, then wait\nA hold rule wants a person to see this call before it runs. Codes: `HELD` (with a hold id, `hold_\u2026`), a hook gate's `[Intutic Governance] HELD:` message, `LOOP_RUN_PENDING_REVIEW` (the loop run is paused for review), and the proxy's `policy_held` (a Rego or WASM rule held the request; the error names the hold id). `SERVER_HELD` is the MCP registry's version: the server changed its tools in a risky way and waits for an owner or admin on the MCP Servers page.\n- Tell the user what was held and quote the hold id.\n- Only an **Owner, Admin or Engineering Manager** can decide it: `intutic decision approve <holdId>` or `intutic decision reject <holdId>`, or the Slack card. A developer cannot approve their own hold.\n- Do not retry while it is pending. After approval, the identical call (same tool, same arguments) passes only if the workspace's review-hold bypass (`reviewHoldBypassEnabled`) is on, and only for a short window (10 minutes by default); otherwise approval records the decision and a retry is held again. The `intutic_hold_status` MCP tool says which.\n- A hold with no hold id could not be recorded, so there is nothing to approve: tell the user.\n\n### Revise: change the approach\n`policy_reask` (proxy) and `REASK` (MCP proxy) refuse this attempt with a reason. Do something different; repeating it becomes a block (`policy_denied`, `REASK_EXHAUSTED`).\n\n### Blocked: do not retry the same call\nContinue without it, or tell the user what would have to change and who can change it.\n- **Policy:** `policy_denied`, `TOOL_DENIED`, `SOP_RULE`, `SNAPSHOT`, `HOOK_GATE`, `ANOMALY`, `WASM_RULE`, `REASK_EXHAUSTED`, `LOOP_RUN_TERMINATED`, `model_not_allowed`.\n- **Protected by the hook gate:** `BUILT_IN_RULE`: a governance bypass, a write to Intutic's own config or a skill directory, or a secret in written content. Do not look for another route to the same change; tell the user.\n- **Identity:** `SSO_GROUP`: the user's SSO groups do not clear this tool (rule `sso_group.high_risk.<tool>` or `sso_group.require_obo.<tool>`). An admin grants the group; you cannot work around it.\n- **Data:** `dlp_policy_violation` and `DLP` (a secret, destructive command or PII value in the input: remove it), `INJECTION` (the input carries a prompt-injection pattern), `SQL_GUARD` (destructive SQL against a database not on the SQL allowlist: use an allowlisted database, named explicitly on the command line).\n- **MCP servers:** `SERVER_BLOCKED`, `SERVER_NOT_APPROVED`, `TOOL_DISABLED`, `SERVER_NOT_ALLOWED`, `TOOL_NOT_ALLOWED`, `TOOL_DEFINITIONS_CHANGED`. An owner or admin decides on the MCP Servers page; the `intutic_mcp_registry_status` MCP tool shows what the registry says.\n- **Spend:** `BUDGET_EXCEEDED`, `OVERAGE_HARD_CAP_EXCEEDED`, `COST_GATE_EXCEEDED` (a smaller request may pass). A proxy `BUDGET_EXCEEDED` names the budget (the workspace's, your key's or yours) and its `Retry-After` is when it resets; an MCP `BUDGET_EXCEEDED` lasts until its `resetAt`, and `intutic_mcp_budget_remaining` shows what is left. `RATE_LIMITED`: your key's requests or tokens per minute are used up; wait the `Retry-After` seconds, then continue.\n- **Images:** `E_UNPINNED_LATEST`, `E_UNPINNED_TAG`, `E_UNKNOWN_REGISTRY`, `E_UNKNOWN_IMAGE`, `E_DIGEST_MISMATCH`, `E_MANIFEST_UNPARSEABLE`: deploy an image pinned to a digest the image allowlist approves.\n- **Gate setup:** `WORKFLOW_SANDBOX`, `NO_GATE`: the gate is wired wrongly in the agent's code; fix the code, not the call. `UNREADABLE_CALL`: the hook could not read the tool call from its harness, which is a setup fault to report, not something to retry.\n- **Custom rule could not decide:** `GOVERNANCE_UNAVAILABLE` whose reason names a custom rule (`Custom rule <id> reached no verdict (<cause>)`, rule id `wasm:<id>`; cause `deadline`, `budget`, `error`, `result` or `quarantined`). The rule cannot decide this input, so the same call is refused again however often it is retried. Do not retry it; tell the user, who can fix or remove the rule.\n- **Size:** `COMMAND_TOO_LARGE`: the command is over 256 KiB, or the tool's arguments over 1 MiB, more than any gate evaluates. Split the work: smaller commands, or a file written in parts. A hook gate that could not finish deciding in time says `GATE_DEADLINE` in its reason; the call did not run, and the same call will be refused again, so tell the user.\n\n### Not checked: retry once, later\n`GOVERNANCE_UNAVAILABLE` (unless it names a custom rule: see above), `REGISTRY_UNAVAILABLE`, `BUDGET_UNAVAILABLE`, `TOFU_UNAVAILABLE`, `RESPONSE_UNPARSEABLE`, `GATE_CRASHED` (the hook gate failed while deciding), `POLICY_SNAPSHOT_UNVERIFIED` (the policy snapshot on this machine failed its integrity check, so no MCP call runs until the sync daemon restores it), and `HOOK_GATE` when its reason says the control plane was unreachable or a governance check was unavailable: governance could not check the call, so it did not run. One later retry is fine; if it fails again, tell the user.\n\n### Ran, but the result was withheld\n`RESULT_WITHHELD_DLP`, `RESULT_WITHHELD_INJECTION` (MCP proxy) and `OUTPUT_DLP` (proxy): the tool or model ran, and its output was not delivered. Do not run it again blindly, since it may already have had its effect; tell the user.\n\n### Injected by an experiment\n`CHAOS_FAULT`: a resilience experiment (`intutic chaos run`) failed this call on purpose, or could not start because its plan was unreadable. The reason is the failure it imitates and carries an `E-INTUTIC-` token: handle it as that failure, and tell the user what failed, quoting the token.\n\n---\n\n## \uD83D\uDEE1\uFE0F Policy & Hook Verification\n\n1. **Pre-Tool Interception Hooks:**\n Harness configurations (e.g. `.claude/settings.json`, `.cursor/hooks.json`) are automatically updated by `intutic connect`. They register execution hooks that block unauthorized tools or unsafe commands before execution.\n2. **Local Guidelines & Scoping:**\n Define local, developer-specific rules inside subdirectories of the `.intutic/sops/` directory (e.g. `.intutic/sops/my-rules/rules.md`). Initialize them using `@intutic initialize` and select active local SOPs using `@intutic start <ticket> --sops=<indices_or_names>`. These rules are enforced locally in the developer console to protect developer privacy, while global/corporate rules log incidents back to the control plane.\n3. **Offline Sync & Promotion:**\n When offline, prompt telemetry is stored locally in sharded files `~/.intutic/logs/traces-YYYY-MM-DD.jsonl` and budgets are enforced against sharded daily files `~/.intutic/logs/local-spend-YYYY-MM-DD.jsonl`. The sync daemon uploads them automatically on connect via `/api/v1/traces/sync-back` and cleans up the local files. Rules can be promoted workspace-wide via `intutic sops push <name>`.\n";
31
+ export declare const KITKAT_SKILL = "---\nname: intutic-governance-kitkat\ndescription: Guide and execute Intutic governed developer workflows, ticket cost attributions, pre-flight token predictions, and safety policy interceptions using the Kitkat persona.\n---\n\n# \uD83D\uDC31 Kitkat \u2014 Intutic Agentic Governance Skill\n\nHello! I am **Kitkat**, your friendly agentic control plane assistant for the Intutic Governance Engine. I ensure that your AI agentic workflows are safe, structured, FinOps-optimized, and compliant with both global enterprise policies (Notion/Confluence) and local rules.\n\n---\n\n## \uD83D\uDEE0\uFE0F CLI Reference Catalog\n\nUse the `intutic` CLI commands to manage the daemon, inspect execution traces, or manage governed task loops in your workspace:\n\n### 1. Connection & Session Setup\n- **Authenticate:** `intutic login [--control-plane-url <url>]` (authenticates with your Intutic control plane).\n- **Initialize Workspace:** `intutic init` (detects the developer harnesses in the workspace, like Claude Code or Cursor, and records them for sync).\n- **Start Connection:** `intutic connect` (boots the local interceptor proxy, writes each recorded harness's rules and hooks, keeps them in sync with the control plane, and writes this skill and the rule-author skill into `.agents/skills/` when they are missing).\n- **Stop Governing:** `intutic disconnect [--harness <id>] [--dry-run] [--keep-login]` (undoes `connect` on this machine: restores every harness config it changed, removes its hooks, services and the skills it wrote, and logs out). Run it only when the user asks; `--dry-run` shows what would change.\n- **Offline Spend Sync:** The sync daemon automatically reconciles offline query consumption logs (`traces-*.jsonl`) and local budgets back to the control plane on reconnect.\n\n### 2. Traces & Auditing\n- **Check Budget:** `intutic budget` (displays overall monthly/daily spend limits, local spend caps, and active task loops).\n- **List Sessions:** `intutic traces list`\n- **Inspect Session Trace:** `intutic traces inspect <trace_id>`\n- **Push SOP Rules:** `intutic sops push <name>` (promotes local SOP rules to central repository).\n\n### 3. Governed Task Loops\n- **Start Task Loop:** `intutic loop start --name <name> [--budget <USD>] [--sops <indices_or_names>] [--auto-judge]`\n- **Execute Wrapped Agent:** `intutic loop exec --name <name> [--budget <USD>] [--sops <indices_or_names>] [--auto-judge] -- <command>`\n- **Complete/Kill Loop:** `intutic loop complete <loopRunId>` / `intutic loop kill <loopRunId>`\n- **List Active Loops:** `intutic loop list`\n\n---\n\n## \uD83D\uDD0C Interception & Command Prepends\n\nWhen interacting with LLM providers through the local proxy, prepend requests with `@intutic` (or `/intutic`) to control the active governance session:\n\n### 1. Cost & Task Attribution\n- **Initialize Picker:** `@intutic initialize`\n - *Description:* Lists the open tickets on the workspace's Jira and Linear connections, numbered, and marks the one the current git branch names as Recommended.\n- **Lock Session & Scope Rules:** `@intutic start [<ticket_id>] [--sops=<names_or_indices>] [--auto-judge]`\n - *Description:* Attributes token costs to a ticket (optional) and scopes active local SOP directories for governance.\n - *Examples:*\n * `@intutic start 1 --sops=3 --auto-judge`\n * `@intutic start --sops=security-rules --auto-judge`\n\n### 2. FinOps & Token Projections\n- **Predict Costs:** `@intutic predict <prompt>`\n - *Description:* Estimates input/output tokens and cost breakdown before submitting the request to the upstream model.\n- **Optimize Context:** `@intutic recommend`\n - *Description:* Provides recommendations on prompt adjustments and context reduction strategies to minimize token waste.\n\n### 3. Policy Compliance & E2E Judging\n- **Verify Prompt:** `@intutic verify <prompt>` (or `@intutic check <prompt>`)\n - *Description:* Audits the prompt pre-flight against active SOPs and guidelines, returning pass/fail verdicts and listing any violations before submitting requests to the LLM.\n- **Review Prompt:** `@intutic review <prompt>`\n - *Description:* Quick heuristic check that grades the prompt on its length, its use of action verbs, and whether it names an SOP or policy, with suggestions. No model is involved.\n- **Judge Response:** `@intutic judge <prompt>`\n - *Description:* Submits the prompt to the upstream LLM and evaluates the response stream in parallel using LLM-as-a-judge compliance checkers.\n - *Note:* If no prompt is provided (e.g. `@intutic judge`), returns usage instructions.\n- **Inspect Status:** `@intutic status` (displays active session stats, average compliance, and spent budget).\n- **Inspect Budget:** `@intutic budget` (displays daily monitored limits and workspace progress).\n\n### 4. Posture & Prompt Enhancement\n- **Enhance & Diagnose:** `/fix <prompt>` (aliases: `@fix`, `/intutic-fix`, `@intutic fix`)\n - *Description:* Rewrites the prompt and scores the workspace's governance posture against OWASP categories from what the proxy can see locally \u2014 DLP settings, WASM rules, the SOPs on disk for the caller's role, skills and MCP servers. Returns the enhanced prompt plus concrete recommendations for whatever is missing.\n - *Note:* Blocking by default; it can be configured to pass the enhanced prompt through to the model instead. The recommendations are the handoff points into the rest of the toolchain \u2014 \"add a WASM rule\" is the `intutic-rule-author` skill's job, \"write a role SOP\" and \"enable DLP\" are handled here.\n- **Draw Guardrails:** `/draw` (aliases: `@draw`, `/intutic-draw`, `@intutic draw`)\n - *Description:* Renders a Mermaid diagram plus text summary of the agent's trajectory and the guardrails currently around it. Always blocking \u2014 a visualization has nothing to forward upstream.\n\n---\n\n## \uD83D\uDEA6 When a Call Is Refused or Held\n\nIntutic names every refusal with a code: an SDK raises it (`ClawdeBlockedError.code`, `IntuticGateRefusal.code`), the MCP proxy puts it in `error.data.code`, a hook gate that answers in JSON (Cline, Grok Build, Antigravity) puts it in `code` beside `ruleId`, and the proxy names a withheld answer in its `x-intutic-refusal` header. A refusal you read as text, starting `[Intutic]` or `[Intutic Governance]`, is the same refusal: the call it names did not run (unless it says the result was withheld). Find the code below and act on it.\n\n### Held: tell the user, then wait\nA hold rule wants a person to see this call before it runs. Codes: `HELD` (with a hold id, `hold_\u2026`), a hook gate's `[Intutic Governance] HELD:` message, `LOOP_RUN_PENDING_REVIEW` (the loop run is paused for review), and the proxy's `policy_held` (a Rego or WASM rule held the request; the error names the hold id). `SERVER_HELD` is the MCP registry's version: the server changed its tools in a risky way and waits for an owner or admin on the MCP Servers page.\n- Tell the user what was held and quote the hold id.\n- Only an **Owner, Admin or Engineering Manager** can decide it: `intutic decision approve <holdId>` or `intutic decision reject <holdId>`, or the Slack card. A developer cannot approve their own hold.\n- Do not retry while it is pending. After approval, the identical call (same tool, same arguments) passes only if the workspace's review-hold bypass (`reviewHoldBypassEnabled`) is on, and only for a short window (10 minutes by default); otherwise approval records the decision and a retry is held again. The `intutic_hold_status` MCP tool says which.\n- A hold with no hold id could not be recorded, so there is nothing to approve: tell the user.\n\n### Revise: change the approach\n`policy_reask` (proxy) and `REASK` (MCP proxy) refuse this attempt with a reason. Do something different; repeating it becomes a block (`policy_denied`, `REASK_EXHAUSTED`).\n\n### Blocked: do not retry the same call\nContinue without it, or tell the user what would have to change and who can change it.\n- **Policy:** `policy_denied`, `TOOL_DENIED`, `SOP_RULE`, `SNAPSHOT`, `HOOK_GATE`, `ANOMALY`, `WASM_RULE`, `REASK_EXHAUSTED`, `LOOP_RUN_TERMINATED`, `model_not_allowed`.\n- **Protected by the hook gate:** `BUILT_IN_RULE`: a governance bypass, a write to Intutic's own config or a skill directory, or a secret in written content. Do not look for another route to the same change; tell the user.\n- **Identity:** `SSO_GROUP`: the user's SSO groups do not clear this tool (rule `sso_group.high_risk.<tool>` or `sso_group.require_obo.<tool>`). An admin grants the group; you cannot work around it.\n- **Data:** `dlp_policy_violation` and `DLP` (a secret, destructive command or PII value in the input: remove it), `INJECTION` (the input carries a prompt-injection pattern), `SQL_GUARD` (destructive SQL against a database not on the SQL allowlist: use an allowlisted database, named explicitly on the command line).\n- **MCP servers:** `SERVER_BLOCKED`, `SERVER_NOT_APPROVED`, `TOOL_DISABLED`, `SERVER_NOT_ALLOWED`, `TOOL_NOT_ALLOWED`, `TOOL_DEFINITIONS_CHANGED`. An owner or admin decides on the MCP Servers page; the `intutic_mcp_registry_status` MCP tool shows what the registry says.\n- **Spend:** `BUDGET_EXCEEDED`, `OVERAGE_HARD_CAP_EXCEEDED`, `COST_GATE_EXCEEDED` (a smaller request may pass). A proxy `BUDGET_EXCEEDED` names the budget (the workspace's, your key's or yours) and its `Retry-After` is when it resets; an MCP `BUDGET_EXCEEDED` lasts until its `resetAt`, and `intutic_mcp_budget_remaining` shows what is left. `RATE_LIMITED`: your key's requests or tokens per minute are used up; wait the `Retry-After` seconds, then continue.\n- **Images:** `E_UNPINNED_LATEST`, `E_UNPINNED_TAG`, `E_UNKNOWN_REGISTRY`, `E_UNKNOWN_IMAGE`, `E_DIGEST_MISMATCH`, `E_MANIFEST_UNPARSEABLE`: deploy an image pinned to a digest the image allowlist approves.\n- **Gate setup:** `WORKFLOW_SANDBOX`, `NO_GATE`: the gate is wired wrongly in the agent's code; fix the code, not the call. `UNREADABLE_CALL`: the hook could not read the tool call from its harness, which is a setup fault to report, not something to retry. `INVALID_REQUEST`: the control plane's hook gate could not read the request a gate SDK or interceptor sent it (not JSON, or no tool name), and a gate refuses that whatever its fail-open setting; the SDK's refusal reads `HOOK_GATE` with `INVALID_REQUEST` in its reason. The call did not run and the same request is refused again, so do not retry: report the integration fault to the user. `INSUFFICIENT_SCOPE`: the API key lacks the scope the call needs (`gateway:use` for the hook gate); retrying cannot help, so tell the user, who gives the key the scope.\n- **Custom rule could not decide:** `GOVERNANCE_UNAVAILABLE` whose reason names a custom rule (`Custom rule <id> reached no verdict (<cause>)`, rule id `wasm:<id>`; cause `deadline`, `budget`, `error`, `result` or `quarantined`). The rule cannot decide this input, so the same call is refused again however often it is retried. Do not retry it; tell the user, who can fix or remove the rule.\n- **Size:** `COMMAND_TOO_LARGE`: the command is over 256 KiB, or the tool's arguments over 1 MiB, more than any gate evaluates. Split the work: smaller commands, or a file written in parts. A hook gate that could not finish deciding in time says `GATE_DEADLINE` in its reason; the call did not run, and the same call will be refused again, so tell the user.\n\n### Not checked: retry once, later\n`GOVERNANCE_UNAVAILABLE` (unless it names a custom rule: see above), `REGISTRY_UNAVAILABLE`, `BUDGET_UNAVAILABLE`, `TOFU_UNAVAILABLE`, `RESPONSE_UNPARSEABLE`, `GATE_CRASHED` (the hook gate failed while deciding), `POLICY_SNAPSHOT_UNVERIFIED` (the policy snapshot on this machine failed its integrity check, so no MCP call runs until the sync daemon restores it), and `HOOK_GATE` when its reason says the control plane was unreachable or a governance check was unavailable: governance could not check the call, so it did not run. One later retry is fine; if it fails again, tell the user.\n\n### Ran, but the result was withheld\n`RESULT_WITHHELD_DLP`, `RESULT_WITHHELD_INJECTION` (MCP proxy) and `OUTPUT_DLP` (proxy): the tool or model ran, and its output was not delivered. Do not run it again blindly, since it may already have had its effect; tell the user.\n\n### Injected by an experiment\n`CHAOS_FAULT`: a resilience experiment (`intutic chaos run`) failed this call on purpose, or could not start because its plan was unreadable. The reason is the failure it imitates and carries an `E-INTUTIC-` token: handle it as that failure, and tell the user what failed, quoting the token.\n\n---\n\n## \uD83D\uDEE1\uFE0F Policy & Hook Verification\n\n1. **Pre-Tool Interception Hooks:**\n Harness configurations (e.g. `.claude/settings.json`, `.cursor/hooks.json`) are automatically updated by `intutic connect`. They register execution hooks that block unauthorized tools or unsafe commands before execution.\n2. **Local Guidelines & Scoping:**\n Define local, developer-specific rules inside subdirectories of the `.intutic/sops/` directory (e.g. `.intutic/sops/my-rules/rules.md`). Initialize them using `@intutic initialize` and select active local SOPs using `@intutic start <ticket> --sops=<indices_or_names>`. These rules are enforced locally in the developer console to protect developer privacy, while global/corporate rules log incidents back to the control plane.\n3. **Offline Sync & Promotion:**\n When offline, prompt telemetry is stored locally in sharded files `~/.intutic/logs/traces-YYYY-MM-DD.jsonl` and budgets are enforced against sharded daily files `~/.intutic/logs/local-spend-YYYY-MM-DD.jsonl`. The sync daemon uploads them automatically on connect via `/api/v1/traces/sync-back` and cleans up the local files. Rules can be promoted workspace-wide via `intutic sops push <name>`.\n";
32
32
  /** Every skill connect writes, by workspace-relative path. */
33
33
  export declare const BUNDLED_SKILLS: ReadonlyArray<{
34
34
  path: string;
@@ -1 +1 @@
1
- {"version":3,"file":"skillWriter.d.ts","sourceRoot":"","sources":["../src/skillWriter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,QAKlC,CAAA;AAED,gFAAgF;AAChF,eAAO,MAAM,iBAAiB,86KA2E7B,CAAA;AAED,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,QAA+E,CAAA;AAE7G,sFAAsF;AACtF,eAAO,MAAM,YAAY,4haAyHxB,CAAA;AAED,8DAA8D;AAC9D,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAG3E,CAAA;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAmBjF"}
1
+ {"version":3,"file":"skillWriter.d.ts","sourceRoot":"","sources":["../src/skillWriter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,QAKlC,CAAA;AAED,gFAAgF;AAChF,eAAO,MAAM,iBAAiB,ykLA2E7B,CAAA;AAED,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,QAA+E,CAAA;AAE7G,sFAAsF;AACtF,eAAO,MAAM,YAAY,ykbAyHxB,CAAA;AAED,8DAA8D;AAC9D,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAG3E,CAAA;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAmBjF"}
@@ -100,7 +100,7 @@ Rules install to \`~/.intutic/wasm/\` as \`NN_name.wasm\` (lower \`NN\` runs fir
100
100
 
101
101
  ## 6. Guardrails
102
102
 
103
- - **Never embed secrets** (API keys, tokens, passwords) in rule sources or mock contexts — \`intutic skill audit\` flags them.
103
+ - **Never embed secrets** (API keys, tokens, passwords) in rule sources or mock contexts. \`intutic skill audit\` will not catch them there: it reads the skill directories (\`.agents/skills\`, \`.claude/skills\`) and root rule files such as \`CLAUDE.md\` and \`.cursorrules\`, not rule sources.
104
104
  - **Local rules cannot weaken central rules.** Verdicts merge most-restrictive-wins: a BLOCK from any rule — local or centrally synced — ends the request. "Allow-override" rules are no-ops by design; do not author them.
105
105
  - Keep rule sources (\`assembly/*.ts\`, mock JSON files) in version control alongside the workspace.
106
106
  `;
@@ -205,7 +205,7 @@ Continue without it, or tell the user what would have to change and who can chan
205
205
  - **MCP servers:** \`SERVER_BLOCKED\`, \`SERVER_NOT_APPROVED\`, \`TOOL_DISABLED\`, \`SERVER_NOT_ALLOWED\`, \`TOOL_NOT_ALLOWED\`, \`TOOL_DEFINITIONS_CHANGED\`. An owner or admin decides on the MCP Servers page; the \`intutic_mcp_registry_status\` MCP tool shows what the registry says.
206
206
  - **Spend:** \`BUDGET_EXCEEDED\`, \`OVERAGE_HARD_CAP_EXCEEDED\`, \`COST_GATE_EXCEEDED\` (a smaller request may pass). A proxy \`BUDGET_EXCEEDED\` names the budget (the workspace's, your key's or yours) and its \`Retry-After\` is when it resets; an MCP \`BUDGET_EXCEEDED\` lasts until its \`resetAt\`, and \`intutic_mcp_budget_remaining\` shows what is left. \`RATE_LIMITED\`: your key's requests or tokens per minute are used up; wait the \`Retry-After\` seconds, then continue.
207
207
  - **Images:** \`E_UNPINNED_LATEST\`, \`E_UNPINNED_TAG\`, \`E_UNKNOWN_REGISTRY\`, \`E_UNKNOWN_IMAGE\`, \`E_DIGEST_MISMATCH\`, \`E_MANIFEST_UNPARSEABLE\`: deploy an image pinned to a digest the image allowlist approves.
208
- - **Gate setup:** \`WORKFLOW_SANDBOX\`, \`NO_GATE\`: the gate is wired wrongly in the agent's code; fix the code, not the call. \`UNREADABLE_CALL\`: the hook could not read the tool call from its harness, which is a setup fault to report, not something to retry.
208
+ - **Gate setup:** \`WORKFLOW_SANDBOX\`, \`NO_GATE\`: the gate is wired wrongly in the agent's code; fix the code, not the call. \`UNREADABLE_CALL\`: the hook could not read the tool call from its harness, which is a setup fault to report, not something to retry. \`INVALID_REQUEST\`: the control plane's hook gate could not read the request a gate SDK or interceptor sent it (not JSON, or no tool name), and a gate refuses that whatever its fail-open setting; the SDK's refusal reads \`HOOK_GATE\` with \`INVALID_REQUEST\` in its reason. The call did not run and the same request is refused again, so do not retry: report the integration fault to the user. \`INSUFFICIENT_SCOPE\`: the API key lacks the scope the call needs (\`gateway:use\` for the hook gate); retrying cannot help, so tell the user, who gives the key the scope.
209
209
  - **Custom rule could not decide:** \`GOVERNANCE_UNAVAILABLE\` whose reason names a custom rule (\`Custom rule <id> reached no verdict (<cause>)\`, rule id \`wasm:<id>\`; cause \`deadline\`, \`budget\`, \`error\`, \`result\` or \`quarantined\`). The rule cannot decide this input, so the same call is refused again however often it is retried. Do not retry it; tell the user, who can fix or remove the rule.
210
210
  - **Size:** \`COMMAND_TOO_LARGE\`: the command is over 256 KiB, or the tool's arguments over 1 MiB, more than any gate evaluates. Split the work: smaller commands, or a file written in parts. A hook gate that could not finish deciding in time says \`GATE_DEADLINE\` in its reason; the call did not run, and the same call will be refused again, so tell the user.
211
211
 
@@ -1 +1 @@
1
- {"version":3,"file":"syncCycle.d.ts","sourceRoot":"","sources":["../src/syncCycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAK/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,EAAmC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IAC9B,UAAU,EAAE,OAAO,CAAA;CACpB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAuCpC;AAwBD;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE;IAC9C,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,SAAS,WAAW,EAAE,CAAA;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,2EAA2E;IAC3E,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC,GAAG,OAAO,CAAC;IACV,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAC,CAAA;IACxE,QAAQ,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzD,CAAC,CA6CD;AAED,wBAAsB,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqE9F"}
package/dist/syncCycle.js CHANGED
@@ -103,7 +103,8 @@ export function emitSkillFlaggedEvents(opts) {
103
103
  * pattern blacklist, so the two cannot disagree about what is held.
104
104
  */
105
105
  export async function localHoldTokensFor(workspaceRoot, sops, settings, harnesses = []) {
106
- const local = await loadLocalSopEntries(workspaceRoot, harnesses);
106
+ // Every local SOP, whatever the session selected: see `ignoreSelection`.
107
+ const local = await loadLocalSopEntries(workspaceRoot, harnesses, { ignoreSelection: true });
107
108
  return parseSopConstraints([...sops, ...local], settings).reviewBefore;
108
109
  }
109
110
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"syncCycle.js","sourceRoot":"","sources":["../src/syncCycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAA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6BAA6B,IAAI,GAAG,CAAC,CAAA;YACrG,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,KAAK,CAAC,yDAAyD,IAAI,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAA;gBAClG,wDAAwD;gBACxD,IAAI,CAAC;oBACH,IAAI,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;wBAC/B,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,YAAY,CAAC,CAAA;oBAC1C,CAAC;gBACH,CAAC;gBAAC,OAAO,SAAS,EAAE,CAAC;oBACnB,OAAO,CAAC,KAAK,CAAC,6CAA6C,IAAI,GAAG,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC,CAAA;gBAC9F,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,wDAAwD,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAA;IAC5F,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intutic/sync-daemon",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "Intutic Sync Daemon — bidirectional state sync between control plane and developer workspaces",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -109,10 +109,10 @@
109
109
  "ws": "^8.21.0",
110
110
  "yaml": "^2.9.0",
111
111
  "zod": "^3",
112
- "@intutic/id": "2.6.0",
113
- "@intutic/logger": "2.6.0",
114
- "@intutic/shared-types": "2.6.0",
115
- "@intutic/mcp-governance-proxy": "2.6.0"
112
+ "@intutic/id": "2.8.0",
113
+ "@intutic/logger": "2.8.0",
114
+ "@intutic/mcp-governance-proxy": "2.8.0",
115
+ "@intutic/shared-types": "2.8.0"
116
116
  },
117
117
  "devDependencies": {
118
118
  "@types/node": "^22",