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

@@ -2,12 +2,12 @@
// Workflow .md files — their text IS the deployed contract the orchestrator runs.
/**
* #1857: a GSD test gate must not hang forever on a watch-mode runner.
* #1857: a MSD test gate must not hang forever on a watch-mode runner.
*
* Three gates were UNBOUNDED or silently-continued and are the core fix. They must:
* - route the resolved command through the shared `normalize-test-command`
* helper (defeats vitest/jest watch mode), so the paths cannot drift,
* - bound execution with `gsd_run run-with-timeout` using the
* - bound execution with `msd_run run-with-timeout` using the
* `workflow.test_gate_timeout` budget, and
* - surface a timeout (exit 124) with a watch-mode hint — the regression gate
* ABORTS, the others surface clearly (never silently ignored).
@@ -28,17 +28,17 @@ const ROOT = path.join(__dirname, '..');
// discovers prior-phase test files and delegates (via "Read and execute") to
// steps/regression-gate-run.md, which carries the actual command resolution,
// normalize-test-command call, timeout bound, and watch-mode abort mechanics.
const REGRESSION_GATE = path.join(ROOT, 'gsd-core', 'workflows', 'execute-phase', 'steps', 'regression-gate.md');
const REGRESSION_GATE_RUN = path.join(ROOT, 'gsd-core', 'workflows', 'execute-phase', 'steps', 'regression-gate-run.md');
const POST_MERGE_GATE = path.join(ROOT, 'gsd-core', 'workflows', 'execute-phase', 'steps', 'post-merge-gate.md');
const REGRESSION_GATE = path.join(ROOT, 'msd-core', 'workflows', 'execute-phase', 'steps', 'regression-gate.md');
const REGRESSION_GATE_RUN = path.join(ROOT, 'msd-core', 'workflows', 'execute-phase', 'steps', 'regression-gate-run.md');
const POST_MERGE_GATE = path.join(ROOT, 'msd-core', 'workflows', 'execute-phase', 'steps', 'post-merge-gate.md');
// #4784: bounds the one-shot sed pipeline the behavioral extraction test runs
// against a fixture line (a pure text filter on ~50 lines — never the 30s-plus
// subprocess classes in timeouts.cjs; named so the two copies in this file
// cannot drift).
const SIMCTL_EXTRACT_TIMEOUT_MS = 10_000;
const AUDIT_FIX = path.join(ROOT, 'gsd-core', 'workflows', 'audit-fix.md');
const EXECUTE_PHASE = path.join(ROOT, 'gsd-core', 'workflows', 'execute-phase.md');
const AUDIT_FIX = path.join(ROOT, 'msd-core', 'workflows', 'audit-fix.md');
const EXECUTE_PHASE = path.join(ROOT, 'msd-core', 'workflows', 'execute-phase.md');
function read(p) { return fs.readFileSync(p, 'utf-8'); }
@@ -86,7 +86,7 @@ describe('#1857: test gates normalize to one-shot and bound with a timeout', ()
// The behaviour lives in src/normalize-test-command.cts; every gate invokes it
// by the same verb name, so a change to watch-defeat logic touches one place.
for (const file of [REGRESSION_GATE_RUN, POST_MERGE_GATE, AUDIT_FIX]) {
assert.match(read(file), /gsd_run query normalize-test-command/);
assert.match(read(file), /msd_run query normalize-test-command/);
}
});
});