@memnexus-ai/mx-agent-cli 0.1.265 → 0.1.267
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__/runtime-codex-adapter.test.js +18 -5
- package/dist/__tests__/runtime-codex-adapter.test.js.map +1 -1
- package/dist/__tests__/runtime-codex-config.test.js +430 -15
- package/dist/__tests__/runtime-codex-config.test.js.map +1 -1
- package/dist/__tests__/runtime-codex-guard-proof.test.d.ts +2 -0
- package/dist/__tests__/runtime-codex-guard-proof.test.d.ts.map +1 -0
- package/dist/__tests__/runtime-codex-guard-proof.test.js +747 -0
- package/dist/__tests__/runtime-codex-guard-proof.test.js.map +1 -0
- package/dist/__tests__/start-runtime-wiring.test.js +91 -2
- package/dist/__tests__/start-runtime-wiring.test.js.map +1 -1
- package/dist/commands/codex-prove-guards.d.ts +62 -0
- package/dist/commands/codex-prove-guards.d.ts.map +1 -0
- package/dist/commands/codex-prove-guards.js +353 -0
- package/dist/commands/codex-prove-guards.js.map +1 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +27 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/runtime/codex-adapter.d.ts +42 -2
- package/dist/lib/runtime/codex-adapter.d.ts.map +1 -1
- package/dist/lib/runtime/codex-adapter.js +81 -9
- package/dist/lib/runtime/codex-adapter.js.map +1 -1
- package/dist/lib/runtime/codex-config.d.ts +122 -4
- package/dist/lib/runtime/codex-config.d.ts.map +1 -1
- package/dist/lib/runtime/codex-config.js +292 -23
- package/dist/lib/runtime/codex-config.js.map +1 -1
- package/dist/lib/runtime/codex-guard-proof.d.ts +127 -0
- package/dist/lib/runtime/codex-guard-proof.d.ts.map +1 -0
- package/dist/lib/runtime/codex-guard-proof.js +372 -0
- package/dist/lib/runtime/codex-guard-proof.js.map +1 -0
- package/package.json +1 -1
|
@@ -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AE,CAAC;IACnB,KAAK,EAAE,2BAA2B,CAAC;IACnC,KAAK,EAAE,qBAAqB,EAAE,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,uBAAuB,CA+G1B;AAED,oGAAoG;AACpG,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAE5D"}
|
|
@@ -641,6 +641,75 @@ export function codexAgentGateCommand(provenGuards = []) {
|
|
|
641
641
|
* 2. If nothing resolves, print why and `exit 2` — Codex's block contract (finding 3
|
|
642
642
|
* in the file header). A guard that cannot locate itself refuses the command.
|
|
643
643
|
*
|
|
644
|
+
* ─── THE WALK IS BOUNDED AT A REPOSITORY BOUNDARY (#4852 / SF-27, 2026-08-02) ───
|
|
645
|
+
* Step 1 as first shipped took the NEAREST ancestor holding `.claude/hooks/<script>`.
|
|
646
|
+
* Finding nothing failed closed; finding the WRONG one executed it. Two consequences,
|
|
647
|
+
* both reachable rather than theoretical:
|
|
648
|
+
*
|
|
649
|
+
* a. SHADOWING. Nested agent-worktree debris — `.claude/worktrees/agent-N/.claude/`,
|
|
650
|
+
* measured at 16 nested checkouts in the main repo on 2026-08-01 — carries its own
|
|
651
|
+
* generated `.claude/hooks/`. A Codex session with a working directory inside one
|
|
652
|
+
* resolved that copy first. The realistic harm is a STALE guard, not a hostile one:
|
|
653
|
+
* a copy predating this week still carries every bypass closed since it was made
|
|
654
|
+
* (#4811, #4812, #4814, #4829 — the GIT_EXPERT=1-in-prose override and the
|
|
655
|
+
* `bash -s` heredoc bypass among them). It runs, it exits 0, and nothing says why.
|
|
656
|
+
* b. ESCAPE UPWARD. With an anchor set but hooks not yet deployed under it, the walk
|
|
657
|
+
* continued past the anchor into a PARENT checkout and ran that repository's guard.
|
|
658
|
+
*
|
|
659
|
+
* The bound has three parts, all expressible in the constrained single-quoted body:
|
|
660
|
+
*
|
|
661
|
+
* 1. A trusted anchor short-circuits the walk entirely. CLAUDE_PROJECT_DIR and
|
|
662
|
+
* CLAUDE_WORKTREE_PATH are set by code that already knows the answer, so they are
|
|
663
|
+
* checked ONCE and refused if the guard is not under them. That closes (b): an
|
|
664
|
+
* undeployed anchor now refuses instead of borrowing a parent's copy.
|
|
665
|
+
* 2. Walking accepts a candidate only where a `.git` entry sits at the SAME level.
|
|
666
|
+
* `-e`, not `-d`: a linked worktree has a `.git` FILE, and linked worktrees are the
|
|
667
|
+
* normal case here. The first such directory ends the walk whether or not it holds
|
|
668
|
+
* the guard — that is what makes it a boundary rather than a preference.
|
|
669
|
+
* 3. Any candidate under a `.claude/worktrees/` path segment is skipped outright,
|
|
670
|
+
* without ending the walk. Part 2 alone does not close (a), because nested agent
|
|
671
|
+
* worktrees ARE linked worktrees and do carry a `.git` file; the segment test is
|
|
672
|
+
* what distinguishes debris from a checkout, and skipping rather than breaking is
|
|
673
|
+
* what lets the walk continue up to the canonical root above the debris.
|
|
674
|
+
*
|
|
675
|
+
* Parts 1 and 3 test the path STRING, so the string must be the physical one. `$PWD` is
|
|
676
|
+
* inherited and holds the logical path, which bash keeps across a symlinked cwd; the
|
|
677
|
+
* walk therefore starts from `pwd -P`. See the note above the returned body (SF-1).
|
|
678
|
+
*
|
|
679
|
+
* ─── DIVERGENCE FROM THE #4818 MARKER RULING, STATED ON PURPOSE (SF-2) ───
|
|
680
|
+
* Part 2 accepts a directory because it carries a `.git` marker. `generate-claude.mjs`
|
|
681
|
+
* (SF-13 / SF-14, security review of #4818) considered exactly that and REJECTED it:
|
|
682
|
+
* its destination skip is keyed on NAME + POSITION (`<dest>/worktrees`) precisely
|
|
683
|
+
* because "a marker-keyed skip is writable by anything that can write under
|
|
684
|
+
* `.claude/`" — planting a `.git` file next to a symlink exempted that symlink from the
|
|
685
|
+
* symlink scan. Reusing a marker here therefore needs a reason, not silence.
|
|
686
|
+
*
|
|
687
|
+
* The writability argument does not transfer, for three reasons:
|
|
688
|
+
*
|
|
689
|
+
* • Different threat. There, the marker DECIDED WHAT TO SKIP SCANNING, so planting one
|
|
690
|
+
* bought exemption from a check over content an attacker had also written. Here the
|
|
691
|
+
* marker decides only WHERE THE WALK STOPS. Anyone who can plant `$d/.git` under a
|
|
692
|
+
* directory can equally plant `$d/.claude/hooks/<script>` — they already control the
|
|
693
|
+
* guard body, which is strictly more power than choosing which directory answers.
|
|
694
|
+
* The marker grants nothing its planter does not already have.
|
|
695
|
+
* • The marker is not what carries the load. Parts 1 and 3 do. The anchor
|
|
696
|
+
* short-circuit means a launched session never walks at all, and the segment skip is
|
|
697
|
+
* name-and-position keyed — the same unplantable shape #4818 settled on, and the
|
|
698
|
+
* part that actually closes SF-27. Part 2 narrows the remaining unanchored case; it
|
|
699
|
+
* is not the sole barrier.
|
|
700
|
+
* • Reaching it requires moving the hook process. The walk starts at the hook
|
|
701
|
+
* process's own physical cwd, which is set by the runtime, not by anything an
|
|
702
|
+
* in-session agent can write. Writing a `.git` file does not relocate the cwd, so
|
|
703
|
+
* there is no in-session path from "can write under `.claude/`" to "the walk now
|
|
704
|
+
* starts somewhere my marker wins".
|
|
705
|
+
*
|
|
706
|
+
* If any of those three stops holding — in particular if a future change lets a session
|
|
707
|
+
* choose the hook process's working directory — this predicate must be revisited, and
|
|
708
|
+
* #4818's name+position ruling is the precedent to follow.
|
|
709
|
+
*
|
|
710
|
+
* Still no absolute path, for the reasons below: the predicate is structural, not
|
|
711
|
+
* positional, so the body stays byte-identical in every worktree.
|
|
712
|
+
*
|
|
644
713
|
* NO ABSOLUTE PATH IS BAKED IN, deliberately. The generated `.codex/hooks.json` is
|
|
645
714
|
* byte-identical in every worktree (verified: worktree and /workspace copies share
|
|
646
715
|
* sha256 7a65ab4f…dbf468), and Codex hook trust is keyed on that hash with a human
|
|
@@ -664,26 +733,84 @@ export function codexHookCommand(script) {
|
|
|
664
733
|
// No apostrophes anywhere in the body: it is embedded in a single-quoted shell
|
|
665
734
|
// string and must contain exactly one quoted region (asserted by the S4 tests).
|
|
666
735
|
const refusal = `BLOCKED: mx-agent containment guard ${script} could not be resolved. ` +
|
|
667
|
-
`Looked for ${rel} under CLAUDE_PROJECT_DIR, under CLAUDE_WORKTREE_PATH, and
|
|
668
|
-
`
|
|
669
|
-
`
|
|
670
|
-
`
|
|
671
|
-
`
|
|
672
|
-
|
|
736
|
+
`Looked for ${rel} under CLAUDE_PROJECT_DIR, under CLAUDE_WORKTREE_PATH, and then ` +
|
|
737
|
+
`upward from the working directory as far as the first enclosing repository root, ` +
|
|
738
|
+
`and found none. Nested agent-worktree copies under .claude/worktrees/ are skipped ` +
|
|
739
|
+
`on purpose: they are stale and would run a guard missing every bypass closed since ` +
|
|
740
|
+
`they were copied. Refusing the command: a guard that cannot locate itself must ` +
|
|
741
|
+
`fail closed, never allow. Fix: launch the session with mx-agent start (it sets ` +
|
|
742
|
+
`CLAUDE_PROJECT_DIR), or run from inside the worktree that holds ${rel}.`;
|
|
743
|
+
// The walk stops at a repository boundary (#4852). `a` is the trusted anchor and
|
|
744
|
+
// short-circuits the walk; `d` walks. A candidate is accepted only at a directory
|
|
745
|
+
// that also holds a `.git` entry (file OR dir — linked worktrees have a file), and
|
|
746
|
+
// never at one under a `.claude/worktrees/` segment. See the header comment.
|
|
747
|
+
//
|
|
748
|
+
// `pwd -P`, never `$PWD` (SF-1). Both the segment skip and the header ruling below
|
|
749
|
+
// are LEXICAL tests on the path string, and `$PWD` is an inherited variable holding
|
|
750
|
+
// the LOGICAL path: bash keeps it when it still names the working directory, even
|
|
751
|
+
// through a symlink. A cwd reached by an alias whose logical path omits the
|
|
752
|
+
// `.claude/worktrees/` segment therefore passed the skip, and the debris guard ran —
|
|
753
|
+
// executed, not theorised. `pwd -P` resolves to the physical path via getcwd, so the
|
|
754
|
+
// string the tests are applied to is the one that describes where the process is.
|
|
755
|
+
// The anchor takes the same segment test (SF-4): an anchor pointing INTO debris is
|
|
756
|
+
// never legitimate, and trusting it ran the shadow guard directly.
|
|
757
|
+
//
|
|
758
|
+
// The anchor pattern carries a second alternative (SF-9). `*/.claude/worktrees/*`
|
|
759
|
+
// requires a literal slash before `.claude`, so a BARE-RELATIVE anchor —
|
|
760
|
+
// `.claude/worktrees/agent-X`, resolved against the cwd — did not match it and the
|
|
761
|
+
// shadow guard ran. Anchors come from the environment, which this code does not get
|
|
762
|
+
// to constrain, so the anchor test must cover both spellings.
|
|
763
|
+
//
|
|
764
|
+
// ANCHORS ARE PHYSICALLY RESOLVED FIRST (Codex differential, Medium). The segment
|
|
765
|
+
// test is lexical, so it was being applied to whatever string the environment
|
|
766
|
+
// supplied. An anchor that was a SYMLINK to a debris directory carries no
|
|
767
|
+
// `.claude/worktrees/` segment in its own path, passed the pattern, and then
|
|
768
|
+
// `[ -f "$a/<rel>" ]` followed the link and ran the shadow guard. That is the same
|
|
769
|
+
// logical-vs-physical asymmetry SF-1 fixed for the walk, left behind on the anchor:
|
|
770
|
+
// the walk normalised, the anchor did not. `cd -P -- "$a" && pwd -P` closes it.
|
|
771
|
+
// `-P` resolves symlinks during the cd itself; `--` stops an anchor beginning with a
|
|
772
|
+
// dash being read as an option to cd. After this, `$a` is always absolute, which
|
|
773
|
+
// makes the bare-relative alternative above unreachable — it is kept deliberately as
|
|
774
|
+
// defence in depth, so that a future change dropping the normalisation does not
|
|
775
|
+
// silently reopen SF-9 as well.
|
|
776
|
+
//
|
|
777
|
+
// REFUSAL SEMANTICS ARE PRESERVED, and the ordering is what preserves them. The
|
|
778
|
+
// `[ -n "$a" ]` test runs on the RAW anchor, before normalisation, so an anchor that
|
|
779
|
+
// is set but unresolvable stays in the anchor branch and reaches the refusal. If the
|
|
780
|
+
// normalisation ran first, an anchor naming a nonexistent directory would become
|
|
781
|
+
// empty, fail `[ -n "$a" ]`, and fall through to the WALK — turning a fail-closed
|
|
782
|
+
// refusal into a search, which is the SF-27 shape all over again. The empty string is
|
|
783
|
+
// matched explicitly in the case list so an unresolvable anchor cannot reach
|
|
784
|
+
// `[ -f "$a/<rel>" ]` with `$a` empty and test an absolute `/.claude/hooks/<script>`.
|
|
785
|
+
return (`bash -c 'a="\${CLAUDE_PROJECT_DIR:-\${CLAUDE_WORKTREE_PATH:-}}"; ` +
|
|
786
|
+
`if [ -n "$a" ]; then ` +
|
|
787
|
+
`a="$(cd -P -- "$a" 2>/dev/null && pwd -P)"; ` +
|
|
788
|
+
`case "$a" in ""|*/.claude/worktrees/*|.claude/worktrees/*) :;; ` +
|
|
789
|
+
`*) [ -f "$a/${rel}" ] && exec bash "$a/${rel}";; esac; ` +
|
|
790
|
+
`else d="$(pwd -P)"; ` +
|
|
673
791
|
`while :; do ` +
|
|
674
|
-
`
|
|
792
|
+
`case "$d" in */.claude/worktrees/*) :;; ` +
|
|
793
|
+
`*) if [ -e "$d/.git" ]; then ` +
|
|
794
|
+
`[ -f "$d/${rel}" ] && exec bash "$d/${rel}"; break; fi;; esac; ` +
|
|
675
795
|
`case "$d" in ""|/) break;; esac; ` +
|
|
676
796
|
`d="\${d%/*}"; ` +
|
|
677
|
-
`done; ` +
|
|
797
|
+
`done; fi; ` +
|
|
678
798
|
`echo "${refusal}" >&2; ` +
|
|
679
799
|
`exit 2'`);
|
|
680
800
|
}
|
|
681
801
|
/**
|
|
682
|
-
* Generate `.codex/hooks.json` (FR-9, task 1.10).
|
|
802
|
+
* Generate `.codex/hooks.json` (FR-9, task 1.10) as an object.
|
|
683
803
|
*
|
|
684
804
|
* Shape verified on codex-cli 0.145.0 — see finding 1 in the file header.
|
|
805
|
+
*
|
|
806
|
+
* Split out of `buildCodexHooksJson` (#4864) because hook TRUST is keyed per hook
|
|
807
|
+
* ENTRY — `<hooks.json path>:<event>:<group index>:<hook index>` — so the trust check
|
|
808
|
+
* has to enumerate the same groups, in the same order, that this function emits.
|
|
809
|
+
* Deriving the keys from the emitted structure rather than from a second hand-written
|
|
810
|
+
* list is what stops the two drifting: renumber a group here and the keys renumber
|
|
811
|
+
* with it.
|
|
685
812
|
*/
|
|
686
|
-
export function
|
|
813
|
+
export function buildCodexHooksDoc(opts) {
|
|
687
814
|
const entries = opts.entries ?? phase1HookEntries();
|
|
688
815
|
const hooks = {};
|
|
689
816
|
for (const entry of entries) {
|
|
@@ -719,7 +846,7 @@ export function buildCodexHooksJson(opts) {
|
|
|
719
846
|
// cannot disagree — both run the same command, and the gate branches on
|
|
720
847
|
// `hook_event_name`. No matcher: SubagentStart has no tool to match on.
|
|
721
848
|
hooks.SubagentStart = [{ hooks: [{ type: 'command', command: gateCommand }] }];
|
|
722
|
-
|
|
849
|
+
return {
|
|
723
850
|
description: 'GENERATED by mx-agent start --runtime codex (#4227 task 1.10). Ported Bash-matched ' +
|
|
724
851
|
'containment guards, plus the subagent gate on PreToolUse/spawn — the event codex-cli ' +
|
|
725
852
|
'0.145.0 actually fires (#4857) — which REFUSES EVERY SPAWN because this runtime exposes ' +
|
|
@@ -728,7 +855,90 @@ export function buildCodexHooksJson(opts) {
|
|
|
728
855
|
'depth. NOT ENFORCED unless Codex hook trust is established — see codexHookTrustPreconditions().',
|
|
729
856
|
hooks,
|
|
730
857
|
};
|
|
731
|
-
|
|
858
|
+
}
|
|
859
|
+
/** The serialized form of `buildCodexHooksDoc` — the bytes written to disk. */
|
|
860
|
+
export function buildCodexHooksJson(opts) {
|
|
861
|
+
return `${JSON.stringify(buildCodexHooksDoc(opts), null, 2)}\n`;
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Codex's hook-trust key for one hook entry: `<hooks.json path>:<event>:<group>:<hook>`,
|
|
865
|
+
* with the event name in snake_case. Verified against a real `~/.codex/config.toml`,
|
|
866
|
+
* which carries `[hooks.state."/workspace/.codex/hooks.json:pre_tool_use:0:0"]` and
|
|
867
|
+
* `…:subagent_start:0:0`.
|
|
868
|
+
*/
|
|
869
|
+
export function codexHookTrustKey(hooksPath, event, groupIndex, hookIndex) {
|
|
870
|
+
const snake = event.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toLowerCase();
|
|
871
|
+
return `${hooksPath}:${snake}:${groupIndex}:${hookIndex}`;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Every hook-trust key a `.codex/hooks.json` document needs a record for.
|
|
875
|
+
*
|
|
876
|
+
* PATH-AWARE ON PURPOSE (#4864, folds SF-2 / KI-CODEX-TRUST-PRECONDITION-ANY-NOT-ALL).
|
|
877
|
+
* The keys are prefixed with the ABSOLUTE PATH of the hooks file, so a grant for
|
|
878
|
+
* `/workspace/.codex/hooks.json` says nothing about a team worktree's own
|
|
879
|
+
* `<worktree>/.codex/hooks.json`. The previous predicate asked only whether the config
|
|
880
|
+
* contained ANY enabled record with a hash anywhere, which reported trust SATISFIED for
|
|
881
|
+
* a worktree that had zero records of its own — a green light on a set of silently inert
|
|
882
|
+
* hooks, the exact failure #4849 is about.
|
|
883
|
+
*/
|
|
884
|
+
export function codexHookTrustKeysForDoc(hooksPath, doc) {
|
|
885
|
+
const keys = [];
|
|
886
|
+
for (const [event, groups] of Object.entries(doc.hooks)) {
|
|
887
|
+
groups.forEach((group, groupIndex) => {
|
|
888
|
+
group.hooks.forEach((_hook, hookIndex) => {
|
|
889
|
+
keys.push(codexHookTrustKey(hooksPath, event, groupIndex, hookIndex));
|
|
890
|
+
});
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
return keys;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Parse a deployed `.codex/hooks.json`. Returns null when it is absent, unreadable,
|
|
897
|
+
* not JSON, or not shaped like a hooks document — every one of which is treated
|
|
898
|
+
* upstream as "no trust can be established", never as "nothing to check".
|
|
899
|
+
*/
|
|
900
|
+
export function readDeployedHooksDoc(worktreePath) {
|
|
901
|
+
let text;
|
|
902
|
+
try {
|
|
903
|
+
text = readFileSync(join(worktreePath, CODEX_HOOKS_FILENAME), 'utf-8');
|
|
904
|
+
}
|
|
905
|
+
catch {
|
|
906
|
+
return null;
|
|
907
|
+
}
|
|
908
|
+
let parsed;
|
|
909
|
+
try {
|
|
910
|
+
parsed = JSON.parse(text);
|
|
911
|
+
}
|
|
912
|
+
catch {
|
|
913
|
+
return null;
|
|
914
|
+
}
|
|
915
|
+
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed))
|
|
916
|
+
return null;
|
|
917
|
+
const hooks = parsed.hooks;
|
|
918
|
+
if (!hooks || typeof hooks !== 'object' || Array.isArray(hooks))
|
|
919
|
+
return null;
|
|
920
|
+
for (const groups of Object.values(hooks)) {
|
|
921
|
+
if (!Array.isArray(groups))
|
|
922
|
+
return null;
|
|
923
|
+
for (const group of groups) {
|
|
924
|
+
if (!group || typeof group !== 'object')
|
|
925
|
+
return null;
|
|
926
|
+
const inner = group.hooks;
|
|
927
|
+
if (!Array.isArray(inner))
|
|
928
|
+
return null;
|
|
929
|
+
for (const hook of inner) {
|
|
930
|
+
if (!hook || typeof hook !== 'object')
|
|
931
|
+
return null;
|
|
932
|
+
if (typeof hook.command !== 'string')
|
|
933
|
+
return null;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
const description = parsed.description;
|
|
938
|
+
return {
|
|
939
|
+
description: typeof description === 'string' ? description : '',
|
|
940
|
+
hooks: hooks,
|
|
941
|
+
};
|
|
732
942
|
}
|
|
733
943
|
/**
|
|
734
944
|
* Split a TOML document into sections, dropping comment lines first.
|
|
@@ -799,19 +1009,62 @@ export function codexHookTrustPreconditions(opts) {
|
|
|
799
1009
|
// launch decision, which made "declined" indistinguishable from "trusted".
|
|
800
1010
|
const projectSection = sections.find((s) => tableQuotedKey(s.header, 'projects') === opts.worktreePath);
|
|
801
1011
|
const trustLevel = projectSection ? sectionString(projectSection.body, 'trust_level') : null;
|
|
802
|
-
// HOOK TRUST:
|
|
803
|
-
//
|
|
804
|
-
//
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
1012
|
+
// HOOK TRUST: per ENTRY, and keyed to THIS worktree's hooks.json path (#4864, SF-2).
|
|
1013
|
+
//
|
|
1014
|
+
// The value check is NEW-13's (a record counts only when it is switched on AND
|
|
1015
|
+
// carries a hash). What #4864 adds is WHICH records are looked for. `sections.some()`
|
|
1016
|
+
// asked whether the config held any enabled record with a hash ANYWHERE — so a grant
|
|
1017
|
+
// for /workspace/.codex/hooks.json reported trust satisfied for a team worktree whose
|
|
1018
|
+
// own hooks.json had no record at all, and whose hooks were therefore silently inert.
|
|
1019
|
+
// A precondition that reports green on the state it exists to detect is worse than
|
|
1020
|
+
// none; it is the banner lying.
|
|
1021
|
+
//
|
|
1022
|
+
// Codex hashes each entry's content into its record, and the hashing is internal to
|
|
1023
|
+
// the binary (a sha256 of the command, of the group, or of either serialization does
|
|
1024
|
+
// NOT reproduce the values a live grant wrote). So this checks PRESENCE, ENABLEMENT
|
|
1025
|
+
// and a NON-EMPTY hash per key, and says plainly that hash agreement is Codex's own
|
|
1026
|
+
// check — a stale hash still means the entry does not run, and it is not detectable
|
|
1027
|
+
// from here.
|
|
1028
|
+
const trustRecords = new Map();
|
|
1029
|
+
for (const s of sections) {
|
|
1030
|
+
const key = tableQuotedKey(s.header, 'hooks.state');
|
|
1031
|
+
if (key === null)
|
|
1032
|
+
continue;
|
|
1033
|
+
trustRecords.set(key, {
|
|
1034
|
+
enabled: sectionBoolTrue(s.body, 'enabled'),
|
|
1035
|
+
hash: sectionString(s.body, 'trusted_hash') ?? '',
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
const hooksPath = join(opts.worktreePath, CODEX_HOOKS_FILENAME);
|
|
1039
|
+
const doc = readDeployedHooksDoc(opts.worktreePath);
|
|
1040
|
+
const requiredKeys = doc ? codexHookTrustKeysForDoc(hooksPath, doc) : [];
|
|
1041
|
+
const ungranted = requiredKeys.filter((key) => {
|
|
1042
|
+
const record = trustRecords.get(key);
|
|
1043
|
+
return !record || !record.enabled || record.hash === '';
|
|
1044
|
+
});
|
|
1045
|
+
// No deployed hooks file, or a file with no entries, is NOT trust — there is nothing
|
|
1046
|
+
// registered to be trusted, so reporting "satisfied" would be an empty-set green.
|
|
1047
|
+
const hookTrusted = requiredKeys.length > 0 && ungranted.length === 0;
|
|
808
1048
|
return [
|
|
809
1049
|
{
|
|
810
1050
|
id: 'hook-trust',
|
|
811
1051
|
satisfied: hookTrusted,
|
|
812
1052
|
detail: 'Codex runs hooks only with a persisted trust record (hooks.state."<key>".trusted_hash) ' +
|
|
813
1053
|
'or --dangerously-bypass-hook-trust. Without one, .codex/hooks.json is SILENTLY inert ' +
|
|
814
|
-
'(verified on codex-cli 0.145.0: three runs, no warning).'
|
|
1054
|
+
'(verified on codex-cli 0.145.0: three runs, no warning). Trust is keyed PER ENTRY on ' +
|
|
1055
|
+
'this worktree\'s own hooks file, so a grant for another path does not carry over. ' +
|
|
1056
|
+
(doc === null
|
|
1057
|
+
? `No readable ${CODEX_HOOKS_FILENAME} in ${opts.worktreePath} — nothing is registered, ` +
|
|
1058
|
+
'so nothing is trusted. Run `mx-agent start <team> --runtime codex` to deploy it.'
|
|
1059
|
+
: requiredKeys.length === 0
|
|
1060
|
+
? `${CODEX_HOOKS_FILENAME} registers no hook entries — no guard is in effect.`
|
|
1061
|
+
: ungranted.length === 0
|
|
1062
|
+
? `All ${requiredKeys.length} entries are granted: ${requiredKeys.join(', ')}. ` +
|
|
1063
|
+
'Whether each recorded hash still MATCHES the current file is Codex\'s own check, ' +
|
|
1064
|
+
'not one this can make — a stale hash means that entry does not run.'
|
|
1065
|
+
: `${ungranted.length} of ${requiredKeys.length} entries have NO usable trust record ` +
|
|
1066
|
+
`(missing, disabled, or with an empty hash): ${ungranted.join(', ')}. ` +
|
|
1067
|
+
'A human grants these once, in the session where Codex prompts for them.'),
|
|
815
1068
|
},
|
|
816
1069
|
{
|
|
817
1070
|
id: 'project-trust',
|
|
@@ -971,12 +1224,28 @@ export function deployCodexConfig(opts) {
|
|
|
971
1224
|
`or check the config generator.`);
|
|
972
1225
|
}
|
|
973
1226
|
}
|
|
1227
|
+
// ── THE DEPLOYED FILE CARRIES NO PROVEN-GUARD LIST (#4864) ───────────────────
|
|
1228
|
+
// `buildCodexHooksJson` still accepts one — the SubagentStart gate reads it, and a
|
|
1229
|
+
// future Codex that fires that event would need it — but the DEPLOY path must not
|
|
1230
|
+
// supply it, for two reasons that both end in silently inert guards:
|
|
1231
|
+
//
|
|
1232
|
+
// 1. IT WOULD INVALIDATE THE HUMAN TRUST GRANT AT THE MOMENT OF PROOF. Hook trust is
|
|
1233
|
+
// keyed per entry and bound to the entry's content. Baking the proven list into
|
|
1234
|
+
// the file means the first launch AFTER the guards are proven deploys DIFFERENT
|
|
1235
|
+
// bytes than the human granted trust for, so every entry goes untrusted and every
|
|
1236
|
+
// guard goes inert — precisely the #4849 state, reached by succeeding at G-7.
|
|
1237
|
+
// 2. IT WOULD MAKE THE PROOF SELF-INVALIDATING. The G-7 proof artifact is bound to
|
|
1238
|
+
// the sha256 of the file it was proven against (codex-guard-proof.ts). If proving
|
|
1239
|
+
// guards changes the file, the proof is stale on the next read, the next deploy
|
|
1240
|
+
// writes the empty form back, and the pair oscillates forever without ever
|
|
1241
|
+
// reporting proven.
|
|
1242
|
+
//
|
|
1243
|
+
// It also restores the stated invariant that the generated file is byte-identical in
|
|
1244
|
+
// every worktree: a per-worktree proven list gives every worktree a distinct hash and
|
|
1245
|
+
// a separate human trust grant.
|
|
974
1246
|
const hooksPath = join(opts.worktreePath, CODEX_HOOKS_FILENAME);
|
|
975
1247
|
try {
|
|
976
|
-
writeFileEnsuringDir(hooksPath, buildCodexHooksJson({
|
|
977
|
-
worktreePath: opts.worktreePath,
|
|
978
|
-
...(opts.provenGuards ? { provenGuards: opts.provenGuards } : {}),
|
|
979
|
-
}));
|
|
1248
|
+
writeFileEnsuringDir(hooksPath, buildCodexHooksJson({ worktreePath: opts.worktreePath }));
|
|
980
1249
|
written.push(CODEX_HOOKS_FILENAME);
|
|
981
1250
|
}
|
|
982
1251
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-config.js","sourceRoot":"","sources":["../../../src/lib/runtime/codex-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,EACL,uBAAuB,GAGxB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAEhD,8DAA8D;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,GAAG,IAAI,CAAC;AAE/C,kFAAkF;AAClF,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC;AAClC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,SAAS,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
|
+
/** Schema version. A different value is refused, never best-effort parsed. */
|
|
4
|
+
export declare const GUARD_PROOF_VERSION = 1;
|
|
5
|
+
/** Guard names the artifact may name — the guard script filenames, minus `.sh`. */
|
|
6
|
+
export declare const PROVABLE_GUARDS: readonly string[];
|
|
7
|
+
/** The running CLI's own version — what the artifact's `cliVersion` is compared against. */
|
|
8
|
+
export declare function runningCliVersion(): string;
|
|
9
|
+
/** One guard's paired observation: it refused the forbidden op AND allowed a permitted one. */
|
|
10
|
+
export interface GuardObservation {
|
|
11
|
+
/** Guard name, e.g. `git-mutation-guard`. Must be in PROVABLE_GUARDS. */
|
|
12
|
+
guard: string;
|
|
13
|
+
/**
|
|
14
|
+
* Worktree-relative path of the guard script this observation is about. Pinned to
|
|
15
|
+
* `.claude/hooks/<guard>.sh` — an absolute path, or one carrying `..`, is refused
|
|
16
|
+
* rather than resolved.
|
|
17
|
+
*/
|
|
18
|
+
scriptPath: string;
|
|
19
|
+
/**
|
|
20
|
+
* sha256 of that script's bytes at proof time (review MF1). The hooks file names the
|
|
21
|
+
* script; the script is the behaviour, and it lives outside every directory the
|
|
22
|
+
* runtime binds read-only.
|
|
23
|
+
*/
|
|
24
|
+
scriptSha256: string;
|
|
25
|
+
/** The forbidden command that was put to the guard. */
|
|
26
|
+
refusedStimulus: string;
|
|
27
|
+
/** Exit code observed on the forbidden command. Must be 2 — Codex's block contract. */
|
|
28
|
+
refusedExitCode: number;
|
|
29
|
+
/**
|
|
30
|
+
* A distinctive fragment of the GUARD'S OWN refusal text, found in its stderr.
|
|
31
|
+
* Attribution is required (#4851): exit 2 alone cannot distinguish the guard
|
|
32
|
+
* refusing from the wrapper refusing because it could not find the guard.
|
|
33
|
+
*/
|
|
34
|
+
refusalAttribution: string;
|
|
35
|
+
/** The permitted command that was put to the guard. */
|
|
36
|
+
permittedStimulus: string;
|
|
37
|
+
/** Exit code observed on the permitted command. Must be 0 — the positive half. */
|
|
38
|
+
permittedExitCode: number;
|
|
39
|
+
/**
|
|
40
|
+
* True when the guard's own network dependency was replaced by a deterministic
|
|
41
|
+
* stub for the run (named-memory-write-guard fetches the current memory head and
|
|
42
|
+
* fails OPEN when it cannot). Recorded so the artifact never overstates itself.
|
|
43
|
+
*/
|
|
44
|
+
stubbedDependency?: string;
|
|
45
|
+
}
|
|
46
|
+
/** The spawn gate's paired observation — refuses a spawn, has no opinion on other tools. */
|
|
47
|
+
export interface SpawnGateObservation {
|
|
48
|
+
refusedExitCode: number;
|
|
49
|
+
refusalAttribution: string;
|
|
50
|
+
/** Exit code for a non-spawn PreToolUse call. Must be 0, or the gate blocks everything. */
|
|
51
|
+
unrelatedToolExitCode: number;
|
|
52
|
+
}
|
|
53
|
+
export interface GuardProofArtifact {
|
|
54
|
+
version: number;
|
|
55
|
+
/** Absolute path of the hooks file this proof is about. */
|
|
56
|
+
hooksPath: string;
|
|
57
|
+
/** sha256 (64 lowercase hex) of that file's bytes at proof time. */
|
|
58
|
+
hooksSha256: string;
|
|
59
|
+
/** ISO-8601 UTC. Informational — freshness is the hash, not the clock. */
|
|
60
|
+
provenAt: string;
|
|
61
|
+
/** The `codex --version` token observed at proof time. */
|
|
62
|
+
codexVersion: string;
|
|
63
|
+
/** The mx-agent CLI version that produced this artifact (review SF4). */
|
|
64
|
+
cliVersion: string;
|
|
65
|
+
guards: GuardObservation[];
|
|
66
|
+
spawnGate: SpawnGateObservation;
|
|
67
|
+
}
|
|
68
|
+
export interface GuardProofStatus {
|
|
69
|
+
/** Guards this artifact establishes. EMPTY on any validation failure. */
|
|
70
|
+
provenGuards: string[];
|
|
71
|
+
/** True only when a valid, current artifact was found. */
|
|
72
|
+
valid: boolean;
|
|
73
|
+
/** One line naming what was found, suitable for a banner. Always populated. */
|
|
74
|
+
detail: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* True when `path` is a REGULAR file — not a symlink, directory, fifo or device
|
|
78
|
+
* (review SF2).
|
|
79
|
+
*
|
|
80
|
+
* `lstat`, never `stat`: `stat` follows the link, so a symlinked artifact or hooks
|
|
81
|
+
* file would be hashed through to its target and reported on as though the path
|
|
82
|
+
* itself held those bytes. Every integrity check in this file reads a path it was
|
|
83
|
+
* told about and compares it to a value recorded earlier; if the path can be made to
|
|
84
|
+
* mean a different file between those two moments, the comparison stops meaning
|
|
85
|
+
* anything.
|
|
86
|
+
*/
|
|
87
|
+
export declare function isRegularFile(path: string): boolean;
|
|
88
|
+
/** sha256 of a REGULAR file's bytes, or null when it is absent, non-regular or unreadable. */
|
|
89
|
+
export declare function fileSha256(path: string): string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Strictly validate a parsed artifact. Returns the reason it is invalid, or null when
|
|
92
|
+
* it is well-formed. Shape only — the hash and trust comparisons are the reader's.
|
|
93
|
+
*/
|
|
94
|
+
export declare function validateGuardProofShape(value: unknown): string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Read the proof artifact for a worktree and report which guards it establishes NOW.
|
|
97
|
+
*
|
|
98
|
+
* Pure of side effects and of clocks. Every failure path returns an empty proven set —
|
|
99
|
+
* see the header for the list and why each one is fatal rather than advisory.
|
|
100
|
+
*/
|
|
101
|
+
export declare function readGuardProof(opts: {
|
|
102
|
+
worktreePath: string;
|
|
103
|
+
codexHome?: string;
|
|
104
|
+
/** Overridable so a test can pin the version comparison. */
|
|
105
|
+
expectedCodexVersion?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The `codex --version` token the CALLER just observed (review MF3). The compiled
|
|
108
|
+
* pin says which version the adapter was probed against; this says which one is
|
|
109
|
+
* about to run. Both must match the artifact — an upgrade between proof and launch
|
|
110
|
+
* voids the proof even though the pin is unchanged.
|
|
111
|
+
*/
|
|
112
|
+
liveCodexVersion?: string;
|
|
113
|
+
/** Overridable so a test can pin the CLI comparison (review SF4). */
|
|
114
|
+
expectedCliVersion?: string;
|
|
115
|
+
}): GuardProofStatus;
|
|
116
|
+
/** Serialize an artifact exactly as it is written to disk. */
|
|
117
|
+
export declare function serializeGuardProof(artifact: GuardProofArtifact): string;
|
|
118
|
+
/**
|
|
119
|
+
* Write the artifact. Refuses to write anything that would not read back as valid —
|
|
120
|
+
* a writer that can emit an artifact its own reader rejects is a way to produce
|
|
121
|
+
* confusing failures later, and a way to smuggle a shape past validation now.
|
|
122
|
+
*/
|
|
123
|
+
export declare function writeGuardProof(opts: {
|
|
124
|
+
worktreePath: string;
|
|
125
|
+
artifact: GuardProofArtifact;
|
|
126
|
+
}): string;
|
|
127
|
+
//# sourceMappingURL=codex-guard-proof.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-guard-proof.d.ts","sourceRoot":"","sources":["../../../src/lib/runtime/codex-guard-proof.ts"],"names":[],"mappings":"AA6FA,+DAA+D;AAC/D,eAAO,MAAM,oBAAoB,QAAsC,CAAC;AAExE,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,mFAAmF;AACnF,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAE5C,CAAC;AAEF,4FAA4F;AAC5F,wBAAgB,iBAAiB,IAAI,MAAM,CAS1C;AAED,+FAA+F;AAC/F,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,eAAe,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,4FAA4F;AAC5F,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,E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