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,5 +1,5 @@
|
||||
// ADR-3473 §8.1 (#3881) — consequence and boundary coverage for the js-yaml migration.
|
||||
// See .gsd/phase/feat-3881-one-yaml-parser/50-test-matrix.md sections A and F. Each row
|
||||
// See .msd/phase/feat-3881-one-yaml-parser/50-test-matrix.md sections A and F. Each row
|
||||
// pins a consequence of swapping the hand-rolled line scanner for the vendored js-yaml
|
||||
// (§40-design.md §0.2) that is otherwise invisible to the existing suite.
|
||||
'use strict';
|
||||
@@ -15,17 +15,17 @@ const {
|
||||
spliceFrontmatter,
|
||||
UNTERMINATED_KEY_THRESHOLD,
|
||||
FRONTMATTER_UNPARSEABLE,
|
||||
} = require('../gsd-core/bin/lib/frontmatter.cjs');
|
||||
const { transitionCore } = require('../gsd-core/bin/lib/state-transition.cjs');
|
||||
} = require('../msd-core/bin/lib/frontmatter.cjs');
|
||||
const { transitionCore } = require('../msd-core/bin/lib/state-transition.cjs');
|
||||
const {
|
||||
_resetUnusableInputWarningsForTests,
|
||||
_unusableInputEmissionCountForTests,
|
||||
} = require('../gsd-core/bin/lib/unusable-input.cjs');
|
||||
const { createTempDir, cleanup, runGsdTools, createTempProject } = require('./helpers.cjs');
|
||||
} = require('../msd-core/bin/lib/unusable-input.cjs');
|
||||
const { createTempDir, cleanup, runMsdTools, createTempProject } = require('./helpers.cjs');
|
||||
const { runNode } = require('./helpers/process-seam.cjs');
|
||||
const { throwIfFailed } = require('./helpers/git-fixture.cjs');
|
||||
const { PROBE_TIMEOUT_MS } = require('./helpers/timeouts.cjs');
|
||||
const TOOLS_PATH = path.join(__dirname, '..', 'gsd-core', 'bin', 'gsd-tools.cjs');
|
||||
const TOOLS_PATH = path.join(__dirname, '..', 'msd-core', 'bin', 'msd-tools.cjs');
|
||||
|
||||
const fixedClock = Object.freeze({
|
||||
today: () => '2026-06-27',
|
||||
@@ -123,7 +123,7 @@ describe('A2 unparseableDocumentKeepsItsFrontmatterBlock', () => {
|
||||
['advancePlan', { kind: 'advancePlan' }],
|
||||
['completePhase', { kind: 'completePhase', phaseNum: '2', nextPhaseNum: '3', nextPhaseName: 'Next Phase', isLastPhase: false, planCount: 1, summaryCount: 1 }],
|
||||
['plannedPhase', { kind: 'plannedPhase', phaseNumber: 3, phaseName: 'Test Phase', planCount: 5 }],
|
||||
['milestoneComplete', { kind: 'milestoneComplete', version: 'v1.0', nextMilestoneCommand: '/gsd:new-milestone' }],
|
||||
['milestoneComplete', { kind: 'milestoneComplete', version: 'v1.0', nextMilestoneCommand: '/msd:new-milestone' }],
|
||||
['patch', { kind: 'patch', patches: { Status: 'Paused' } }],
|
||||
['update', { kind: 'update', field: 'Status', value: 'Paused' }],
|
||||
];
|
||||
@@ -225,7 +225,7 @@ describe('A2b unparseableFrontmatterSurvivesTheRealCliPath', () => {
|
||||
const tmpDir = createTempProject();
|
||||
try {
|
||||
const statePath = writeConflictFixture(tmpDir);
|
||||
const result = runGsdTools(args, tmpDir);
|
||||
const result = runMsdTools(args, tmpDir);
|
||||
assert.ok(result.success, `${label} failed: ${result.error}`);
|
||||
const after = fs.readFileSync(statePath, 'utf-8');
|
||||
assert.ok(
|
||||
@@ -244,7 +244,7 @@ describe('A2b unparseableFrontmatterSurvivesTheRealCliPath', () => {
|
||||
const tmpDir = createTempProject();
|
||||
try {
|
||||
const statePath = writeConflictFixture(tmpDir);
|
||||
const result = runGsdTools(['state', 'sync'], tmpDir);
|
||||
const result = runMsdTools(['state', 'sync'], tmpDir);
|
||||
assert.ok(result.success, `state sync failed: ${result.error}`);
|
||||
const after = fs.readFileSync(statePath, 'utf-8');
|
||||
assert.ok(
|
||||
@@ -264,7 +264,7 @@ describe('A2b unparseableFrontmatterSurvivesTheRealCliPath', () => {
|
||||
// merge-conflict markers) was unreadable and destroyed. §8.5: "a derived conclusion may not
|
||||
// be reported as authoritative when the derivation dropped input it could not resolve."
|
||||
// Table-driven per the dispatch brief's instruction to check sibling verbs on the same
|
||||
// ADR-3408 §8.3 sanctioned-regenerate list: `REGENERATE_STATE` (`/gsd-health --repair`) is
|
||||
// ADR-3408 §8.3 sanctioned-regenerate list: `REGENERATE_STATE` (`/msd-health --repair`) is
|
||||
// on that list too, but is DESTRUCTIVE-risk and unconditionally REFUSED by `applyRepairs`'s
|
||||
// dispatcher (src/health-diagnostic.cts) before `runRepairAction` is ever invoked — so
|
||||
// `state sync` is the only LIVE verb on the sanctioned path today. No table needed; a single
|
||||
@@ -312,7 +312,7 @@ describe('A2c stateSyncWarnsOnUnparseableFrontmatterRegeneration', () => {
|
||||
const statePath = path.join(tmpDir, '.planning', 'STATE.md');
|
||||
const validFm = [
|
||||
'---',
|
||||
'gsd_state_version: \'1.0\'',
|
||||
'msd_state_version: \'1.0\'',
|
||||
'status: executing',
|
||||
'current_phase: 1',
|
||||
'---',
|
||||
@@ -322,24 +322,24 @@ describe('A2c stateSyncWarnsOnUnparseableFrontmatterRegeneration', () => {
|
||||
return statePath;
|
||||
}
|
||||
|
||||
test('RED (pre-fix) proof: unparseable frontmatter — stderr carries the gsd: warning line and the JSON result surfaces it in `changes`', () => {
|
||||
test('RED (pre-fix) proof: unparseable frontmatter — stderr carries the msd: warning line and the JSON result surfaces it in `changes`', () => {
|
||||
const tmpDir = createTempProject();
|
||||
try {
|
||||
seedPhaseDirs(tmpDir);
|
||||
const statePath = writeConflictState(tmpDir);
|
||||
const r = runNode([TOOLS_PATH, 'state', 'sync', '--raw'], { cwd: tmpDir, timeoutMs: PROBE_TIMEOUT_MS });
|
||||
throwIfFailed(r, 'gsd-tools state sync --raw');
|
||||
throwIfFailed(r, 'msd-tools state sync --raw');
|
||||
|
||||
// Regeneration still happened (unchanged contract — the control test above pins this
|
||||
// for the general case; re-asserted here on the same fixture this warning covers).
|
||||
const after = fs.readFileSync(statePath, 'utf-8');
|
||||
assert.ok(!after.includes('<<<<<<< HEAD'), 'state sync must still regenerate over the unparseable block');
|
||||
|
||||
// Human channel: matches the existing `gsd: warning — ... (#NNNN)` precedent (#3573).
|
||||
// Human channel: matches the existing `msd: warning — ... (#NNNN)` precedent (#3573).
|
||||
assert.match(
|
||||
r.stderr,
|
||||
/gsd: warning — .*frontmatter.*could not be parsed.*regenerated.*\(#3881\)/s,
|
||||
`expected a gsd: warning on stderr naming the unparseable frontmatter; got stderr:\n${r.stderr}\nstdout:\n${r.stdout}`,
|
||||
/msd: warning — .*frontmatter.*could not be parsed.*regenerated.*\(#3881\)/s,
|
||||
`expected a msd: warning on stderr naming the unparseable frontmatter; got stderr:\n${r.stderr}\nstdout:\n${r.stdout}`,
|
||||
);
|
||||
|
||||
// Machine channel: the JSON result's existing `changes` array (the mechanism this
|
||||
@@ -363,7 +363,7 @@ describe('A2c stateSyncWarnsOnUnparseableFrontmatterRegeneration', () => {
|
||||
seedPhaseDirs(tmpDir);
|
||||
const statePath = writeValidState(tmpDir);
|
||||
const r = runNode([TOOLS_PATH, 'state', 'sync', '--raw'], { cwd: tmpDir, timeoutMs: PROBE_TIMEOUT_MS });
|
||||
throwIfFailed(r, 'gsd-tools state sync --raw');
|
||||
throwIfFailed(r, 'msd-tools state sync --raw');
|
||||
|
||||
assert.doesNotMatch(
|
||||
r.stderr,
|
||||
@@ -760,7 +760,7 @@ describe('anchor-alias-bomb refusal (relocated from tests/frontmatter.test.cjs f
|
||||
});
|
||||
|
||||
describe('B1/B2 block-scalar assertions (relocated from tests/frontmatter.test.cjs for mutation-matrix piece 1)', () => {
|
||||
const ADD_TESTS_PATH = path.join(__dirname, '..', 'commands', 'gsd', 'add-tests.md');
|
||||
const ADD_TESTS_PATH = path.join(__dirname, '..', 'commands', 'msd', 'add-tests.md');
|
||||
|
||||
test('B1 blockScalarValueIsNotTheBlockIndicator: argument-instructions is the instruction text, not "|"', () => {
|
||||
const content = fs.readFileSync(ADD_TESTS_PATH, 'utf8');
|
||||
|
||||
Reference in New Issue
Block a user