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

@@ -11,7 +11,7 @@
* `scanRepo`) with string fixtures — no temp tree is needed for anything but
* `scanRepo`'s own tree-walk contract (D1), which runs against the real repo.
*
* Covers .gsd/phase/refactor-3187-state-field-extraction-single-owner/
* Covers .msd/phase/refactor-3187-state-field-extraction-single-owner/
* 50-test-matrix.md section D, rows D1-D9 (D3b/D8b/D8c included), plus the
* multi-line-signature attribution regression the guard's own module header
* documents (`buildFunctionInfo`'s `pendingDeclName` deferral).
@@ -558,15 +558,15 @@ describe('D9 — report output is sanitized', () => {
// ─── D10: prompt-layer prose detection (ADR-3180 Decision 4(d)) ───────────
// Widening the scan surface from `src/` alone to also cover the prompt-layer
// markdown (`gsd-core/workflows`, `commands`, `agents`, `skills`) is unproven
// markdown (`msd-core/workflows`, `commands`, `agents`, `skills`) is unproven
// unless (a) the surface is genuinely declared, and (b) a NEW prose
// re-derivation added there is genuinely caught — not merely that the guard
// happens to report zero because nothing was ever exercised against it.
describe('D10a — the prompt layer is in the scan surface', () => {
test('SCAN_DIRS covers gsd-core/workflows, commands, agents, skills (in addition to src)', () => {
test('SCAN_DIRS covers msd-core/workflows, commands, agents, skills (in addition to src)', () => {
assert.ok(drift.SCAN_DIRS.includes('src'));
assert.ok(drift.SCAN_DIRS.includes('gsd-core/workflows'));
assert.ok(drift.SCAN_DIRS.includes('msd-core/workflows'));
assert.ok(drift.SCAN_DIRS.includes('commands'));
assert.ok(drift.SCAN_DIRS.includes('agents'));
assert.ok(drift.SCAN_DIRS.includes('skills'));
@@ -578,7 +578,7 @@ describe('D10a — the prompt layer is in the scan surface', () => {
});
describe('D10b — a NEW prose re-derivation in a workflow file is flagged', () => {
const OTHER_WORKFLOW_RELPATH = path.join('gsd-core', 'workflows', 'unrelated-workflow.md');
const OTHER_WORKFLOW_RELPATH = path.join('msd-core', 'workflows', 'unrelated-workflow.md');
test('a synthetic workflow line carrying the fm-key/body-bold tokens plus both words is caught', () => {
const text = [
@@ -613,13 +613,13 @@ describe('D10b — a NEW prose re-derivation in a workflow file is flagged', ()
});
});
describe('D10c — the smart-entry.md gsd-tools-down fallback is a written, permanent exemption', () => {
const SMART_ENTRY_RELPATH = path.join('gsd-core', 'workflows', 'smart-entry.md');
describe('D10c — the smart-entry.md msd-tools-down fallback is a written, permanent exemption', () => {
const SMART_ENTRY_RELPATH = path.join('msd-core', 'workflows', 'smart-entry.md');
const LIVE_LINE =
"- Read `.planning/STATE.md` (frontmatter + body) with the Read tool. Extract: `status` (frontmatter `status:` or body `**Status:**`), `Phase:` from the body, `total_phases`/`percent` from a nested `progress:` frontmatter object if present, and any `## Blockers` items.";
test('the real live line is caught when NOT under the exempted relPath (proves detection genuinely fires on this exact text — it is not silent by construction)', () => {
const out = drift.findPromptFieldDrift(LIVE_LINE, path.join('gsd-core', 'workflows', 'unrelated-workflow.md'));
const out = drift.findPromptFieldDrift(LIVE_LINE, path.join('msd-core', 'workflows', 'unrelated-workflow.md'));
assert.strictEqual(out.length, 1);
});
@@ -632,7 +632,7 @@ describe('D10c — the smart-entry.md gsd-tools-down fallback is a written, perm
// to key it against.
const reasons = drift.PROMPT_LAYER_EXEMPTIONS.get(SMART_ENTRY_RELPATH);
assert.ok(reasons.has(LIVE_LINE.trim()));
assert.match(reasons.get(LIVE_LINE.trim()), /gsd-tools|cannot run|by construction/i);
assert.match(reasons.get(LIVE_LINE.trim()), /msd-tools|cannot run|by construction/i);
});
test('the exemption is keyed on exact trimmed text, not merely the file — a DIFFERENT re-derivation in the SAME file is still caught', () => {
@@ -642,7 +642,7 @@ describe('D10c — the smart-entry.md gsd-tools-down fallback is a written, perm
});
test('the real smart-entry.md file on disk scans clean end-to-end (the actual contract, not just the extracted fixture)', () => {
const content = fs.readFileSync(path.join(REPO_ROOT, 'gsd-core', 'workflows', 'smart-entry.md'), 'utf8');
const content = fs.readFileSync(path.join(REPO_ROOT, 'msd-core', 'workflows', 'smart-entry.md'), 'utf8');
const out = drift.findPromptFieldDrift(content, SMART_ENTRY_RELPATH);
assert.deepStrictEqual(out, []);
});