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:
@@ -23,7 +23,7 @@ const { cleanup } = require('./helpers.cjs');
|
||||
|
||||
const {
|
||||
REVIEWER_LANES,
|
||||
} = require('../gsd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
} = require('../msd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const {
|
||||
resolveLanePlan,
|
||||
resolveLaneEffort,
|
||||
@@ -32,11 +32,11 @@ const {
|
||||
normalizeHost,
|
||||
fileRefPrompt,
|
||||
LANE_UNAVAILABLE,
|
||||
} = require('../gsd-core/bin/lib/review-lane-invocation.cjs');
|
||||
} = require('../msd-core/bin/lib/review-lane-invocation.cjs');
|
||||
|
||||
const RUN = '/run';
|
||||
const ROOT = '/repo';
|
||||
const REVIEW_MD = path.join(__dirname, '..', 'gsd-core', 'workflows', 'review.md');
|
||||
const REVIEW_MD = path.join(__dirname, '..', 'msd-core', 'workflows', 'review.md');
|
||||
|
||||
/** Deterministic property runs — pinned seed, bounded, replay printed on failure. */
|
||||
const FC = { seed: 42, numRuns: 200 };
|
||||
@@ -66,7 +66,7 @@ function resolve(slug, { config = FULL_CONFIG, effortArgs = ['--effort', 'high']
|
||||
});
|
||||
}
|
||||
|
||||
const FILE_REF = fileRefPrompt(`${RUN}/gsd-review-prompt.md`, ROOT);
|
||||
const FILE_REF = fileRefPrompt(`${RUN}/msd-review-prompt.md`, ROOT);
|
||||
|
||||
/**
|
||||
* Fixture/golden-contract DATA describing each shipped reviewer CLI tool's
|
||||
@@ -102,7 +102,7 @@ const GOLDEN = [
|
||||
binary: 'codex',
|
||||
// `exec` is a SUBCOMMAND and must stay first; the output file lands mid-argv and the bare `-`
|
||||
// stays last. Splicing injected flags positionally produced an invalid invocation.
|
||||
argv: ['exec', '--ephemeral', '--model', 'X', '--effort', 'high', '--skip-git-repo-check', '-o', `${RUN}/gsd-review-codex.md`, '-'],
|
||||
argv: ['exec', '--ephemeral', '--model', 'X', '--effort', 'high', '--skip-git-repo-check', '-o', `${RUN}/msd-review-codex.md`, '-'],
|
||||
stdin: true, out: 'file', timeout: CODEX_NATIVE_TIMEOUT_MS,
|
||||
},
|
||||
{ slug: 'coderabbit', binary: 'coderabbit', argv: ['review', '--prompt-only'], stdin: false, out: 'stdout', timeout: CODERABBIT_NATIVE_TIMEOUT_MS },
|
||||
@@ -124,12 +124,12 @@ describe('reviewer lane invocation — golden plans (the strangler-fig contract)
|
||||
assert.equal(p.transport, 'spawn');
|
||||
assert.equal(p.binary, row.binary);
|
||||
assert.deepStrictEqual(p.argv, row.argv);
|
||||
assert.equal(p.stdin, row.stdin ? `${RUN}/gsd-review-prompt.md` : null);
|
||||
assert.equal(p.stdin, row.stdin ? `${RUN}/msd-review-prompt.md` : null);
|
||||
assert.equal(p.outputTarget.kind, row.out === 'file' ? 'file' : 'stdout');
|
||||
assert.equal(p.timeoutMs, row.timeout);
|
||||
// The stderr sidecar is never /dev/null — that is what makes a failed lane diagnosable.
|
||||
assert.equal(p.errPath, `${RUN}/gsd-review-${row.slug}.err`);
|
||||
assert.equal(p.reviewPath, `${RUN}/gsd-review-${row.slug}.md`);
|
||||
assert.equal(p.errPath, `${RUN}/msd-review-${row.slug}.err`);
|
||||
assert.equal(p.reviewPath, `${RUN}/msd-review-${row.slug}.md`);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -379,14 +379,14 @@ describe('reviewer lane invocation — argv-file-ref anchoring (#2176)', () => {
|
||||
for (const slug of ['cursor', 'antigravity', 'kimi-code']) {
|
||||
const r = resolve(slug);
|
||||
const arg = r.plan.argv[r.plan.argv.length - 1];
|
||||
assert.ok(arg.includes(`${RUN}/gsd-review-prompt.md`), `${slug} must name the prompt file`);
|
||||
assert.ok(arg.includes(`${RUN}/msd-review-prompt.md`), `${slug} must name the prompt file`);
|
||||
assert.ok(arg.includes(ROOT), `${slug} must carry the absolute repo root`);
|
||||
}
|
||||
});
|
||||
|
||||
test('the prompt travels in argv as ONE element, never split', () => {
|
||||
const r = resolve('cursor');
|
||||
assert.equal(r.plan.argv.filter((a) => a.includes('gsd-review-prompt.md')).length, 1);
|
||||
assert.equal(r.plan.argv.filter((a) => a.includes('msd-review-prompt.md')).length, 1);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -449,7 +449,7 @@ describe('reviewer lane invocation — absent-safe and hostile input (ADR-2782 D
|
||||
const r = bad({ ...REVIEWER_LANES[0], slug: name });
|
||||
assert.equal(r.ok, true, `${name} is a grammatically valid slug`);
|
||||
assert.equal(r.plan.slug, name);
|
||||
assert.equal(r.plan.reviewPath, `${RUN}/gsd-review-${name}.md`);
|
||||
assert.equal(r.plan.reviewPath, `${RUN}/msd-review-${name}.md`);
|
||||
assert.equal({}.polluted, undefined);
|
||||
}
|
||||
});
|
||||
@@ -639,25 +639,25 @@ describe('reviewer lane invocation — properties', () => {
|
||||
// Folded in from tests/fix-2358-review-temp-path-scoping.test.cjs (#3334 H3 test-hygiene fold-in).
|
||||
//
|
||||
// #2358 — review.md (and ship.md's external peer-review step) wrote every temp file to a
|
||||
// hardcoded, phase-number-only path under /tmp, which two GSD projects sharing a phase number
|
||||
// hardcoded, phase-number-only path under /tmp, which two MSD projects sharing a phase number
|
||||
// could collide on. The fix threads a single run-scoped `mktemp -d` directory through every
|
||||
// review.md temp path.
|
||||
describe('#2358 review.md temp paths are run-scoped, not phase-only', () => {
|
||||
const reviewMdContent = fs.readFileSync(REVIEW_MD, 'utf-8');
|
||||
|
||||
test('no bare, unscoped /tmp/gsd-review-* path remains', () => {
|
||||
test('no bare, unscoped /tmp/msd-review-* path remains', () => {
|
||||
assert.ok(
|
||||
!reviewMdContent.includes('/tmp/gsd-review'),
|
||||
'review.md must not contain any hardcoded /tmp/gsd-review* literal — ' +
|
||||
!reviewMdContent.includes('/tmp/msd-review'),
|
||||
'review.md must not contain any hardcoded /tmp/msd-review* literal — ' +
|
||||
'every review temp path must be rooted under the run-scoped mktemp directory'
|
||||
);
|
||||
});
|
||||
|
||||
test('creates exactly one run-scoped directory via the portable ${TMPDIR:-/tmp} seam', () => {
|
||||
const mktempAssignments = reviewMdContent.match(/RUN_DIR=\$\(mktemp -d "\$\{TMPDIR:-\/tmp\}\/gsd-review-XXXXXX"\)/g) || [];
|
||||
const mktempAssignments = reviewMdContent.match(/RUN_DIR=\$\(mktemp -d "\$\{TMPDIR:-\/tmp\}\/msd-review-XXXXXX"\)/g) || [];
|
||||
assert.equal(
|
||||
mktempAssignments.length, 1,
|
||||
'review.md must create the run directory with exactly one `mktemp -d "${TMPDIR:-/tmp}/gsd-review-XXXXXX"` — ' +
|
||||
'review.md must create the run directory with exactly one `mktemp -d "${TMPDIR:-/tmp}/msd-review-XXXXXX"` — ' +
|
||||
'a hardcoded /tmp (no ${TMPDIR:-/tmp} seam) breaks on Windows, and re-mktemp-ing per block would break the ' +
|
||||
'write/read pairing between build_prompt and the local-reviewer budget-trimming reads'
|
||||
);
|
||||
@@ -665,17 +665,17 @@ describe('#2358 review.md temp paths are run-scoped, not phase-only', () => {
|
||||
|
||||
test('every downstream temp path is threaded through {run_dir} / $RUN_DIR, not re-derived from {phase}', () => {
|
||||
assert.ok(
|
||||
/\{run_dir\}\/gsd-review-/.test(reviewMdContent),
|
||||
'reviewer blocks must reference {run_dir}/gsd-review-... (the run-scoped placeholder)'
|
||||
/\{run_dir\}\/msd-review-/.test(reviewMdContent),
|
||||
'reviewer blocks must reference {run_dir}/msd-review-... (the run-scoped placeholder)'
|
||||
);
|
||||
assert.ok(
|
||||
/\$\{RUN_DIR\}\/gsd-review-/.test(reviewMdContent),
|
||||
'the build_prompt section-file writes must reference ${RUN_DIR}/gsd-review-... (the run-scoped shell var)'
|
||||
/\$\{RUN_DIR\}\/msd-review-/.test(reviewMdContent),
|
||||
'the build_prompt section-file writes must reference ${RUN_DIR}/msd-review-... (the run-scoped shell var)'
|
||||
);
|
||||
// The old isolation key must be gone entirely from path construction.
|
||||
assert.ok(
|
||||
// eslint-disable-next-line local/no-unbounded-quantifier -- parses maintainer-authored review.md workflow, bounded prose, not adversarial input
|
||||
!/\/tmp\/gsd-review[^\r\n]*\{phase\}/.test(reviewMdContent),
|
||||
!/\/tmp\/msd-review[^\r\n]*\{phase\}/.test(reviewMdContent),
|
||||
'no temp path may still be keyed on a bare {phase} placeholder'
|
||||
);
|
||||
assert.ok(
|
||||
@@ -711,7 +711,7 @@ describe('#2358 review.md temp paths are run-scoped, not phase-only', () => {
|
||||
for (const lane of fileRefLanes) {
|
||||
const r = resolveLanePlan({ lane, configGet: () => undefined, runDir: RUN_2358, repoRoot: '/repo' });
|
||||
const arg = r.plan.argv[r.plan.argv.length - 1];
|
||||
assert.ok(arg.includes(`${RUN_2358}/gsd-review-prompt.md`), `${lane.slug} prompt not run-scoped`);
|
||||
assert.ok(arg.includes(`${RUN_2358}/msd-review-prompt.md`), `${lane.slug} prompt not run-scoped`);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -731,7 +731,7 @@ describe('#2358 design principle: run-scoped temp dirs never collide across proj
|
||||
// randomized-suffix isolation) using Node's built-in equivalent, which is
|
||||
// cross-platform (Windows included) unlike shelling out to `mktemp`/bash.
|
||||
test('two runs — even for the same phase number, same or different project — get distinct run dirs', (t) => {
|
||||
const prefix = path.join(os.tmpdir(), 'gsd-review-');
|
||||
const prefix = path.join(os.tmpdir(), 'msd-review-');
|
||||
const runDirA = fs.mkdtempSync(prefix);
|
||||
const runDirB = fs.mkdtempSync(prefix);
|
||||
// helpers.cleanup (not raw fs.rmSync) carries the Windows-EBUSY retry budget.
|
||||
@@ -744,8 +744,8 @@ describe('#2358 design principle: run-scoped temp dirs never collide across proj
|
||||
'two review runs sharing the same phase number must never resolve to the same run-scoped directory'
|
||||
);
|
||||
const phase = '10'; // same phase number in both "projects" — the historical collision case
|
||||
const staleProjectAPath = path.join(runDirA, `gsd-review-prompt.md`);
|
||||
const laterProjectBPath = path.join(runDirB, `gsd-review-prompt.md`);
|
||||
const staleProjectAPath = path.join(runDirA, `msd-review-prompt.md`);
|
||||
const laterProjectBPath = path.join(runDirB, `msd-review-prompt.md`);
|
||||
assert.notEqual(
|
||||
staleProjectAPath, laterProjectBPath,
|
||||
`phase ${phase} in two different runs must not resolve to the same prompt path`
|
||||
@@ -755,7 +755,7 @@ describe('#2358 design principle: run-scoped temp dirs never collide across proj
|
||||
|
||||
describe('#4255 — lane effort comes from REVIEW config, never from another agent', () => {
|
||||
// Before this fix `review-lane plan` resolved every lane's effort by spawning
|
||||
// `query resolve-execution gsd-plan-checker --host <slug>`. The agent id was a hardcoded
|
||||
// `query resolve-execution msd-plan-checker --host <slug>`. The agent id was a hardcoded
|
||||
// literal, so `--host` chose only the argv RENDERING while the LEVEL always came from the
|
||||
// installed plan-checker's frontmatter — `low` under every shipped model profile. A cross-AI
|
||||
// review is the opposite workload from a fast structural verifier, the rendered argument is a
|
||||
@@ -841,7 +841,7 @@ describe('#4255 — lane effort comes from REVIEW config, never from another age
|
||||
// The configuration reference tells the operator which levels survive per host, and a prose
|
||||
// claim about behaviour is a claim that can rot. Pin it against the real renderer so the two
|
||||
// cannot drift. (No file is read here — the lane's clamp table IS the thing being asserted.)
|
||||
const mc = require('../gsd-core/bin/lib/model-catalog.cjs');
|
||||
const mc = require('../msd-core/bin/lib/model-catalog.cjs');
|
||||
const seen = {};
|
||||
for (const host of ['codex', 'claude', 'opencode']) {
|
||||
seen[host] = Object.fromEntries(
|
||||
@@ -868,7 +868,7 @@ describe('#4255 — lane effort comes from REVIEW config, never from another age
|
||||
});
|
||||
|
||||
test('a malformed lane object degrades to no effort instead of throwing', () => {
|
||||
// The resolver is called from gsd-tools.cjs (untyped) with a lane looked up by slug, which
|
||||
// The resolver is called from msd-tools.cjs (untyped) with a lane looked up by slug, which
|
||||
// can miss. Losing one lane's effort is recoverable; a throw there takes down every lane.
|
||||
for (const bad of [null, undefined, {}, { slug: 'x' }]) {
|
||||
assert.deepEqual(resolveLaneEffort(bad, () => 'high', render).argv, []);
|
||||
|
||||
Reference in New Issue
Block a user