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

@@ -1,11 +1,11 @@
'use strict';
process.env.GSD_TEST_MODE = '1';
process.env.MSD_TEST_MODE = '1';
// Refinements for issue #1164 (PR #1998 follow-up):
// - A: document the execute:wave:post choice (at the time of #1164, wave:pre
// was declared but not dispatched by execute-phase.md; wiring it was a
// core-loop change #1164 put out of scope. #2285 later wired wave:pre —
// see gsd-core/workflows/execute-phase.md step 2.75 and the
// see msd-core/workflows/execute-phase.md step 2.75 and the
// claude-orchestration capability, which moved to wave:pre for that
// reason).
// - B: external_job.artifact_dir is now consumed by the adapter (was declared
@@ -32,7 +32,7 @@ const {
// Minimal registry stand-in: only configSchema defaults are consulted by
// resolveConfigKey Level 4 (capability-activation.cjs). Real registry comes
// from gsd-core/bin/lib/capability-registry.cjs at runtime.
// from msd-core/bin/lib/capability-registry.cjs at runtime.
function fakeRegistry() {
return {
configSchema: {
@@ -68,7 +68,7 @@ test('parseFlags handles a missing `--` rest gracefully (no rest array)', () =>
// ─── findPlanningDir ──────────────────────────────────────────────────────────
test('findPlanningDir walks up to the nearest .planning and returns its path', (t) => {
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-slurm-'));
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-slurm-'));
t.after(() => cleanup(root)); // #4020: no leaked fixture tree on the success path
const planning = path.join(root, '.planning');
fs.mkdirSync(planning);
@@ -81,7 +81,7 @@ test('findPlanningDir fails closed (ExitError) when no .planning is reachable',
// A tmp dir with no .planning anywhere up to the walk bound (10 levels).
// Use a fresh tmp and create 11 nested dirs so the walk can't escape to a
// parent that happens to contain .planning (e.g. the repo root).
const deep = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-slurm-noplan-'));
const deep = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-slurm-noplan-'));
t.after(() => cleanup(deep)); // #4020
let cur = deep;
for (let i = 0; i < 12; i++) {
@@ -117,9 +117,9 @@ test('resolveExternalJobSettings reads nested config values (config key now func
test('resolveExternalJobSettings: env override beats config (precedence env > config > default)', () => {
const config = { external_job: { submit_timeout_ms: 45000, poll_timeout_ms: 9000 } };
const env = {
GSD_SLURM_SUBMIT_TIMEOUT_MS: '7777',
GSD_SLURM_POLL_TIMEOUT_MS: '8888',
GSD_EXTERNAL_JOB_ARTIFACT_DIR: 'Artifacts/env',
MSD_SLURM_SUBMIT_TIMEOUT_MS: '7777',
MSD_SLURM_POLL_TIMEOUT_MS: '8888',
MSD_EXTERNAL_JOB_ARTIFACT_DIR: 'Artifacts/env',
};
const s = resolveExternalJobSettings({ config, env, registry: fakeRegistry() });
assert.strictEqual(s.submitTimeoutMs, 7777, 'env submit wins');
@@ -155,7 +155,7 @@ test('formatShowReport surfaces job identity, status, terminal_details, and the
terminal_details: { reason: 'ok', exit_code: 0 },
submit_command: 'sbatch --parsable ./run.sh',
verification_command: 'python -m verify.py 12345',
resume_command: '/gsd:execute-phase 3',
resume_command: '/msd:execute-phase 3',
};
const out = formatShowReport(manifest);
assert.match(out, /job 12345 \(plan 3\.1, backend slurm\)/);