@memnexus-ai/mx-agent-cli 0.1.232 → 0.1.234
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__/behavioral-extraction.test.js +93 -0
- package/dist/__tests__/behavioral-extraction.test.js.map +1 -1
- package/dist/__tests__/behavioral-injection.test.d.ts +13 -0
- package/dist/__tests__/behavioral-injection.test.d.ts.map +1 -0
- package/dist/__tests__/behavioral-injection.test.js +384 -0
- package/dist/__tests__/behavioral-injection.test.js.map +1 -0
- package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts +18 -0
- package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts.map +1 -0
- package/dist/__tests__/bootstrap-behavioral-contract.test.js +101 -0
- package/dist/__tests__/bootstrap-behavioral-contract.test.js.map +1 -0
- package/dist/__tests__/provision-behavioral-contract.test.d.ts +13 -0
- package/dist/__tests__/provision-behavioral-contract.test.d.ts.map +1 -0
- package/dist/__tests__/provision-behavioral-contract.test.js +454 -0
- package/dist/__tests__/provision-behavioral-contract.test.js.map +1 -0
- package/dist/__tests__/provision-copy-containment.test.d.ts +19 -0
- package/dist/__tests__/provision-copy-containment.test.d.ts.map +1 -0
- package/dist/__tests__/provision-copy-containment.test.js +187 -0
- package/dist/__tests__/provision-copy-containment.test.js.map +1 -0
- package/dist/__tests__/provision-teambuilder-flow.test.d.ts +22 -0
- package/dist/__tests__/provision-teambuilder-flow.test.d.ts.map +1 -0
- package/dist/__tests__/provision-teambuilder-flow.test.js +165 -0
- package/dist/__tests__/provision-teambuilder-flow.test.js.map +1 -0
- package/dist/__tests__/provision-write-integrity.test.d.ts +18 -0
- package/dist/__tests__/provision-write-integrity.test.d.ts.map +1 -0
- package/dist/__tests__/provision-write-integrity.test.js +141 -0
- package/dist/__tests__/provision-write-integrity.test.js.map +1 -0
- package/dist/__tests__/startup-report.test.js +3 -3
- package/dist/__tests__/startup-report.test.js.map +1 -1
- package/dist/agent-config/hooks/worktree-guard.sh +223 -20
- package/dist/commands/bootstrap.d.ts +2 -0
- package/dist/commands/bootstrap.d.ts.map +1 -1
- package/dist/commands/bootstrap.js +15 -1
- package/dist/commands/bootstrap.js.map +1 -1
- package/dist/commands/create.d.ts +188 -0
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +606 -23
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/new.d.ts +2 -0
- package/dist/commands/new.d.ts.map +1 -1
- package/dist/commands/new.js +6 -1
- package/dist/commands/new.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/behavioral-injection.d.ts +144 -0
- package/dist/lib/behavioral-injection.d.ts.map +1 -0
- package/dist/lib/behavioral-injection.js +438 -0
- package/dist/lib/behavioral-injection.js.map +1 -0
- package/dist/lib/claude.d.ts +49 -7
- package/dist/lib/claude.d.ts.map +1 -1
- package/dist/lib/claude.js +62 -82
- package/dist/lib/claude.js.map +1 -1
- package/dist/lib/templates.d.ts +1 -1
- package/dist/lib/templates.d.ts.map +1 -1
- package/dist/lib/templates.js +2 -0
- package/dist/lib/templates.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startup-report.test.js","sourceRoot":"","sources":["../../src/__tests__/startup-report.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACrH,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aA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YACtC,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;YAC3D,aAAa,CAAC,oBAAoB,EAAE,CAAC;QACvC,CAAC;gBAAS,CAAC;YACT,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,eAAe,CAAC;QACzC,CAAC;QAED,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC;QACzC,MAAM,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;QAC3B,aAAa,CAAC,qBAAqB,EAAE,CAAC;QACtC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrC,aAAa,CAAC,oBAAoB,EAAE,CAAC;QACrC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -22,6 +22,15 @@
|
|
|
22
22
|
# `git rebase origin/main`, and settings.json also hard-denies `git merge *` at
|
|
23
23
|
# the permission layer, which fires before this hook).
|
|
24
24
|
#
|
|
25
|
+
# CAVEAT on that second layer (security review, #4569 — do not read it as full
|
|
26
|
+
# cover): the settings.json pattern `Bash(git merge *)` requires an ARGUMENT, and
|
|
27
|
+
# this hook's merge rule matches `merge\s`, which also requires one. A bare
|
|
28
|
+
# `git merge` with no argument therefore passes BOTH layers. With an upstream
|
|
29
|
+
# configured it merges that upstream. It is left open deliberately: tightening
|
|
30
|
+
# to `merge(\s|$)` would newly block prose ending on the verb, and bare
|
|
31
|
+
# `git merge` is a shape essentially nobody types. Stated here so no reader
|
|
32
|
+
# concludes the permission layer closes what this rule does not.
|
|
33
|
+
#
|
|
25
34
|
# Requires environment variables set by `worktree start`:
|
|
26
35
|
# - CLAUDE_WORKTREE_PATH: Absolute path to worktree (e.g., /workspace/.worktrees/foo)
|
|
27
36
|
# - CLAUDE_WORKTREE_NAME: Worktree name (e.g., foo)
|
|
@@ -31,11 +40,24 @@ set -euo pipefail
|
|
|
31
40
|
# Read the tool input from stdin (JSON format)
|
|
32
41
|
INPUT=$(cat)
|
|
33
42
|
|
|
34
|
-
# Extract the command - handle both direct command and tool_input formats
|
|
43
|
+
# Extract the command - handle both direct command and tool_input formats.
|
|
44
|
+
#
|
|
45
|
+
# EXIT-CODE NOTE (security review, #4569 — the previous comment was imprecise).
|
|
46
|
+
# There are two distinct "can't parse" paths and they do NOT exit the same way:
|
|
47
|
+
# * Well-formed JSON with no command field (`{}`, empty stdin) -> jq succeeds
|
|
48
|
+
# and prints nothing -> the guard below exits 0.
|
|
49
|
+
# * MALFORMED JSON (`not json`) -> jq itself fails. There is no `|| true` here
|
|
50
|
+
# (unlike git-mutation-guard.sh:61), so under `set -e` the assignment aborts
|
|
51
|
+
# the script with jq's exit code, which is 5.
|
|
52
|
+
# Both are non-blocking: Claude Code blocks only on exit 2, so exit 5 still lets
|
|
53
|
+
# the command run, just noisily. The behaviour is left as-is rather than
|
|
54
|
+
# "fixed" to 0, because a malformed payload is a harness bug worth surfacing,
|
|
55
|
+
# not something to swallow silently. Both paths are pinned by tests so this is a
|
|
56
|
+
# decision rather than an accident.
|
|
35
57
|
COMMAND=$(echo "$INPUT" | jq -r '.tool_input.command // .command // empty' 2>/dev/null)
|
|
36
58
|
|
|
37
59
|
if [[ -z "$COMMAND" ]]; then
|
|
38
|
-
#
|
|
60
|
+
# No command field in a well-formed payload — nothing to inspect, allow.
|
|
39
61
|
exit 0
|
|
40
62
|
fi
|
|
41
63
|
|
|
@@ -89,16 +111,70 @@ strip_heredocs() {
|
|
|
89
111
|
|
|
90
112
|
SCAN=$(printf '%s' "$COMMAND" | strip_heredocs)
|
|
91
113
|
|
|
114
|
+
# ============================================================
|
|
115
|
+
# Segment anchors + wrapper-prefix run (backport from git-mutation-guard)
|
|
116
|
+
# ============================================================
|
|
117
|
+
# BYPASS HARDENING (#4569, Part A): both rules below anchor their verb to a
|
|
118
|
+
# "command-segment start". A bare anchor is defeated by anything that can
|
|
119
|
+
# legally sit between the separator and the verb, so both rules now use the same
|
|
120
|
+
# prefix machinery (WRAPPRE) that git-mutation-guard.sh's GITSEG already uses
|
|
121
|
+
# (git-mutation-guard.sh line ~300, introduced by af94a2d / #3934 and hardened
|
|
122
|
+
# by #3912). WRAPPRE is a mechanical backport — its alternatives are copied from
|
|
123
|
+
# GITSEG character for character, not newly invented.
|
|
124
|
+
#
|
|
125
|
+
# THE TWO RULES DO NOT SHARE AN ANCHOR, deliberately (security review, #4569).
|
|
126
|
+
# An earlier revision gave both rules one shared anchor, which silently handed
|
|
127
|
+
# the cd rule a `$` alternative it never had. `$` was measured to kill ZERO
|
|
128
|
+
# tests — `$(cd …)` is already caught by the `(` alternative — while blocking
|
|
129
|
+
# the universal shell-transcript convention
|
|
130
|
+
# `mx memories create --content "shell transcript: $ cd /etc"`, which was
|
|
131
|
+
# allowed before. A character that catches nothing and costs real work does not
|
|
132
|
+
# belong in the anchor, so the cd rule keeps its own.
|
|
133
|
+
#
|
|
134
|
+
# CDANCHOR — identical to git-mutation-guard.sh's GITSEG anchor: start-of-line
|
|
135
|
+
# (grep is line-oriented, so embedded newlines are segment starts too), a
|
|
136
|
+
# separator `; & | ( {`, a backtick, or a `then`/`do`/`else` shell keyword.
|
|
137
|
+
# No `$`.
|
|
138
|
+
#
|
|
139
|
+
# GITANCHOR — CDANCHOR plus `$`. The `$` is NOT from GITSEG; it is PRE-EXISTING
|
|
140
|
+
# behaviour of this hook's git rule (the old `SEG`, added for SHOULD FIX 1) and
|
|
141
|
+
# is retained only so this change moves no git verdict. `{` and the
|
|
142
|
+
# then/do/else keywords are new to the git rule and ARE from GITSEG; dropping
|
|
143
|
+
# `{` alone kills 1 test, dropping the backtick alone kills 2.
|
|
144
|
+
#
|
|
145
|
+
# Prose like "planned a git merge" or "first cd /etc" has a plain space before
|
|
146
|
+
# the verb, matches neither anchor, and stays allowed.
|
|
147
|
+
#
|
|
148
|
+
# WRAPPRE — an optional run of things a shell allows between the segment start
|
|
149
|
+
# and the actual command: leading redirections (`2>/dev/null `, `>out `),
|
|
150
|
+
# inline env-var assignments (`FOO=1 `, and repeats), and launcher/wrapper words
|
|
151
|
+
# that exec their argv (`sudo`, `env`, `nice`, `nohup`, `time`, `timeout`,
|
|
152
|
+
# `ionice`, `stdbuf`, `command`, `xargs`, `setsid`, `doas`, `nsenter`, with an
|
|
153
|
+
# optional numeric arg like `timeout 5`). Without this run, `FOO=1 cd /etc`,
|
|
154
|
+
# `env cd /etc`, `2>/dev/null cd /etc` and `sudo git -C <path> checkout main`
|
|
155
|
+
# all slipped past the anchor (verified bypasses, #4569). `echo` is deliberately
|
|
156
|
+
# NOT a wrapper word, so `echo "; cd /etc"` gains no new match from this.
|
|
157
|
+
#
|
|
158
|
+
# KNOWN GAP, declined for this change and inherited from GITSEG (SF-4/SF-5,
|
|
159
|
+
# security review #4569): a wrapper word carrying its OWN options escapes
|
|
160
|
+
# (`sudo -u root git checkout main`, `env -i cd /etc`,
|
|
161
|
+
# `timeout --preserve-status 5 …`), as do the shell builtins `exec`, `builtin`
|
|
162
|
+
# and `pushd` (`builtin cd /etc`). The identical gap exists in
|
|
163
|
+
# git-mutation-guard.sh, so closing it properly means changing both hooks with a
|
|
164
|
+
# false-positive corpus for each. Filed as follow-up, not bolted on here.
|
|
165
|
+
CDANCHOR='(^|[;&|({`]|\s(then|do|else)\s)\s*'
|
|
166
|
+
GITANCHOR='(^|[;&|({`$]|\s(then|do|else)\s)\s*'
|
|
167
|
+
WRAPPRE='([0-9]*[<>][^[:space:]]*\s+|[A-Za-z_][A-Za-z0-9_]*=[^[:space:];&|]*\s+|(sudo|env|nice|nohup|time|timeout|ionice|stdbuf|command|xargs|setsid|doas|nsenter)\s+([0-9]+\s+)?)*'
|
|
168
|
+
|
|
92
169
|
# ============================================================
|
|
93
170
|
# Rule 1: Block cd to paths outside worktree
|
|
94
171
|
# ============================================================
|
|
95
172
|
# FALSE-POSITIVE HARDENING (#3909): a `cd` only counts as real navigation when
|
|
96
|
-
# it STARTS a command segment (CDSEG:
|
|
97
|
-
#
|
|
98
|
-
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
# path is harmless (it would just fail), and this is what removes the
|
|
173
|
+
# it STARTS a command segment (CDSEG: CDANCHOR + the optional WRAPPRE run
|
|
174
|
+
# above) — the same segment-anchor approach as git-mutation-guard.sh's GITSEG.
|
|
175
|
+
# Applied to the already-heredoc-stripped SCAN. In ADDITION, an absolute target
|
|
176
|
+
# that is not a directory ON THE LOCAL FILESYSTEM is ignored: a cd to a
|
|
177
|
+
# locally-nonexistent path is harmless (it would just fail), and this removes the
|
|
102
178
|
# remote-payload false-positive class — the `cd` runs on a REMOTE host, not
|
|
103
179
|
# here. Examples that must NOT block:
|
|
104
180
|
# az vm run-command ... --scripts 'bash -c "... ; cd /home/azureuser/app ; ..."'
|
|
@@ -107,12 +183,56 @@ SCAN=$(printf '%s' "$COMMAND" | strip_heredocs)
|
|
|
107
183
|
# Relative paths already fail open this way (empty RESOLVED below); this makes
|
|
108
184
|
# absolute-path handling consistent. A REAL `cd /etc && ...` at a segment start
|
|
109
185
|
# that resolves to an existing local dir outside the worktree still blocks.
|
|
110
|
-
|
|
186
|
+
#
|
|
187
|
+
# ACCEPTED RESIDUAL, deliberate — the backtick alternative in CDANCHOR (security
|
|
188
|
+
# review, #4569): keeping the backtick is worth 2 real detections
|
|
189
|
+
# (`` `cd /etc && ls` `` as a genuine command substitution), but a backtick is
|
|
190
|
+
# also markdown's code-span delimiter, so prose that quotes a command in a code
|
|
191
|
+
# span now blocks:
|
|
192
|
+
# gh pr create --body 'the command `cd /etc && ls` is blocked'
|
|
193
|
+
# The workaround is `--body-file`, which is already the documented answer for
|
|
194
|
+
# this hook family's prose false positives (KI-130-GUARD-QUOTESTRIP-DRIFT).
|
|
195
|
+
# Pinned by a test — see the "accepted residual" assertions in
|
|
196
|
+
# worktree-guard.test.sh. The durable fix is backporting
|
|
197
|
+
# git-mutation-guard.sh's `strip_sink_quotes` (#3938), which worktree-guard
|
|
198
|
+
# never received; filed as follow-up, out of scope here.
|
|
199
|
+
CDSEG="${CDANCHOR}${WRAPPRE}"
|
|
111
200
|
|
|
112
201
|
if echo "$SCAN" | grep -qE "${CDSEG}cd\s+"; then
|
|
113
202
|
# Extract cd target(s) that appear at a command-segment start only. The
|
|
114
203
|
# grep match may carry a leading separator/keyword prefix; strip everything
|
|
115
204
|
# up to and including the anchored `cd ` token, then strip surrounding quotes.
|
|
205
|
+
#
|
|
206
|
+
# ACCEPTED RESIDUAL, deliberate — the capture stops at `; & | < >` and NOT at
|
|
207
|
+
# `)` (SF-6 was proposed and REVERTED, #4569). Excluding `)` would make a bare
|
|
208
|
+
# subshell `(cd /etc)` block, because the target would come out as `/etc`
|
|
209
|
+
# instead of `/etc)` and pass the `-d` existence test below. It is not
|
|
210
|
+
# excluded, because that is the SAME trade already decided the other way for
|
|
211
|
+
# the checkout-main trailing boundary ~140 lines down: CDANCHOR treats a
|
|
212
|
+
# literal `(` as a subshell start regardless of quoting, so making `)` a
|
|
213
|
+
# terminator turns any parenthetical in prose into a command. Taking opposite
|
|
214
|
+
# sides of one trade in one file is how a guard becomes impossible to reason
|
|
215
|
+
# about, so both sides now match.
|
|
216
|
+
#
|
|
217
|
+
# What excluding `)` would have cost, measured — all previously allowed:
|
|
218
|
+
# git commit -m 'fix: close the (cd /etc) subshell hole'
|
|
219
|
+
# gh pr create --body "the bypass (cd /workspace) is now closed"
|
|
220
|
+
# echo "(cd /workspace/cli)"
|
|
221
|
+
# Note the first and third: `--body-file`, the workaround for this hook's
|
|
222
|
+
# other prose residuals, does NOT exist for `git commit -m` or `echo`.
|
|
223
|
+
#
|
|
224
|
+
# What it would have bought: exactly one shape — a bare `(cd /etc)` that
|
|
225
|
+
# changes directory and does nothing else, which is inert on its own. Anything
|
|
226
|
+
# with a second command still blocks, because `;` `&` `|` terminate the
|
|
227
|
+
# capture: `(cd /etc && ls)`, `(cd /etc; ls)` and `{ cd /etc; }` are all
|
|
228
|
+
# caught. Pinned by tests on both sides — the bare form asserted allowed as a
|
|
229
|
+
# declared residual, the compound forms asserted blocked so it stays bounded.
|
|
230
|
+
#
|
|
231
|
+
# `}` is likewise not excluded. Doing so would truncate `cd "${WT}/cli"` to
|
|
232
|
+
# `${WT`, which resolves empty and is skipped — a FAIL-OPEN, not a false
|
|
233
|
+
# positive. It is unnecessary regardless: a brace group must terminate on `;`,
|
|
234
|
+
# a newline or `&` before its closing `}`, so all brace-group forms already
|
|
235
|
+
# block on that separator.
|
|
116
236
|
CD_TARGETS=$(echo "$SCAN" | grep -oE "${CDSEG}cd\s+[^;&|<>]+" \
|
|
117
237
|
| sed -E 's/^.*\bcd[[:space:]]+//' \
|
|
118
238
|
| tr -d '"'"'"'`' || true)
|
|
@@ -186,15 +306,98 @@ fi
|
|
|
186
306
|
# (Belt-and-suspenders with settings.json deny rules)
|
|
187
307
|
# ============================================================
|
|
188
308
|
|
|
189
|
-
# Segment anchor:
|
|
190
|
-
# ; & | (which cover ; && || and pipe/background),
|
|
191
|
-
# inside a subshell `(git ...)`,
|
|
192
|
-
# substitution `$(git ...)` is still
|
|
193
|
-
# "planned a git merge" has a plain space
|
|
194
|
-
|
|
309
|
+
# Segment anchor: GITANCHOR (defined above) — ^ or right after a separator.
|
|
310
|
+
# Besides ; & | (which cover ; && || and pipe/background), it includes ( { ` and
|
|
311
|
+
# $ so a git op inside a subshell `(git ...)`, a brace group `{ git ...; }`,
|
|
312
|
+
# backticks `` `git ...` ``, or command substitution `$(git ...)` is still
|
|
313
|
+
# caught (SHOULD FIX 1). Prose like "planned a git merge" has a plain space
|
|
314
|
+
# before "git" and stays allowed.
|
|
315
|
+
#
|
|
316
|
+
# GIT GLOBAL OPTIONS between `git` and the verb are consumed by GOPT (#4569,
|
|
317
|
+
# backported verbatim from git-mutation-guard.sh's GITSEG, #3934). git accepts
|
|
318
|
+
# global options before the subcommand — `-C <path>`, `-c <name>=<value>`,
|
|
319
|
+
# `--git-dir[=| ]<p>`, `--work-tree[=| ]<p>`, `--namespace`, `--super-prefix`,
|
|
320
|
+
# `--no-pager`, and other single/double-dash forms with or without values.
|
|
321
|
+
# Without GOPT, `git -C <other-worktree> checkout main` and
|
|
322
|
+
# `git --git-dir=… --work-tree=… <verb>` bypassed all four rules below entirely
|
|
323
|
+
# (verified, #4569) — which is exactly the isolation escape the rules exist to
|
|
324
|
+
# stop. `-C`/`-c`/the enumerated value-taking long options consume their
|
|
325
|
+
# following value; a generic `--long`/`--long=val`/`-x` handles the no-value
|
|
326
|
+
# forms. git rejects the glued/`=` short forms (`-C/path`, `-C=path`,
|
|
327
|
+
# `-cfoo=1` — all "unknown option"), so requiring `\s+` after `-C`/`-c` is
|
|
328
|
+
# complete, not a gap. A `-C` path containing spaces inside quotes is NOT
|
|
329
|
+
# matched (the value alternatives are whitespace-delimited); no worktree path in
|
|
330
|
+
# this repo has spaces, and widening to quote-aware value parsing is the
|
|
331
|
+
# false-positive risk this hook family has already regressed on twice.
|
|
332
|
+
#
|
|
333
|
+
# SCOPE (Red Team ruling, #4569): this hardening applies to the four existing
|
|
334
|
+
# rules only — switch-to-main, branch creation, merge, push-to-main. It does NOT
|
|
335
|
+
# make worktree-guard inspect arbitrary write-capable commands (`cp`, `mv`,
|
|
336
|
+
# `rm`, `tee`, `sed -i`, `rsync`, …) for out-of-worktree absolute paths; that
|
|
337
|
+
# set cannot be enumerated and was explicitly descoped.
|
|
338
|
+
GOPT='(\s+(-C\s+[^[:space:];&|]+|-c\s+[^[:space:];&|]+|--(git-dir|work-tree|namespace|super-prefix)(=[^[:space:];&|]*|\s+[^[:space:];&|]+)|--[A-Za-z][A-Za-z0-9-]*=[^[:space:];&|]*|--[A-Za-z][A-Za-z0-9-]*|-[A-Za-z]))*\s+'
|
|
339
|
+
SEG="${GITANCHOR}${WRAPPRE}git${GOPT}"
|
|
195
340
|
|
|
196
|
-
# Block checkout to main
|
|
197
|
-
|
|
341
|
+
# Block checkout to main.
|
|
342
|
+
# TRAILING BOUNDARY (#4569, found by re-running the repro against the prefix
|
|
343
|
+
# fix — NOT part of the GITSEG backport): the boundary after `main` used to be
|
|
344
|
+
# `(\s|$)`, which meant a branch name followed directly by a SEPARATOR rather
|
|
345
|
+
# than a space was not a match — `git checkout main; npm test`,
|
|
346
|
+
# `git checkout main&&ls`, `{ git checkout main; }` and
|
|
347
|
+
# `git checkout main>/dev/null` were all allowed, while
|
|
348
|
+
# `git checkout main && ls` was blocked. Hardening only the prefix would have
|
|
349
|
+
# left the most obvious of those escapes available for the cost of one
|
|
350
|
+
# character, which is why the boundary is widened to the separator set as well.
|
|
351
|
+
# It does NOT make the rule airtight, and no claim here should be read that way:
|
|
352
|
+
# `git checkout "main"` (quoted branch name) still escapes, because the
|
|
353
|
+
# character after `checkout ` is a quote and the pattern wants `main` there.
|
|
354
|
+
# That is a known residual of a guardrail, not a boundary.
|
|
355
|
+
#
|
|
356
|
+
# The set is deliberately narrow: whitespace, end-of-string, the three
|
|
357
|
+
# separators that can legally follow a bare word with no space — `;` `&` `|` —
|
|
358
|
+
# and the two redirection operators `<` `>` (SF-2, #4569:
|
|
359
|
+
# `git checkout main>/dev/null`, `git switch main>/tmp/o` and
|
|
360
|
+
# `git checkout main>&2` are all working commands that switch to main, and a
|
|
361
|
+
# sentence almost never puts `>` straight after the bare word "main").
|
|
362
|
+
# Two characters were tried and REMOVED, each for a measured false positive:
|
|
363
|
+
#
|
|
364
|
+
# `)` and `}` (QA finding, Major, #4569). GITANCHOR treats a literal `(` as a
|
|
365
|
+
# subshell start regardless of quoting — pre-existing, shared with the merge
|
|
366
|
+
# and push rules, accepted there. Adding `)` as a terminator combined with
|
|
367
|
+
# that to make any quoted sentence closing a parenthetical right after the
|
|
368
|
+
# word "main" read as a real command: `gh pr create --body "Before this
|
|
369
|
+
# change, running (git checkout main) from another worktree succeeded
|
|
370
|
+
# silently."` blocked. That is the sentence someone writes to DESCRIBE this
|
|
371
|
+
# fix, so the changelog author would have been the first to hit it.
|
|
372
|
+
#
|
|
373
|
+
# Any non-branch-name character (i.e. including quotes). That blocks prose
|
|
374
|
+
# ENDING on the verb, e.g.
|
|
375
|
+
# `mx memories create --content "...; git checkout main"`.
|
|
376
|
+
#
|
|
377
|
+
# ACCEPTED RESIDUAL, deliberate: a genuine subshell `(git checkout main)` is
|
|
378
|
+
# therefore ALLOWED. Nobody wraps a checkout in a subshell for any real reason,
|
|
379
|
+
# whereas writing `(git checkout main)` in prose is routine. This guard is a
|
|
380
|
+
# guardrail against accidents, not a security boundary (PO ruling 2026-07-06,
|
|
381
|
+
# bypassable by design), so trading a near-never real shape for a near-certain
|
|
382
|
+
# false positive is the correct side of that trade and matches this hook
|
|
383
|
+
# family's documented failure mode (#3909). Pinned by a test — see the
|
|
384
|
+
# "accepted residual" assertions in worktree-guard.test.sh.
|
|
385
|
+
#
|
|
386
|
+
# ACCEPTED RESIDUAL, deliberate — the `;` in the set (SF-1, #4569). Prose that
|
|
387
|
+
# documents a git SEQUENCE with `;` separators newly blocks where it did not
|
|
388
|
+
# before, e.g.
|
|
389
|
+
# gh issue comment --body "we saw { git checkout main; } slip through"
|
|
390
|
+
# mx memories create --content "steps: cd repo; git checkout main; npm test"
|
|
391
|
+
# That is again the shape of a sentence describing this very fix. It is kept
|
|
392
|
+
# because `;` closes a real bypass that costs one character to use, and the
|
|
393
|
+
# workaround is `--body-file` — the same documented answer as for the backtick
|
|
394
|
+
# residual above. Pinned by tests so the trade stays visible.
|
|
395
|
+
#
|
|
396
|
+
# `{ git checkout main; }` still blocks: the character after `main` there is
|
|
397
|
+
# `;`, not `}`. A longer branch name that merely starts with "main"
|
|
398
|
+
# (`maintenance`, `main-fix`, `main/topic`) still does not match, because
|
|
399
|
+
# neither a letter, `-` nor `/` is in the set.
|
|
400
|
+
if echo "$SCAN" | grep -qE "${SEG}(checkout|switch)\s+main([[:space:];&|<>]|$)"; then
|
|
198
401
|
{
|
|
199
402
|
echo ""
|
|
200
403
|
echo "BLOCKED: Cannot switch to main branch"
|
|
@@ -208,7 +411,7 @@ if echo "$SCAN" | grep -qE "${SEG}git\s+(checkout|switch)\s+main(\s|$)"; then
|
|
|
208
411
|
fi
|
|
209
412
|
|
|
210
413
|
# Block checkout -b (new branch creation)
|
|
211
|
-
if echo "$SCAN" | grep -qE "${SEG}
|
|
414
|
+
if echo "$SCAN" | grep -qE "${SEG}(checkout\s+-b|switch\s+(-c|--create))"; then
|
|
212
415
|
{
|
|
213
416
|
echo ""
|
|
214
417
|
echo "BLOCKED: Cannot create new branches"
|
|
@@ -226,7 +429,7 @@ fi
|
|
|
226
429
|
# `git rebase origin/main`, not merge. The block-report on 2026-07-06 was that
|
|
227
430
|
# the reason was invisible (message went to stdout); routing to stderr fixes the
|
|
228
431
|
# "blocked with no explanation" symptom.
|
|
229
|
-
if echo "$SCAN" | grep -qE "${SEG}
|
|
432
|
+
if echo "$SCAN" | grep -qE "${SEG}merge\s"; then
|
|
230
433
|
{
|
|
231
434
|
echo ""
|
|
232
435
|
echo "BLOCKED: Cannot merge branches directly"
|
|
@@ -240,7 +443,7 @@ if echo "$SCAN" | grep -qE "${SEG}git\s+merge\s"; then
|
|
|
240
443
|
fi
|
|
241
444
|
|
|
242
445
|
# Block push to main
|
|
243
|
-
if echo "$SCAN" | grep -qE "${SEG}
|
|
446
|
+
if echo "$SCAN" | grep -qE "${SEG}push\s+.*\s*origin\s+main"; then
|
|
244
447
|
{
|
|
245
448
|
echo ""
|
|
246
449
|
echo "BLOCKED: Cannot push to main"
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface BootstrapOptions {
|
|
16
16
|
projectSlug?: string;
|
|
17
|
+
/** Rollback override for the behavioral-block contract (#4541); forwarded to runCreate. */
|
|
18
|
+
allowMissingBehavioralMarkers?: boolean;
|
|
17
19
|
}
|
|
18
20
|
export declare function runBootstrap(options?: BootstrapOptions): Promise<void>;
|
|
19
21
|
//# sourceMappingURL=bootstrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAeH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAeH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2FAA2F;IAC3F,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAgDD,wBAAsB,YAAY,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoGhF"}
|
|
@@ -110,6 +110,16 @@ export async function runBootstrap(options = {}) {
|
|
|
110
110
|
console.log(chalk.green(' ✓ wrote ') + chalk.dim(roleguideAbsPath));
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
|
+
// NOTE (#4541): an existing team-builder.md predating the behavioral markers
|
|
114
|
+
// will be REFUSED by the provisioning contract below. Bootstrap does not
|
|
115
|
+
// rewrite it — an earlier revision of this change self-healed by copying the
|
|
116
|
+
// old file to a predictable `.bak` path and writing the bundled copy over the
|
|
117
|
+
// original, which security review demonstrated as an arbitrary-file-overwrite
|
|
118
|
+
// primitive (the copy followed a symlinked destination, and
|
|
119
|
+
// `.claude/settings.json` was a reachable target). The write surface is gone.
|
|
120
|
+
// The documented way through is `--allow-missing-behavioral-markers`, which
|
|
121
|
+
// this command now accepts and forwards to runCreate; the durable fix is to
|
|
122
|
+
// add the two markers to the file.
|
|
113
123
|
console.log(chalk.dim(' · exists ') + chalk.dim(roleguideAbsPath));
|
|
114
124
|
}
|
|
115
125
|
console.log();
|
|
@@ -134,7 +144,11 @@ export async function runBootstrap(options = {}) {
|
|
|
134
144
|
else {
|
|
135
145
|
console.log(chalk.bold(' Provisioning team-builder...'));
|
|
136
146
|
console.log();
|
|
137
|
-
await runCreate({
|
|
147
|
+
await runCreate({
|
|
148
|
+
roleguide: roleguideRelPath,
|
|
149
|
+
name: BOOTSTRAP_SLUG,
|
|
150
|
+
allowMissingBehavioralMarkers: options.allowMissingBehavioralMarkers,
|
|
151
|
+
});
|
|
138
152
|
console.log();
|
|
139
153
|
}
|
|
140
154
|
// ── 5. Start team-builder session ────────────────────────────────────
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAA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CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;IAErE,wEAAwE;IACxE,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,WAAW,EAAE,cAAc,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACxF,IAAI,gBAAgB,EAAE,CAAC;QACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,6CAA6C,gBAAgB,EAAE,CAAC,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,gDAAgD,CAAC,CAAC,CAAC;QACzE,OAAO,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,MAAM,SAAS,CAAC;YACd,SAAS,EAAE,gBAAgB;YAC3B,IAAI,EAAE,cAAc;YACpB,6BAA6B,EAAE,OAAO,CAAC,6BAA6B;SACrE,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;IAED,wEAAwE;IACxE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -9,6 +9,194 @@ export interface CreateOptions {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
/** Override project root (used when calling from `new project` where cwd differs from output dir). */
|
|
11
11
|
projectRoot?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Documented rollback escape hatch for the behavioral-block contract (#4541).
|
|
14
|
+
* Downgrades the provisioning refusal to a loud warning. Use only when the
|
|
15
|
+
* contract itself is being rolled back — a team provisioned with this flag
|
|
16
|
+
* runs with no every-turn behavioral reinforcement.
|
|
17
|
+
*/
|
|
18
|
+
allowMissingBehavioralMarkers?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Re-anchor a validated source path under a destination root, and refuse if the
|
|
22
|
+
* result escapes it.
|
|
23
|
+
*
|
|
24
|
+
* MUST FIX, #4541 security review round 4 (pre-existing defect, tracked as #4571).
|
|
25
|
+
* The step-6b copy derived its destination from the RAW OPERATOR STRING:
|
|
26
|
+
*
|
|
27
|
+
* const dest = join(worktreePath, roleguide); // roleguide is user input
|
|
28
|
+
*
|
|
29
|
+
* `join` normalises `..` rather than rejecting it, so
|
|
30
|
+
* `--roleguide ../victim-team/.git/hooks/pre-commit` writes OUTSIDE the new
|
|
31
|
+
* worktree and into another team's worktree — violating the standing rule that no
|
|
32
|
+
* team touches another team's worktree, and, because `copyFileSync` preserved
|
|
33
|
+
* source mode, landing as an EXECUTABLE git hook that runs on the victim's next
|
|
34
|
+
* commit. Source containment does not help: a team-builder plants the payload in
|
|
35
|
+
* its own tree, which is a legitimately allowed root.
|
|
36
|
+
*
|
|
37
|
+
* The destination is therefore never built from operator input. It is built from
|
|
38
|
+
* the source path's position RELATIVE TO THE ROOT IT WAS VALIDATED UNDER, and the
|
|
39
|
+
* re-anchored result is verified to stay inside the realpath'd destination root.
|
|
40
|
+
*/
|
|
41
|
+
declare function reanchorContained(srcRoot: string, srcAbsPath: string, destRoot: string): {
|
|
42
|
+
ok: true;
|
|
43
|
+
dest: string;
|
|
44
|
+
rel: string;
|
|
45
|
+
} | {
|
|
46
|
+
ok: false;
|
|
47
|
+
detail: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Create the parent directory of `dest`, confirm it still resolves inside
|
|
51
|
+
* `realDestRoot`, then create `dest` EXCLUSIVELY and write `bytes` to it as a
|
|
52
|
+
* non-executable regular file.
|
|
53
|
+
*
|
|
54
|
+
* THREE separate protections, each closing a case the others do not:
|
|
55
|
+
*
|
|
56
|
+
* 1. POST-MKDIR RE-VERIFICATION — `mkdirSync` follows a symlinked component
|
|
57
|
+
* happily, so containment is re-checked against the physical parent that
|
|
58
|
+
* actually exists before anything is written.
|
|
59
|
+
*
|
|
60
|
+
* 2. O_EXCL | O_NOFOLLOW ON THE FINAL COMPONENT (#4541 review round 5, MUST FIX).
|
|
61
|
+
* The previous `writeFileSync(finalDest, ...)` opened with `O_CREAT` and
|
|
62
|
+
* neither flag, so a symlink AT THE FINAL COMPONENT was followed. Both
|
|
63
|
+
* `pathIsInside` checks pass in that case — the lexical path is inside the
|
|
64
|
+
* root, only the resolution escapes — and the file lands wherever the link
|
|
65
|
+
* points. `O_NOFOLLOW` makes the kernel refuse (ELOOP) instead; `O_EXCL`
|
|
66
|
+
* makes creation atomic, so the check and the create are one syscall and a
|
|
67
|
+
* link planted after an earlier check cannot be raced into.
|
|
68
|
+
*
|
|
69
|
+
* The `existsSync` skip guards at the call sites are NOT this control and
|
|
70
|
+
* never were: `existsSync` FOLLOWS the link, so a DANGLING symlink returns
|
|
71
|
+
* false and execution proceeds straight to the write. `EEXIST` from this
|
|
72
|
+
* open is the control.
|
|
73
|
+
*
|
|
74
|
+
* Reachability is concrete, not theoretical: the destination worktree is
|
|
75
|
+
* created at step 4 and written at step 6b, with `fetchOrigin` and
|
|
76
|
+
* `syncClaudeConfig` — two network round-trips — in between; both the
|
|
77
|
+
* worktree path and the relative destination are deterministic; and
|
|
78
|
+
* `.worktrees/` is writable by every agent in the fleet. Note that the usual
|
|
79
|
+
* "an attacker who can write here could edit the file anyway" argument does
|
|
80
|
+
* NOT apply: the attacker writes into the brand-new, unowned destination
|
|
81
|
+
* worktree and uses it to escape to a THIRD location, which implies nothing
|
|
82
|
+
* about rights over the victim.
|
|
83
|
+
*
|
|
84
|
+
* 3. MODE FIXED AT 0644, never inherited. `copyFileSync` propagates the source
|
|
85
|
+
* file's mode, so a 0755 source — trivial for an attacker who controls a file
|
|
86
|
+
* in their own worktree — turns any path defect into code execution. A
|
|
87
|
+
* roleguide and a catalog entry are documentation; neither is executable.
|
|
88
|
+
*
|
|
89
|
+
* RESIDUAL — this list is not complete protection, and saying so is the point.
|
|
90
|
+
* `O_NOFOLLOW` guards the FINAL COMPONENT ONLY. Intermediate components of
|
|
91
|
+
* `realParent` that are swapped between the `realpathSync` above and the `openSync`
|
|
92
|
+
* below are still followed: the resolution and the open are separate syscalls on a
|
|
93
|
+
* path, and Node has no `openat`, so the window is not closable in pure Node. The
|
|
94
|
+
* same residual is stated for the READ path in behavioral-injection.ts, and the
|
|
95
|
+
* same conditional argument applies — winning the race needs write access to a
|
|
96
|
+
* directory inside the destination root, which for a freshly created worktree
|
|
97
|
+
* means an agent that can already write there. Ancestor containment is verified
|
|
98
|
+
* before `mkdirSync` and again after it, which narrows but does not remove it.
|
|
99
|
+
*
|
|
100
|
+
* Do not re-describe these as complete. A comment that lists protections while
|
|
101
|
+
* omitting a known residual is how the next refactor loses it.
|
|
102
|
+
*/
|
|
103
|
+
declare function writeContained(dest: string, realDestRoot: string, bytes: string): {
|
|
104
|
+
ok: true;
|
|
105
|
+
} | {
|
|
106
|
+
ok: false;
|
|
107
|
+
detail: string;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Refusal from the provisioning behavioral-block contract.
|
|
111
|
+
*
|
|
112
|
+
* A THROW, not a `process.exit` (#4541 security review, MUST FIX 3c).
|
|
113
|
+
* `mx-agent new project` wraps its `runCreate` call in a try/catch precisely so a
|
|
114
|
+
* provisioning failure degrades gracefully — it prints the manual re-run command
|
|
115
|
+
* and leaves the operator with a usable project. `process.exit` walks straight
|
|
116
|
+
* past that handler, and by the time provisioning runs the project directory, git
|
|
117
|
+
* repo, initial commit and possibly a `gh repo create` already exist, so an exit
|
|
118
|
+
* abandons a half-built project with no recovery path printed. The top-level
|
|
119
|
+
* `provision`/`create` actions already catch, print `err.message`, and exit 1 —
|
|
120
|
+
* so the operator-facing behaviour of a direct invocation is unchanged.
|
|
121
|
+
*/
|
|
122
|
+
export declare class BehavioralContractError extends Error {
|
|
123
|
+
readonly code = "behavioral-contract-refused";
|
|
124
|
+
constructor(message: string);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The directories a `--roleguide` argument may resolve inside.
|
|
128
|
+
*
|
|
129
|
+
* EXPLICIT, not implicit, and NOT caller-chosen (#4541 security review rounds 3
|
|
130
|
+
* and 4). Two roots, both anchored to project configuration:
|
|
131
|
+
*
|
|
132
|
+
* 1. The PROJECT ROOT — where a committed roleguide lives.
|
|
133
|
+
* 2. The git worktree ENCLOSING the caller's cwd, and only when that worktree
|
|
134
|
+
* sits inside the project's own worktree directory. This is the documented
|
|
135
|
+
* team-builder Step 6a flow (`team-builder.md:371`): the builder drafts a
|
|
136
|
+
* roleguide in its own worktree and provisions from there, before the file
|
|
137
|
+
* reaches the base branch. That flow needs exactly ONE extra root — the
|
|
138
|
+
* team-builder's worktree — not any directory on the filesystem.
|
|
139
|
+
*
|
|
140
|
+
* A previous revision used `process.cwd()` itself as root 2 and its comment
|
|
141
|
+
* claimed a path outside both roots "is REFUSED rather than read". That claim was
|
|
142
|
+
* FALSE, and demonstrably so: `cd /tmp/evil && mx-agent provision --roleguide
|
|
143
|
+
* /tmp/evil/rg.md` satisfied containment because the caller chose the directory
|
|
144
|
+
* that authorised it. A root the attacker selects is not a boundary. Anchoring to
|
|
145
|
+
* the project's worktree directory makes the set of acceptable roots a property of
|
|
146
|
+
* the project, not of the invocation.
|
|
147
|
+
*
|
|
148
|
+
* FAILS CLOSED: when cwd is not inside a git worktree under `<projectRoot>/<worktreeDir>`,
|
|
149
|
+
* the project root is the only root, and a relative `--roleguide` simply resolves
|
|
150
|
+
* there instead.
|
|
151
|
+
*/
|
|
152
|
+
declare function allowedRoleguideRoots(projectRoot: string, worktreeDir: string): string[];
|
|
153
|
+
/**
|
|
154
|
+
* PROVISIONING-TIME BEHAVIORAL-BLOCK CONTRACT (#4541) — the primary control.
|
|
155
|
+
*
|
|
156
|
+
* A team's `CLAUDE.local.md` (re-injected every conversation turn) is generated
|
|
157
|
+
* from the roleguide content between `<!-- behavioral-start -->` and
|
|
158
|
+
* `<!-- behavioral-end -->`. With no block, the generator ships an isolation-only
|
|
159
|
+
* file and the team runs with no prior-art gate, decision authority, delegation
|
|
160
|
+
* limits, or stop conditions. Eval was provisioned that way on 2026-06-28 and ran
|
|
161
|
+
* for four weeks before anyone noticed, because the only signal was a stderr line.
|
|
162
|
+
*
|
|
163
|
+
* The root cause is a provisioning hole, not a botched sweep: PR #3539 tagged
|
|
164
|
+
* every roleguide that existed at the time, and nothing re-triggers tagging for a
|
|
165
|
+
* team provisioned after that sweep. So the check belongs HERE — at the one
|
|
166
|
+
* moment a human is looking — and it REFUSES rather than warns.
|
|
167
|
+
*
|
|
168
|
+
* Runs before any worktree, branch, memory, or catalog entry is created, so a
|
|
169
|
+
* refusal leaves nothing to clean up. `--allow-missing-behavioral-markers` is the
|
|
170
|
+
* documented rollback path and downgrades this to a warning; it is plumbed
|
|
171
|
+
* through EVERY caller of runCreate (`provision`, `create`, `bootstrap`,
|
|
172
|
+
* `new project`) so the advertised override actually reaches the path that needs
|
|
173
|
+
* it — KI-GUARD-OVERRIDE-UNREACHABLE (#4500) is an open known issue against
|
|
174
|
+
* another guard that shipped an override registered on only some entry points.
|
|
175
|
+
*
|
|
176
|
+
* Throws BehavioralContractError on refusal; returns the validated absolute
|
|
177
|
+
* roleguide path on success (or when overridden), which the caller then uses for
|
|
178
|
+
* everything else.
|
|
179
|
+
*/
|
|
180
|
+
export interface ValidatedRoleguide {
|
|
181
|
+
/** Physical absolute path, parent-resolved, final component left as named. */
|
|
182
|
+
absPath: string;
|
|
183
|
+
/** The allowed root `absPath` was found under — the anchor for any re-anchoring. */
|
|
184
|
+
root: string;
|
|
185
|
+
/** Complete file bytes as read from the validated descriptor; null if unreadable. */
|
|
186
|
+
raw: string | null;
|
|
12
187
|
}
|
|
13
188
|
export declare function runCreate(options: CreateOptions): Promise<void>;
|
|
189
|
+
/**
|
|
190
|
+
* Test-only surface for the two filesystem-containment helpers.
|
|
191
|
+
*
|
|
192
|
+
* Exported so the containment property can be asserted against the REAL
|
|
193
|
+
* filesystem (was a byte written outside the destination root?) rather than
|
|
194
|
+
* inferred from a refusal message. Not part of the command API.
|
|
195
|
+
*/
|
|
196
|
+
export declare const __testing: {
|
|
197
|
+
reanchorContained: typeof reanchorContained;
|
|
198
|
+
writeContained: typeof writeContained;
|
|
199
|
+
allowedRoleguideRoots: typeof allowedRoleguideRoots;
|
|
200
|
+
};
|
|
201
|
+
export {};
|
|
14
202
|
//# sourceMappingURL=create.d.ts.map
|