@memnexus-ai/mx-agent-cli 0.1.269 → 0.1.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/__tests__/codex-deploy-config.test.d.ts +2 -0
  2. package/dist/__tests__/codex-deploy-config.test.d.ts.map +1 -0
  3. package/dist/__tests__/codex-deploy-config.test.js +1170 -0
  4. package/dist/__tests__/codex-deploy-config.test.js.map +1 -0
  5. package/dist/__tests__/codex-trust-keys.test.d.ts +2 -0
  6. package/dist/__tests__/codex-trust-keys.test.d.ts.map +1 -0
  7. package/dist/__tests__/codex-trust-keys.test.js +731 -0
  8. package/dist/__tests__/codex-trust-keys.test.js.map +1 -0
  9. package/dist/__tests__/codex-write-race.test.d.ts +2 -0
  10. package/dist/__tests__/codex-write-race.test.d.ts.map +1 -0
  11. package/dist/__tests__/codex-write-race.test.js +372 -0
  12. package/dist/__tests__/codex-write-race.test.js.map +1 -0
  13. package/dist/__tests__/runtime-codex-guard-proof.test.js +75 -0
  14. package/dist/__tests__/runtime-codex-guard-proof.test.js.map +1 -1
  15. package/dist/commands/codex-deploy-config.d.ts +111 -0
  16. package/dist/commands/codex-deploy-config.d.ts.map +1 -0
  17. package/dist/commands/codex-deploy-config.js +400 -0
  18. package/dist/commands/codex-deploy-config.js.map +1 -0
  19. package/dist/commands/codex-prove-guards.d.ts +20 -0
  20. package/dist/commands/codex-prove-guards.d.ts.map +1 -1
  21. package/dist/commands/codex-prove-guards.js +54 -1
  22. package/dist/commands/codex-prove-guards.js.map +1 -1
  23. package/dist/commands/codex-trust-keys.d.ts +12 -0
  24. package/dist/commands/codex-trust-keys.d.ts.map +1 -0
  25. package/dist/commands/codex-trust-keys.js +169 -0
  26. package/dist/commands/codex-trust-keys.js.map +1 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +65 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/lib/runtime/codex-adapter.d.ts.map +1 -1
  31. package/dist/lib/runtime/codex-adapter.js +15 -15
  32. package/dist/lib/runtime/codex-adapter.js.map +1 -1
  33. package/dist/lib/runtime/codex-config.d.ts +211 -0
  34. package/dist/lib/runtime/codex-config.d.ts.map +1 -1
  35. package/dist/lib/runtime/codex-config.js +769 -40
  36. package/dist/lib/runtime/codex-config.js.map +1 -1
  37. package/dist/lib/runtime/codex-hooks-list.d.ts +91 -0
  38. package/dist/lib/runtime/codex-hooks-list.d.ts.map +1 -0
  39. package/dist/lib/runtime/codex-hooks-list.js +418 -0
  40. package/dist/lib/runtime/codex-hooks-list.js.map +1 -0
  41. package/dist/lib/runtime/codex-trust-keys.d.ts +95 -0
  42. package/dist/lib/runtime/codex-trust-keys.d.ts.map +1 -0
  43. package/dist/lib/runtime/codex-trust-keys.js +279 -0
  44. package/dist/lib/runtime/codex-trust-keys.js.map +1 -0
  45. package/package.json +1 -1
@@ -0,0 +1,279 @@
1
+ /**
2
+ * The per-entry hook-trust picture, for BOTH key sets (#4876).
3
+ *
4
+ * ─── WHY TWO KEY SETS ─────────────────────────────────────────────────────────
5
+ * OpenAI Codex bug #27133: hook discovery resolves the MAIN repo's
6
+ * `<projectRoot>/.codex/hooks.json` even when the session runs in a linked worktree —
7
+ * verified live, every `hooks/list` entry reports that file as `sourcePath`, and the
8
+ * worktree's own file does not appear at all. Meanwhile `codexHookTrustPreconditions`
9
+ * builds its required-key list from `<worktree>/.codex/hooks.json`.
10
+ *
11
+ * So grants must exist for BOTH files: the main-repo keys are what make Codex actually
12
+ * RUN the guards; the worktree keys are what make our own gate agree that trust exists.
13
+ * They are not redundant. Each satisfies a different checker, and neither checker covers
14
+ * the other's set — which is exactly how a configuration ends up half-granted, running
15
+ * some hooks and silently skipping the rest, with nothing reporting which part.
16
+ *
17
+ * ─── WHERE THE HASHES COME FROM, AND WHERE THEY DO NOT ────────────────────────
18
+ * `hooks/list` reports `currentHash` for the entries Codex resolved — the MAIN-repo set
19
+ * only. For the worktree set there is no direct observation, and the hash cannot be
20
+ * derived from the file. It can be CARRIED OVER, but only under a condition this module
21
+ * checks by sha256 rather than assumes: the two files must be byte-identical. Codex's
22
+ * hash is over an entry's content, not its path (verified: identical content at two
23
+ * directories produced identical `currentHash`), and the generator emits a
24
+ * path-independent file on purpose, so byte-identity makes the carry-over exact.
25
+ *
26
+ * When the files DIFFER, the worktree entries are reported `unverifiable`, not guessed —
27
+ * and the divergence is itself the most dangerous finding this tool can produce, because
28
+ * it means Codex is running hooks nobody in this repo generated or proved.
29
+ */
30
+ import { createHash } from 'crypto';
31
+ import { readFileSync } from 'fs';
32
+ import { join } from 'path';
33
+ import { CODEX_HOOKS_FILENAME, codexHookTrustKeysForDoc, readCodexTrustState, readDeployedHooksDoc, } from './codex-config.js';
34
+ import { carryOverHashes, observedHashesByKey, } from './codex-hooks-list.js';
35
+ function sha256File(path) {
36
+ try {
37
+ return createHash('sha256').update(readFileSync(path)).digest('hex');
38
+ }
39
+ catch {
40
+ return null;
41
+ }
42
+ }
43
+ /** sha256 of the deployed hooks file in each directory, keyed by absolute path. */
44
+ export function shaCodexHooksFiles(dirs) {
45
+ const map = new Map();
46
+ for (const dir of dirs) {
47
+ const path = join(dir, CODEX_HOOKS_FILENAME);
48
+ if (!map.has(path))
49
+ map.set(path, sha256File(path));
50
+ }
51
+ return map;
52
+ }
53
+ /**
54
+ * Build the full two-set report. Pure: every input is passed in, nothing is spawned.
55
+ */
56
+ export function buildTrustKeyReport(opts) {
57
+ const warnings = [];
58
+ const trustState = readCodexTrustState(opts.codexHome);
59
+ if (!opts.hooksList.ok) {
60
+ // FAIL CLOSED. Without Codex's own hashes nothing here can distinguish a current
61
+ // grant from a stale one, and a report that silently degrades to presence-checking
62
+ // is the defect this command exists to remove.
63
+ return {
64
+ ok: false,
65
+ sets: [],
66
+ warnings,
67
+ error: opts.hooksList.error,
68
+ observedHashes: new Map(),
69
+ };
70
+ }
71
+ const entries = opts.hooksList.entries;
72
+ const direct = observedHashesByKey(entries);
73
+ const codexStatusByKey = new Map(entries.map((e) => [e.key, e.trustStatus]));
74
+ const dirs = [
75
+ { label: 'worktree', dir: opts.worktreePath },
76
+ { label: 'main-repo', dir: opts.mainRepoPath },
77
+ ];
78
+ // Deduplicate the degenerate case where the command is run from the main repo itself:
79
+ // one file, one key set, and reporting it twice would suggest two grants are needed.
80
+ const seen = new Set();
81
+ const files = dirs
82
+ .map((d) => ({ ...d, hooksPath: join(d.dir, CODEX_HOOKS_FILENAME) }))
83
+ .filter((d) => {
84
+ if (seen.has(d.hooksPath))
85
+ return false;
86
+ seen.add(d.hooksPath);
87
+ return true;
88
+ });
89
+ // Read AFTER the `hooks/list` call by construction — this function is pure and its
90
+ // caller has already made that call. `opts.shaBefore` is the same measurement taken
91
+ // BEFORE it, and the pair is what makes byte-identity a claim about the window rather
92
+ // than about one instant after it (SF-8).
93
+ const shaByPath = new Map(files.map((f) => [f.hooksPath, sha256File(f.hooksPath)]));
94
+ const changedDuringCall = opts.shaBefore
95
+ ? files
96
+ .filter((f) => opts.shaBefore?.has(f.hooksPath))
97
+ .filter((f) => opts.shaBefore?.get(f.hooksPath) !== shaByPath.get(f.hooksPath))
98
+ .map((f) => f.hooksPath)
99
+ : [];
100
+ if (changedDuringCall.length > 0) {
101
+ warnings.push(`${changedDuringCall.join(' and ')} CHANGED while Codex was being asked for its hashes. ` +
102
+ 'Something wrote the file during the call — a concurrent `mx-agent codex deploy-config` ' +
103
+ 'does exactly this. The hashes Codex reported describe the bytes that were there then, ' +
104
+ 'not the bytes there now, so no hash is carried between files on this run and every ' +
105
+ 'entry that depended on a carry-over is reported UNVERIFIABLE. Re-run once nothing else ' +
106
+ 'is writing to the worktree.');
107
+ }
108
+ // Carry-over: for a file with no direct observations, borrow the hashes of a file that
109
+ // HAS them and is byte-identical to it. Byte-identity is checked, never assumed.
110
+ const observed = new Map(direct);
111
+ for (const file of changedDuringCall.length > 0 ? [] : files) {
112
+ const hasDirect = [...direct.keys()].some((k) => k.startsWith(`${file.hooksPath}:`));
113
+ if (hasDirect)
114
+ continue;
115
+ const mySha = shaByPath.get(file.hooksPath) ?? null;
116
+ if (mySha === null)
117
+ continue;
118
+ const twin = files.find((other) => other.hooksPath !== file.hooksPath &&
119
+ shaByPath.get(other.hooksPath) === mySha &&
120
+ [...direct.keys()].some((k) => k.startsWith(`${other.hooksPath}:`)));
121
+ if (!twin)
122
+ continue;
123
+ for (const [key, hash] of carryOverHashes(direct, twin.hooksPath, file.hooksPath)) {
124
+ observed.set(key, hash);
125
+ }
126
+ }
127
+ const sets = [];
128
+ for (const file of files) {
129
+ const doc = readDeployedHooksDoc(file.dir);
130
+ const hooksSha256 = shaByPath.get(file.hooksPath) ?? null;
131
+ if (!doc) {
132
+ sets.push({
133
+ label: file.label,
134
+ hooksPath: file.hooksPath,
135
+ hooksSha256,
136
+ rows: [],
137
+ error: `No readable hooks document at ${file.hooksPath}. Nothing is registered there, so ` +
138
+ 'nothing can be trusted for it. Deploy it first (`mx-agent codex deploy-config`).',
139
+ });
140
+ continue;
141
+ }
142
+ const rows = codexHookTrustKeysForDoc(file.hooksPath, doc).map((key) => {
143
+ const record = trustState.records.get(key);
144
+ const observedHash = observed.get(key) ?? null;
145
+ const observedFrom = observedHash === null ? null : direct.has(key) ? 'hooks/list' : 'carried-over';
146
+ const recordedHash = record ? record.hash : null;
147
+ const base = {
148
+ key,
149
+ observedHash,
150
+ observedFrom,
151
+ recordedHash: recordedHash === '' ? null : recordedHash,
152
+ recordEnabled: record?.enabled ?? false,
153
+ codexTrustStatus: codexStatusByKey.get(key) ?? null,
154
+ };
155
+ if (!record || !record.enabled || record.hash === '') {
156
+ return {
157
+ ...base,
158
+ status: 'ungranted',
159
+ detail: !record
160
+ ? 'No trust record at all — Codex silently does not run this hook.'
161
+ : !record.enabled
162
+ ? 'Trust record present but `enabled = false`.'
163
+ : 'Trust record present but `trusted_hash` is empty.',
164
+ };
165
+ }
166
+ if (observedHash === null) {
167
+ return {
168
+ ...base,
169
+ status: 'unverifiable',
170
+ detail: 'A grant exists, but Codex reported no hash for this key and none could be carried ' +
171
+ 'over from a byte-identical file — so whether the grant is current is unknown. ' +
172
+ 'Reported as unverified, not as granted.',
173
+ };
174
+ }
175
+ if (record.hash !== observedHash) {
176
+ return {
177
+ ...base,
178
+ status: 'stale-hash',
179
+ detail: 'STALE: the recorded trusted_hash is not the hash Codex reports for this entry, so ' +
180
+ 'Codex SILENTLY does not run it. Re-grant with the value below.',
181
+ };
182
+ }
183
+ return {
184
+ ...base,
185
+ status: 'granted',
186
+ detail: 'Recorded hash equals the hash Codex reports for this entry.',
187
+ };
188
+ });
189
+ sets.push({ label: file.label, hooksPath: file.hooksPath, hooksSha256, rows });
190
+ }
191
+ // ── The #27133 divergence check ───────────────────────────────────────────────
192
+ const shas = files.map((f) => shaByPath.get(f.hooksPath) ?? null);
193
+ if (files.length > 1 && shas[0] !== null && shas[1] !== null && shas[0] !== shas[1]) {
194
+ warnings.push(`The two hooks files DIFFER (${files[0]?.hooksPath} sha256 ${String(shas[0]).slice(0, 12)}…, ` +
195
+ `${files[1]?.hooksPath} sha256 ${String(shas[1]).slice(0, 12)}…). Under OpenAI bug #27133 ` +
196
+ 'Codex runs the main-repo file, so it is running hooks that are NOT the ones this worktree ' +
197
+ 'deployed or proved. Hashes cannot be carried between them while they differ.');
198
+ }
199
+ for (const path of [opts.worktreePath, opts.mainRepoPath]) {
200
+ if (trustState.trustLevelFor(path) !== 'trusted') {
201
+ warnings.push(`[projects."${path}"] is not trusted in the Codex config, so Codex ignores the ENTIRE ` +
202
+ 'project-local configuration there — hook trust is moot until that is granted.');
203
+ }
204
+ }
205
+ const ok = sets.every((s) => !s.error && s.rows.length > 0 && s.rows.every((r) => r.status === 'granted'));
206
+ return { ok, sets, warnings, observedHashes: observed };
207
+ }
208
+ export function trustGrantToml(rows) {
209
+ const needsGrant = rows.filter((r) => r.status !== 'granted');
210
+ const unresolvable = [];
211
+ const pasteable = [];
212
+ for (const row of needsGrant) {
213
+ if (row.observedHash === null) {
214
+ unresolvable.push({
215
+ ...row,
216
+ reason: 'Codex reported no hash for it and none could be carried over.',
217
+ });
218
+ continue;
219
+ }
220
+ if (!CODEX_HASH_SHAPE.test(row.observedHash)) {
221
+ unresolvable.push({
222
+ ...row,
223
+ reason: `the value Codex reported is not the sha256:<64 hex> shape (${row.observedHash.length} ` +
224
+ 'chars). It is NOT offered for pasting and has NOT been altered — a trusted_hash of ' +
225
+ 'an unrecognised shape is one Codex never matches, so the entry would stay inert ' +
226
+ 'while the record looked configured.',
227
+ });
228
+ continue;
229
+ }
230
+ pasteable.push(row);
231
+ }
232
+ const block = pasteable
233
+ .map((r) => `[hooks.state."${tomlBasicString(r.key)}"]\nenabled = true\n` +
234
+ `trusted_hash = "${tomlBasicString(r.observedHash)}"\n`)
235
+ .join('\n');
236
+ return { block, unresolvable };
237
+ }
238
+ /**
239
+ * Escape a value for a TOML basic string (the `"…"` form), per the TOML spec.
240
+ *
241
+ * ─── MUST FIX 2, THE SECOND LAYER ─────────────────────────────────────────────
242
+ * Keys went into `[hooks.state."<key>"]` raw. A key carrying `"` and a newline therefore
243
+ * closed the header and opened a table of its own, in the block this command tells an
244
+ * operator to paste into `~/.codex/config.toml`. The reviewer executed both vectors and
245
+ * got `[projects."/workspace"] trust_level = "trusted"` and
246
+ * `sandbox_mode = "danger-full-access"` into the output — a fleet-wide trust grant and a
247
+ * sandbox escape, applied by the operator's own hand.
248
+ *
249
+ * The two vectors enter through different doors, which is why the fix is in two places:
250
+ * a hostile KEY comes from `hooks/list` (now refused by `CODEX_TRUST_KEY_SHAPE`), while a
251
+ * hostile EVENT NAME comes from a `.codex/hooks.json` planted in the repository, and
252
+ * those keys are derived locally by `codexHookTrustKeysForDoc` without ever passing the
253
+ * parser. Escaping here covers every path into the renderer, including the ones added
254
+ * next year.
255
+ */
256
+ function tomlBasicString(value) {
257
+ let out = '';
258
+ for (const ch of value) {
259
+ const code = ch.codePointAt(0) ?? 0;
260
+ if (ch === '\\')
261
+ out += '\\\\';
262
+ else if (ch === '"')
263
+ out += '\\"';
264
+ else if (ch === '\n')
265
+ out += '\\n';
266
+ else if (ch === '\r')
267
+ out += '\\r';
268
+ else if (ch === '\t')
269
+ out += '\\t';
270
+ else if (code < 0x20 || code === 0x7f)
271
+ out += `\\u${code.toString(16).padStart(4, '0')}`;
272
+ else
273
+ out += ch;
274
+ }
275
+ return out;
276
+ }
277
+ /** `sha256:` + 64 lowercase hex — the shape observed live on codex-cli 0.145.0. */
278
+ export const CODEX_HASH_SHAPE = /^sha256:[0-9a-f]{64}$/;
279
+ //# sourceMappingURL=codex-trust-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex-trust-keys.js","sourceRoot":"","sources":["../../../src/lib/runtime/codex-trust-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,mBAAmB,GAGpB,MAAM,uBAAuB,CAAC;AA4C/B,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,CAAC;QACH,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAwBD,mFAAmF;AACnF,MAAM,UAAU,kBAAkB,CAAC,IAAuB;IACxD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAyB,CAAC;IAC7C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,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ACpC,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,KAAK,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,EAAE,KAAK,IAAI;YAAE,GAAG,IAAI,MAAM,CAAC;aAC1B,IAAI,EAAE,KAAK,GAAG;YAAE,GAAG,IAAI,KAAK,CAAC;aAC7B,IAAI,EAAE,KAAK,IAAI;YAAE,GAAG,IAAI,KAAK,CAAC;aAC9B,IAAI,EAAE,KAAK,IAAI;YAAE,GAAG,IAAI,KAAK,CAAC;aAC9B,IAAI,EAAE,KAAK,IAAI;YAAE,GAAG,IAAI,KAAK,CAAC;aAC9B,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,KAAK,IAAI;YAAE,GAAG,IAAI,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;;YACpF,GAAG,IAAI,EAAE,CAAC;IACjB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,mFAAmF;AACnF,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memnexus-ai/mx-agent-cli",
3
- "version": "0.1.269",
3
+ "version": "0.1.270",
4
4
  "description": "CLI for creating and managing AI agent teams",
5
5
  "type": "module",
6
6
  "bin": {