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

@@ -8,26 +8,26 @@
* `ScheduleWakeup` tool with partial arguments.
*
* On Claude Code, a `ScheduleWakeup` tool is surfaced in-session (the /loop
* dynamic-pacing surface). While a GSD workflow waits on a background subagent
* dynamic-pacing surface). While a MSD workflow waits on a background subagent
* (researcher / pattern-mapper synchronous Agent() stop-and-wait, the
* planner/checker/revision `gsd_stall_watch` polling waits, or the manager
* planner/checker/revision `msd_stall_watch` polling waits, or the manager
* dashboard's background dispatch), the orchestrator model could spontaneously
* literalize "I'll wait" by calling `ScheduleWakeup` — a tool GSD never
* literalize "I'll wait" by calling `ScheduleWakeup` — a tool MSD never
* documents — with incomplete arguments, surfacing the host's red validation
* error: "`prompt` is required when `stop` is not true."
*
* The fix is contract-level, not code-level: every wait-instruction site now
* carries an explicit prohibition — never call `ScheduleWakeup` or any host
* wake/sleep-scheduling tool to literalize a wait; the sanctioned mechanisms
* (blocking Agent() return, `gsd_stall_watch` bash polling) ARE the wait.
* (blocking Agent() return, `msd_stall_watch` bash polling) ARE the wait.
*
* These are content-contract tests over the shipped workflow text (same
* "source text is the product" pattern as tests/plan-phase-stall-detection
* .test.cjs) — they fail on any future edit that drops the guard.
*
* Seam: gsd-core/workflows/plan-phase.md,
* gsd-core/workflows/plan-phase/steps/stall-detection-helpers.md,
* gsd-core/workflows/manager.md
* Seam: msd-core/workflows/plan-phase.md,
* msd-core/workflows/plan-phase/steps/stall-detection-helpers.md,
* msd-core/workflows/manager.md
*/
const { describe, test } = require('node:test');
@@ -37,11 +37,11 @@ const path = require('node:path');
const { readFileNormalized } = require('./helpers.cjs');
const REPO_ROOT = path.join(__dirname, '..');
const PLAN_PHASE_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'plan-phase.md');
const PLAN_PHASE_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'plan-phase.md');
const STALL_HELPERS_PATH = path.join(
REPO_ROOT, 'gsd-core', 'workflows', 'plan-phase', 'steps', 'stall-detection-helpers.md'
REPO_ROOT, 'msd-core', 'workflows', 'plan-phase', 'steps', 'stall-detection-helpers.md'
);
const MANAGER_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'manager.md');
const MANAGER_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'manager.md');
// The phase6 shrink-only line for plan-phase.md (tests/phase6-capstone-
// conformance.test.cjs PRE_PHASE6) — mirrored here so a guard sentence can
@@ -81,7 +81,7 @@ describe('#4079 background-wait wake-tool guard', () => {
);
});
test('stall-detection-helpers.md forbids ScheduleWakeup between gsd_stall_watch cycles (#4079)', () => {
test('stall-detection-helpers.md forbids ScheduleWakeup between msd_stall_watch cycles (#4079)', () => {
const content = readFileNormalized(STALL_HELPERS_PATH);
assert.match(
content,
@@ -91,8 +91,8 @@ describe('#4079 background-wait wake-tool guard', () => {
);
assert.match(
content,
/gsd_stall_watch[\s\S]{0,400}ScheduleWakeup|ScheduleWakeup[\s\S]{0,400}gsd_stall_watch/,
'the prohibition must be tied to the gsd_stall_watch wait cycle, not float disconnected'
/msd_stall_watch[\s\S]{0,400}ScheduleWakeup|ScheduleWakeup[\s\S]{0,400}msd_stall_watch/,
'the prohibition must be tied to the msd_stall_watch wait cycle, not float disconnected'
);
assert.match(
content,
@@ -119,14 +119,14 @@ describe('#4079 background-wait wake-tool guard', () => {
);
});
test('plan-phase.md still uses gsd_stall_watch at all three stall-watch sites (negative space)', () => {
test('plan-phase.md still uses msd_stall_watch at all three stall-watch sites (negative space)', () => {
const content = readFileNormalized(PLAN_PHASE_PATH);
const stallWatchRules = orchestratorRules(content).filter(
(rule) => rule.includes('gsd_stall_watch')
(rule) => rule.includes('msd_stall_watch')
);
assert.ok(
stallWatchRules.length >= 3,
`expected >= 3 gsd_stall_watch ORCHESTRATOR RULEs (planner, checker, revision), found ${stallWatchRules.length}`
`expected >= 3 msd_stall_watch ORCHESTRATOR RULEs (planner, checker, revision), found ${stallWatchRules.length}`
);
// The sanctioned mechanism is unchanged — the guard only closes the escape hatch.
assert.match(content, /marker_received/);