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

@@ -4,13 +4,13 @@
// Per CONTRIBUTING.md exception matrix.
/**
* Tests for modular decomposition of agents/gsd-planner.md
* Tests for modular decomposition of agents/msd-planner.md
*
* Verifies that:
* 1. gsd-planner.md stays under the 100K agent file threshold
* 2. gsd-planner.md is under 45K chars (proving the three mode sections were extracted)
* 1. msd-planner.md stays under the 100K agent file threshold
* 2. msd-planner.md is under 45K chars (proving the three mode sections were extracted)
* 3. The three reference files exist
* 4. gsd-planner.md contains reference pointers to each extracted file
* 4. msd-planner.md contains reference pointers to each extracted file
* 5. Each reference file contains key content from the original mode section
*/
'use strict';
@@ -29,14 +29,14 @@ const PLANNER_EXTRACTED_LIMIT = 48 * 1024; // 48K — proves extraction happene
// ─── File paths ──────────────────────────────────────────────────────────────
const PLANNER_PATH = path.join(PROJECT_ROOT, 'agents', 'gsd-planner.md');
const GAP_CLOSURE_REF = path.join(PROJECT_ROOT, 'gsd-core', 'references', 'planner-gap-closure.md');
const REVISION_REF = path.join(PROJECT_ROOT, 'gsd-core', 'references', 'planner-revision.md');
const REVIEWS_REF = path.join(PROJECT_ROOT, 'gsd-core', 'references', 'planner-reviews.md');
const PLANNER_PATH = path.join(PROJECT_ROOT, 'agents', 'msd-planner.md');
const GAP_CLOSURE_REF = path.join(PROJECT_ROOT, 'msd-core', 'references', 'planner-gap-closure.md');
const REVISION_REF = path.join(PROJECT_ROOT, 'msd-core', 'references', 'planner-revision.md');
const REVIEWS_REF = path.join(PROJECT_ROOT, 'msd-core', 'references', 'planner-reviews.md');
// ─── gsd-planner.md size ─────────────────────────────────────────────────────
// ─── msd-planner.md size ─────────────────────────────────────────────────────
describe('gsd-planner.md size constraints', () => {
describe('msd-planner.md size constraints', () => {
test('planner file exists', () => {
assert.ok(fs.existsSync(PLANNER_PATH), `Missing: ${PLANNER_PATH}`);
});
@@ -47,7 +47,7 @@ describe('gsd-planner.md size constraints', () => {
const content = raw.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
assert.ok(
content.length < AGENT_FILE_SIZE_LIMIT,
`gsd-planner.md is ${content.length} chars, exceeds 100K agent threshold`
`msd-planner.md is ${content.length} chars, exceeds 100K agent threshold`
);
});
@@ -57,7 +57,7 @@ describe('gsd-planner.md size constraints', () => {
const content = raw.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
assert.ok(
content.length < PLANNER_EXTRACTED_LIMIT,
`gsd-planner.md is ${content.length} chars, expected < 45K after extracting mode sections`
`msd-planner.md is ${content.length} chars, expected < 45K after extracting mode sections`
);
});
});
@@ -78,16 +78,16 @@ describe('extracted reference files exist', () => {
});
});
// ─── gsd-planner.md contains reference pointers ──────────────────────────────
// ─── msd-planner.md contains reference pointers ──────────────────────────────
describe('gsd-planner.md contains reference pointers to extracted files', () => {
describe('msd-planner.md contains reference pointers to extracted files', () => {
let plannerContent;
test('planner references planner-gap-closure.md', () => {
plannerContent = plannerContent || fs.readFileSync(PLANNER_PATH, 'utf-8');
assert.ok(
plannerContent.includes('planner-gap-closure.md'),
'gsd-planner.md must reference planner-gap-closure.md'
'msd-planner.md must reference planner-gap-closure.md'
);
});
@@ -95,7 +95,7 @@ describe('gsd-planner.md contains reference pointers to extracted files', () =>
plannerContent = plannerContent || fs.readFileSync(PLANNER_PATH, 'utf-8');
assert.ok(
plannerContent.includes('planner-revision.md'),
'gsd-planner.md must reference planner-revision.md'
'msd-planner.md must reference planner-revision.md'
);
});
@@ -103,7 +103,7 @@ describe('gsd-planner.md contains reference pointers to extracted files', () =>
plannerContent = plannerContent || fs.readFileSync(PLANNER_PATH, 'utf-8');
assert.ok(
plannerContent.includes('planner-reviews.md'),
'gsd-planner.md must reference planner-reviews.md'
'msd-planner.md must reference planner-reviews.md'
);
});
});
@@ -127,10 +127,10 @@ describe('reference files contain key content from original mode sections', () =
// marker (or an equivalent unconsumed sentinel) reappears in either producer.
test('gap-closure return is artifact-based — no unconsumed completion marker (#3440)', () => {
const guidance = fs.readFileSync(
path.join(PROJECT_ROOT, 'gsd-core', 'references', 'planner-guidance.md'), 'utf-8');
path.join(PROJECT_ROOT, 'msd-core', 'references', 'planner-guidance.md'), 'utf-8');
const planner = fs.readFileSync(
path.join(PROJECT_ROOT, 'agents', 'gsd-planner.md'), 'utf-8');
for (const [label, content] of [['planner-guidance.md', guidance], ['gsd-planner.md', planner]]) {
path.join(PROJECT_ROOT, 'agents', 'msd-planner.md'), 'utf-8');
for (const [label, content] of [['planner-guidance.md', guidance], ['msd-planner.md', planner]]) {
assert.ok(
!content.includes('## GAP CLOSURE PLANS CREATED'),
`${label} must not emit the retired marker — no workflow dispatches on it (#3440)`,
@@ -184,8 +184,8 @@ const fs = require('fs');
const path = require('path');
const ROOT = path.join(__dirname, '..');
const PLANNER_AGENT = path.join(ROOT, 'agents', 'gsd-planner.md');
const PLAN_PHASE_WORKFLOW = path.join(ROOT, 'gsd-core', 'workflows', 'plan-phase.md');
const PLANNER_AGENT = path.join(ROOT, 'agents', 'msd-planner.md');
const PLAN_PHASE_WORKFLOW = path.join(ROOT, 'msd-core', 'workflows', 'plan-phase.md');
function read(relativePath) {
return fs.readFileSync(path.join(ROOT, relativePath), 'utf8');
@@ -206,12 +206,12 @@ describe('bug #3320 planner action contract', () => {
assert.match(
planner,
/NEVER place fenced code blocks \(```\) inside `<action>`/,
'gsd-planner.md must explicitly forbid fenced implementation code in <action>'
'msd-planner.md must explicitly forbid fenced implementation code in <action>'
);
assert.match(
planner,
/Code excerpts belong in `<read_first>` source files or referenced context/,
'gsd-planner.md must route code excerpts to context/read-first material'
'msd-planner.md must route code excerpts to context/read-first material'
);
});
@@ -251,7 +251,7 @@ describe('bug #3320 planner action contract', () => {
});
test('quality gate matches the reconciled planner contract', () => {
const workflow = read('gsd-core/workflows/plan-phase.md');
const workflow = read('msd-core/workflows/plan-phase.md');
assert.match(
workflow,