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:
@@ -8,7 +8,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
process.env.GSD_TEST_MODE = '1';
|
||||
process.env.MSD_TEST_MODE = '1';
|
||||
|
||||
const { describe, test } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
@@ -16,10 +16,10 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const fc = require('fast-check');
|
||||
|
||||
const SPEC_PHASE_PATH = path.join(__dirname, '..', 'gsd-core', 'workflows', 'spec-phase.md');
|
||||
const EDGE_PROBE_REF_PATH = path.join(__dirname, '..', 'gsd-core', 'references', 'edge-probe.md');
|
||||
const SPEC_PHASE_PATH = path.join(__dirname, '..', 'msd-core', 'workflows', 'spec-phase.md');
|
||||
const EDGE_PROBE_REF_PATH = path.join(__dirname, '..', 'msd-core', 'references', 'edge-probe.md');
|
||||
const { classifyShape, applicableCategories } = require(
|
||||
path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'edge-probe.cjs'),
|
||||
path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'edge-probe.cjs'),
|
||||
);
|
||||
|
||||
function readSpecPhase() {
|
||||
@@ -122,11 +122,11 @@ test('RR-11: spec-phase Step 5.5 has an explicit not-found branch (build:lib or
|
||||
});
|
||||
|
||||
// Test D (review High): the build fallback must NEVER run the CONSUMING project's package
|
||||
// scripts. Every executable `build:lib` invocation must be pinned to the GSD dir with
|
||||
// `npm --prefix`, and the build must be gated behind a verified GSD source checkout. A bare
|
||||
// scripts. Every executable `build:lib` invocation must be pinned to the MSD dir with
|
||||
// `npm --prefix`, and the build must be gated behind a verified MSD source checkout. A bare
|
||||
// `npm run build:lib` (no --prefix) uses cwd — which, under the git-toplevel fallback, is the
|
||||
// consumer repo — and would execute its codegen/migrations during a spec workflow.
|
||||
test('review High: Step 5.5 build:lib is --prefix-pinned to the GSD dir and gated on a source checkout', () => {
|
||||
test('review High: Step 5.5 build:lib is --prefix-pinned to the MSD dir and gated on a source checkout', () => {
|
||||
const content = readSpecPhase();
|
||||
const block = extractStep55Block(content);
|
||||
assert.ok(block.length > 0, 'Step 5.5 block must be extractable from spec-phase.md');
|
||||
@@ -144,17 +144,17 @@ test('review High: Step 5.5 build:lib is --prefix-pinned to the GSD dir and gate
|
||||
for (const line of buildInvocations) {
|
||||
assert.match(
|
||||
line,
|
||||
/npm\s+--prefix\s+"?\$?\{?_?GSD_RT/,
|
||||
`build:lib must be pinned with \`npm --prefix "$_GSD_RT"\` so it never runs the consuming project's scripts — offending line: ${line.trim()}`
|
||||
/npm\s+--prefix\s+"?\$?\{?_?MSD_RT/,
|
||||
`build:lib must be pinned with \`npm --prefix "$_MSD_RT"\` so it never runs the consuming project's scripts — offending line: ${line.trim()}`
|
||||
);
|
||||
}
|
||||
|
||||
// The build must be gated behind a verified GSD source checkout (tsconfig.build.json present),
|
||||
// The build must be gated behind a verified MSD source checkout (tsconfig.build.json present),
|
||||
// so it cannot fire inside a plain consumer repo where the artifact merely happens to be absent.
|
||||
assert.match(
|
||||
block,
|
||||
/tsconfig\.build\.json/,
|
||||
'Step 5.5 must gate the build behind a GSD source checkout (e.g. test -f "$_GSD_RT/tsconfig.build.json")'
|
||||
'Step 5.5 must gate the build behind a MSD source checkout (e.g. test -f "$_MSD_RT/tsconfig.build.json")'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -266,7 +266,7 @@ test('#3132: spec-phase.md uses resolved/dismissed/unresolved — not covered/ba
|
||||
});
|
||||
|
||||
test('#3132: plan-phase.md lift rule uses resolved+verification — not covered/backstop', () => {
|
||||
const planPath = path.join(__dirname, '..', 'gsd-core', 'workflows', 'plan-phase.md');
|
||||
const planPath = path.join(__dirname, '..', 'msd-core', 'workflows', 'plan-phase.md');
|
||||
const content = fs.readFileSync(planPath, 'utf8');
|
||||
// The lift rule should not reference "covered edge" or "backstop edge" as statuses
|
||||
assert.doesNotMatch(content, /`covered` edge/,
|
||||
@@ -279,7 +279,7 @@ test('#3132: plan-phase.md lift rule uses resolved+verification — not covered/
|
||||
});
|
||||
|
||||
test('#3132: ui-phase.md resolution loop uses resolved+verification — not covered/backstop', () => {
|
||||
const uiPath = path.join(__dirname, '..', 'gsd-core', 'workflows', 'ui-phase.md');
|
||||
const uiPath = path.join(__dirname, '..', 'msd-core', 'workflows', 'ui-phase.md');
|
||||
const content = fs.readFileSync(uiPath, 'utf8');
|
||||
// The resolution options should not use covered/backstop as status values
|
||||
assert.doesNotMatch(content, /→ `covered`/,
|
||||
@@ -290,7 +290,7 @@ test('#3132: ui-phase.md resolution loop uses resolved+verification — not cove
|
||||
});
|
||||
|
||||
test('#3132: specless-probe-fallback.md uses resolved+verification — not covered/backstop', () => {
|
||||
const fallbackPath = path.join(__dirname, '..', 'gsd-core', 'references', 'specless-probe-fallback.md');
|
||||
const fallbackPath = path.join(__dirname, '..', 'msd-core', 'references', 'specless-probe-fallback.md');
|
||||
const content = fs.readFileSync(fallbackPath, 'utf8');
|
||||
// The fallback reference is @-loaded by plan-phase.md when EDGE_ABSENT
|
||||
assert.doesNotMatch(content, /auto-`covered`/,
|
||||
@@ -564,7 +564,7 @@ test('#3717: the edge-probe reference documents the text_en field', () => {
|
||||
describe('#4656: the zero-applicable guard is widened to the all-unclassified case', () => {
|
||||
// allow-test-rule: source-text-is-the-product (#4656) — spec-phase.md/ui-phase.md
|
||||
// guard text is the shipped workflow contract.
|
||||
const read = (f) => fs.readFileSync(path.join(__dirname, '..', 'gsd-core', 'workflows', f), 'utf-8');
|
||||
const read = (f) => fs.readFileSync(path.join(__dirname, '..', 'msd-core', 'workflows', f), 'utf-8');
|
||||
|
||||
test('spec-phase extracts coverage.unclassified and the guard fires on either condition', () => {
|
||||
const content = read('spec-phase.md');
|
||||
|
||||
Reference in New Issue
Block a user