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

@@ -3,11 +3,11 @@
/**
* Stated failing direction (#3172).
*
* Module: gsd-core/bin/lib/verify-command-grounding.cjs
* Module: msd-core/bin/lib/verify-command-grounding.cjs
* Exported (added by #3172): extractFailingDirections, resolveFailingDirection,
* probePhaseFailingDirections
*
* #3172: `gsd-planner` emitted 21 `<automated>` acceptance commands that could
* #3172: `msd-planner` emitted 21 `<automated>` acceptance commands that could
* not run at all. A command with no expressible failure mode is not an
* acceptance test — it reads as rigour and is not falsifiable. The approved fix
* (maintainer verdict on the issue, "shape 3") is to require the plan to STATE
@@ -27,7 +27,7 @@
* command is an `orphan` WARNING, never a blocker.
*
* Row numbers below map to
* `.gsd/phase/feat-3172-stated-failing-direction/50-test-matrix.md`.
* `.msd/phase/feat-3172-stated-failing-direction/50-test-matrix.md`.
*
* IO-failure rows monkeypatch the `fs` method and restore in `finally` — never
* `chmod 0o000`, which root bypasses in Docker/CI so the test would pass with
@@ -45,7 +45,7 @@ const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
const fc = require('./helpers/fast-check-setup.cjs');
const { cleanup, runGsdTools } = require('./helpers.cjs');
const { cleanup, runMsdTools } = require('./helpers.cjs');
const {
extractAutomatedCommands,
@@ -53,7 +53,7 @@ const {
extractFailingDirections,
resolveFailingDirection,
probePhaseFailingDirections,
} = require('../gsd-core/bin/lib/verify-command-grounding.cjs');
} = require('../msd-core/bin/lib/verify-command-grounding.cjs');
const KNOWN_STATUSES = new Set(['ok', 'missing', 'empty', 'placeholder', 'sentinel', 'orphan']);
const KNOWN_SEVERITIES = new Set(['blocker', 'warning', 'none']);
@@ -114,7 +114,7 @@ function writePhase(root, phaseName, plans) {
}
before(() => {
ROOT = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-3172-'));
ROOT = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-3172-'));
});
after(() => {
@@ -525,13 +525,13 @@ describe('the #2401 path probe is not disturbed (Hyrum consequences)', () => {
});
});
describe('gsd-tools check verify-failure-directions', () => {
describe('msd-tools check verify-failure-directions', () => {
test('row 26 — the check arm emits the probe JSON', () => {
const root = fs.mkdtempSync(path.join(ROOT, 'cli-'));
writePhase(root, '01-test-phase', {
'01-01-PLAN.md': taskWith([{ automated: 'npm test' }]),
});
const result = runGsdTools(['check', 'verify-failure-directions', '1', '--raw'], root);
const result = runMsdTools(['check', 'verify-failure-directions', '1', '--raw'], root);
assert.ok(result.success, `check verify-failure-directions should succeed. stderr: ${result.error}`);
const parsed = JSON.parse(result.output);
assert.equal(parsed.counts.blocker, 1);
@@ -541,7 +541,7 @@ describe('gsd-tools check verify-failure-directions', () => {
test('row 27 — the check arm degrades when the phase argument is absent', () => {
const root = fs.mkdtempSync(path.join(ROOT, 'cli-noarg-'));
fs.mkdirSync(path.join(root, '.planning', 'phases'), { recursive: true });
const result = runGsdTools(['check', 'verify-failure-directions', '--raw'], root);
const result = runMsdTools(['check', 'verify-failure-directions', '--raw'], root);
const parsed = JSON.parse(result.output);
assert.ok(parsed.readError, 'expected a populated readError');
assert.match(parsed.readError, /phase/i);
@@ -557,7 +557,7 @@ describe('the plan-authoring contract text (#3172)', () => {
// #3172's planner-side rule is projected onto the spawn contract, not
// written into the agent file — see row 30b. Assert the block exists and
// governs what it must.
const block = read('gsd-core/workflows/plan-phase.md')
const block = read('msd-core/workflows/plan-phase.md')
.split('<failing_direction_contract>')[1]
?.split('</failing_direction_contract>')[0];
assert.ok(block, 'plan-phase.md must carry the <failing_direction_contract> block in the planner spawn prompt (#3172)');
@@ -568,24 +568,24 @@ describe('the plan-authoring contract text (#3172)', () => {
assert.match(block, /MISSING/);
assert.match(block, /TBD/);
// The reference the contract points at must exist and name the element.
assert.match(read('gsd-core/references/planner-failing-direction.md'), /<fails_when>/);
assert.match(read('msd-core/references/planner-failing-direction.md'), /<fails_when>/);
});
test('row 30b — the frozen planner agent file is untouched by #3172', () => {
// agents/gsd-planner.md is pinned under a 49152-LF-char cap by four
// agents/msd-planner.md is pinned under a 49152-LF-char cap by four
// suites; #3297/#3645 established that a planner-side rule goes in the
// spawn contract instead. Guard the freeze in both directions: the cap
// itself, and the absence of this issue's rule from the agent file.
const src = read('agents/gsd-planner.md');
const src = read('agents/msd-planner.md');
const lf = src.replace(/\r\n/g, '\n').length;
assert.ok(lf < 49152, `gsd-planner.md is ${lf} LF chars — must stay < 49152 (#3172 keeps the planner frozen; the rule lives in plan-phase.md's spawn contract)`);
assert.ok(lf < 49152, `msd-planner.md is ${lf} LF chars — must stay < 49152 (#3172 keeps the planner frozen; the rule lives in plan-phase.md's spawn contract)`);
assert.ok(!src.includes('fails_when'),
'the failing-direction rule belongs in the spawn contract, not the frozen agent file (#3172)');
});
test('row 31 — the extracted Nyquist detail survives the move', () => {
const checker = read('agents/gsd-plan-checker.md');
const nyquist = read('gsd-core/references/nyquist-compliance.md');
const checker = read('agents/msd-plan-checker.md');
const nyquist = read('msd-core/references/nyquist-compliance.md');
// The new check lives in the agent as a pointer; its detail and the
// extracted 8a-8e detail live in references.
assert.match(checker, /nyquist-compliance\.md/);
@@ -593,11 +593,11 @@ describe('the plan-authoring contract text (#3172)', () => {
for (const check of ['8a', '8b', '8c', '8d', '8e']) {
assert.match(nyquist, new RegExp(`Check ${check}`), `Check ${check} detail`);
}
assert.match(read('gsd-core/references/failing-direction.md'), /blocker/);
assert.match(read('msd-core/references/failing-direction.md'), /blocker/);
});
test('row 32 — plan-phase dispatches the failing-direction probe', () => {
const workflow = read('gsd-core/workflows/plan-phase.md');
const workflow = read('msd-core/workflows/plan-phase.md');
assert.match(workflow, /check verify-failure-directions/);
assert.match(workflow, /failing_direction_probe/);
});