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:
@@ -1,15 +1,15 @@
|
||||
/**
|
||||
* #3645: gsd-planner and gsd-pattern-mapper must write only git-TRACKED
|
||||
* #3645: msd-planner and msd-pattern-mapper must write only git-TRACKED
|
||||
* source paths into PLAN.md / PATTERNS.md — never a gitignored install/
|
||||
* runtime mirror (e.g. <root>/.gsd/capabilities/<id>/... synced from a
|
||||
* runtime mirror (e.g. <root>/.msd/capabilities/<id>/... synced from a
|
||||
* plugin's tracked tree). Executors that trust a mirror path edit a copy
|
||||
* whose changes die on the next sync; the wrong path also self-propagates
|
||||
* across phases because pattern-mapper builds on prior phases' docs.
|
||||
*
|
||||
* Enforcement points: gsd-pattern-mapper.md carries the gate inline (its
|
||||
* Enforcement points: msd-pattern-mapper.md carries the gate inline (its
|
||||
* size tier has headroom); the PLANNER agent file is frozen under a
|
||||
* 49152-LF-char cap asserted by four other suites, so the planner-side rule
|
||||
* is projected onto its spawn contract in gsd-core/workflows/plan-phase.md
|
||||
* is projected onto its spawn contract in msd-core/workflows/plan-phase.md
|
||||
* (the #3297 precedent for requirements the spawned agent must honor).
|
||||
*
|
||||
* Shipped-content contract rows: the agent/workflow text IS the product the
|
||||
@@ -24,7 +24,7 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const AGENTS_DIR = path.join(__dirname, '..', 'agents');
|
||||
const WORKFLOWS_DIR = path.join(__dirname, '..', 'gsd-core', 'workflows');
|
||||
const WORKFLOWS_DIR = path.join(__dirname, '..', 'msd-core', 'workflows');
|
||||
|
||||
describe('#3645 — agents write only git-tracked source paths', () => {
|
||||
// allow-test-rule: source-text-is-the-product (#3645)
|
||||
@@ -36,7 +36,7 @@ describe('#3645 — agents write only git-tracked source paths', () => {
|
||||
// The agent gate text IS the runtime instruction; testing it tests the
|
||||
// deployed contract — if the tracked-source gate is absent, the agent
|
||||
// does not enforce it.
|
||||
const mapper = fs.readFileSync(path.join(AGENTS_DIR, 'gsd-pattern-mapper.md'), 'utf8');
|
||||
const mapper = fs.readFileSync(path.join(AGENTS_DIR, 'msd-pattern-mapper.md'), 'utf8');
|
||||
|
||||
test('planner spawn contract carries the #3645 tracked-source rule', () => {
|
||||
const block = planPhase.split('<tracked_source_paths>')[1]?.split('</tracked_source_paths>')[0];
|
||||
@@ -45,7 +45,7 @@ describe('#3645 — agents write only git-tracked source paths', () => {
|
||||
'the block must govern files_modified and must_haves paths');
|
||||
assert.ok(block.includes('git ls-files'),
|
||||
'the block must instruct git ls-files verification (#3645)');
|
||||
assert.ok(/GSD_SOURCE_MIRROR_SENTINEL|\.gsd\/capabilities/.test(block),
|
||||
assert.ok(/MSD_SOURCE_MIRROR_SENTINEL|\.msd\/capabilities/.test(block),
|
||||
'the block must name the gitignored install-mirror shape it rejects');
|
||||
assert.ok(/plugins\//.test(block),
|
||||
'the block must point at tracked plugin-source fallback locations');
|
||||
@@ -57,9 +57,9 @@ describe('#3645 — agents write only git-tracked source paths', () => {
|
||||
'the block must cover paths inherited from {PATTERNS_PATH} and prior phases');
|
||||
});
|
||||
|
||||
test('gsd-pattern-mapper emits only tracked analog paths (#3645)', () => {
|
||||
test('msd-pattern-mapper emits only tracked analog paths (#3645)', () => {
|
||||
assert.ok(mapper.includes('git ls-files'),
|
||||
'gsd-pattern-mapper.md must verify analog paths via git ls-files (#3645)');
|
||||
'msd-pattern-mapper.md must verify analog paths via git ls-files (#3645)');
|
||||
assert.ok(mapper.includes('gitignored install/runtime mirror'),
|
||||
'the mapper must name the gitignored-mirror rejection explicitly (#3645)');
|
||||
assert.ok(mapper.includes('never emit mirror paths'),
|
||||
@@ -72,9 +72,9 @@ describe('#3645 — agents write only git-tracked source paths', () => {
|
||||
// The planner is pinned under a 49152-LF-char cap by four suites; the
|
||||
// rule lives in its spawn contract instead. Guard the freeze: #3645
|
||||
// must not have grown the agent file past its baseline.
|
||||
const src = fs.readFileSync(path.join(AGENTS_DIR, 'gsd-planner.md'), 'utf8');
|
||||
const src = fs.readFileSync(path.join(AGENTS_DIR, 'msd-planner.md'), 'utf8');
|
||||
const lf = src.replace(/\r\n/g, '\n').length;
|
||||
assert.ok(lf < 49152, `gsd-planner.md is ${lf} LF chars — must stay < 49152 (#3645 keeps the planner frozen; enforcement lives in plan-phase.md)`);
|
||||
assert.ok(lf < 49152, `msd-planner.md is ${lf} LF chars — must stay < 49152 (#3645 keeps the planner frozen; enforcement lives in plan-phase.md)`);
|
||||
assert.ok(!src.includes('Tracked-source'),
|
||||
'the rule belongs in the spawn contract, not the frozen agent file (#3645)');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user