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,9 +3,9 @@
// runtime loads — testing text content tests the deployed contract.
/**
* GSD AI Evals Framework Tests
* MSD AI Evals Framework Tests
*
* Validates the /gsd-ai-integration-phase + /gsd-eval-review contribution:
* Validates the /msd-ai-integration-phase + /msd-eval-review contribution:
* - workflow.ai_integration_phase key in config defaults and config-set/get
* - W016 validate-health warning when ai_integration_phase absent
* - addAiIntegrationPhaseKey repair action
@@ -20,14 +20,14 @@ const { test, describe, beforeEach, afterEach } = require('node:test');
const assert = require('node:assert');
const fs = require('fs');
const path = require('path');
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
const REPO_ROOT = path.join(__dirname, '..');
const AGENTS_DIR = path.join(REPO_ROOT, 'agents');
const COMMANDS_DIR = path.join(REPO_ROOT, 'commands', 'gsd');
const WORKFLOWS_DIR = path.join(REPO_ROOT, 'gsd-core', 'workflows');
const TEMPLATES_DIR = path.join(REPO_ROOT, 'gsd-core', 'templates');
const REFERENCES_DIR = path.join(REPO_ROOT, 'gsd-core', 'references');
const COMMANDS_DIR = path.join(REPO_ROOT, 'commands', 'msd');
const WORKFLOWS_DIR = path.join(REPO_ROOT, 'msd-core', 'workflows');
const TEMPLATES_DIR = path.join(REPO_ROOT, 'msd-core', 'templates');
const REFERENCES_DIR = path.join(REPO_ROOT, 'msd-core', 'references');
// ─── Helpers ─────────────────────────────────────────────────────────────────
@@ -62,7 +62,7 @@ describe('CONFIG: workflow.ai_integration_phase default', () => {
afterEach(() => { cleanup(tmpDir); });
test('config-ensure-section includes workflow.ai_integration_phase as boolean', () => {
const result = runGsdTools('config-ensure-section', tmpDir);
const result = runMsdTools('config-ensure-section', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const config = readConfig(tmpDir);
@@ -71,7 +71,7 @@ describe('CONFIG: workflow.ai_integration_phase default', () => {
});
test('workflow.ai_integration_phase defaults to true', () => {
runGsdTools('config-ensure-section', tmpDir);
runMsdTools('config-ensure-section', tmpDir);
const config = readConfig(tmpDir);
assert.strictEqual(config.workflow.ai_integration_phase, true, 'workflow.ai_integration_phase should default to true');
});
@@ -84,13 +84,13 @@ describe('CONFIG: config-set / config-get workflow.ai_integration_phase', () =>
beforeEach(() => {
tmpDir = createTempProject();
runGsdTools('config-ensure-section', tmpDir);
runMsdTools('config-ensure-section', tmpDir);
});
afterEach(() => { cleanup(tmpDir); });
test('config-set workflow.ai_integration_phase false persists as boolean false', () => {
const result = runGsdTools('config-set workflow.ai_integration_phase false', tmpDir);
const result = runMsdTools('config-set workflow.ai_integration_phase false', tmpDir);
assert.ok(result.success, `config-set failed: ${result.error}`);
const config = readConfig(tmpDir);
@@ -99,8 +99,8 @@ describe('CONFIG: config-set / config-get workflow.ai_integration_phase', () =>
});
test('config-set workflow.ai_integration_phase true persists as boolean true', () => {
runGsdTools('config-set workflow.ai_integration_phase false', tmpDir);
const result = runGsdTools('config-set workflow.ai_integration_phase true', tmpDir);
runMsdTools('config-set workflow.ai_integration_phase false', tmpDir);
const result = runMsdTools('config-set workflow.ai_integration_phase true', tmpDir);
assert.ok(result.success, `config-set failed: ${result.error}`);
const config = readConfig(tmpDir);
@@ -108,8 +108,8 @@ describe('CONFIG: config-set / config-get workflow.ai_integration_phase', () =>
});
test('config-get workflow.ai_integration_phase returns the stored value', () => {
runGsdTools('config-set workflow.ai_integration_phase false', tmpDir);
const result = runGsdTools('config-get workflow.ai_integration_phase', tmpDir);
runMsdTools('config-set workflow.ai_integration_phase false', tmpDir);
const result = runMsdTools('config-get workflow.ai_integration_phase', tmpDir);
assert.ok(result.success, `config-get failed: ${result.error}`);
assert.strictEqual(JSON.parse(result.output), false);
});
@@ -127,7 +127,7 @@ describe('HEALTH: W016 — workflow.ai_integration_phase absent', () => {
writeMinimalHealth(tmpDir);
writeConfig(tmpDir, { model_profile: 'balanced', workflow: { research: true, nyquist_validation: true } });
const result = runGsdTools('validate health', tmpDir);
const result = runMsdTools('validate health', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -144,7 +144,7 @@ describe('HEALTH: W016 — workflow.ai_integration_phase absent', () => {
workflow: { research: true, nyquist_validation: true, ai_integration_phase: true },
});
const result = runGsdTools('validate health', tmpDir);
const result = runMsdTools('validate health', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -161,7 +161,7 @@ describe('HEALTH: W016 — workflow.ai_integration_phase absent', () => {
workflow: { research: true, nyquist_validation: true, ai_integration_phase: false },
});
const result = runGsdTools('validate health', tmpDir);
const result = runMsdTools('validate health', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -187,7 +187,7 @@ describe('HEALTH --repair: addAiIntegrationPhaseKey', () => {
JSON.stringify({ model_profile: 'balanced', workflow: { research: true, nyquist_validation: true } }, null, 2)
);
const result = runGsdTools('validate health --repair', tmpDir);
const result = runMsdTools('validate health --repair', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -263,7 +263,7 @@ describe('COMMAND: ai-integration-phase and eval-review frontmatter', () => {
for (const cmd of commands) {
test(`${cmd}.md exists`, () => {
const p = path.join(COMMANDS_DIR, `${cmd}.md`);
assert.ok(fs.existsSync(p), `commands/gsd/${cmd}.md should exist`);
assert.ok(fs.existsSync(p), `commands/msd/${cmd}.md should exist`);
});
test(`${cmd}.md has name, description, argument-hint`, () => {
@@ -275,14 +275,14 @@ describe('COMMAND: ai-integration-phase and eval-review frontmatter', () => {
});
}
test('ai-integration-phase.md name is gsd:ai-integration-phase', () => {
test('ai-integration-phase.md name is msd:ai-integration-phase', () => {
const content = fs.readFileSync(path.join(COMMANDS_DIR, 'ai-integration-phase.md'), 'utf-8');
assert.ok(content.includes('name: gsd:ai-integration-phase'), 'ai-integration-phase command name mismatch');
assert.ok(content.includes('name: msd:ai-integration-phase'), 'ai-integration-phase command name mismatch');
});
test('eval-review.md name is gsd:eval-review', () => {
test('eval-review.md name is msd:eval-review', () => {
const content = fs.readFileSync(path.join(COMMANDS_DIR, 'eval-review.md'), 'utf-8');
assert.ok(content.includes('name: gsd:eval-review'), 'eval-review command name mismatch');
assert.ok(content.includes('name: msd:eval-review'), 'eval-review command name mismatch');
});
});
@@ -290,11 +290,11 @@ describe('COMMAND: ai-integration-phase and eval-review frontmatter', () => {
describe('AGENTS: new AI-evals agents exist', () => {
const newAgents = [
'gsd-framework-selector',
'gsd-ai-researcher',
'gsd-domain-researcher',
'gsd-eval-planner',
'gsd-eval-auditor',
'msd-framework-selector',
'msd-ai-researcher',
'msd-domain-researcher',
'msd-eval-planner',
'msd-eval-auditor',
];
for (const agent of newAgents) {
@@ -352,7 +352,7 @@ describe('WORKFLOW: plan-phase.md AI nudge integration', () => {
);
});
test('plan-phase.md references /gsd-ai-integration-phase nudge', () => {
test('plan-phase.md references /msd-ai-integration-phase nudge', () => {
const content = fs.readFileSync(planPhasePath, 'utf-8');
assert.ok(
content.includes('ai-integration-phase') || content.includes('ai_integration_phase'),
@@ -362,7 +362,7 @@ describe('WORKFLOW: plan-phase.md AI nudge integration', () => {
test('ai-integration capability owns workflow.ai_integration_phase config toggle', () => {
const content = fs.readFileSync(planPhasePath, 'utf-8');
const registry = require('../gsd-core/bin/lib/capability-registry.cjs');
const registry = require('../msd-core/bin/lib/capability-registry.cjs');
assert.strictEqual(registry.configKeys['workflow.ai_integration_phase'], 'ai-integration');
assert.doesNotMatch(content, /config-get workflow\.ai_integration_phase/);
});
@@ -384,14 +384,14 @@ describe('WORKFLOW: ai-integration-phase and eval-review workflow files', () =>
test('ai-integration-phase.md orchestrates 4 agents', () => {
const content = fs.readFileSync(path.join(WORKFLOWS_DIR, 'ai-integration-phase.md'), 'utf-8');
for (const agent of ['gsd-framework-selector', 'gsd-ai-researcher', 'gsd-domain-researcher', 'gsd-eval-planner']) {
for (const agent of ['msd-framework-selector', 'msd-ai-researcher', 'msd-domain-researcher', 'msd-eval-planner']) {
assert.ok(content.includes(agent), `ai-integration-phase.md should reference ${agent}`);
}
});
test('eval-review.md references gsd-eval-auditor', () => {
test('eval-review.md references msd-eval-auditor', () => {
const content = fs.readFileSync(path.join(WORKFLOWS_DIR, 'eval-review.md'), 'utf-8');
assert.ok(content.includes('gsd-eval-auditor'), 'eval-review.md should reference gsd-eval-auditor');
assert.ok(content.includes('msd-eval-auditor'), 'eval-review.md should reference msd-eval-auditor');
});
test('select-framework.md does NOT exist (removed per design)', () => {