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

@@ -12,8 +12,8 @@ const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const SKILL = path.join(__dirname, '..', 'skills', 'gsd-mempalace-capture', 'SKILL.md');
const COMMAND = path.join(__dirname, '..', 'commands', 'gsd', 'mempalace-capture.md');
const SKILL = path.join(__dirname, '..', 'skills', 'msd-mempalace-capture', 'SKILL.md');
const COMMAND = path.join(__dirname, '..', 'commands', 'msd', 'mempalace-capture.md');
describe('#2641 — mempalace-capture gate treats absent capture_artifacts as enabled', () => {
test('SKILL.md uses === false (disabled only on explicit false), not !== true', () => {
@@ -28,15 +28,15 @@ describe('#2641 — mempalace-capture gate treats absent capture_artifacts as en
);
});
test('commands/gsd/mempalace-capture.md uses === false, not !== true', () => {
test('commands/msd/mempalace-capture.md uses === false, not !== true', () => {
const text = fs.readFileSync(COMMAND, 'utf8');
assert.ok(
text.includes('capture_artifacts === false'),
'commands/gsd/mempalace-capture.md must use capture_artifacts === false (#2641)',
'commands/msd/mempalace-capture.md must use capture_artifacts === false (#2641)',
);
assert.ok(
!text.includes('capture_artifacts !== true'),
'commands/gsd/mempalace-capture.md must NOT use the inverted check (#2641)',
'commands/msd/mempalace-capture.md must NOT use the inverted check (#2641)',
);
});
});
@@ -47,13 +47,13 @@ describe('#2641 — mempalace-capture gate treats absent capture_artifacts as en
// absent key as disabled — inverted from the registry default. Every gate on a
// default-true key must treat absent as enabled (disabled only on an explicit
// false); every gate on a default-false key must keep requiring positive
// presence. The hand-maintained commands/gsd/*.md mirrors must stay in lockstep
// presence. The hand-maintained commands/msd/*.md mirrors must stay in lockstep
// with their skills/*/SKILL.md originals.
const RECALL_SKILL = path.join(__dirname, '..', 'skills', 'gsd-mempalace-recall', 'SKILL.md');
const RECALL_COMMAND = path.join(__dirname, '..', 'commands', 'gsd', 'mempalace-recall.md');
const CURATOR = path.join(__dirname, '..', 'agents', 'gsd-mempalace-curator.md');
const REGISTRY_PATH = path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'capability-registry.cjs');
const RECALL_SKILL = path.join(__dirname, '..', 'skills', 'msd-mempalace-recall', 'SKILL.md');
const RECALL_COMMAND = path.join(__dirname, '..', 'commands', 'msd', 'mempalace-recall.md');
const CURATOR = path.join(__dirname, '..', 'agents', 'msd-mempalace-curator.md');
const REGISTRY_PATH = path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'capability-registry.cjs');
/** Deep-search the mempalace capability for the flat settings schema keyed `mempalace.<key>`. */
function mempalaceSettings() {
@@ -88,23 +88,23 @@ describe('#3479 — gates on default-true mempalace keys treat an absent key as
const text = fs.readFileSync(SKILL, 'utf8');
assert.ok(
text.includes('config.mempalace.mirror_kg === false'),
'skills/gsd-mempalace-capture/SKILL.md step 3 must mirror KG facts unless config.mempalace.mirror_kg === false (#3479)',
'skills/msd-mempalace-capture/SKILL.md step 3 must mirror KG facts unless config.mempalace.mirror_kg === false (#3479)',
);
assert.ok(
!text.includes('config.mempalace.mirror_kg` is true'),
'skills/gsd-mempalace-capture/SKILL.md must NOT gate mirror_kg on positive presence — absent means enabled per the registry default (#3479)',
'skills/msd-mempalace-capture/SKILL.md must NOT gate mirror_kg on positive presence — absent means enabled per the registry default (#3479)',
);
});
test('commands/gsd/mempalace-capture.md mirror_kg gate matches the skill', () => {
test('commands/msd/mempalace-capture.md mirror_kg gate matches the skill', () => {
const text = fs.readFileSync(COMMAND, 'utf8');
assert.ok(
text.includes('config.mempalace.mirror_kg === false'),
'commands/gsd/mempalace-capture.md is a hand-maintained mirror of the skill — its mirror_kg gate needs the same fix (#3479)',
'commands/msd/mempalace-capture.md is a hand-maintained mirror of the skill — its mirror_kg gate needs the same fix (#3479)',
);
assert.ok(
!text.includes('config.mempalace.mirror_kg` is true'),
'commands/gsd/mempalace-capture.md must NOT gate mirror_kg on positive presence (#3479)',
'commands/msd/mempalace-capture.md must NOT gate mirror_kg on positive presence (#3479)',
);
});
@@ -112,23 +112,23 @@ describe('#3479 — gates on default-true mempalace keys treat an absent key as
const text = fs.readFileSync(RECALL_SKILL, 'utf8');
assert.ok(
text.includes('config.mempalace.mirror_kg !== false'),
'skills/gsd-mempalace-recall/SKILL.md KG-facts step must include mirror_kg unless !== false, matching its recall_on_plan gate style (#3479)',
'skills/msd-mempalace-recall/SKILL.md KG-facts step must include mirror_kg unless !== false, matching its recall_on_plan gate style (#3479)',
);
assert.ok(
!text.includes('config.mempalace.mirror_kg` is true'),
'skills/gsd-mempalace-recall/SKILL.md must NOT gate mirror_kg on positive presence (#3479)',
'skills/msd-mempalace-recall/SKILL.md must NOT gate mirror_kg on positive presence (#3479)',
);
});
test('commands/gsd/mempalace-recall.md mirror_kg gate matches the skill', () => {
test('commands/msd/mempalace-recall.md mirror_kg gate matches the skill', () => {
const text = fs.readFileSync(RECALL_COMMAND, 'utf8');
assert.ok(
text.includes('config.mempalace.mirror_kg !== false'),
'commands/gsd/mempalace-recall.md is a hand-maintained mirror of the skill — its mirror_kg gate needs the same fix (#3479)',
'commands/msd/mempalace-recall.md is a hand-maintained mirror of the skill — its mirror_kg gate needs the same fix (#3479)',
);
assert.ok(
!text.includes('config.mempalace.mirror_kg` is true'),
'commands/gsd/mempalace-recall.md must NOT gate mirror_kg on positive presence (#3479)',
'commands/msd/mempalace-recall.md must NOT gate mirror_kg on positive presence (#3479)',
);
});
@@ -136,19 +136,19 @@ describe('#3479 — gates on default-true mempalace keys treat an absent key as
const text = fs.readFileSync(CURATOR, 'utf8');
assert.ok(
text.includes('mempalace.diary_journal !== false'),
'agents/gsd-mempalace-curator.md diary gate must run unless mempalace.diary_journal !== false (#3479)',
'agents/msd-mempalace-curator.md diary gate must run unless mempalace.diary_journal !== false (#3479)',
);
assert.ok(
text.includes('mempalace.mirror_kg !== false'),
'agents/gsd-mempalace-curator.md KG-mirror gate must run unless mempalace.mirror_kg !== false (#3479)',
'agents/msd-mempalace-curator.md KG-mirror gate must run unless mempalace.mirror_kg !== false (#3479)',
);
assert.ok(
!text.includes('mempalace.diary_journal` is true'),
'agents/gsd-mempalace-curator.md must NOT gate diary_journal on positive presence (#3479)',
'agents/msd-mempalace-curator.md must NOT gate diary_journal on positive presence (#3479)',
);
assert.ok(
!text.includes('mempalace.mirror_kg` is true'),
'agents/gsd-mempalace-curator.md must NOT gate mirror_kg on positive presence (#3479)',
'agents/msd-mempalace-curator.md must NOT gate mirror_kg on positive presence (#3479)',
);
});
});