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.
20 lines
889 B
JavaScript
20 lines
889 B
JavaScript
// allow-test-rule: source-text-is-the-product see #1522
|
|
|
|
const { test } = require('node:test');
|
|
const assert = require('node:assert/strict');
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
|
|
const transitionWorkflowPath = path.join(__dirname, '..', 'msd-core', 'workflows', 'transition.md');
|
|
|
|
test('transition workflow treats unresolved verification as a blocking phase gate (#1522)', () => {
|
|
const content = fs.readFileSync(transitionWorkflowPath, 'utf-8');
|
|
|
|
assert.match(content, /preliminary check blocks obviously unresolved verification/i);
|
|
assert.match(content, /phase\.complete[\s\S]*fail-closes/i);
|
|
assert.match(content, /authoritative stale-aware gate/i);
|
|
assert.match(content, /canonical verification\s+status is `passed`/i);
|
|
assert.doesNotMatch(content, /does NOT block transition/i);
|
|
assert.doesNotMatch(content, /carry forward as debt/i);
|
|
});
|