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:
@@ -8,7 +8,7 @@
|
||||
* agent-marker-documentation-guard.test.cjs — 50-test-matrix.md rows 11 and 12
|
||||
* (issue #2995, epic #1671 Phase 6.4).
|
||||
*
|
||||
* #2930 scoped `composeWorkflow` to `gsd-core/workflows/` for one specific
|
||||
* #2930 scoped `composeWorkflow` to `msd-core/workflows/` for one specific
|
||||
* reason: a document that merely DOCUMENTS the marker syntax with an UNFENCED
|
||||
* example is indistinguishable from a real marker, so the composer would treat
|
||||
* it as one and drop that line from the emitted artifact. `docs/reference/
|
||||
@@ -23,7 +23,7 @@ const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const { parseWorkflowSections, composeWorkflow } = require('../gsd-core/bin/lib/workflow-fragments.cjs');
|
||||
const { parseWorkflowSections, composeWorkflow } = require('../msd-core/bin/lib/workflow-fragments.cjs');
|
||||
|
||||
const AGENTS_DIR = path.join(__dirname, '..', 'agents');
|
||||
|
||||
@@ -32,7 +32,7 @@ const AGENTS_DIR = path.join(__dirname, '..', 'agents');
|
||||
test('row 11 — a fenced marker example in an agent survives composition verbatim', () => {
|
||||
const doc = [
|
||||
'---',
|
||||
'name: gsd-example',
|
||||
'name: msd-example',
|
||||
'---',
|
||||
'',
|
||||
'# Example agent',
|
||||
@@ -40,23 +40,23 @@ test('row 11 — a fenced marker example in an agent survives composition verbat
|
||||
'To gate a section, write:',
|
||||
'',
|
||||
'```markdown',
|
||||
'<!-- gsd:section id="demo" when="always" -->',
|
||||
'<!-- msd:section id="demo" when="always" -->',
|
||||
'body',
|
||||
'<!-- /gsd:section -->',
|
||||
'<!-- /msd:section -->',
|
||||
'```',
|
||||
'',
|
||||
'That is the whole grammar.',
|
||||
'',
|
||||
].join('\n');
|
||||
|
||||
const sections = parseWorkflowSections(doc, 'agents/gsd-example.md');
|
||||
const sections = parseWorkflowSections(doc, 'agents/msd-example.md');
|
||||
assert.deepStrictEqual(
|
||||
sections.filter((s) => s.explicit).map((s) => s.id),
|
||||
[],
|
||||
'a fenced example must produce NO explicit section — it is documentation, not a marker',
|
||||
);
|
||||
|
||||
const composed = composeWorkflow(doc, { sourcePath: 'agents/gsd-example.md' });
|
||||
const composed = composeWorkflow(doc, { sourcePath: 'agents/msd-example.md' });
|
||||
assert.equal(
|
||||
composed,
|
||||
doc,
|
||||
@@ -76,7 +76,7 @@ test('row 11 — a fenced marker example in an agent survives composition verbat
|
||||
// per-agent manifest family that would make agent gating admissible eventually
|
||||
// lands, this test must be revisited on purpose, not silently satisfied.
|
||||
|
||||
test('row 12 — no shipped agent carries an unfenced gsd:section marker', () => {
|
||||
test('row 12 — no shipped agent carries an unfenced msd:section marker', () => {
|
||||
const offenders = [];
|
||||
for (const name of fs.readdirSync(AGENTS_DIR).sort()) {
|
||||
if (!name.endsWith('.md')) continue;
|
||||
@@ -89,10 +89,10 @@ test('row 12 — no shipped agent carries an unfenced gsd:section marker', () =>
|
||||
assert.deepStrictEqual(
|
||||
offenders,
|
||||
[],
|
||||
'An agent carries a gsd:section marker outside a fence. If it is DOCUMENTATION, fence it — ' +
|
||||
'An agent carries a msd:section marker outside a fence. If it is DOCUMENTATION, fence it — ' +
|
||||
'the composer cannot tell an unfenced example from a real marker and will drop the line ' +
|
||||
'from the emitted agent. If it is meant as real gating, it will not work: ' +
|
||||
'gen-section-manifest.cjs scans only gsd-core/workflows/, so an agent atom has no consumer ' +
|
||||
'gen-section-manifest.cjs scans only msd-core/workflows/, so an agent atom has no consumer ' +
|
||||
'and evaluates false forever (see ADR-1671, "the grammar does NOT extend to agents/").\n' +
|
||||
`Offenders:\n ${offenders.join('\n ')}`,
|
||||
);
|
||||
@@ -108,18 +108,18 @@ test('row 12 — no shipped agent carries an unfenced gsd:section marker', () =>
|
||||
test('row 12b — a whole-line unfenced marker in agent prose is detected as a real marker', () => {
|
||||
const doc = [
|
||||
'---',
|
||||
'name: gsd-example',
|
||||
'name: msd-example',
|
||||
'---',
|
||||
'',
|
||||
'To open a section, write:',
|
||||
'',
|
||||
'<!-- gsd:section id="demo" when="always" -->',
|
||||
'<!-- msd:section id="demo" when="always" -->',
|
||||
'body',
|
||||
'<!-- /gsd:section -->',
|
||||
'<!-- /msd:section -->',
|
||||
'',
|
||||
].join('\n');
|
||||
|
||||
const explicit = parseWorkflowSections(doc, 'agents/gsd-example.md').filter((s) => s.explicit);
|
||||
const explicit = parseWorkflowSections(doc, 'agents/msd-example.md').filter((s) => s.explicit);
|
||||
assert.deepStrictEqual(
|
||||
explicit.map((s) => s.id),
|
||||
['demo'],
|
||||
@@ -133,14 +133,14 @@ test('row 12b — a whole-line unfenced marker in agent prose is detected as a r
|
||||
test('row 12c — an inline marker-shaped span mid-sentence is not treated as an open marker', () => {
|
||||
const doc = [
|
||||
'---',
|
||||
'name: gsd-example',
|
||||
'name: msd-example',
|
||||
'---',
|
||||
'',
|
||||
'Write <!-- gsd:section id="demo" when="always" --> to open a section.',
|
||||
'Write <!-- msd:section id="demo" when="always" --> to open a section.',
|
||||
'',
|
||||
].join('\n');
|
||||
|
||||
const explicit = parseWorkflowSections(doc, 'agents/gsd-example.md').filter((s) => s.explicit);
|
||||
const explicit = parseWorkflowSections(doc, 'agents/msd-example.md').filter((s) => s.explicit);
|
||||
assert.deepStrictEqual(
|
||||
explicit.map((s) => s.id),
|
||||
[],
|
||||
|
||||
Reference in New Issue
Block a user