@memnexus-ai/mx-agent-cli 0.1.268 → 0.1.270

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.
Files changed (46) hide show
  1. package/dist/__tests__/codex-deploy-config.test.d.ts +2 -0
  2. package/dist/__tests__/codex-deploy-config.test.d.ts.map +1 -0
  3. package/dist/__tests__/codex-deploy-config.test.js +1170 -0
  4. package/dist/__tests__/codex-deploy-config.test.js.map +1 -0
  5. package/dist/__tests__/codex-trust-keys.test.d.ts +2 -0
  6. package/dist/__tests__/codex-trust-keys.test.d.ts.map +1 -0
  7. package/dist/__tests__/codex-trust-keys.test.js +731 -0
  8. package/dist/__tests__/codex-trust-keys.test.js.map +1 -0
  9. package/dist/__tests__/codex-write-race.test.d.ts +2 -0
  10. package/dist/__tests__/codex-write-race.test.d.ts.map +1 -0
  11. package/dist/__tests__/codex-write-race.test.js +372 -0
  12. package/dist/__tests__/codex-write-race.test.js.map +1 -0
  13. package/dist/__tests__/runtime-codex-guard-proof.test.js +75 -0
  14. package/dist/__tests__/runtime-codex-guard-proof.test.js.map +1 -1
  15. package/dist/agent-config/hooks/ci-validate-hook.sh +120 -9
  16. package/dist/commands/codex-deploy-config.d.ts +111 -0
  17. package/dist/commands/codex-deploy-config.d.ts.map +1 -0
  18. package/dist/commands/codex-deploy-config.js +400 -0
  19. package/dist/commands/codex-deploy-config.js.map +1 -0
  20. package/dist/commands/codex-prove-guards.d.ts +20 -0
  21. package/dist/commands/codex-prove-guards.d.ts.map +1 -1
  22. package/dist/commands/codex-prove-guards.js +54 -1
  23. package/dist/commands/codex-prove-guards.js.map +1 -1
  24. package/dist/commands/codex-trust-keys.d.ts +12 -0
  25. package/dist/commands/codex-trust-keys.d.ts.map +1 -0
  26. package/dist/commands/codex-trust-keys.js +169 -0
  27. package/dist/commands/codex-trust-keys.js.map +1 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +65 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/lib/runtime/codex-adapter.d.ts.map +1 -1
  32. package/dist/lib/runtime/codex-adapter.js +15 -15
  33. package/dist/lib/runtime/codex-adapter.js.map +1 -1
  34. package/dist/lib/runtime/codex-config.d.ts +211 -0
  35. package/dist/lib/runtime/codex-config.d.ts.map +1 -1
  36. package/dist/lib/runtime/codex-config.js +769 -40
  37. package/dist/lib/runtime/codex-config.js.map +1 -1
  38. package/dist/lib/runtime/codex-hooks-list.d.ts +91 -0
  39. package/dist/lib/runtime/codex-hooks-list.d.ts.map +1 -0
  40. package/dist/lib/runtime/codex-hooks-list.js +418 -0
  41. package/dist/lib/runtime/codex-hooks-list.js.map +1 -0
  42. package/dist/lib/runtime/codex-trust-keys.d.ts +95 -0
  43. package/dist/lib/runtime/codex-trust-keys.d.ts.map +1 -0
  44. package/dist/lib/runtime/codex-trust-keys.js +279 -0
  45. package/dist/lib/runtime/codex-trust-keys.js.map +1 -0
  46. package/package.json +1 -1
@@ -562,9 +562,66 @@ export interface HookTrustPrecondition {
562
562
  satisfied: boolean;
563
563
  detail: string;
564
564
  }
565
+ /** One `[hooks.state."<key>"]` record as the Codex config carries it. */
566
+ export interface CodexHookTrustRecord {
567
+ enabled: boolean;
568
+ /** `trusted_hash` VERBATIM, including its `sha256:` prefix. Empty when absent. */
569
+ hash: string;
570
+ }
571
+ /**
572
+ * Read every `[hooks.state."<key>"]` record from a Codex config (#4876).
573
+ *
574
+ * Exported so `mx-agent codex trust-keys` reports the same records the precondition
575
+ * decides on, rather than parsing the file a second way. `trust_level` is read here too,
576
+ * because both callers need to know that an untrusted project makes every hook record
577
+ * moot.
578
+ */
579
+ export declare function readCodexTrustState(codexHome: string): {
580
+ records: Map<string, CodexHookTrustRecord>;
581
+ trustLevelFor: (path: string) => string | null;
582
+ };
565
583
  export declare function codexHookTrustPreconditions(opts: {
566
584
  worktreePath: string;
567
585
  codexHome?: string;
586
+ /**
587
+ * Codex's OWN current hash per trust key, from `hooks/list` (#4876, closes
588
+ * KI-CODEX-TRUST-HASH-NOT-VERIFIED where it is supplied).
589
+ *
590
+ * WITHOUT IT this function performs the check it always did — present, enabled,
591
+ * non-empty — and says so. That check cannot detect a STALE grant: a recorded hash
592
+ * that no longer matches the entry means Codex silently does not run that hook, while
593
+ * this reports satisfied. WITH it, every required key is compared byte-for-byte
594
+ * against the observed hash (verified live on codex-cli 0.145.0: `trusted_hash` and
595
+ * `currentHash` are equal strings, `sha256:` prefix included), and a mismatch reports
596
+ * NOT satisfied, naming the entry.
597
+ *
598
+ * A key with NO observed hash is reported NOT satisfied too. "We could not check it"
599
+ * is not "it is fine" — that equivalence is the whole defect.
600
+ *
601
+ * It is optional because reading it costs a `codex app-server` invocation, which the
602
+ * launch banner and the deploy path call several times per start. The commands where
603
+ * the answer is load-bearing — `codex prove-guards` and `codex trust-keys` — supply it.
604
+ */
605
+ observedHashes?: ReadonlyMap<string, string>;
606
+ /**
607
+ * The hooks file's BYTES CHANGED under grants that already existed (#4875 MF-2).
608
+ *
609
+ * Set by `deployCodexConfig` when it overwrote a hooks file that had trust records.
610
+ * Codex binds a trust record to the entry's CONTENT, so changed bytes make every one
611
+ * of those records stale, and a caller with no `observedHashes` cannot see it: the
612
+ * records are still present, enabled and non-empty, which is all this function can
613
+ * check without Codex's own hashes. That combination — a check that cannot see hashes,
614
+ * on a path that has just changed the bytes — produced "All N entries are granted" for
615
+ * a configuration the same call had made inert. With this flag the sentence is not
616
+ * printed and the precondition is NOT satisfied.
617
+ */
618
+ bytesChanged?: boolean;
619
+ /**
620
+ * Grants may exist and this caller cannot tell whether they are current (SF-B): the
621
+ * hooks file could not be read before it was rewritten, or the Codex config directory
622
+ * could not be located. Not satisfied — "we could not check" is not "it is fine".
623
+ */
624
+ grantsUnverifiable?: boolean;
568
625
  }): HookTrustPrecondition[];
569
626
  /**
570
627
  * Generate `AGENTS.override.md` content (FR-7, FR-16).
@@ -635,12 +692,114 @@ export declare function measureInstructionChain(worktreePath: string,
635
692
  * the declared cap and the measured cap cannot drift apart (security review NEW-1).
636
693
  */
637
694
  cap?: number): InstructionChainMeasurement;
695
+ /**
696
+ * Where the Codex config lives, in ONE place (security review SF-A).
697
+ *
698
+ * Four call sites hardcoded `join(process.env.HOME ?? '', '.codex')`, which is wrong on
699
+ * any machine that sets `CODEX_HOME` — Codex's own override for exactly this directory.
700
+ * The failure is silent and in the dangerous direction: the grants live in `CODEX_HOME`,
701
+ * we read an empty file in `$HOME/.codex`, see no records, and a redeploy that just
702
+ * invalidated every real grant reports `hookTrustInvalidated = false` (reviewer's probe 3,
703
+ * executed).
704
+ *
705
+ * REFUSES rather than falling back to a relative path. `HOME` unset made the old
706
+ * expression produce `.codex`, resolved against whatever the cwd happened to be — a read
707
+ * that fails, and a failed read of the trust config is indistinguishable here from "no
708
+ * grants exist".
709
+ */
710
+ export declare function resolveCodexHome(env?: NodeJS.ProcessEnv): {
711
+ home: string;
712
+ } | {
713
+ error: string;
714
+ };
715
+ /**
716
+ * May this deploy write `absPath`, given that it is only allowed to write inside
717
+ * `worktreeRoot`? Returns the refusal text, or null.
718
+ *
719
+ * ─── THE CHECK THAT WAS MISSING (security review MF-1) ────────────────────────
720
+ * Round 1 contained the ARGUMENT (`--path`) and left the WRITES uncontained. The
721
+ * reviewer executed four attacks that all succeeded and all ended in the main repo's
722
+ * fleet-wide files:
723
+ *
724
+ * 1. `<worktree>/.codex` is a directory symlink to `<projectRoot>/.codex`.
725
+ * 2. The same as a COMMITTED relative symlink (`.codex -> ../../.codex`,
726
+ * `AGENTS.override.md -> ../../AGENTS.override.md`) — plantable by a PR.
727
+ * 3. `<worktree>/.codex/hooks.json` is a single-FILE symlink to the main repo's.
728
+ * 4. TOCTOU: the checked directory is swapped for a symlink to the project root
729
+ * between `resolveCodexDeployTarget` and the write.
730
+ *
731
+ * `mkdirSync`/`writeFileSync` follow symlinks, so the containment test on the directory
732
+ * name proved nothing about where the bytes landed. This walks EVERY component from the
733
+ * worktree root down to the file with `lstatSync` (which does not follow), refuses on the
734
+ * first symlink, and refuses when the path is not under the root at all. The worktree
735
+ * root itself must be a real directory — that is what kills the TOCTOU swap, since the
736
+ * root the caller resolved is re-lstat'd at write time.
737
+ *
738
+ * The refusal names the file AND its real destination: "could not write" is what shipped,
739
+ * and it does not tell the operator that their deploy was aimed at `/workspace`.
740
+ *
741
+ * ─── AND HARDLINKS, WHICH ARE NOT SYMLINKS (security review NEW-MF-4) ─────────
742
+ * The walk above refuses a second PATH to the file. A hardlink is a second NAME for the
743
+ * same inode: `lstat` calls it a plain regular file and `O_NOFOLLOW` says nothing about
744
+ * it. So the walk also refuses any non-directory component with `nlink > 1`, and the
745
+ * write breaks the existing directory entry rather than writing through it.
746
+ */
747
+ export declare function containedWriteRefusal(worktreeRoot: string, absPath: string): string | null;
748
+ /**
749
+ * Thrown by `writeFileEnsuringDir` when the destination fails `containedWriteRefusal`, or
750
+ * when the file it just created exclusively turns out to have more than one name.
751
+ */
752
+ export declare class ContainedWriteRefusal extends Error {
753
+ }
638
754
  export interface DeployCodexConfigResult {
639
755
  written: string[];
640
756
  /** Advisory messages the caller surfaces at launch (never blocking). */
641
757
  warnings: string[];
642
758
  chain: InstructionChainMeasurement;
643
759
  trust: HookTrustPrecondition[];
760
+ /**
761
+ * The deploy overwrote a hooks file that already carried trust records, with DIFFERENT
762
+ * bytes — so every one of those grants is now stale (#4875 MF-2).
763
+ */
764
+ hookTrustInvalidated: boolean;
765
+ /**
766
+ * Trust grants exist for this worktree's hooks file, and this deploy CANNOT say whether
767
+ * they still match the bytes on disk (security review SF-A/SF-B). Two causes: the hooks
768
+ * file could not be read BEFORE the write (so "did the bytes change" has no answer), or
769
+ * the Codex config directory could not be located at all. Reported loudly — the
770
+ * previous code answered `hookTrustInvalidated = false` in both cases, which reads as
771
+ * "your grants are fine".
772
+ */
773
+ hookTrustUnverifiable: boolean;
774
+ /**
775
+ * Artifacts this deploy REFUSED to write because the destination escaped the worktree
776
+ * (security review MF-1). Non-empty means the deploy is not usable and the caller must
777
+ * report it as a failure — the refusal text names the file and its real destination.
778
+ */
779
+ writeRefusals: string[];
780
+ /**
781
+ * Artifacts this deploy FAILED to write for a reason that is not containment — EEXIST
782
+ * from a concurrent deploy, EACCES, EISDIR, ENOSPC, EMFILE (delta re-review MUST FIX).
783
+ * These used to be a warning line in a run that reported ok=true and exit 0. Non-empty
784
+ * means the deploy did not write an artifact it was asked to write, and by the same rule
785
+ * MF-1 established for refusals, that is not a passing deploy.
786
+ */
787
+ writeFailures: string[];
788
+ /**
789
+ * The generated `AGENTS.override.md` carries the team's behavioral block. False means
790
+ * the session would run with no every-turn behavioral reinforcement (#4875 SF-7).
791
+ */
792
+ hasBehavioralBlock: boolean;
793
+ /**
794
+ * The mixed-state sentence — "PARTIAL DEPLOY … must not be launched", with the artifact
795
+ * states MEASURED on disk — or null when every artifact was written.
796
+ *
797
+ * Returned as well as pushed into `warnings` so the launch path can REFUSE with the same
798
+ * measured text it prints, rather than composing a second description of the same
799
+ * worktree (Gap 2). Two callers describing one deploy differently is the defect
800
+ * `codexDeployReportLines` exists to prevent.
801
+ */
802
+ incompleteDeployMessage: string | null;
644
803
  }
645
804
  /**
646
805
  * Deploy every Codex config artifact into the worktree. Idempotent — each file is
@@ -663,7 +822,59 @@ export declare function deployCodexConfig(opts: {
663
822
  baseBranch?: string;
664
823
  /** Remote holding the canonical tree. Defaults to `origin`. */
665
824
  gitRemote?: string;
825
+ /** Codex config directory. Defaults to `$HOME/.codex`. Injected for tests. */
826
+ codexHome?: string;
666
827
  }): DeployCodexConfigResult;
828
+ /**
829
+ * The refusal a caller raises when a deploy did not write every artifact (Gap 2).
830
+ *
831
+ * ─── WHY THE LAUNCH PATH NEEDED ITS OWN REFUSAL ───────────────────────────────
832
+ * `deployCodexConfig` already reported the mixed state, and `mx-agent codex deploy-config`
833
+ * already exits non-zero on it. `CodexAdapter.deployConfig` only PRINTED it. Executed with
834
+ * `MX_AGENT_CODEX_PHASE1_DEV=1` — the documented hatch, and the only way a Codex session
835
+ * runs at all while G-7 is unpassed: a deploy in which ALL THREE artifacts failed printed
836
+ * `DEPLOY FAILED … must not be launched`, and then `assertLaunchAllowed` returned ALLOWED.
837
+ * The session would have started with no containment guards registered, no declared
838
+ * sandbox_mode or approval_policy, and no MemNexus MCP server — the exact configuration
839
+ * every guardrail in this module exists to put in place.
840
+ *
841
+ * `refreshGuardProof` re-hashes `.codex/hooks.json` after the deploy, so a failed hooks
842
+ * write does lose the guard proof and the G-7 gate catches THAT artifact. It binds
843
+ * nothing about `config.toml` or `AGENTS.override.md`, and the dev hatch returns before
844
+ * the proof is consulted anyway.
845
+ *
846
+ * Same shape as `instructionChainOverBudgetMessage`: one text, both refusal sites, and the
847
+ * state it quotes is the state that was MEASURED rather than a second description of it.
848
+ */
849
+ export declare function deployIncompleteMessage(result: DeployCodexConfigResult, refusalPrefix: string): string;
850
+ /**
851
+ * One reportable line from a deploy, with the severity the caller renders it at.
852
+ *
853
+ * SHARED SO THE TWO DEPLOY CALLERS CANNOT DIVERGE (#4875). `CodexAdapter.deployConfig`
854
+ * and `mx-agent codex deploy-config` write the SAME artifacts; if they described the
855
+ * result differently, an operator who regenerated config through the deploy-only path
856
+ * would be reading a different account of the same bytes than the launch path gives —
857
+ * and the unmet-trust warning is the line the G-7 runbook tells them to look for.
858
+ */
859
+ export interface CodexDeployReportLine {
860
+ level: 'info' | 'warn';
861
+ text: string;
862
+ }
863
+ /** Render a deploy result as the lines both deploy callers print, in a fixed order. */
864
+ export declare function codexDeployReportLines(result: DeployCodexConfigResult): CodexDeployReportLine[];
865
+ /**
866
+ * The over-budget refusal, in ONE place (#4875).
867
+ *
868
+ * Codex truncates the instruction file silently at `project_doc_max_bytes`, so an
869
+ * over-budget deploy produces a file whose tail nobody can see. Both callers REFUSE on
870
+ * it rather than warning — the deploy-only path included, because the artifact it just
871
+ * wrote is exactly the one that would be truncated, and a deploy that reports success
872
+ * on it would send an operator on to grant trust for a configuration that cannot be
873
+ * read in full.
874
+ *
875
+ * `refusalPrefix` differs only because the two callers are refusing different actions.
876
+ */
877
+ export declare function instructionChainOverBudgetMessage(chain: InstructionChainMeasurement, refusalPrefix: string): string;
667
878
  /** Does the worktree carry a generated Codex config tree? Used by tests and doctor-style checks. */
668
879
  export declare function hasCodexConfig(worktreePath: string): boolean;
669
880
  //# sourceMappingURL=codex-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codex-config.d.ts","sourceRoot":"","sources":["../../../src/lib/runtime/codex-config.ts"],"names":[],"mappings":"AAwEA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,QAAY,CAAC;AAE/C,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,eAAO,MAAM,SAAS,WAAW,CAAC;AAClC,eAAO,MAAM,qBAAqB,QAAiC,CAAC;AACpE,eAAO,MAAM,oBAAoB,QAAgC,CAAC;AAElE;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,mEAGvB,CAAC;AAMX,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,CAkB3E;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAehD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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