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:
@@ -31,13 +31,13 @@ const ROOT = path.resolve(__dirname, '..');
|
||||
|
||||
// The canonical set of 7 researcher agent names
|
||||
const EXPECTED_AGENT_NAMES = new Set([
|
||||
'gsd-project-researcher',
|
||||
'gsd-phase-researcher',
|
||||
'gsd-advisor-researcher',
|
||||
'gsd-ai-researcher',
|
||||
'gsd-domain-researcher',
|
||||
'gsd-ui-researcher',
|
||||
'gsd-research-synthesizer',
|
||||
'msd-project-researcher',
|
||||
'msd-phase-researcher',
|
||||
'msd-advisor-researcher',
|
||||
'msd-ai-researcher',
|
||||
'msd-domain-researcher',
|
||||
'msd-ui-researcher',
|
||||
'msd-research-synthesizer',
|
||||
]);
|
||||
|
||||
// ─── Profile coverage ─────────────────────────────────────────────────────────
|
||||
@@ -99,15 +99,15 @@ describe('research-agent-profiles: parity', () => {
|
||||
// ─── Provider dispatch parity (DEFECT.GENERATIVE-FIX) ────────────────────────
|
||||
//
|
||||
// Every provider id in PROVIDER_WATERFALL must have a dispatch mapping in the
|
||||
// Step-C section of gsd-phase-researcher.md and gsd-project-researcher.md.
|
||||
// Step-C section of msd-phase-researcher.md and msd-project-researcher.md.
|
||||
// This guard fails when code adds a new provider without updating the agents.
|
||||
|
||||
describe('research-agent-profiles: provider dispatch parity', () => {
|
||||
// The two seam-wired researcher agents that contain a Step-C dispatch table.
|
||||
const SEAM_AGENTS = ['gsd-phase-researcher', 'gsd-project-researcher'];
|
||||
const SEAM_AGENTS = ['msd-phase-researcher', 'msd-project-researcher'];
|
||||
|
||||
// Load PROVIDER_WATERFALL from the compiled seam module.
|
||||
const { PROVIDER_WATERFALL } = require('../gsd-core/bin/lib/research-provider.cjs');
|
||||
const { PROVIDER_WATERFALL } = require('../msd-core/bin/lib/research-provider.cjs');
|
||||
|
||||
// Compute the union of all provider ids across all waterfall kinds.
|
||||
const allProviderIds = new Set();
|
||||
@@ -153,7 +153,7 @@ describe('research-agent-profiles: provider dispatch parity', () => {
|
||||
describe('research-agent-profiles: checkAgent malformed profile', () => {
|
||||
test('checkAgent returns clear failure string when requiredSeamCalls is missing (not a thrown TypeError)', () => {
|
||||
const malformedProfile = {
|
||||
name: 'gsd-phase-researcher',
|
||||
name: 'msd-phase-researcher',
|
||||
description: 'some description',
|
||||
color: 'cyan',
|
||||
tools: 'Read',
|
||||
@@ -204,7 +204,7 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const REPO_ROOT = path.resolve(__dirname, '..');
|
||||
const SYNTHESIZER_PATH = path.join(REPO_ROOT, 'agents', 'gsd-research-synthesizer.md');
|
||||
const SYNTHESIZER_PATH = path.join(REPO_ROOT, 'agents', 'msd-research-synthesizer.md');
|
||||
|
||||
function readSynthesizerPrompt() {
|
||||
return fs.readFileSync(SYNTHESIZER_PATH, 'utf8');
|
||||
@@ -254,8 +254,8 @@ describe('bug #222: research synthesizer must write SUMMARY.md via Write tool',
|
||||
|
||||
describe('bug #222 recurrence: orchestrator self-heals when synthesizer returns SUMMARY.md inline', () => {
|
||||
const WORKFLOWS = [
|
||||
path.join(REPO_ROOT, 'gsd-core', 'workflows', 'new-project.md'),
|
||||
path.join(REPO_ROOT, 'gsd-core', 'workflows', 'new-milestone.md'),
|
||||
path.join(REPO_ROOT, 'msd-core', 'workflows', 'new-project.md'),
|
||||
path.join(REPO_ROOT, 'msd-core', 'workflows', 'new-milestone.md'),
|
||||
];
|
||||
|
||||
for (const wf of WORKFLOWS) {
|
||||
@@ -273,7 +273,7 @@ describe('bug #222 recurrence: orchestrator self-heals when synthesizer returns
|
||||
`${name} must verify .planning/research/SUMMARY.md exists AND is substantive — non-empty.`);
|
||||
|
||||
// Truncation/validator guard: references the continuation sentinel OR the verify-summary CLI
|
||||
assert.match(text, /gsd:write-continue|verify-summary/i,
|
||||
assert.match(text, /msd:write-continue|verify-summary/i,
|
||||
`${name} must guard against truncated/invalid SUMMARY.md (sentinel or verify-summary).`);
|
||||
|
||||
// Self-heal must commit ALL research artifacts, not just SUMMARY.md
|
||||
@@ -285,8 +285,8 @@ describe('bug #222 recurrence: orchestrator self-heals when synthesizer returns
|
||||
`${name} must instruct the orchestrator to persist inline-returned document with the Write tool.`);
|
||||
|
||||
// Must not proceed to roadmapper against a missing or incomplete SUMMARY.md
|
||||
assert.match(text, /gsd-roadmapper[\s\S]{0,200}?(missing|incomplete|do NOT)/i,
|
||||
`${name} must block spawning gsd-roadmapper when SUMMARY.md is missing or incomplete.`);
|
||||
assert.match(text, /msd-roadmapper[\s\S]{0,200}?(missing|incomplete|do NOT)/i,
|
||||
`${name} must block spawning msd-roadmapper when SUMMARY.md is missing or incomplete.`);
|
||||
|
||||
// Must name the FULL SUMMARY template markers so the orchestrator persists the real
|
||||
// document, not the brief structured return (resolves the HIGH finding).
|
||||
@@ -297,16 +297,16 @@ describe('bug #222 recurrence: orchestrator self-heals when synthesizer returns
|
||||
`${name}: self-heal must distinguish the brief ## SYNTHESIS COMPLETE confirmation from the real document.`);
|
||||
});
|
||||
|
||||
test(`${name} runs the #222 self-heal AFTER the synthesizer and BEFORE gsd-roadmapper`, () => {
|
||||
test(`${name} runs the #222 self-heal AFTER the synthesizer and BEFORE msd-roadmapper`, () => {
|
||||
const text = fs.readFileSync(wf, 'utf8');
|
||||
const synthIdx = text.indexOf('subagent_type="gsd-research-synthesizer"');
|
||||
const synthIdx = text.indexOf('subagent_type="msd-research-synthesizer"');
|
||||
const healIdx = text.indexOf('Synthesizer output self-heal (#222)');
|
||||
const roadIdx = text.indexOf('subagent_type="gsd-roadmapper"');
|
||||
const roadIdx = text.indexOf('subagent_type="msd-roadmapper"');
|
||||
assert.ok(synthIdx >= 0, `${name}: synthesizer dispatch not found`);
|
||||
assert.ok(healIdx >= 0, `${name}: #222 self-heal block not found`);
|
||||
assert.ok(roadIdx >= 0, `${name}: gsd-roadmapper dispatch not found`);
|
||||
assert.ok(roadIdx >= 0, `${name}: msd-roadmapper dispatch not found`);
|
||||
assert.ok(healIdx > synthIdx, `${name}: self-heal must come AFTER the synthesizer dispatch`);
|
||||
assert.ok(roadIdx > healIdx, `${name}: self-heal must come BEFORE the gsd-roadmapper dispatch`);
|
||||
assert.ok(roadIdx > healIdx, `${name}: self-heal must come BEFORE the msd-roadmapper dispatch`);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -324,9 +324,9 @@ describe('bug #222 recurrence: orchestrator self-heals when synthesizer returns
|
||||
// runtime loads — testing text content tests the deployed contract.
|
||||
|
||||
/**
|
||||
* Bug #2419: gsd-project-researcher agent type not found
|
||||
* Bug #2419: msd-project-researcher agent type not found
|
||||
*
|
||||
* When gsd-new-project spawns gsd-project-researcher subagents, it fails with
|
||||
* When msd-new-project spawns msd-project-researcher subagents, it fails with
|
||||
* "agent type not found" if the user has a local-only install (agents in
|
||||
* .claude/agents/ of a different project, not the global ~/.claude/agents/).
|
||||
*
|
||||
@@ -340,24 +340,24 @@ const assert = require('node:assert/strict');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const NEW_PROJECT_PATH = path.join(__dirname, '..', 'gsd-core', 'workflows', 'new-project.md');
|
||||
const NEW_MILESTONE_PATH = path.join(__dirname, '..', 'gsd-core', 'workflows', 'new-milestone.md');
|
||||
const NEW_PROJECT_PATH = path.join(__dirname, '..', 'msd-core', 'workflows', 'new-project.md');
|
||||
const NEW_MILESTONE_PATH = path.join(__dirname, '..', 'msd-core', 'workflows', 'new-milestone.md');
|
||||
const AGENTS_DIR = path.join(__dirname, '..', 'agents');
|
||||
|
||||
describe('gsd-project-researcher agent registration (#2419)', () => {
|
||||
test('gsd-project-researcher.md exists in agents source dir', () => {
|
||||
const agentFile = path.join(AGENTS_DIR, 'gsd-project-researcher.md');
|
||||
describe('msd-project-researcher agent registration (#2419)', () => {
|
||||
test('msd-project-researcher.md exists in agents source dir', () => {
|
||||
const agentFile = path.join(AGENTS_DIR, 'msd-project-researcher.md');
|
||||
assert.ok(
|
||||
fs.existsSync(agentFile),
|
||||
'agents/gsd-project-researcher.md must exist in the source agents directory'
|
||||
'agents/msd-project-researcher.md must exist in the source agents directory'
|
||||
);
|
||||
});
|
||||
|
||||
test('gsd-project-researcher.md has correct name in frontmatter', () => {
|
||||
const content = fs.readFileSync(path.join(AGENTS_DIR, 'gsd-project-researcher.md'), 'utf-8');
|
||||
test('msd-project-researcher.md has correct name in frontmatter', () => {
|
||||
const content = fs.readFileSync(path.join(AGENTS_DIR, 'msd-project-researcher.md'), 'utf-8');
|
||||
assert.ok(
|
||||
content.includes('name: gsd-project-researcher'),
|
||||
'agents/gsd-project-researcher.md must have name: gsd-project-researcher in frontmatter'
|
||||
content.includes('name: msd-project-researcher'),
|
||||
'agents/msd-project-researcher.md must have name: msd-project-researcher in frontmatter'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -411,25 +411,25 @@ describe('gsd-project-researcher agent registration (#2419)', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('new-project.md lists gsd-project-researcher in available_agent_types', () => {
|
||||
test('new-project.md lists msd-project-researcher in available_agent_types', () => {
|
||||
const content = fs.readFileSync(NEW_PROJECT_PATH, 'utf-8');
|
||||
// eslint-disable-next-line local/no-unbounded-quantifier -- parses this repo's own workflow .md content, fixed-size author-controlled content
|
||||
const agentTypesMatch = content.match(/<available_agent_types>([\s\S]*?)<\/available_agent_types>/);
|
||||
assert.ok(agentTypesMatch, 'new-project.md must have <available_agent_types> section');
|
||||
assert.ok(
|
||||
agentTypesMatch[1].includes('gsd-project-researcher'),
|
||||
'new-project.md <available_agent_types> must list gsd-project-researcher'
|
||||
agentTypesMatch[1].includes('msd-project-researcher'),
|
||||
'new-project.md <available_agent_types> must list msd-project-researcher'
|
||||
);
|
||||
});
|
||||
|
||||
test('new-milestone.md lists gsd-project-researcher in available_agent_types', () => {
|
||||
test('new-milestone.md lists msd-project-researcher in available_agent_types', () => {
|
||||
const content = fs.readFileSync(NEW_MILESTONE_PATH, 'utf-8');
|
||||
// eslint-disable-next-line local/no-unbounded-quantifier -- parses this repo's own workflow .md content, fixed-size author-controlled content
|
||||
const agentTypesMatch = content.match(/<available_agent_types>([\s\S]*?)<\/available_agent_types>/);
|
||||
assert.ok(agentTypesMatch, 'new-milestone.md must have <available_agent_types> section');
|
||||
assert.ok(
|
||||
agentTypesMatch[1].includes('gsd-project-researcher'),
|
||||
'new-milestone.md <available_agent_types> must list gsd-project-researcher'
|
||||
agentTypesMatch[1].includes('msd-project-researcher'),
|
||||
'new-milestone.md <available_agent_types> must list msd-project-researcher'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -450,7 +450,7 @@ describe('gsd-project-researcher agent registration (#2419)', () => {
|
||||
/**
|
||||
* Bug #2559: Stale document references in Research phase
|
||||
*
|
||||
* The gsd-phase-researcher and gsd-project-researcher agents instruct
|
||||
* The msd-phase-researcher and msd-project-researcher agents instruct
|
||||
* WebSearch queries to always include "current year" (or a hardcoded
|
||||
* year). This biases results toward stale dated content as time passes
|
||||
* (e.g., a 2024 query run in 2026 returns stale results).
|
||||
@@ -468,18 +468,18 @@ const PHASE_RESEARCHER = path.join(
|
||||
__dirname,
|
||||
'..',
|
||||
'agents',
|
||||
'gsd-phase-researcher.md'
|
||||
'msd-phase-researcher.md'
|
||||
);
|
||||
const PROJECT_RESEARCHER = path.join(
|
||||
__dirname,
|
||||
'..',
|
||||
'agents',
|
||||
'gsd-project-researcher.md'
|
||||
'msd-project-researcher.md'
|
||||
);
|
||||
|
||||
const FILES = [
|
||||
{ label: 'gsd-phase-researcher.md', path: PHASE_RESEARCHER },
|
||||
{ label: 'gsd-project-researcher.md', path: PROJECT_RESEARCHER },
|
||||
{ label: 'msd-phase-researcher.md', path: PHASE_RESEARCHER },
|
||||
{ label: 'msd-project-researcher.md', path: PROJECT_RESEARCHER },
|
||||
];
|
||||
|
||||
describe('research agents do not inject year into web searches (#2559)', () => {
|
||||
@@ -533,8 +533,8 @@ describe('research agents do not inject year into web searches (#2559)', () => {
|
||||
// These assert the governed prose contract on the deployed agent definition.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
describe('gsd-phase-researcher in-repo value provenance rule (#1699)', () => {
|
||||
const agentPath = path.join(ROOT, 'agents', 'gsd-phase-researcher.md');
|
||||
describe('msd-phase-researcher in-repo value provenance rule (#1699)', () => {
|
||||
const agentPath = path.join(ROOT, 'agents', 'msd-phase-researcher.md');
|
||||
const read = () => fs.readFileSync(agentPath, 'utf-8');
|
||||
|
||||
test('names the in-repo discrete-value taxonomy the rule governs', () => {
|
||||
@@ -646,8 +646,8 @@ describe('gsd-phase-researcher in-repo value provenance rule (#1699)', () => {
|
||||
// agent definition.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
describe('gsd-phase-researcher absent-evidence provenance rule (#2951)', () => {
|
||||
const agentPath = path.join(ROOT, 'agents', 'gsd-phase-researcher.md');
|
||||
describe('msd-phase-researcher absent-evidence provenance rule (#2951)', () => {
|
||||
const agentPath = path.join(ROOT, 'agents', 'msd-phase-researcher.md');
|
||||
const read = () => fs.readFileSync(agentPath, 'utf-8');
|
||||
|
||||
test('names the absent-metadata forms the rule governs', () => {
|
||||
|
||||
Reference in New Issue
Block a user