refactor: hard-fork GSD -> MSD (Make Software Done)

Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD
across contents and paths, upstream package/repo coordinates -> @golem15/msd-core
and golem15com/msd-core. Deep links into upstream history, sibling upstream
packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is.

Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line,
package/plugin identity, regenerated lockfile, install-tree fixtures, derived
registries and benchmark baseline; migration checksum baseline re-locked
(MSD keeps its own install state, so no install had applied the old sums);
sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
Jakub Zych
2026-10-06 01:47:40 +02:00
parent fe069b2a56
commit a9a7a328e6
2763 changed files with 78465 additions and 78434 deletions

View File

@@ -7,7 +7,7 @@
- **Scope:** `src/shell-command-projection.cts` subprocess dispatch (`execTool`, `execNpm`, `execGit`)
- **Amends:** none. Constrained by [ADR-0009](0009-shell-command-projection-module.md).
**Decision summary.** GSD Core keeps its own Windows binary resolution and `cmd.exe` mediation and
**Decision summary.** MSD Core keeps its own Windows binary resolution and `cmd.exe` mediation and
does **not** adopt `cross-spawn`, `nano-spawn`, or `execa`. `nano-spawn` is async-only and cannot
back a `spawnSync` seam. `cross-spawn` is the only structurally eligible candidate, and it
independently arrives at the *same* escaping mechanism the seam already uses — which validates the
@@ -17,7 +17,7 @@ global state via `process.chdir()` during resolution, and would break an observa
## Context
`#3625` asked whether GSD Core should stop hand-rolling Windows binary resolution — PATH + PATHEXT
`#3625` asked whether MSD Core should stop hand-rolling Windows binary resolution — PATH + PATHEXT
scanning, the extensionless npm shim problem, `.cmd`/`.bat` mediation through `cmd.exe`, and
case-insensitive environment reads — and adopt a maintained library instead. The question is fair:
epic `#3411` exists precisely because we got this wrong four separate times, and
@@ -66,7 +66,7 @@ does **not** rest on the CRITICAL figure.
**2. The vendoring precedent exists, but not at the cited path.** The issue points at
`eslint-rules/lib/vendor/re2js.cjs`; that path does not exist. The real vendored copy is
`gsd-core/bin/lib/vendor/re2js.cjs` (with `src/vendor/re2js.d.cts`). The precedent stands — it was
`msd-core/bin/lib/vendor/re2js.cjs` (with `src/vendor/re2js.d.cts`). The precedent stands — it was
simply mislocated.
## Candidate evaluation
@@ -90,7 +90,7 @@ package source at the versions named.
| Transitive footprint (measured) | **6 packages, 160 KB** | **1 package, 76 KB** | **18 packages, 1.4 MB** |
| Prior security advisory | **CVE-2024-21538** (ReDoS, High, CVSS 7.7) in the escaping regex; fixed 7.0.5 / 6.0.6 | none found | none found |
For context, GSD Core currently ships **two** runtime dependencies
For context, MSD Core currently ships **two** runtime dependencies
(`@anthropic-ai/claude-agent-sdk`, `ws`) plus one optional (`fallow`).
### Verdict 1 — synchronous call shape
@@ -144,13 +144,13 @@ Three of these are adoption blockers on their own:
1. **`process.cwd()`-first resolution is a binary-planting surface.** A `codex.CMD` dropped in the
project directory would win over the real one on Windows, and passing an explicit `PATH` does not
prevent it. GSD executes tool binaries in directories whose contents are, by construction, the
prevent it. MSD executes tool binaries in directories whose contents are, by construction, the
thing being worked on. The seam scans `PATH` only, deliberately.
2. **`process.chdir()` is a global side effect** in a function billed as a drop-in. `execTool`
accepts `opts.cwd`, GSD runs concurrent work, and `process.chdir` is unavailable in worker
accepts `opts.cwd`, MSD runs concurrent work, and `process.chdir` is unavailable in worker
threads.
3. **The escape-depth heuristic is keyed on a path regex** — structurally the same shape as the
`/\.(cmd|bat)$/i` test in `bin/gsd-tools.cjs` that `#3411` identified as never matching. A
`/\.(cmd|bat)$/i` test in `bin/msd-tools.cjs` that `#3411` identified as never matching. A
cmd-shim outside `node_modules/.bin/` gets single-escaped.
The one axis where `cross-spawn` may do better is `%VAR%`: it attempts to caret-escape `%` and `!`,
@@ -187,7 +187,7 @@ What we could never remove once it landed:
### The vendoring option, considered separately
The issue notes in-tree precedent for taking a third party into `bin/lib` "when the case is made."
The precedent is real, though not at the cited path — it is `gsd-core/bin/lib/vendor/re2js.cjs`
The precedent is real, though not at the cited path — it is `msd-core/bin/lib/vendor/re2js.cjs`
(with `src/vendor/re2js.d.cts`), not `eslint-rules/lib/vendor/`. It is also not free:
`scripts/lint-vendored-deps.cjs` exists specifically to keep the vendored copy pinned to its
`node_modules` original, and it runs in `lint:ci`.