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,5 +1,5 @@
/**
* GSD Tools Tests - resolve-execution dynamic_routing MODEL escalation (#2068)
* MSD Tools Tests - resolve-execution dynamic_routing MODEL escalation (#2068)
*
* Regression coverage for #2068: `cmdResolveExecution` (src/commands.cts) now
* resolves the model via `resolveModelForTier(cwd, agentType, opts.attempt)`
@@ -8,10 +8,10 @@
* `dynamic_routing` is disabled/absent, `resolveModelForTier` falls back to
* `resolveModelInternal` and behavior is unchanged.
*
* gsd-executor's default routing tier is "standard" (one-step ladder to
* "heavy" under the default max_escalations:1). gsd-codebase-mapper's default
* msd-executor's default routing tier is "standard" (one-step ladder to
* "heavy" under the default max_escalations:1). msd-codebase-mapper's default
* routing tier is "light" (two-step ladder light -> standard -> heavy),
* confirmed via gsd-core/bin/shared/model-catalog.json and by running the
* confirmed via msd-core/bin/shared/model-catalog.json and by running the
* built CLI directly before writing these assertions (see PR discussion).
*/
@@ -19,7 +19,7 @@ const { test, describe, beforeEach, afterEach } = require('node:test');
const assert = require('node:assert/strict');
const fs = require('fs');
const path = require('path');
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
function writeConfig(tmpDir, config) {
fs.writeFileSync(
@@ -29,7 +29,7 @@ function writeConfig(tmpDir, config) {
}
function resolveExecution(tmpDir, agent, attempt) {
const result = runGsdTools(`resolve-execution ${agent} --attempt ${attempt}`, tmpDir);
const result = runMsdTools(`resolve-execution ${agent} --attempt ${attempt}`, tmpDir);
assert.ok(result.success, `resolve-execution ${agent} --attempt ${attempt} failed: ${result.error}`);
return JSON.parse(result.output);
}
@@ -45,7 +45,7 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
cleanup(tmpDir);
});
describe('gsd-executor (default tier: standard)', () => {
describe('msd-executor (default tier: standard)', () => {
beforeEach(() => {
writeConfig(tmpDir, {
dynamic_routing: {
@@ -56,7 +56,7 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
});
test('attempt 0 resolves the default standard-tier model (sonnet)', () => {
const parsed = resolveExecution(tmpDir, 'gsd-executor', 0);
const parsed = resolveExecution(tmpDir, 'msd-executor', 0);
assert.strictEqual(parsed.model, 'sonnet');
assert.ok(typeof parsed.effort === 'string' && parsed.effort.length > 0);
});
@@ -66,25 +66,25 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
// would observe "sonnet" instead of the escalated "opus". This is the case
// that pins the bug fixed by routing through resolveModelForTier.
test('attempt 1 escalates the MODEL to the heavy tier (opus) — fail-first regression for #2068', () => {
const parsed = resolveExecution(tmpDir, 'gsd-executor', 1);
const parsed = resolveExecution(tmpDir, 'msd-executor', 1);
assert.strictEqual(parsed.model, 'opus');
});
test('attempt 2 stays capped at the heavy tier (opus) — default max_escalations:1', () => {
const parsed = resolveExecution(tmpDir, 'gsd-executor', 2);
const parsed = resolveExecution(tmpDir, 'msd-executor', 2);
assert.strictEqual(parsed.model, 'opus');
});
test('attempt 3 stays capped at the heavy tier (opus) — default max_escalations:1', () => {
const parsed = resolveExecution(tmpDir, 'gsd-executor', 3);
const parsed = resolveExecution(tmpDir, 'msd-executor', 3);
assert.strictEqual(parsed.model, 'opus');
});
});
describe('gsd-executor: dynamic_routing absent (non-opted-in behavior preserved)', () => {
describe('msd-executor: dynamic_routing absent (non-opted-in behavior preserved)', () => {
test('attempt 1 resolves the profile-resolved model (sonnet), unaffected by --attempt', () => {
writeConfig(tmpDir, {});
const parsed = resolveExecution(tmpDir, 'gsd-executor', 1);
const parsed = resolveExecution(tmpDir, 'msd-executor', 1);
assert.strictEqual(
parsed.model,
'sonnet',
@@ -96,10 +96,10 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
// ─── Escalation-CAP boundary (PR #2083 review follow-up) ──────────────────
//
// gsd-codebase-mapper's default tier is "light", giving a 3-tier ladder
// msd-codebase-mapper's default tier is "light", giving a 3-tier ladder
// (light -> standard -> heavy) that is longer than max_escalations:2, so the
// cap-at-max_escalations behavior is actually observable (unlike
// gsd-executor's 1-step ladder, where "at cap" and "past cap" look the same).
// msd-executor's 1-step ladder, where "at cap" and "past cap" look the same).
//
// Actual values confirmed by running the built CLI directly against a temp
// project before writing these assertions:
@@ -107,7 +107,7 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
// attempt 1 -> sonnet (standard)
// attempt 2 -> opus (heavy) [== max_escalations]
// attempt 3 -> opus (heavy) [max_escalations + 1; must not advance further]
describe('gsd-codebase-mapper (default tier: light) — cap boundary at max_escalations', () => {
describe('msd-codebase-mapper (default tier: light) — cap boundary at max_escalations', () => {
beforeEach(() => {
writeConfig(tmpDir, {
dynamic_routing: {
@@ -119,26 +119,26 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
});
test('attempt 0 resolves the default light-tier model (haiku)', () => {
const parsed = resolveExecution(tmpDir, 'gsd-codebase-mapper', 0);
const parsed = resolveExecution(tmpDir, 'msd-codebase-mapper', 0);
assert.strictEqual(parsed.model, 'haiku');
});
test('attempt 1 escalates one step to the standard-tier model (sonnet)', () => {
const parsed = resolveExecution(tmpDir, 'gsd-codebase-mapper', 1);
const parsed = resolveExecution(tmpDir, 'msd-codebase-mapper', 1);
assert.strictEqual(parsed.model, 'sonnet');
});
// Boundary: max_escalations - 1 (attempt 1) is covered above; this is
// exactly max_escalations (attempt 2) — the ladder reaches its cap here.
test('attempt 2 (== max_escalations) escalates fully to the heavy-tier model (opus)', () => {
const parsed = resolveExecution(tmpDir, 'gsd-codebase-mapper', 2);
const parsed = resolveExecution(tmpDir, 'msd-codebase-mapper', 2);
assert.strictEqual(parsed.model, 'opus');
});
// Boundary: max_escalations + 1 (attempt 3) — the model must NOT advance
// beyond heavy; it stays pinned at the cap reached at attempt 2.
test('attempt 3 (== max_escalations + 1) stays capped at the heavy-tier model (opus), does not advance further', () => {
const parsed = resolveExecution(tmpDir, 'gsd-codebase-mapper', 3);
const parsed = resolveExecution(tmpDir, 'msd-codebase-mapper', 3);
assert.strictEqual(parsed.model, 'opus');
});
});
@@ -148,7 +148,7 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
// effort (which also only consults the tier ladder when --attempt is explicit).
// Without the gate, an omitted --attempt would silently switch the model to the
// tier map (attempt 0) while effort stayed classic.
describe('gsd-executor: dynamic_routing enabled but --attempt omitted (model stays classic)', () => {
describe('msd-executor: dynamic_routing enabled but --attempt omitted (model stays classic)', () => {
let tmpDir;
beforeEach(() => {
tmpDir = createTempProject();
@@ -160,7 +160,7 @@ describe('resolve-execution: dynamic_routing model escalation (#2068)', () => {
afterEach(() => { cleanup(tmpDir); });
test('no --attempt flag -> classic profile-resolved model (sonnet), not tier-map-driven', () => {
const result = runGsdTools('resolve-execution gsd-executor', tmpDir);
const result = runMsdTools('resolve-execution msd-executor', tmpDir);
assert.ok(result.success, `command failed: ${result.error}`);
const parsed = JSON.parse(result.output);
assert.strictEqual(parsed.model, 'sonnet');