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:
@@ -103,11 +103,11 @@ describe('ci-test-scope.cjs', () => {
|
||||
`expected semver-compare in targeted_tests, got: ${JSON.stringify(result.targeted_tests)}`);
|
||||
});
|
||||
|
||||
test('product code (gsd-core/bin/lib/foo.cjs) — product_changed true', () => {
|
||||
const result = scopeFor(['gsd-core/bin/lib/foo.cjs']);
|
||||
test('product code (msd-core/bin/lib/foo.cjs) — product_changed true', () => {
|
||||
const result = scopeFor(['msd-core/bin/lib/foo.cjs']);
|
||||
assert.strictEqual(result.code_changed, true);
|
||||
assert.strictEqual(result.product_changed, true,
|
||||
`expected product_changed=true for gsd-core/ change, got: ${JSON.stringify(result)}`);
|
||||
`expected product_changed=true for msd-core/ change, got: ${JSON.stringify(result)}`);
|
||||
});
|
||||
|
||||
test('unknown/new workflow defaults to pipeline (fail-safe) — product_changed true', () => {
|
||||
@@ -120,8 +120,8 @@ describe('ci-test-scope.cjs', () => {
|
||||
});
|
||||
|
||||
test('mixed docs + code — escalates to product_changed true', () => {
|
||||
// Use bin/gsd (installer rule, fullMatrix:true) to get a code file that reliably triggers full matrix.
|
||||
const result = scopeFor(['docs/x.md', 'bin/gsd']);
|
||||
// Use bin/msd (installer rule, fullMatrix:true) to get a code file that reliably triggers full matrix.
|
||||
const result = scopeFor(['docs/x.md', 'bin/msd']);
|
||||
assert.strictEqual(result.code_changed, true);
|
||||
assert.strictEqual(result.product_changed, true,
|
||||
`expected product_changed=true for docs+code, got: ${JSON.stringify(result)}`);
|
||||
@@ -155,7 +155,7 @@ describe('ci-test-scope.cjs', () => {
|
||||
});
|
||||
|
||||
test('command changes request command tests without full parity matrix', () => {
|
||||
const result = scopeFor(['commands/gsd/plan-phase.md']);
|
||||
const result = scopeFor(['commands/msd/plan-phase.md']);
|
||||
assert.strictEqual(result.code_changed, true);
|
||||
assert.strictEqual(result.full_matrix, false);
|
||||
assert.ok(result.targeted_tests.includes('tests/command-contract.test.cjs'));
|
||||
@@ -171,10 +171,10 @@ describe('ci-test-scope.cjs', () => {
|
||||
});
|
||||
|
||||
test('installer-sensitive changes request full matrix and install tests', () => {
|
||||
const result = scopeFor(['bin/gsd']);
|
||||
const result = scopeFor(['bin/msd']);
|
||||
assert.strictEqual(result.code_changed, true);
|
||||
assert.strictEqual(result.product_changed, true,
|
||||
`expected product_changed=true for bin/gsd, got: ${JSON.stringify(result)}`);
|
||||
`expected product_changed=true for bin/msd, got: ${JSON.stringify(result)}`);
|
||||
assert.strictEqual(result.full_matrix, true);
|
||||
assert.ok(result.targeted_tests.includes('tests/install.test.cjs'));
|
||||
// release-tarball-smoke.install.test.cjs is intentionally EXCLUDED from the
|
||||
@@ -201,7 +201,7 @@ describe('ci-test-scope.cjs', () => {
|
||||
// bug-408: unconditional DEFAULT_SMOKE_TESTS injection removed; unit fallback added
|
||||
test('bug-408: code change with matched rules produces exactly the rule-selected tests (no smoke list appended)', () => {
|
||||
// commands/ matches the "command definitions" rule only — no smoke list should be added
|
||||
const result = scopeFor(['commands/gsd/plan-phase.md']);
|
||||
const result = scopeFor(['commands/msd/plan-phase.md']);
|
||||
assert.strictEqual(result.code_changed, true);
|
||||
const expectedTests = [
|
||||
'tests/command-contract.test.cjs',
|
||||
@@ -224,8 +224,8 @@ describe('ci-test-scope.cjs', () => {
|
||||
});
|
||||
|
||||
test('bug-408: code change with no rule match falls back to unit suite token', () => {
|
||||
// A plain source file that matches no RULES entry but is under gsd-core/ (code path)
|
||||
const result = scopeFor(['gsd-core/src/some-util.js']);
|
||||
// A plain source file that matches no RULES entry but is under msd-core/ (code path)
|
||||
const result = scopeFor(['msd-core/src/some-util.js']);
|
||||
assert.strictEqual(result.code_changed, true);
|
||||
assert.deepStrictEqual(result.targeted_tests, ['unit'],
|
||||
'targeted_tests must be [\'unit\'] when code changed but no rule matched');
|
||||
@@ -368,7 +368,7 @@ describe('ci-test-scope superset invariant (#494, rescinded by #4421)', () => {
|
||||
});
|
||||
|
||||
test('B3: commands/** change selects docs-parity-live-registry', () => {
|
||||
const result = scopeFor(['commands/gsd/plan-phase.md']);
|
||||
const result = scopeFor(['commands/msd/plan-phase.md']);
|
||||
assert.ok(
|
||||
result.targeted_tests.some(t => t.includes('docs-parity-live-registry')),
|
||||
`expected docs-parity-live-registry in targeted_tests for commands/** change, got: ${JSON.stringify(result.targeted_tests)}`,
|
||||
@@ -635,28 +635,28 @@ describe('emitted-provenance selection (#1691 drift guard, retargeted by #2724)'
|
||||
});
|
||||
|
||||
describe('shipped install content (emitted-attribution drift guard, #2267, retargeted by #2724)', () => {
|
||||
// #2266 regression: hooks/gsd-statusline.js changed installed output but no
|
||||
// #2266 regression: hooks/msd-statusline.js changed installed output but no
|
||||
// RULES entry selected the drift guard, so stale emitted state merged to `next`
|
||||
// undetected. The installer emits hooks/*, commands/*, agents/*, skills/*,
|
||||
// gsd-core/workflows/*, gsd-core/templates/*, gsd-core/references/*,
|
||||
// gsd-core/bin/shared/*.json, and a handful of shipped scripts/* files — every
|
||||
// msd-core/workflows/*, msd-core/templates/*, msd-core/references/*,
|
||||
// msd-core/bin/shared/*.json, and a handful of shipped scripts/* files — every
|
||||
// one of those paths must additionally select the emitted gates AND the
|
||||
// install-tree snapshot (union semantics: this rule ADDS to whatever
|
||||
// content-specific rule already matched the path). Originally asserted the now-
|
||||
// deleted tests/golden-install-parity.test.cjs (#2724, ADR-2719 Phase 4).
|
||||
// One path per prefix the rule handles — every installed-source dir the
|
||||
// installer emits. gsd-core/contexts/ is the regression for the review miss
|
||||
// installer emits. msd-core/contexts/ is the regression for the review miss
|
||||
// (a real shipped dir that the initial enumeration omitted).
|
||||
const SHIPPED_PATHS = [
|
||||
'hooks/gsd-statusline.js', // exact #2266 regression
|
||||
'gsd-core/workflows/plan-phase.md',
|
||||
'gsd-core/templates/config.json',
|
||||
'gsd-core/references/ui-brand.md',
|
||||
'gsd-core/contexts/dev.md', // regression: initially omitted from the rule
|
||||
'agents/gsd-planner.md',
|
||||
'commands/gsd/mempalace-capture.md',
|
||||
'skills/gsd-explore/SKILL.md',
|
||||
'gsd-core/bin/shared/model-catalog.json',
|
||||
'hooks/msd-statusline.js', // exact #2266 regression
|
||||
'msd-core/workflows/plan-phase.md',
|
||||
'msd-core/templates/config.json',
|
||||
'msd-core/references/ui-brand.md',
|
||||
'msd-core/contexts/dev.md', // regression: initially omitted from the rule
|
||||
'agents/msd-planner.md',
|
||||
'commands/msd/mempalace-capture.md',
|
||||
'skills/msd-explore/SKILL.md',
|
||||
'msd-core/bin/shared/model-catalog.json',
|
||||
'scripts/changeset/lint.cjs',
|
||||
'scripts/lib/cli-exit.cjs',
|
||||
'scripts/fix-slash-commands.cjs', // exact-match allowlist entry
|
||||
@@ -734,9 +734,9 @@ describe('the two emitted gates always travel together (#2758, simplified by #27
|
||||
});
|
||||
|
||||
test('a pure shipped-content path selects both emitted gates', () => {
|
||||
// #2758 AC: "a pure shipped-content path (e.g. gsd-core/workflows/plan-phase.md)
|
||||
// #2758 AC: "a pure shipped-content path (e.g. msd-core/workflows/plan-phase.md)
|
||||
// selects the differential." The archetypal emitted ripple.
|
||||
const result = scopeFor(['gsd-core/workflows/plan-phase.md']);
|
||||
const result = scopeFor(['msd-core/workflows/plan-phase.md']);
|
||||
assert.strictEqual(result.code_changed, true);
|
||||
for (const g of GATES) {
|
||||
assert.ok(
|
||||
@@ -855,7 +855,7 @@ describe('code_changed=false implies clean output invariant', () => {
|
||||
test('code_changed=true implies non-empty targeted_tests', () => {
|
||||
for (const files of [
|
||||
['src/semver.cts'],
|
||||
['bin/gsd'],
|
||||
['bin/msd'],
|
||||
['.github/workflows/test.yml'],
|
||||
['.github/workflows/stale.yml'],
|
||||
]) {
|
||||
@@ -1183,7 +1183,7 @@ describe('bug #641 — --files-from with bare suite token', () => {
|
||||
let tmpDir;
|
||||
|
||||
beforeEach(() => {
|
||||
tmpDir = createTempDir('gsd-641-suite-token-');
|
||||
tmpDir = createTempDir('msd-641-suite-token-');
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
@@ -1300,7 +1300,7 @@ describe('bug #1329 — ci-prepare-test-scope fallback never emits a deleted fil
|
||||
|
||||
let tmpDir;
|
||||
beforeEach(() => {
|
||||
tmpDir = createTempDir('gsd-1329-fallback-');
|
||||
tmpDir = createTempDir('msd-1329-fallback-');
|
||||
fs.mkdirSync(path.join(tmpDir, 'tests'), { recursive: true });
|
||||
});
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user