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

@@ -1,7 +1,7 @@
'use strict';
// Issue #966 — behavior-dependent must-haves must not pass on symbol presence.
// Content-assertion contract for the gsd-verifier agent: the
// Content-assertion contract for the msd-verifier agent: the
// PRESENT_BEHAVIOR_UNVERIFIED per-truth state, its routing to human_needed,
// the behavior-verified score split, and the parity invariant that the new
// per-truth state never leaks into the overall-status vocabulary.
@@ -12,9 +12,9 @@ const fs = require('node:fs');
const path = require('node:path');
const ROOT = path.join(__dirname, '..');
const verifierPath = path.join(ROOT, 'agents', 'gsd-verifier.md');
const verifierPath = path.join(ROOT, 'agents', 'msd-verifier.md');
const verifier = fs.readFileSync(verifierPath, 'utf-8');
const standaloneTemplatePath = path.join(ROOT, 'gsd-core', 'templates', 'verification-report.md');
const standaloneTemplatePath = path.join(ROOT, 'msd-core', 'templates', 'verification-report.md');
const standalone = fs.readFileSync(standaloneTemplatePath, 'utf-8');
test('Step 3 defines the PRESENT_BEHAVIOR_UNVERIFIED per-truth state', () => {
@@ -84,7 +84,7 @@ test('overall-status enum in verification.cts is unchanged (no per-truth leak)',
// Assert on the real exported runtime value rather than regexing the
// source text — strictly stronger (exercises the built module) and
// immune to source formatting changes.
const verificationLib = require(path.join(ROOT, 'gsd-core', 'bin', 'lib', 'verification.cjs'));
const verificationLib = require(path.join(ROOT, 'msd-core', 'bin', 'lib', 'verification.cjs'));
const { VERIFIER_STATUSES } = verificationLib;
assert.ok(Array.isArray(VERIFIER_STATUSES), 'VERIFIER_STATUSES array must be present');
assert.ok(
@@ -104,7 +104,7 @@ test('VERIFICATION.md templates carry behavior_unverified + the new truth-state'
assert.match(standalone, /behavior_unverified_items/);
});
const verifyPhase = fs.readFileSync(path.join(ROOT, 'gsd-core', 'references', 'verifier-phase-gates.md'), 'utf-8');
const verifyPhase = fs.readFileSync(path.join(ROOT, 'msd-core', 'references', 'verifier-phase-gates.md'), 'utf-8');
const planningArtifacts = fs.readFileSync(path.join(ROOT, 'docs', 'reference', 'planning-artifacts.md'), 'utf-8');
test('shipped verifier-phase-gates reference mirrors the behavior-unverified calibration', () => {
@@ -147,11 +147,11 @@ const { describe, test } = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const { scanFencedBlocks } = require('../gsd-core/bin/lib/markdown-sectionizer.cjs');
const { findTableWithColumns } = require('../gsd-core/bin/lib/markdown-table.cjs');
const { scanFencedBlocks } = require('../msd-core/bin/lib/markdown-sectionizer.cjs');
const { findTableWithColumns } = require('../msd-core/bin/lib/markdown-table.cjs');
const REPO_ROOT = path.join(__dirname, '..');
const VERIFIER_AGENT = path.join(REPO_ROOT, 'agents', 'gsd-verifier.md');
const VERIFIER_AGENT = path.join(REPO_ROOT, 'agents', 'msd-verifier.md');
function verifierProbeContract(content) {
const sectionStart = content.indexOf('## Step 7c: Probe Execution');
@@ -181,7 +181,7 @@ function verifierProbeContract(content) {
};
}
describe('bug #3321: gsd-verifier runs probes instead of trusting SUMMARY claims', () => {
describe('bug #3321: msd-verifier runs probes instead of trusting SUMMARY claims', () => {
test('verifier prompt requires direct probe discovery and execution', () => {
const content = fs.readFileSync(VERIFIER_AGENT, 'utf8');
const contract = verifierProbeContract(content);
@@ -199,7 +199,7 @@ describe('bug #3321: gsd-verifier runs probes instead of trusting SUMMARY claims
'Exit code 0 is PASS. Any non-zero exit is FAILED and must include stdout/stderr evidence in VERIFICATION.md.',
'Do not substitute executor narration, SUMMARY.md PASS-marker counts, or a different dry-run driver command for the probe result.',
]);
assert.equal(contract.executionCommand, 'for probe in "${PROBES[@]}"; do\n gsd_run run-with-timeout 30 -- bash "$probe"\ndone');
assert.equal(contract.executionCommand, 'for probe in "${PROBES[@]}"; do\n msd_run run-with-timeout 30 -- bash "$probe"\ndone');
assert.deepEqual(contract.statusRows, [{
probe: 'scripts/.../probe-name.sh',
command: 'bash "$probe"',
@@ -215,7 +215,7 @@ describe('bug #3321: gsd-verifier runs probes instead of trusting SUMMARY claims
// The agent file IS the deployed product; content assertions test the shipped
// contract (same basis as every test above).
const verifierPhaseGatesPath = path.join(ROOT, 'gsd-core', 'references', 'verifier-phase-gates.md');
const verifierPhaseGatesPath = path.join(ROOT, 'msd-core', 'references', 'verifier-phase-gates.md');
const verifierPhaseGates = fs.readFileSync(verifierPhaseGatesPath, 'utf-8');
test('#3206: step 5b defines explicit evidence inline — presence+wiring never qualifies', () => {
@@ -227,19 +227,19 @@ test('#3206: step 5b defines explicit evidence inline — presence+wiring never
assert.match(m[0], /\*never\* qualifies/, 'presence+wiring must be excluded in the 5b line itself');
});
test('#3206: every references-tree cite in gsd-verifier.md resolves on disk as written', () => {
test('#3206: every references-tree cite in msd-verifier.md resolves on disk as written', () => {
// Pre-fix, this file cited `references/honest-verifier.md` — a bare path that
// 404s from repo root after the reference-tree reorg. Every cite must now
// resolve exactly as written.
const citeRe = /`((?:gsd-core\/)?references\/[A-Za-z0-9._-]+\.md)`/g;
const citeRe = /`((?:msd-core\/)?references\/[A-Za-z0-9._-]+\.md)`/g;
const cites = [...verifier.matchAll(citeRe)].map((m) => m[1]);
assert.ok(cites.includes('gsd-core/references/honest-verifier.md'), 'the 5c honest-verifier cite');
assert.ok(cites.includes('gsd-core/references/verify-mvp-mode.md'), 'the MVP-mode cite');
assert.ok(cites.includes('msd-core/references/honest-verifier.md'), 'the 5c honest-verifier cite');
assert.ok(cites.includes('msd-core/references/verify-mvp-mode.md'), 'the MVP-mode cite');
assert.ok(cites.length >= 2, `expected the two repaired cites, found ${cites.length}`);
for (const cited of cites) {
assert.ok(
fs.existsSync(path.join(ROOT, cited)),
`gsd-verifier.md cites \`${cited}\` but no such file exists — the agent is handed a path that does not resolve (#3206)`,
`msd-verifier.md cites \`${cited}\` but no such file exists — the agent is handed a path that does not resolve (#3206)`,
);
}
});
@@ -247,9 +247,9 @@ test('#3206: every references-tree cite in gsd-verifier.md resolves on disk as w
test('#3206: backstop reporting contract is in the eagerly-included verifier-phase-gates.md', () => {
// The AFK-projection and insufficient_spec-distinctness clauses must be
// reachable from the agent's guaranteed reading path: verifier-phase-gates.md
// is @~/-included by gsd-verifier.md, so pinning their presence there pins
// is @~/-included by msd-verifier.md, so pinning their presence there pins
// their reachability.
assert.match(verifier, /@~\/\.claude\/gsd-core\/references\/verifier-phase-gates\.md/);
assert.match(verifier, /@~\/\.claude\/msd-core\/references\/verifier-phase-gates\.md/);
assert.match(verifierPhaseGates, /Never silent, never a hard halt/);
assert.match(verifierPhaseGates, /complete with N unverified non-inferable checks/);
assert.match(verifierPhaseGates, /Distinguishable reason/);