docs: [verified] separate Measurement registry and workflow Baseline
Build and publish Eldorado documentation / build (pull_request) Successful in 46s
Build and publish Eldorado documentation / build (pull_request) Successful in 46s
This commit is contained in:
1 parent
c4b4c38e62
commit
abe00994a1
30 files changed
+961
-548
No files matched your search
@@ -0,0 +1,34 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import {readFileSync} from 'node:fs';
|
||||
const read = path => readFileSync(path, 'utf8');
|
||||
|
||||
test('Baseline is workflow-scoped, evidence-bound and distinct from the optional registry', () => {
|
||||
const page = read('docs/strategy/baseline.mdx');
|
||||
for (const heading of ['Understand the current workflow','Select relevant metrics, with reasons','Agree feasible evidence','Record the starting position','Keep later evaluation comparable']) assert(page.includes(`## ${heading}`));
|
||||
for (const text of ['not a mandatory company-wide baseline','no actual baseline values or approved thresholds','lawful basis','privacy','retention','source coverage','**Available:**','**Unavailable:**','not causal ROI','selected-but-unavailable']) assert(page.includes(text), text);
|
||||
assert(page.indexOf('<ArchifyDiagram') < page.indexOf('## Understand'));
|
||||
assert(!page.includes('25%'));
|
||||
for (const doc of ['measurement/index','measurement/collection-and-safeguards','skills-adoption','skills-maintenance','skills-governance']) assert(page.includes(`./${doc}.mdx`));
|
||||
const registry = read('docs/strategy/measurement/index.mdx');
|
||||
assert(registry.includes('pagination_next: baseline'));
|
||||
assert(page.includes('pagination_prev: measurement/index'));
|
||||
assert(page.includes('pagination_next: skills-governance'));
|
||||
});
|
||||
|
||||
test('workflow application has one home and shared safety remains explicit', () => {
|
||||
const registry = read('docs/strategy/measurement/index.mdx');
|
||||
const shared = read('docs/strategy/measurement/collection-and-safeguards.mdx');
|
||||
const adoption = read('docs/strategy/skills-adoption.mdx');
|
||||
const maintenance = read('docs/strategy/skills-maintenance.mdx');
|
||||
assert(!registry.includes('Measure the pilot'));
|
||||
assert(!shared.includes('Track all five'));
|
||||
assert(!shared.includes('Before a pilot, freeze'));
|
||||
assert(shared.includes('id') && shared.includes('{#baseline-and-interpretation}')); // Existing inbound anchor survives relocation.
|
||||
for (const marker of ['transport retries','quarantined','Late arrivals','Unknown version stays null','30 days','12 months','below five people','No raw prompts','Consent is not presumed']) assert(shared.includes(marker),marker);
|
||||
assert(adoption.includes('not a mandatory pilot bundle'));
|
||||
assert(adoption.includes('What a pilot report looks like'));
|
||||
assert(maintenance.includes('Keep selected evidence useful'));
|
||||
assert(maintenance.includes('versioned corrections'));
|
||||
assert(adoption.includes('**Next:** [Maintain skills using the agreed evidence →](./skills-maintenance.mdx)'));
|
||||
});
|
||||
Reference in new issue
Block a user