research: reconstruct Eldorado organization with sourced roles and explicit assumptions
Build and publish Eldorado documentation / build (pull_request) Successful in 30s
Build and publish Eldorado documentation / build (pull_request) Successful in 30s
This commit is contained in:
1 parent
0af096a285
commit
c2665624e3
9 files changed
+792
-51
No files matched your search
+20
-7
@@ -59,11 +59,24 @@ test('Archify is pinned, licensed and rebuilt, not a remote embed', () => {
|
||||
assert(!wrapper.includes('target="_blank"'));
|
||||
assert(wrapper.includes('Close full-screen diagram'));
|
||||
});
|
||||
test('example is explicitly illustrative and contains valid connected nodes', () => {
|
||||
const spec = JSON.parse(read('diagrams/organization-structure.architecture.json'));
|
||||
assert(spec.meta.title.includes('Illustrative'));
|
||||
const ids = new Set(spec.components.map(n => n.id));
|
||||
assert.equal(ids.size, spec.components.length);
|
||||
for (const edge of spec.connections) assert(ids.has(edge.from) && ids.has(edge.to));
|
||||
assert(read('docs/organization/structure.mdx').includes('not Eldorado’s confirmed organization chart'));
|
||||
test('organization research distinguishes evidence, advertised roles and assumptions', () => {
|
||||
const page = read('docs/organization/structure.mdx');
|
||||
assert(page.includes('2026-10-02') && page.includes('not a verified employee roster'));
|
||||
assert(page.includes('Vladas Jurkevičius') && page.includes('Lukas Deksnys'));
|
||||
assert(page.includes('Assumed') && page.includes('Publicly evidenced'));
|
||||
assert(!page.includes('Illustrative integration example'));
|
||||
const ledger = JSON.parse(read('research/organization/sources.json'));
|
||||
const citations = [...page.split('## Sources')[0].matchAll(/\[(\d+)\]/g)].map(m => Number(m[1]));
|
||||
assert(citations.length > 10);
|
||||
for (const id of citations) assert(ledger.sources.some(s => s.id === id && s.quotes?.length), `Missing evidence ${id}`);
|
||||
for (const name of ['organization-structure', 'organization-reporting']) {
|
||||
const spec = JSON.parse(read(`diagrams/${name}.architecture.json`));
|
||||
const ids = new Set(spec.components.map(n => n.id));
|
||||
assert.equal(ids.size, spec.components.length);
|
||||
for (const edge of spec.connections) {
|
||||
assert(ids.has(edge.from) && ids.has(edge.to));
|
||||
assert(edge.label.startsWith('J:') || edge.label.startsWith('A:'));
|
||||
if (edge.label.startsWith('A:')) assert.equal(edge.variant, 'dashed');
|
||||
}
|
||||
}
|
||||
});
|
||||
+7
-1
@@ -21,7 +21,13 @@ if (process.argv.includes('--build')) {
|
||||
}
|
||||
assert(!readdirSync('build/diagrams', {recursive: true}).some(f => f.endsWith('.delivery.json')), 'Private build receipts must not be published');
|
||||
const diagram = read('build/diagrams/organization-structure/index.html');
|
||||
assert(diagram.includes('Example leadership') && diagram.includes('node-engineering'));
|
||||
assert(diagram.includes('A: placement') && diagram.includes('node-technology'));
|
||||
assert(!diagram.includes('Example leadership'));
|
||||
const reporting = read('build/diagrams/organization-reporting/index.html');
|
||||
assert(reporting.includes('AI Architect') && reporting.includes('A: assumed'));
|
||||
const structure = read('build/organization/structure/index.html');
|
||||
assert(structure.includes('Vladas Jurkevičius') && structure.includes('not a verified employee roster'));
|
||||
assert(!structure.includes('Illustrative integration example'));
|
||||
assert(!diagram.includes('/opt/data/'), 'No build paths in published diagrams');
|
||||
const home = read('build/index.html');
|
||||
assert(/<title\b[^>]*>Eldorado Powered By AI<\/title>/.test(home));
|
||||
|
||||
Reference in new issue
Block a user