@memnexus-ai/mx-agent-cli 0.1.284 → 0.1.285
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.
|
@@ -138,7 +138,59 @@ const SHIM_MAX_BYTES = 600;
|
|
|
138
138
|
* into a scratch worktree, hash the written bytes (21,757 bytes) — NOT by copying
|
|
139
139
|
* it out of the CI failure log.
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
/*
|
|
142
|
+
* Re-derived after #5200 (KI-OVERLAY-TEACHES-HEREDOC). The Cross-team
|
|
143
|
+
* communication section still taught the `F=$(mktemp)` + quoted-heredoc
|
|
144
|
+
* escalation body, which contradicts the four agent definitions converted in
|
|
145
|
+
* #5273 to "write the body with your file-write tool, then pass --body-file".
|
|
146
|
+
* A heredoc re-introduces a parser between the author and the message: an
|
|
147
|
+
* unquoted one expands `$(...)`, and a body line matching the terminator
|
|
148
|
+
* truncates the message there and runs the remainder as commands. The example
|
|
149
|
+
* is now the tool-write pattern; the #4592 reason for never using inline
|
|
150
|
+
* `--body` is unchanged, and the mktemp/symlink rationale went with the mktemp
|
|
151
|
+
* example that needed it. Net −4 lines on the template (198 → 194), inside the
|
|
152
|
+
* 200-line budget.
|
|
153
|
+
*
|
|
154
|
+
* Text changed in the SOURCE overlay
|
|
155
|
+
* (`claude-md/CLAUDE.overlay.memnexus.md`) and the template recomposed with
|
|
156
|
+
* `compose.mjs --write` (`--check` clean). This is the FOURTH instance of the
|
|
157
|
+
* #4969 trap, so once more: a clean `--check` is not evidence that this digest
|
|
158
|
+
* is current. Digest below re-derived by running this test's own deploy path —
|
|
159
|
+
* deployClaudeMd into a scratch worktree, hash the written bytes (21,762
|
|
160
|
+
* bytes) — NOT by copying it out of a CI failure log. The value superseded here
|
|
161
|
+
* is `8c9f8119240cf15dea2cdc1ede8792c5a0a473b8b2caf36913f080ba32ba91de`.
|
|
162
|
+
*/
|
|
163
|
+
/*
|
|
164
|
+
* Re-derived after the #5200 batch-2 security review (2 Should Fix, 0 Must Fix).
|
|
165
|
+
* SF-1: the escalation-body instruction said to write the body "to a path in your
|
|
166
|
+
* own worktree", which leaves the file untracked-but-stageable — one session-start
|
|
167
|
+
* `git add -A` from shipping incident detail into a PR, the sweep that already took
|
|
168
|
+
* `leader_state_content.txt` into three commits. The instruction now names one
|
|
169
|
+
* location, `.mx-escalations/<slug>.md`, and `/.mx-escalations/` is ignored at the
|
|
170
|
+
* repo root. SF-2: the earlier P0 escalate invocation left its placeholders
|
|
171
|
+
* unquoted while the Cross-team example quoted them; both now quote, so a copied
|
|
172
|
+
* command cannot glob or word-split on a real value.
|
|
173
|
+
*
|
|
174
|
+
* Template line count unchanged at 193 (194 by the budget test's split('\n')
|
|
175
|
+
* count), inside the 200-line budget. Text changed in the SOURCE overlay
|
|
176
|
+
* (`claude-md/CLAUDE.overlay.memnexus.md`) and the template recomposed with
|
|
177
|
+
* `compose.mjs --write` (`--check` clean). Fifth instance of the #4969 trap, so
|
|
178
|
+
* again: a clean `--check` is not evidence that this digest is current. Digest
|
|
179
|
+
* below re-derived by running this test's own deploy path — deployClaudeMd into a
|
|
180
|
+
* scratch worktree, hash the written bytes (22,007 bytes) — NOT by copying it out
|
|
181
|
+
* of a CI failure log. The value superseded here is
|
|
182
|
+
* `6c6f2cc698f37d55511b1921fc233d6c0cc4b51324c461024049acaaf4c588ef`.
|
|
183
|
+
*
|
|
184
|
+
* The first pass at SF-1 wrote the location as a bare relative `.mx-escalations/`,
|
|
185
|
+
* which the Codex differential review caught: the ignore rule is root-anchored, so
|
|
186
|
+
* a file written from a subdirectory cwd lands at `<subdir>/.mx-escalations/` and
|
|
187
|
+
* is NOT ignored — the instruction would have promised a guarantee it did not
|
|
188
|
+
* deliver. The path is now `$CLAUDE_WORKTREE_PATH/.mx-escalations/<slug>.md`, the
|
|
189
|
+
* variable the overlay already uses for worktree-root paths. The digest from that
|
|
190
|
+
* first pass, superseded here, was
|
|
191
|
+
* `459504baeba360f5761d4a33fec91ef11a84d619b99ff211be914d635f6a8453`.
|
|
192
|
+
*/
|
|
193
|
+
const CANONICAL_SHA256 = 'e699c31cdf19d94405a2d561d943c635b8d9f35a3af8bbe82e30e6e71d4fbebe';
|
|
142
194
|
let worktree;
|
|
143
195
|
beforeEach(() => {
|
|
144
196
|
worktree = mkdtempSync(join(tmpdir(), 'mx-agents-md-'));
|
|
@@ -1 +1 @@
|
|
|
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,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAClF,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,UAAU,EAAE,MAAM,QAAQ,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;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5B,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,iBAAiB,EAAE,cAAc,CAAC,CAAC;YAAE,OAAO,GAAG,CAAC;QACzE,MAAM,MAAM,GAAG,OAAO,CA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a,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -57,7 +57,7 @@ Any error from MemNexus tools (saving, retrieving, searching, updating memories)
|
|
|
57
57
|
1. Stop the current iteration. Do not work around it or retry silently.
|
|
58
58
|
2. Diagnose. Read the error. Identify the component (MCP server, core-api, CLI, network).
|
|
59
59
|
3. If the fix is in your domain, fix it now.
|
|
60
|
-
4. If outside your domain, file a P0 with `mx-agent escalate --to <team> --priority p0 --body-file <path
|
|
60
|
+
4. If outside your domain, file a P0 with `mx-agent escalate --to '<team>' --priority 'p0' --body-file '<path>'` (see Cross-team communication below for the safe invocation): exact error, which tool failed, timestamp, what you were doing. If `mx-agent escalate` is unavailable, upgrade your CLI: `npm install -g @memnexus-ai/mx-agent-cli@latest`.
|
|
61
61
|
5. Do not resume previous work until resolved or a workaround is confirmed.
|
|
62
62
|
|
|
63
63
|
## Worktree isolation
|
|
@@ -128,17 +128,13 @@ Cross-team coordination runs on the MX Agent Coordination Service (a message que
|
|
|
128
128
|
mx-agent config set coordination-brief-enabled true
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
**File an escalation — always via `--body-file`, never inline `--body`.** Your shell expands backticks and `$(...)` inside a quoted `--body` before `mx-agent` runs: the command executes on your machine and its output replaces your text in the delivered message, silently (#4592). Backticking a command name is how anyone writes an incident report, so write the body to a file
|
|
131
|
+
**File an escalation — always via `--body-file`, never inline `--body`.** Your shell expands backticks and `$(...)` inside a quoted `--body` before `mx-agent` runs: the command executes on your machine and its output replaces your text in the delivered message, silently (#4592). Backticking a command name is how anyone writes an incident report, so write the body with your file-write tool (`Write`) to `$CLAUDE_WORKTREE_PATH/.mx-escalations/<slug>.md` — your own worktree, at its root, which is the one path the ignore rule covers, so an incident body never rides into a commit on a `git add -A` (a relative `.mx-escalations/` under some subdirectory is NOT ignored) — never a shell heredoc, which re-introduces a parser: an unquoted one expands `$(...)`, and a body line that happens to match the terminator truncates the message there and runs the rest of your prose as commands. A file-write tool never parses the body. Then send it:
|
|
132
132
|
|
|
133
133
|
```
|
|
134
|
-
|
|
135
|
-
cat > "$F" <<'EOF'
|
|
136
|
-
The remedy is `mx-agent verify-hooks --heal`; the path is .claude/hooks/.
|
|
137
|
-
EOF
|
|
138
|
-
mx-agent escalate --to <team> --priority p0|p1|p2|p3 --body-file "$F"
|
|
134
|
+
mx-agent escalate --to '<team>' --priority '<p0|p1|p2|p3>' --body-file '<path-to-body-file>'
|
|
139
135
|
```
|
|
140
136
|
|
|
141
|
-
|
|
137
|
+
`--body-file -` reads stdin. This is what you do instead of writing an outbox (P0/P1 still urgent). **Read history:** `mx-agent coordination history`.
|
|
142
138
|
|
|
143
139
|
**Old channel is FROZEN.** `memnexus-cross-team-escalations` and per-team outboxes are archived. Do NOT read or write them — the coordination queue is the sole channel. All teams are on the queue as of 2026-07-21.
|
|
144
140
|
|
|
@@ -15,7 +15,7 @@ Any error from {{PRODUCT_NAME}} tools (saving, retrieving, searching, updating m
|
|
|
15
15
|
1. Stop the current iteration. Do not work around it or retry silently.
|
|
16
16
|
2. Diagnose. Read the error. Identify the component (MCP server, core-api, CLI, network).
|
|
17
17
|
3. If the fix is in your domain, fix it now.
|
|
18
|
-
4. If outside your domain, file a P0 with `mx-agent escalate --to <team> --priority p0 --body-file <path
|
|
18
|
+
4. If outside your domain, file a P0 with `mx-agent escalate --to '<team>' --priority 'p0' --body-file '<path>'` (see Cross-team communication below for the safe invocation): exact error, which tool failed, timestamp, what you were doing. If `mx-agent escalate` is unavailable, upgrade your CLI: `npm install -g @memnexus-ai/mx-agent-cli@latest`.
|
|
19
19
|
5. Do not resume previous work until resolved or a workaround is confirmed.
|
|
20
20
|
|
|
21
21
|
{{> core:worktree-isolation}}
|
|
@@ -57,17 +57,13 @@ Cross-team coordination runs on the MX Agent Coordination Service (a message que
|
|
|
57
57
|
mx-agent config set coordination-brief-enabled true
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
**File an escalation — always via `--body-file`, never inline `--body`.** Your shell expands backticks and `$(...)` inside a quoted `--body` before `mx-agent` runs: the command executes on your machine and its output replaces your text in the delivered message, silently (#4592). Backticking a command name is how anyone writes an incident report, so write the body to a file
|
|
60
|
+
**File an escalation — always via `--body-file`, never inline `--body`.** Your shell expands backticks and `$(...)` inside a quoted `--body` before `mx-agent` runs: the command executes on your machine and its output replaces your text in the delivered message, silently (#4592). Backticking a command name is how anyone writes an incident report, so write the body with your file-write tool (`Write`) to `$CLAUDE_WORKTREE_PATH/.mx-escalations/<slug>.md` — your own worktree, at its root, which is the one path the ignore rule covers, so an incident body never rides into a commit on a `git add -A` (a relative `.mx-escalations/` under some subdirectory is NOT ignored) — never a shell heredoc, which re-introduces a parser: an unquoted one expands `$(...)`, and a body line that happens to match the terminator truncates the message there and runs the rest of your prose as commands. A file-write tool never parses the body. Then send it:
|
|
61
61
|
|
|
62
62
|
```
|
|
63
|
-
|
|
64
|
-
cat > "$F" <<'EOF'
|
|
65
|
-
The remedy is `mx-agent verify-hooks --heal`; the path is .claude/hooks/.
|
|
66
|
-
EOF
|
|
67
|
-
mx-agent escalate --to <team> --priority p0|p1|p2|p3 --body-file "$F"
|
|
63
|
+
mx-agent escalate --to '<team>' --priority '<p0|p1|p2|p3>' --body-file '<path-to-body-file>'
|
|
68
64
|
```
|
|
69
65
|
|
|
70
|
-
|
|
66
|
+
`--body-file -` reads stdin. This is what you do instead of writing an outbox (P0/P1 still urgent). **Read history:** `mx-agent coordination history`.
|
|
71
67
|
|
|
72
68
|
**Old channel is FROZEN.** `{{PRODUCT_SLUG}}-cross-team-escalations` and per-team outboxes are archived. Do NOT read or write them — the coordination queue is the sole channel. All teams are on the queue as of 2026-07-21.
|
|
73
69
|
|