@memnexus-ai/mx-agent-cli 0.1.240 → 0.1.242

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.
@@ -7,14 +7,17 @@
7
7
  * assert on the GENERATED files (not the templates), matching the PRD's "verify
8
8
  * against generated output" mandate.
9
9
  *
10
- * SPLIT (security review, deploy-ordering Must Fix): the change ships as two PRs.
11
- * PR-A (this state): deployClaudeMd writes AGENTS.md (canonical) AND CLAUDE.md.
12
- * CLAUDE.md.template still carries FULL content, so both generated files carry
13
- * full canonical content — harmless duplication. Old CLIs are unaffected; new
14
- * CLIs additionally write AGENTS.md. No worktree ever imports a missing file.
15
- * PR-B (deferred, gated on fleet CLI adoption): flips CLAUDE.md.template to the
16
- * one-line `@AGENTS.md` shim. The shim-specific assertions live with PR-B
17
- * (phase0-pr-b-template-flip.patch), not here.
10
+ * SPLIT (security review, deploy-ordering Must Fix): the change shipped as two PRs.
11
+ * PR-A: deployClaudeMd writes AGENTS.md (canonical) AND CLAUDE.md, both full
12
+ * content — harmless duplication, and no worktree ever imports a missing file.
13
+ * PR-B (this state, merge gate cleared — fleet 8/8 on the PR-A CLI): CLAUDE.md.template
14
+ * is now a one-line `@AGENTS.md` import shim. The assertions below are the
15
+ * flipped ones: CLAUDE.md is a shim, AGENTS.md is canonical, and the two
16
+ * deployed files must now DIFFER rather than match.
17
+ *
18
+ * The end state these pin: exactly one file carries instruction content. If a
19
+ * future change reintroduces content into CLAUDE.md.template, the shim tests fail
20
+ * before two sources of truth can drift apart.
18
21
  */
19
22
  export {};
20
23
  //# sourceMappingURL=agents-md-canonicalization.test.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents-md-canonicalization.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/agents-md-canonicalization.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
1
+ {"version":3,"file":"agents-md-canonicalization.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/agents-md-canonicalization.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
@@ -7,20 +7,24 @@
7
7
  * assert on the GENERATED files (not the templates), matching the PRD's "verify
8
8
  * against generated output" mandate.
9
9
  *
10
- * SPLIT (security review, deploy-ordering Must Fix): the change ships as two PRs.
11
- * PR-A (this state): deployClaudeMd writes AGENTS.md (canonical) AND CLAUDE.md.
12
- * CLAUDE.md.template still carries FULL content, so both generated files carry
13
- * full canonical content — harmless duplication. Old CLIs are unaffected; new
14
- * CLIs additionally write AGENTS.md. No worktree ever imports a missing file.
15
- * PR-B (deferred, gated on fleet CLI adoption): flips CLAUDE.md.template to the
16
- * one-line `@AGENTS.md` shim. The shim-specific assertions live with PR-B
17
- * (phase0-pr-b-template-flip.patch), not here.
10
+ * SPLIT (security review, deploy-ordering Must Fix): the change shipped as two PRs.
11
+ * PR-A: deployClaudeMd writes AGENTS.md (canonical) AND CLAUDE.md, both full
12
+ * content — harmless duplication, and no worktree ever imports a missing file.
13
+ * PR-B (this state, merge gate cleared — fleet 8/8 on the PR-A CLI): CLAUDE.md.template
14
+ * is now a one-line `@AGENTS.md` import shim. The assertions below are the
15
+ * flipped ones: CLAUDE.md is a shim, AGENTS.md is canonical, and the two
16
+ * deployed files must now DIFFER rather than match.
17
+ *
18
+ * The end state these pin: exactly one file carries instruction content. If a
19
+ * future change reintroduces content into CLAUDE.md.template, the shim tests fail
20
+ * before two sources of truth can drift apart.
18
21
  */
19
22
  import { describe, it, expect, beforeEach, afterEach } from 'vitest';
20
- import { mkdtempSync, rmSync, readFileSync, existsSync } from 'fs';
23
+ import { mkdtempSync, rmSync, readFileSync, writeFileSync, existsSync } from 'fs';
21
24
  import { tmpdir } from 'os';
22
25
  import { dirname, join } from 'path';
23
26
  import { fileURLToPath } from 'url';
27
+ import { createHash } from 'crypto';
24
28
  import { deployClaudeMd } from '../lib/claude.js';
25
29
  const __dirname = dirname(fileURLToPath(import.meta.url));
26
30
  function findRepoRoot(start) {
@@ -38,6 +42,16 @@ function findRepoRoot(start) {
38
42
  const REPO_ROOT = findRepoRoot(__dirname);
39
43
  // Codex default project_doc_max_bytes; FR-5 budget for the instruction chain.
40
44
  const CODEX_DOC_CAP = 32 * 1024;
45
+ // Shim budget, mirrored from template-budget.test.ts: an import line plus a
46
+ // provenance comment, with no room for instruction content to creep back in.
47
+ const SHIM_MAX_BYTES = 600;
48
+ /**
49
+ * sha256 of the canonical instruction content, captured from the PRE-FLIP full
50
+ * CLAUDE.md and independently verified during the PR-B security review. It is the
51
+ * content-preservation proof for the template flip, committed so CI re-checks it
52
+ * on every run instead of trusting a one-off report.
53
+ */
54
+ const CANONICAL_SHA256 = '4dc1a19a252d091a2b494228b758e1a2a090b440875257b7e85a672d44e53a3c';
41
55
  let worktree;
42
56
  beforeEach(() => {
43
57
  worktree = mkdtempSync(join(tmpdir(), 'mx-agents-md-'));
@@ -45,7 +59,7 @@ beforeEach(() => {
45
59
  afterEach(() => {
46
60
  rmSync(worktree, { recursive: true, force: true });
47
61
  });
48
- describe('deployClaudeMd — AGENTS.md canonicalization (generated output, PR-A)', () => {
62
+ describe('deployClaudeMd — AGENTS.md canonicalization (generated output, PR-B)', () => {
49
63
  it('generates AGENTS.md carrying the canonical instruction content', () => {
50
64
  deployClaudeMd(REPO_ROOT, worktree);
51
65
  const agentsPath = join(worktree, 'AGENTS.md');
@@ -57,23 +71,50 @@ describe('deployClaudeMd — AGENTS.md canonicalization (generated output, PR-A)
57
71
  expect(agents).toContain('## Cross-team communication');
58
72
  expect(agents).toContain('MemNexus is the sole memory store');
59
73
  });
60
- it('also generates CLAUDE.md (PR-A: full content, not yet a shim)', () => {
74
+ it('generates CLAUDE.md as a one-line @AGENTS.md shim (PR-B)', () => {
61
75
  deployClaudeMd(REPO_ROOT, worktree);
62
76
  const claudePath = join(worktree, 'CLAUDE.md');
63
77
  expect(existsSync(claudePath)).toBe(true);
64
78
  const claude = readFileSync(claudePath, 'utf-8');
65
- // PR-A keeps CLAUDE.md.template full, so the deployed CLAUDE.md carries the
66
- // same canonical content (harmless duplication; old CLIs unaffected). The
67
- // `@AGENTS.md` shim flip is PR-B — see phase0-pr-b-template-flip.patch.
68
- expect(claude).toContain('# MemNexus Project Instructions');
79
+ expect(claude.split('\n')[0]).toBe('@AGENTS.md');
80
+ expect(claude).not.toContain('# MemNexus Project Instructions');
81
+ expect(Buffer.byteLength(claude)).toBeLessThan(SHIM_MAX_BYTES);
69
82
  });
70
- it('deployed AGENTS.md and CLAUDE.md carry identical canonical content in PR-A', () => {
83
+ it('deployed AGENTS.md and CLAUDE.md now DIFFER (flipped PR-A canary)', () => {
71
84
  deployClaudeMd(REPO_ROOT, worktree);
72
85
  const agents = readFileSync(join(worktree, 'AGENTS.md'), 'utf-8');
73
86
  const claude = readFileSync(join(worktree, 'CLAUDE.md'), 'utf-8');
74
- // Both derive from byte-identical templates in PR-A. This test is the canary
75
- // that will change in PR-B (CLAUDE.md becomes the shim, no longer identical).
76
- expect(claude).toBe(agents);
87
+ // In PR-A these were byte-identical. Post-flip, identical content would mean
88
+ // the shim never landed (or was reverted) — the duplication Phase 0 removed.
89
+ expect(claude).not.toBe(agents);
90
+ expect(Buffer.byteLength(claude)).toBeLessThan(Buffer.byteLength(agents));
91
+ });
92
+ it('generated AGENTS.md hashes to the committed canonical digest', () => {
93
+ // Replaces an earlier "union" test that was a tautology: it spliced AGENTS.md
94
+ // into the shim and then asserted AGENTS.md's lines were present, which passes
95
+ // with 98% of the instructions deleted, with an empty file, and with a hostile
96
+ // `@evil.md` shim. A digest is the only assertion that actually pins content.
97
+ //
98
+ // This is the byte-for-byte pre-flip CLAUDE.md digest, so it also proves the
99
+ // flip lost nothing: what a session reads after resolving `@AGENTS.md` is
100
+ // exactly what it read before the flip.
101
+ //
102
+ // REGENERATE ONLY WITH A DELIBERATE INSTRUCTION-CONTENT CHANGE, NEVER TO MAKE
103
+ // A RED TEST GREEN. A surprise failure here means the instruction content
104
+ // moved — read the diff before touching this constant.
105
+ deployClaudeMd(REPO_ROOT, worktree);
106
+ const agents = readFileSync(join(worktree, 'AGENTS.md'));
107
+ const digest = createHash('sha256').update(agents).digest('hex');
108
+ expect(digest).toBe(CANONICAL_SHA256);
109
+ });
110
+ it('rejects a hollowed-out canonical file (digest pin has teeth)', () => {
111
+ // Demonstrates the property the union test lacked: deleting content fails.
112
+ deployClaudeMd(REPO_ROOT, worktree);
113
+ const agentsPath = join(worktree, 'AGENTS.md');
114
+ const gutted = readFileSync(agentsPath, 'utf-8').split('\n').slice(0, 3).join('\n');
115
+ writeFileSync(agentsPath, gutted);
116
+ const digest = createHash('sha256').update(readFileSync(agentsPath)).digest('hex');
117
+ expect(digest).not.toBe(CANONICAL_SHA256);
77
118
  });
78
119
  it('each generated instruction file stays under the 32 KiB Codex cap', () => {
79
120
  deployClaudeMd(REPO_ROOT, worktree);
@@ -1 +1 @@
1
- {"version":3,"file":"agents-md-canonicalization.test.js","sourceRoot":"","sources":["../../src/__tests__/agents-md-canonicalization.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1D,SAAS,YAAY,CAAC,KAAa;IACjC,IAAI,GAAG,GAAG,KAAK,CAAC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AC,QAAQ,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnF,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;QAC1E,cAAc,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACpC,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QACjF,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QACjF,0EAA0E;QAC1E,6EAA6E;QAC7E,+EAA+E;QAC/E,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QAChD,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Isolation-banner probes (#4646) — FL-2 false-green remediation.
3
+ *
4
+ * The banner used to print three unconditional `✓` literals. Each line is now
5
+ * computed from a probe, so each probe needs all three of its states driven by
6
+ * INJECTED faults, not by observing that a healthy worktree looks healthy
7
+ * (FL-16: running the tool and seeing no complaint is not verification).
8
+ *
9
+ * Every test builds a real worktree fixture on disk — settings.json, deployed
10
+ * hooks, an agent-config source to hash against — and then breaks exactly one
11
+ * thing. The one-thing-at-a-time structure is what makes the mutation checks at
12
+ * the bottom meaningful: deleting a probe's check has to fail a named test.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=isolation-probe.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isolation-probe.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/isolation-probe.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}