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:
Jakub Zych
2026-10-06 01:47:40 +02:00
parent fe069b2a56
commit a9a7a328e6
2763 changed files with 78465 additions and 78434 deletions

View File

@@ -36,7 +36,7 @@ const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const { createTempProject, cleanup, runGsdTools } = require('./helpers.cjs');
const { createTempProject, cleanup, runMsdTools } = require('./helpers.cjs');
const RAW_PROJECTION = 50000; // what the planner would say with no history
const TRUE_COST = 100000; // reality: consistently 2x the raw projection
@@ -44,7 +44,7 @@ const TRUE_RATIO = TRUE_COST / RAW_PROJECTION;
/** Drive one full plan→execute→calibrate cycle and return what the user sees. */
function runPhase(tmpDir, phaseIndex) {
const factorRaw = runGsdTools('query estimate-calibration --pick factor --raw', tmpDir).output;
const factorRaw = runMsdTools('query estimate-calibration --pick factor --raw', tmpDir).output;
const factor = Number(String(factorRaw).trim()) || 1;
// The planner emits tokens = raw x factor, and records the raw projection.
@@ -58,11 +58,11 @@ function runPhase(tmpDir, phaseIndex) {
fs.writeFileSync(path.join(dir, '01-SUMMARY.md'),
`---\nphase: p\nactuals:\n tokens: ${TRUE_COST}\n tasks: 3\n commits: 5\n---\nx\n`);
runGsdTools('query estimate-calibrate', tmpDir);
runMsdTools('query estimate-calibrate', tmpDir);
// What the checker actually compares against the budget for this plan.
const check = JSON.parse(
runGsdTools(`query estimate-check --tokens ${emitted} --calibrated`, tmpDir).output,
runMsdTools(`query estimate-check --tokens ${emitted} --calibrated`, tmpDir).output,
);
return { factor, emitted, userSees: check.calibrated_tokens };
}
@@ -114,11 +114,11 @@ describe('estimation feedback loop', () => {
`---\nphase: p\nactuals:\n tokens: ${cost}\n tasks: 3\n commits: 5\n---\nx\n`);
});
const out = JSON.parse(runGsdTools('query estimate-calibrate', tmpDir).output);
const out = JSON.parse(runMsdTools('query estimate-calibrate', tmpDir).output);
assert.ok(out.factor >= 0.5 && out.factor <= 3.0,
`factor ${out.factor} escaped the clamp under an adversarial history`);
const check = JSON.parse(runGsdTools('query estimate-check --tokens 50000', tmpDir).output);
const check = JSON.parse(runMsdTools('query estimate-check --tokens 50000', tmpDir).output);
assert.ok(check.calibrated_tokens >= 25000 && check.calibrated_tokens <= 150000,
`a corrected estimate of ${check.calibrated_tokens} is outside the clamp's reachable range`);
});
@@ -137,10 +137,10 @@ describe('estimation feedback loop', () => {
`---\nphase: p\nactuals:\n tokens: 60000\n tasks: 3\n commits: 5\n---\nx\n`);
}
const out = JSON.parse(runGsdTools('query estimate-calibrate', tmpDir).output);
const out = JSON.parse(runMsdTools('query estimate-calibrate', tmpDir).output);
assert.equal(out.factor, 1, 'an accurate project must be a fixed point — no correction applied');
const check = JSON.parse(runGsdTools('query estimate-check --tokens 60000', tmpDir).output);
const check = JSON.parse(runMsdTools('query estimate-check --tokens 60000', tmpDir).output);
assert.equal(check.calibrated_tokens, 60000, 'an accurate estimate must pass through unchanged');
});
});