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:
@@ -11,7 +11,7 @@
|
||||
* exempt — an unrelated top-level function in that SAME file is not.
|
||||
* - `scanRepo` against the real repo tree: zero unsanctioned
|
||||
* re-derivations (the guard's actual contract).
|
||||
* - The canonical owner itself (`gsd-core/bin/lib/phase-lifecycle.cjs`'s
|
||||
* - The canonical owner itself (`msd-core/bin/lib/phase-lifecycle.cjs`'s
|
||||
* `clampPercent`/`clampPercentFromFraction`) at its numeric boundaries.
|
||||
*
|
||||
* Uses fs.mkdtempSync directly (matching plan-count-single-owner.test.cjs /
|
||||
@@ -29,9 +29,9 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const drift = require('../scripts/lint-completion-ratio-drift.cjs');
|
||||
const { clampPercent, clampPercentFromFraction } = require('../gsd-core/bin/lib/phase-lifecycle.cjs');
|
||||
const { scanPhasePlans } = require('../gsd-core/bin/lib/plan-scan.cjs');
|
||||
const { createTempDir, cleanup, runGsdTools } = require('./helpers.cjs');
|
||||
const { clampPercent, clampPercentFromFraction } = require('../msd-core/bin/lib/phase-lifecycle.cjs');
|
||||
const { scanPhasePlans } = require('../msd-core/bin/lib/plan-scan.cjs');
|
||||
const { createTempDir, cleanup, runMsdTools } = require('./helpers.cjs');
|
||||
const fc = require('./helpers/fast-check-setup.cjs');
|
||||
|
||||
const REPO_ROOT = path.join(__dirname, '..');
|
||||
@@ -262,7 +262,7 @@ describe('findCompletionRatioDrift — MAX_REGEX_LITERAL_LEN boundary on the rep
|
||||
|
||||
describe('scanRepo — synthetic tree', () => {
|
||||
test('a violation in a fresh temp tree is reported with its file and line', (t) => {
|
||||
const root = createTempDir('gsd-completion-ratio-drift-');
|
||||
const root = createTempDir('msd-completion-ratio-drift-');
|
||||
t.after(() => cleanup(root));
|
||||
fs.mkdirSync(path.join(root, 'src'), { recursive: true });
|
||||
fs.writeFileSync(
|
||||
@@ -277,7 +277,7 @@ describe('scanRepo — synthetic tree', () => {
|
||||
});
|
||||
|
||||
test('a clean temp tree with no re-derivations reports zero violations', (t) => {
|
||||
const root = createTempDir('gsd-completion-ratio-drift-');
|
||||
const root = createTempDir('msd-completion-ratio-drift-');
|
||||
t.after(() => cleanup(root));
|
||||
fs.mkdirSync(path.join(root, 'src'), { recursive: true });
|
||||
fs.writeFileSync(path.join(root, 'src', 'clean.cts'), 'const x = 1;\n');
|
||||
@@ -418,7 +418,7 @@ describe('CONSUMER identity (ADR-3180 Decision 4c): percent fields match the can
|
||||
});
|
||||
|
||||
test('roadmap analyze: progress_percent matches clampPercent(owner totals)', (t) => {
|
||||
const cwd = createTempDir('gsd-completion-ratio-consumer-');
|
||||
const cwd = createTempDir('msd-completion-ratio-consumer-');
|
||||
t.after(() => cleanup(cwd));
|
||||
const dirs = buildFixture(cwd);
|
||||
|
||||
@@ -426,14 +426,14 @@ describe('CONSUMER identity (ADR-3180 Decision 4c): percent fields match the can
|
||||
const expected = clampPercent(totalSummaries, totalPlans);
|
||||
assert.strictEqual(expected, 75, 'fixture sanity: must match the power-proof test above');
|
||||
|
||||
const result = runGsdTools(['roadmap', 'analyze', '--cwd', cwd, '--raw'], cwd);
|
||||
const result = runMsdTools(['roadmap', 'analyze', '--cwd', cwd, '--raw'], cwd);
|
||||
assert.strictEqual(result.success, true, result.error);
|
||||
const analyzed = JSON.parse(result.output);
|
||||
assert.strictEqual(analyzed.progress_percent, expected);
|
||||
});
|
||||
|
||||
test('query progress: the percent field matches clampPercent(owner totals)', (t) => {
|
||||
const cwd = createTempDir('gsd-completion-ratio-consumer-');
|
||||
const cwd = createTempDir('msd-completion-ratio-consumer-');
|
||||
t.after(() => cleanup(cwd));
|
||||
const dirs = buildFixture(cwd);
|
||||
|
||||
@@ -441,14 +441,14 @@ describe('CONSUMER identity (ADR-3180 Decision 4c): percent fields match the can
|
||||
const expected = clampPercent(totalSummaries, totalPlans);
|
||||
assert.strictEqual(expected, 75, 'fixture sanity: must match the power-proof test above');
|
||||
|
||||
const result = runGsdTools(['query', 'progress', '--cwd', cwd, '--raw'], cwd);
|
||||
const result = runMsdTools(['query', 'progress', '--cwd', cwd, '--raw'], cwd);
|
||||
assert.strictEqual(result.success, true, result.error);
|
||||
const rendered = JSON.parse(result.output);
|
||||
assert.strictEqual(rendered.percent, expected);
|
||||
});
|
||||
|
||||
test('stats: plan_percent matches clampPercent(owner totals); percent (phase-level) matches clampPercent of its own reported completed/total', (t) => {
|
||||
const cwd = createTempDir('gsd-completion-ratio-consumer-');
|
||||
const cwd = createTempDir('msd-completion-ratio-consumer-');
|
||||
t.after(() => cleanup(cwd));
|
||||
const dirs = buildFixture(cwd);
|
||||
|
||||
@@ -456,7 +456,7 @@ describe('CONSUMER identity (ADR-3180 Decision 4c): percent fields match the can
|
||||
const expectedPlanPercent = clampPercent(totalSummaries, totalPlans);
|
||||
assert.strictEqual(expectedPlanPercent, 75, 'fixture sanity: must match the power-proof test above');
|
||||
|
||||
const result = runGsdTools(['stats', '--cwd', cwd, '--raw'], cwd);
|
||||
const result = runMsdTools(['stats', '--cwd', cwd, '--raw'], cwd);
|
||||
assert.strictEqual(result.success, true, result.error);
|
||||
const stats = JSON.parse(result.output);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user