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:
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Characterization tests for the canonical GSD artifact registry.
|
||||
* Characterization tests for the canonical MSD artifact registry.
|
||||
* Locks the exact membership of CANONICAL_EXACT, the CANONICAL_PATTERNS
|
||||
* shape, and the isCanonicalPlanningFile predicate.
|
||||
*/
|
||||
@@ -12,7 +12,7 @@ const {
|
||||
CANONICAL_EXACT,
|
||||
CANONICAL_PATTERNS,
|
||||
isCanonicalPlanningFile,
|
||||
} = require('../gsd-core/bin/lib/artifacts.cjs');
|
||||
} = require('../msd-core/bin/lib/artifacts.cjs');
|
||||
|
||||
describe('CANONICAL_EXACT', () => {
|
||||
test('is a Set', () => {
|
||||
@@ -59,19 +59,19 @@ describe('isCanonicalPlanningFile', () => {
|
||||
});
|
||||
|
||||
test('#3227: state.json (machine-readable state contract) is a canonical .planning/ artifact', () => {
|
||||
// gsd-core writes .planning/state.json at every step boundary
|
||||
// msd-core writes .planning/state.json at every step boundary
|
||||
// (src/state-contract.cts). Before #3227 it was absent from the
|
||||
// registry, so validate health would falsely flag it W019
|
||||
// "Unrecognized" on every GSD project.
|
||||
// "Unrecognized" on every MSD project.
|
||||
assert.ok(CANONICAL_EXACT.has('state.json'), 'state.json must be in CANONICAL_EXACT');
|
||||
assert.strictEqual(isCanonicalPlanningFile('state.json'), true);
|
||||
});
|
||||
|
||||
test('#3224: WINDOWS.md (broken-windows ledger) is a canonical .planning/ artifact', () => {
|
||||
// gsd-core itself writes .planning/WINDOWS.md (src/broken-windows.cts,
|
||||
// msd-core itself writes .planning/WINDOWS.md (src/broken-windows.cts,
|
||||
// LEDGER_FILE_NAME = 'WINDOWS.md'). Before #3224 it was absent from the
|
||||
// registry, so validate health flagged it W019 "Unrecognized" with advice to
|
||||
// delete a ledger that can gate /gsd-ship under workflow.windows_enforce.
|
||||
// delete a ledger that can gate /msd-ship under workflow.windows_enforce.
|
||||
assert.ok(CANONICAL_EXACT.has('WINDOWS.md'), 'WINDOWS.md must be in CANONICAL_EXACT');
|
||||
assert.strictEqual(isCanonicalPlanningFile('WINDOWS.md'), true);
|
||||
});
|
||||
@@ -80,7 +80,7 @@ describe('isCanonicalPlanningFile', () => {
|
||||
// workflows/graduation.md's own graduation-target table instructs the agent to
|
||||
// append to .planning/PATTERNS.md for the `patterns` category. Before #4282 it
|
||||
// was absent from the registry, so validate health flagged it W019
|
||||
// "Unrecognized" with advice to archive/delete a file gsd-core itself produces.
|
||||
// "Unrecognized" with advice to archive/delete a file msd-core itself produces.
|
||||
// Distinct from the per-phase NN-PATTERNS.md (templates/README.md), which lives
|
||||
// under a phase subdirectory and was never subject to W019 in the first place.
|
||||
assert.ok(CANONICAL_EXACT.has('PATTERNS.md'), 'PATTERNS.md must be in CANONICAL_EXACT');
|
||||
@@ -121,7 +121,7 @@ describe('isCanonicalPlanningFile', () => {
|
||||
// runtime loads — testing text content tests the deployed contract.
|
||||
|
||||
/**
|
||||
* Tests for canonical artifact registry and gsd-health W019 lint (#2448).
|
||||
* Tests for canonical artifact registry and msd-health W019 lint (#2448).
|
||||
*/
|
||||
|
||||
const { test, describe, after } = require('node:test');
|
||||
@@ -131,14 +131,14 @@ const path = require('node:path');
|
||||
const os = require('node:os');
|
||||
const helpers = require('./helpers.cjs');
|
||||
|
||||
const { isCanonicalPlanningFile, CANONICAL_EXACT } = require('../gsd-core/bin/lib/artifacts.cjs');
|
||||
const { cmdValidateHealth } = require('../gsd-core/bin/lib/verify.cjs');
|
||||
const { isCanonicalPlanningFile, CANONICAL_EXACT } = require('../msd-core/bin/lib/artifacts.cjs');
|
||||
const { cmdValidateHealth } = require('../msd-core/bin/lib/verify.cjs');
|
||||
|
||||
const _dirsToClean = [];
|
||||
after(() => { for (const d of _dirsToClean) helpers.cleanup(d); });
|
||||
|
||||
function makeTempProject(files = {}) {
|
||||
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-2448-'));
|
||||
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-2448-'));
|
||||
_dirsToClean.push(dir);
|
||||
fs.mkdirSync(path.join(dir, '.planning', 'phases'), { recursive: true });
|
||||
for (const [rel, content] of Object.entries(files)) {
|
||||
@@ -168,7 +168,7 @@ describe('artifacts.cjs — isCanonicalPlanningFile', () => {
|
||||
assert.ok(isCanonicalPlanningFile('v2.3.1-MILESTONE-AUDIT.md'));
|
||||
});
|
||||
|
||||
test('returns true for RETROSPECTIVE.md (produced by /gsd-complete-milestone)', () => {
|
||||
test('returns true for RETROSPECTIVE.md (produced by /msd-complete-milestone)', () => {
|
||||
assert.strictEqual(isCanonicalPlanningFile('RETROSPECTIVE.md'), true);
|
||||
});
|
||||
|
||||
@@ -184,7 +184,7 @@ describe('artifacts.cjs — isCanonicalPlanningFile', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('gsd-health W019 — unrecognized .planning/ root files', () => {
|
||||
describe('msd-health W019 — unrecognized .planning/ root files', () => {
|
||||
test('W019 fires for a non-canonical .md file at .planning/ root', () => {
|
||||
const dir = makeTempProject({
|
||||
...BASE_FILES,
|
||||
@@ -259,7 +259,7 @@ describe('gsd-health W019 — unrecognized .planning/ root files', () => {
|
||||
|
||||
test('templates/README.md exists and documents W019', () => {
|
||||
const readme = fs.readFileSync(
|
||||
path.join(__dirname, '../gsd-core/templates/README.md'), 'utf-8'
|
||||
path.join(__dirname, '../msd-core/templates/README.md'), 'utf-8'
|
||||
);
|
||||
assert.ok(readme.includes('W019'), 'README.md documents W019');
|
||||
assert.ok(readme.includes('artifacts.cjs'), 'README.md references artifacts.cjs for adding new artifacts');
|
||||
|
||||
Reference in New Issue
Block a user