@memnexus-ai/mx-agent-cli 0.1.241 → 0.1.243
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/dist/__tests__/agents-md-canonicalization.test.d.ts +11 -8
- package/dist/__tests__/agents-md-canonicalization.test.d.ts.map +1 -1
- package/dist/__tests__/agents-md-canonicalization.test.js +60 -19
- package/dist/__tests__/agents-md-canonicalization.test.js.map +1 -1
- package/dist/__tests__/behavioral-git-read.test.d.ts +21 -0
- package/dist/__tests__/behavioral-git-read.test.d.ts.map +1 -0
- package/dist/__tests__/behavioral-git-read.test.js +955 -0
- package/dist/__tests__/behavioral-git-read.test.js.map +1 -0
- package/dist/__tests__/event-shipper.test.d.ts +16 -0
- package/dist/__tests__/event-shipper.test.d.ts.map +1 -0
- package/dist/__tests__/event-shipper.test.js +287 -0
- package/dist/__tests__/event-shipper.test.js.map +1 -0
- package/dist/__tests__/shim-deploy-safety.test.d.ts +24 -0
- package/dist/__tests__/shim-deploy-safety.test.d.ts.map +1 -0
- package/dist/__tests__/shim-deploy-safety.test.js +174 -0
- package/dist/__tests__/shim-deploy-safety.test.js.map +1 -0
- package/dist/__tests__/start-report-integration.test.js +4 -0
- package/dist/__tests__/start-report-integration.test.js.map +1 -1
- package/dist/__tests__/template-budget.test.js +56 -4
- package/dist/__tests__/template-budget.test.js.map +1 -1
- package/dist/agent-config/CLAUDE.md.template +8 -152
- package/dist/commands/start.d.ts +22 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +44 -21
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +9 -5
- package/dist/commands/sync.js.map +1 -1
- package/dist/lib/behavioral-injection.d.ts +190 -13
- package/dist/lib/behavioral-injection.d.ts.map +1 -1
- package/dist/lib/behavioral-injection.js +653 -37
- package/dist/lib/behavioral-injection.js.map +1 -1
- package/dist/lib/claude.d.ts +77 -1
- package/dist/lib/claude.d.ts.map +1 -1
- package/dist/lib/claude.js +281 -13
- package/dist/lib/claude.js.map +1 -1
- package/dist/lib/startup-shipper.d.ts +108 -20
- package/dist/lib/startup-shipper.d.ts.map +1 -1
- package/dist/lib/startup-shipper.js +133 -29
- package/dist/lib/startup-shipper.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
11
|
-
* PR-A
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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
|
|
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
|
|
11
|
-
* PR-A
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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-
|
|
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('
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
|
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
|
-
//
|
|
75
|
-
//
|
|
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
|
|
1
|
+
{"version":3,"file":"agents-md-canonicalization.test.js","sourceRoot":"","sources":["../../src/__tests__/agents-md-canonicalization.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MA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CAAC,CAAC;QAChD,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for #4707 — the behavioral block is read from origin/<baseBranch>, the
|
|
3
|
+
* delivered CLAUDE.local.md is verified for CONTENT, and repeated markers fail
|
|
4
|
+
* loudly.
|
|
5
|
+
*
|
|
6
|
+
* WHAT WENT WRONG. `mx-agent start` resolved the team catalog and the roleguide
|
|
7
|
+
* from `projectRoot` — `/workspace`, the main repo working tree — which was 82
|
|
8
|
+
* commits behind origin/main. The markers eval's roleguide gained in #4521 were
|
|
9
|
+
* in git and had never been read, so eval shipped an isolation-only
|
|
10
|
+
* CLAUDE.local.md for four weeks while the same startup sequence printed
|
|
11
|
+
* "Agent config generated from … (origin/main)".
|
|
12
|
+
*
|
|
13
|
+
* HOW THESE TESTS ARE PINNED. Every git-vs-local test builds a repository where
|
|
14
|
+
* the two sources DISAGREE: origin/<branch> carries one roleguide, the
|
|
15
|
+
* projectRoot working tree carries a different one. Asserting on the CONTENT
|
|
16
|
+
* (not merely on "a block exists") means reverting the read to projectRoot fails
|
|
17
|
+
* the test rather than passing it by luck — which is exactly how the previous
|
|
18
|
+
* iteration's verification passed while the outcome it claimed was false.
|
|
19
|
+
*/
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=behavioral-git-read.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"behavioral-git-read.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/behavioral-git-read.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG"}
|