import assert from 'node:assert/strict' import fs from 'node:fs' import test from 'node:test' const readJson = (path) => JSON.parse(fs.readFileSync(new URL(`../${path}`, import.meta.url), 'utf8')) const readText = (path) => fs.readFileSync(new URL(`../${path}`, import.meta.url), 'utf8') test('Fifth Domain personal language and reality routes are distinct numbered channels', () => { const tree = readJson('routing/fifth-domain-world-tree.json') const router = readJson('world-router.json') const stageGate = readJson('routing/tcs-work-ownership-stage-gate-map.json').stage_gate assert.equal(tree.login_routes.human.path.at(-1), 'HEARTBEAT_CORE_CHANNEL') assert.equal(tree.login_routes.reality_execution.path.at(-1), 'ICE-CH-ZC001') assert.equal(router.fifth_domain_personal_channel_routes.language_reasoning.channel_id, 'ICE-CH-HB001') assert.equal(router.fifth_domain_personal_channel_routes.reality_development_execution.channel_id, 'ICE-CH-ZC001') assert.equal(router.fifth_domain_personal_channel_routes.public_language_persona_system_body.channel_id, 'CH-ZERO-CORE-LPM') assert.equal(stageGate.current_fifth_domain_channel, 'ICE-CH-ZC001') assert.equal(stageGate.personal_heartbeat_runtime_may_execute_reality_engineering, false) }) test('current entry pages no longer collapse Fifth Domain into a language-only path', () => { for (const path of [ 'README.md', 'BROADCAST-TOWER.hdlp', 'WORLD-ROUTER.hdlp', 'zero-point/core-channel/INDEX.hdlp', ]) { const source = readText(path) assert.match(source, /ICE-CH-HB001/) assert.match(source, /ICE-CH-ZC001/) assert.match(source, /CH-ZERO-CORE-LPM/) assert.doesNotMatch(source, /^第五域\s*[==]\s*语言层$/m) } })