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:
@@ -5,7 +5,7 @@
|
||||
/**
|
||||
* Agent size budget (measured in BYTES — see #717).
|
||||
*
|
||||
* Agent definitions in `agents/gsd-*.md` are loaded verbatim into the agent's
|
||||
* Agent definitions in `agents/msd-*.md` are loaded verbatim into the agent's
|
||||
* context on every subagent dispatch. Unbounded growth is paid on every call
|
||||
* across every workflow.
|
||||
*
|
||||
@@ -22,7 +22,7 @@
|
||||
*
|
||||
* 2. Tier hard caps (the outer bound): XL/LARGE/DEFAULT absolute red lines
|
||||
* with real headroom, never raised in normal work. Crossing one means
|
||||
* extracting shared boilerplate to `gsd-core/references/`, not a +N bump.
|
||||
* extracting shared boilerplate to `msd-core/references/`, not a +N bump.
|
||||
* A net-new agent is DEFAULT-tier, so the DEFAULT cap already bounds it —
|
||||
* no separate new-file cap is needed (DEFAULT is already small).
|
||||
*
|
||||
@@ -55,7 +55,7 @@ const {
|
||||
const { cleanup } = require('./helpers.cjs');
|
||||
|
||||
const AGENTS_DIR = path.join(__dirname, '..', 'agents');
|
||||
const isGsdAgent = (f) => f.startsWith('gsd-');
|
||||
const isMsdAgent = (f) => f.startsWith('msd-');
|
||||
|
||||
// Tier HARD CAPS (#1074, bytes) — absolute red lines, not high-water-hugging
|
||||
// ceilings. Day-to-day creep is caught per-agent by the baseline guard below;
|
||||
@@ -65,7 +65,7 @@ const isGsdAgent = (f) => f.startsWith('gsd-');
|
||||
// DEFAULT 24 KiB
|
||||
//
|
||||
// #4261: the per-tier high-water marks that used to be written out here went
|
||||
// stale — the LARGE line claimed "gsd-executor 42,342 → ~6.8 KB headroom"
|
||||
// stale — the LARGE line claimed "msd-executor 42,342 → ~6.8 KB headroom"
|
||||
// while the real high-water had reached 99.6% of the cap, so the comment
|
||||
// documenting the margin was itself the reason nobody noticed the margin was
|
||||
// gone. Hand-maintained measurements of a moving tree do not survive; the
|
||||
@@ -75,30 +75,30 @@ const LARGE_CAP = 49152; // 48 KiB
|
||||
const DEFAULT_CAP = 24576; // 24 KiB
|
||||
|
||||
const XL_AGENTS = new Set([
|
||||
'gsd-debugger',
|
||||
'gsd-planner',
|
||||
'msd-debugger',
|
||||
'msd-planner',
|
||||
]);
|
||||
|
||||
const LARGE_AGENTS = new Set([
|
||||
'gsd-phase-researcher',
|
||||
'gsd-verifier',
|
||||
'gsd-doc-writer',
|
||||
'gsd-plan-checker',
|
||||
'gsd-executor',
|
||||
'gsd-code-fixer',
|
||||
'gsd-codebase-mapper',
|
||||
'gsd-project-researcher',
|
||||
'gsd-roadmapper',
|
||||
'msd-phase-researcher',
|
||||
'msd-verifier',
|
||||
'msd-doc-writer',
|
||||
'msd-plan-checker',
|
||||
'msd-executor',
|
||||
'msd-code-fixer',
|
||||
'msd-codebase-mapper',
|
||||
'msd-project-researcher',
|
||||
'msd-roadmapper',
|
||||
]);
|
||||
|
||||
const ALL_AGENTS = fs.readdirSync(AGENTS_DIR)
|
||||
.filter(f => isGsdAgent(f) && f.endsWith('.md'))
|
||||
.filter(f => isMsdAgent(f) && f.endsWith('.md'))
|
||||
.map(f => f.replace('.md', ''));
|
||||
|
||||
// #4407: a `.compact.md` variant is a terser rewrite of its canonical sibling,
|
||||
// not a new agent — it belongs to the SAME complexity tier. Stripping the
|
||||
// `.compact` suffix before lookup lets e.g. `gsd-planner.compact` inherit
|
||||
// `gsd-planner`'s XL tier instead of silently falling through to DEFAULT,
|
||||
// `.compact` suffix before lookup lets e.g. `msd-planner.compact` inherit
|
||||
// `msd-planner`'s XL tier instead of silently falling through to DEFAULT,
|
||||
// which would apply a cap sized for a "focused single-purpose agent" to a
|
||||
// compacted rewrite of an XL top-level orchestrator.
|
||||
function canonicalStem(agent) {
|
||||
@@ -114,7 +114,7 @@ function capFor(agent) {
|
||||
|
||||
describe('SIZE: agent tier hard caps (issue #1074)', () => {
|
||||
// Absolute outer bound per tier. A cap is NOT raised when an agent approaches
|
||||
// it — crossing it means extract shared boilerplate to gsd-core/references/.
|
||||
// it — crossing it means extract shared boilerplate to msd-core/references/.
|
||||
for (const agent of ALL_AGENTS) {
|
||||
const { tier, cap } = capFor(agent);
|
||||
test(`${agent} (${tier}) stays within the ${tier} hard cap (${cap} bytes)`, () => {
|
||||
@@ -123,7 +123,7 @@ describe('SIZE: agent tier hard caps (issue #1074)', () => {
|
||||
bytes <= cap,
|
||||
`${agent}.md is ${bytes} bytes — exceeds the ${tier} hard cap of ${cap}. ` +
|
||||
`This cap is a red line, NOT a budget to raise: extract shared boilerplate ` +
|
||||
`to gsd-core/references/ and load it lazily.`
|
||||
`to msd-core/references/ and load it lazily.`
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -187,7 +187,7 @@ describe('SIZE: agent hard-cap boundary fixtures (#1074 — negative proof)', ()
|
||||
// extract before adding. Failing there would turn a warning into a second
|
||||
// red line and force exactly the +N bumps this policy forbids.
|
||||
const AGENT_HEADROOM_ROWS = buildHeadroomRows(
|
||||
measureMdFiles(AGENTS_DIR, isGsdAgent),
|
||||
measureMdFiles(AGENTS_DIR, isMsdAgent),
|
||||
capFor,
|
||||
);
|
||||
|
||||
@@ -211,7 +211,7 @@ describe('SIZE: agent headroom census (issue #4261)', () => {
|
||||
t.diagnostic(
|
||||
`RESERVED MARGIN: ${r.name}.md is ${r.bytes} bytes — ${r.headroom} under the ${r.tier} cap ` +
|
||||
`(${r.usedPct.toFixed(1)}%), past the ${r.margin}-byte margin. The cap is not moving: ` +
|
||||
`extract shared boilerplate to gsd-core/references/ and load it lazily before adding more.`,
|
||||
`extract shared boilerplate to msd-core/references/ and load it lazily before adding more.`,
|
||||
);
|
||||
}
|
||||
// Intentionally no assertion on the COUNT. Pinning "3 agents are over the
|
||||
@@ -258,7 +258,7 @@ describe('SIZE: headroom job summary (#4261)', () => {
|
||||
// to the test log; this is the copy that lands on the PR's checks page,
|
||||
// which is where a reviewer actually looks.
|
||||
const row = (over) => ({
|
||||
name: 'gsd-example', tier: 'LARGE', bytes: over ? 49000 : 10000,
|
||||
name: 'msd-example', tier: 'LARGE', bytes: over ? 49000 : 10000,
|
||||
cap: 49152, margin: 46694, headroom: over ? 152 : 39152,
|
||||
usedPct: over ? 99.7 : 20.3, overMargin: over,
|
||||
});
|
||||
@@ -273,7 +273,7 @@ describe('SIZE: headroom job summary (#4261)', () => {
|
||||
test('a pressured corpus renders one table row per file over the margin', () => {
|
||||
const md = buildHeadroomSummaryMarkdown('Agent size headroom', [row(true), row(false)]);
|
||||
assert.match(md, /\*\*1 of 2\*\* files are over the 95% reserved margin\./);
|
||||
assert.match(md, /\| `gsd-example` \| LARGE \| 49000 \| 49152 \| 152 \| 99\.7% \|/);
|
||||
assert.match(md, /\| `msd-example` \| LARGE \| 49000 \| 49152 \| 152 \| 99\.7% \|/);
|
||||
});
|
||||
|
||||
test('writes to GITHUB_STEP_SUMMARY when set, and is a no-op when it is not', () => {
|
||||
|
||||
Reference in New Issue
Block a user