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:
@@ -13,20 +13,20 @@ const { throwIfFailed } = require('./helpers/git-fixture.cjs');
|
||||
const { PROBE_TIMEOUT_MS } = require('./helpers/timeouts.cjs');
|
||||
|
||||
const REPO_ROOT = path.join(__dirname, '..');
|
||||
const COMMAND_PATH = path.join(REPO_ROOT, 'commands', 'gsd', 'autonomous.md');
|
||||
const WORKFLOW_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'autonomous.md');
|
||||
const COMMAND_PATH = path.join(REPO_ROOT, 'commands', 'msd', 'autonomous.md');
|
||||
const WORKFLOW_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'autonomous.md');
|
||||
const COMMANDS_DOC_PATH = path.join(REPO_ROOT, 'docs', 'COMMANDS.md');
|
||||
const HOW_TO_PATH = path.join(REPO_ROOT, 'docs', 'how-to', 'run-phases-autonomously.md');
|
||||
const TOOLS = path.join(REPO_ROOT, 'gsd-core', 'bin', 'gsd-tools.cjs');
|
||||
const TOOLS = path.join(REPO_ROOT, 'msd-core', 'bin', 'msd-tools.cjs');
|
||||
// #2994: fragmentization moved the five converge-gated regions out of the host
|
||||
// autonomous.md into dedicated step files (state:plan-strategy-converge) —
|
||||
// see docs/reference/workflow-fragments.md. Tests that assert on this moved
|
||||
// content read the step file directly rather than the host.
|
||||
const STEP_FAIL_FAST_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'autonomous', 'steps', 'converge-fail-fast.md');
|
||||
const STEP_DISPATCH_BG_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'autonomous', 'steps', 'converge-dispatch-bg.md');
|
||||
const STEP_DISPATCH_INLINE_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'autonomous', 'steps', 'converge-dispatch-inline.md');
|
||||
const STEP_LOOP_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'autonomous', 'steps', 'converge-loop.md');
|
||||
const CONVERGENCE_WORKFLOW_PATH = path.join(REPO_ROOT, 'gsd-core', 'workflows', 'plan-review-convergence.md');
|
||||
const STEP_FAIL_FAST_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'autonomous', 'steps', 'converge-fail-fast.md');
|
||||
const STEP_DISPATCH_BG_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'autonomous', 'steps', 'converge-dispatch-bg.md');
|
||||
const STEP_DISPATCH_INLINE_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'autonomous', 'steps', 'converge-dispatch-inline.md');
|
||||
const STEP_LOOP_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'autonomous', 'steps', 'converge-loop.md');
|
||||
const CONVERGENCE_WORKFLOW_PATH = path.join(REPO_ROOT, 'msd-core', 'workflows', 'plan-review-convergence.md');
|
||||
|
||||
function read(filePath) {
|
||||
return fs.readFileSync(filePath, 'utf8');
|
||||
@@ -72,7 +72,7 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
|
||||
assert.match(
|
||||
workflow,
|
||||
/gsd:section id="converge-fail-fast" when="state:plan-strategy-converge"/,
|
||||
/msd:section id="converge-fail-fast" when="state:plan-strategy-converge"/,
|
||||
'workflow should keep the step behind state:plan-strategy-converge',
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
@@ -100,7 +100,7 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
|
||||
test('the dispatched convergence run bypasses the config gate (#4600)', () => {
|
||||
// End-to-end contract: the fail-fast step proceeding is not enough — the
|
||||
// dispatched gsd-plan-review-convergence workflow has its own §1.5 gate
|
||||
// dispatched msd-plan-review-convergence workflow has its own §1.5 gate
|
||||
// that would veto the same run one step later. The autonomous dispatch
|
||||
// must carry an explicit override the gate honors; the veto itself stays
|
||||
// for standalone invocation, where the config gate is documented behavior.
|
||||
@@ -120,7 +120,7 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
);
|
||||
assert.match(
|
||||
convergence,
|
||||
/gsd-plan-review-convergence is disabled \(workflow\.plan_review_convergence=false\)/,
|
||||
/msd-plan-review-convergence is disabled \(workflow\.plan_review_convergence=false\)/,
|
||||
'the §1.5 veto must remain for standalone invocation, where the config gate decides (#4600)',
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
@@ -131,7 +131,7 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
assert.match(
|
||||
howTo,
|
||||
/overrides the gate for that run/,
|
||||
'the how-to must document that an explicit --converge overrides the gate on /gsd-autonomous (#4600)',
|
||||
'the how-to must document that an explicit --converge overrides the gate on /msd-autonomous (#4600)',
|
||||
);
|
||||
// Security-review constraint: the override must be appended conditionally on the converge
|
||||
// strategy (never ride on local-strategy runs) and parsed token-anchored by §1.5.
|
||||
@@ -160,22 +160,22 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
|
||||
assert.match(
|
||||
dispatchInline,
|
||||
/Skill\(skill="gsd-plan-review-convergence", args="\$\{PHASE_NUM\} \$\{CONVERGENCE_ARGS\}"\)/,
|
||||
'inline converge dispatch step should call gsd-plan-review-convergence',
|
||||
/Skill\(skill="msd-plan-review-convergence", args="\$\{PHASE_NUM\} \$\{CONVERGENCE_ARGS\}"\)/,
|
||||
'inline converge dispatch step should call msd-plan-review-convergence',
|
||||
);
|
||||
assert.match(
|
||||
loop,
|
||||
/Skill\(skill="gsd-plan-review-convergence", args="\$\{PHASE_NUM\} \$\{CONVERGENCE_ARGS\}"\)/,
|
||||
'default converge loop step should call gsd-plan-review-convergence',
|
||||
/Skill\(skill="msd-plan-review-convergence", args="\$\{PHASE_NUM\} \$\{CONVERGENCE_ARGS\}"\)/,
|
||||
'default converge loop step should call msd-plan-review-convergence',
|
||||
);
|
||||
assert.match(
|
||||
dispatchBg,
|
||||
/Run plan convergence for phase \$\{PHASE_NUM\}: Skill\(skill=\\"gsd-plan-review-convergence\\"/,
|
||||
/Run plan convergence for phase \$\{PHASE_NUM\}: Skill\(skill=\\"msd-plan-review-convergence\\"/,
|
||||
'interactive converge mode should dispatch plan convergence in the background agent',
|
||||
);
|
||||
assert.match(
|
||||
workflow,
|
||||
/Skill\(skill="gsd-plan-phase", args="\$\{PHASE_NUM\}"\)/,
|
||||
/Skill\(skill="msd-plan-phase", args="\$\{PHASE_NUM\}"\)/,
|
||||
'local planning path should remain available for default autonomous runs',
|
||||
);
|
||||
});
|
||||
@@ -185,7 +185,7 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
// Non-lane convergence controls remain hand-written literals in the workflow.
|
||||
const convergenceControls = ['--all', '--text'];
|
||||
// Reviewer lane flags that were formerly hand-enumerated in the workflow text.
|
||||
// They must now be DERIVED at runtime via `gsd_run review-lane flags`, not listed.
|
||||
// They must now be DERIVED at runtime via `msd_run review-lane flags`, not listed.
|
||||
const formerlyHardcodedLaneFlags = [
|
||||
'--codex',
|
||||
'--qwen',
|
||||
@@ -204,7 +204,7 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
assert.match(workflow, /CONVERGENCE_ARGS/, 'workflow should build convergence pass-through args');
|
||||
assert.match(
|
||||
workflow,
|
||||
/gsd_run review-lane flags/,
|
||||
/msd_run review-lane flags/,
|
||||
'workflow should derive reviewer flags from the review-lane roster instead of hand-listing them',
|
||||
);
|
||||
for (const flag of convergenceControls) {
|
||||
@@ -241,7 +241,7 @@ describe('autonomous --converge flag (#711)', () => {
|
||||
|
||||
assert.match(commandsDoc, /--converge/, 'COMMANDS.md should document --converge');
|
||||
assert.match(commandsDoc, /--cross-ai/, 'COMMANDS.md should document --cross-ai alias');
|
||||
assert.match(howTo, /\/gsd-autonomous --only 4 --converge/, 'how-to should show single-phase converge usage');
|
||||
assert.match(howTo, /\/msd-autonomous --only 4 --converge/, 'how-to should show single-phase converge usage');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -252,16 +252,16 @@ describe('autonomous verification deferral contract', () => {
|
||||
assert.match(workflow, /verification_deferred_human/);
|
||||
assert.match(workflow, /verification_deferred_gaps/);
|
||||
assert.match(workflow, /Deferred Verification/);
|
||||
assert.match(workflow, /gsd:verify-work \$\{PHASE_NUM\}/);
|
||||
assert.match(workflow, /gsd:plan-phase \$\{PHASE_NUM\} --gaps/);
|
||||
assert.match(workflow, /msd:verify-work \$\{PHASE_NUM\}/);
|
||||
assert.match(workflow, /msd:plan-phase \$\{PHASE_NUM\} --gaps/);
|
||||
assert.match(
|
||||
workflow,
|
||||
/\| \$\{PHASE_NUM\} \| verification_deferred_human \| \/gsd:verify-work \$\{PHASE_NUM\} \|/,
|
||||
/\| \$\{PHASE_NUM\} \| verification_deferred_human \| \/msd:verify-work \$\{PHASE_NUM\} \|/,
|
||||
'human deferral must persist the exact deferred STATE row',
|
||||
);
|
||||
assert.match(
|
||||
workflow,
|
||||
/\| \$\{PHASE_NUM\} \| verification_deferred_gaps \| \/gsd:plan-phase \$\{PHASE_NUM\} --gaps \|/,
|
||||
/\| \$\{PHASE_NUM\} \| verification_deferred_gaps \| \/msd:plan-phase \$\{PHASE_NUM\} --gaps \|/,
|
||||
'gap deferral must persist the exact deferred STATE row',
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
@@ -313,7 +313,7 @@ describe('autonomous verification deferral contract', () => {
|
||||
// String-based check (not a regex literal) so the assertion stays robust to
|
||||
// shell metacharacters in the snippet and parses cleanly under espree.
|
||||
assert.ok(
|
||||
section.includes('VERIFY_STATUS=$(gsd_run query verification.status "${PHASE_DIR}" --pick status 2>/dev/null || true)'),
|
||||
section.includes('VERIFY_STATUS=$(msd_run query verification.status "${PHASE_DIR}" --pick status 2>/dev/null || true)'),
|
||||
'autonomous must route human validation through canonical verification.status via the native --pick flag',
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
@@ -332,7 +332,7 @@ describe('autonomous verification deferral contract', () => {
|
||||
const discoverStep = workflow.slice(discoverStart, discoverEnd);
|
||||
const iterateStep = workflow.slice(iterateStart, iterateEnd);
|
||||
|
||||
assert.match(discoverStep, /INIT_MANAGER=\$\(gsd_run query init\.manager\)/);
|
||||
assert.match(discoverStep, /INIT_MANAGER=\$\(msd_run query init\.manager\)/);
|
||||
assert.ok(
|
||||
discoverStep.includes('if [[ "$INIT_MANAGER" == @file:* ]]; then INIT_MANAGER=$(cat "${INIT_MANAGER#@file:}"); fi'),
|
||||
'autonomous discovery must dereference large init.manager payloads before parsing',
|
||||
@@ -341,9 +341,9 @@ describe('autonomous verification deferral contract', () => {
|
||||
assert.match(discoverStep, /verification_status !== "passed"/);
|
||||
// #4455: STATE.md is read through the workstream-resolved path from
|
||||
// init.manager (state_path), not a hardcoded .planning/STATE.md literal —
|
||||
// a GSD_WORKSTREAM run must read its own workstream's STATE.md.
|
||||
// a MSD_WORKSTREAM run must read its own workstream's STATE.md.
|
||||
assert.ok(
|
||||
discoverStep.includes('STATE_PATH=$(_gsd_field "$INIT_MANAGER" state_path)'),
|
||||
discoverStep.includes('STATE_PATH=$(_msd_field "$INIT_MANAGER" state_path)'),
|
||||
'autonomous discovery must resolve STATE.md through init.manager, not a hardcoded path',
|
||||
);
|
||||
assert.match(discoverStep, /STATE_CONTENT=\$\(cat "\$STATE_PATH" 2>\/dev\/null \|\| true\)/);
|
||||
@@ -353,10 +353,10 @@ describe('autonomous verification deferral contract', () => {
|
||||
'autonomous discovery must not regress to a hardcoded root .planning/STATE.md read (#4455)',
|
||||
);
|
||||
assert.match(discoverStep, /drop any phase whose number appears in the deferred-phase map/);
|
||||
assert.doesNotMatch(discoverStep, /ROADMAP=\$\(gsd_run query roadmap\.analyze\)/);
|
||||
assert.doesNotMatch(discoverStep, /ROADMAP=\$\(msd_run query roadmap\.analyze\)/);
|
||||
assert.doesNotMatch(discoverStep, /disk_status !== "complete"/);
|
||||
|
||||
assert.match(iterateStep, /INIT_MANAGER=\$\(gsd_run query init\.manager\)/);
|
||||
assert.match(iterateStep, /INIT_MANAGER=\$\(msd_run query init\.manager\)/);
|
||||
assert.ok(
|
||||
iterateStep.includes('if [[ "$INIT_MANAGER" == @file:* ]]; then INIT_MANAGER=$(cat "${INIT_MANAGER#@file:}"); fi'),
|
||||
'autonomous iteration must dereference large init.manager payloads before parsing',
|
||||
@@ -364,7 +364,7 @@ describe('autonomous verification deferral contract', () => {
|
||||
assert.match(iterateStep, /phase_complete !== true/);
|
||||
assert.match(iterateStep, /verification_status !== "passed"/);
|
||||
assert.ok(
|
||||
iterateStep.includes('STATE_PATH=$(_gsd_field "$INIT_MANAGER" state_path)'),
|
||||
iterateStep.includes('STATE_PATH=$(_msd_field "$INIT_MANAGER" state_path)'),
|
||||
'autonomous iteration must resolve STATE.md through init.manager, not a hardcoded path',
|
||||
);
|
||||
assert.match(iterateStep, /STATE_CONTENT=\$\(cat "\$STATE_PATH" 2>\/dev\/null \|\| true\)/);
|
||||
|
||||
Reference in New Issue
Block a user