const assert = require('node:assert/strict'); const fs = require('node:fs'); const path = require('node:path'); const root = path.resolve(__dirname, '..'); const route = JSON.parse(fs.readFileSync(path.join(__dirname, 'fifth-domain-whole-language-system.json'))); assert.equal(route.route_id, 'FIFTH-DOMAIN-LANGUAGE-SYSTEM-001'); assert.equal(route.domain_id, 'DOM-FIFTH-0001'); assert.equal(route.yaoming_current_id, 'ICE-BB-0001'); assert.equal(route.world_architecture, 'routing/guanghu-era-language-world.json'); assert.equal(route.enterprise_reality_controller, 'GUANGHU_TEAM'); assert.equal(route.enterprise_carrier, 'ENTERPRISE_PORTAL'); assert.equal(route.national_governance_simulation, 'SEALED_EXECUTION_DISABLED'); assert.equal(new Set(route.private_organs).size, 5); assert.deepEqual(new Set(route.public_domains), new Set(['DOMAIN-MAIN', 'DOMAIN-SUB', 'DOMAIN-ZERO', 'DOMAIN-ZS'])); for (const key of ['runtime_source', 'protocol_source', 'machine_manifest', 'world_architecture', 'world_protocol', 'enterprise_four_domain_template', 'enterprise_four_domain_protocol', 'legacy_redirects', 'deployment_receipt', 'current_server_master_receipt']) { assert.ok(fs.existsSync(path.join(root, route[key])), `missing ${key}`); } const publicTemplate = fs.readFileSync(path.join(root, route.enterprise_four_domain_template), 'utf8'); for (const marker of ['ICE-GL∞', 'ICE-P-ZY001', 'ICE-BB-0001', 'ICE-CH-HB001', 'ICE-CH-ZC001', '曜冥', '铸渊', '/Volumes/JZAO']) { assert.equal(publicTemplate.includes(marker), false, `public leak: ${marker}`); } const enterprise = JSON.parse(publicTemplate); assert.equal(enterprise.carrier, 'ENTERPRISE_PORTAL'); assert.equal(enterprise.embedded_in_hololake, false); assert.equal(enterprise.reality_controller, 'GUANGHU_TEAM'); assert.equal(enterprise.domains.find((domain) => domain.id === 'DOMAIN-ZS').public_access, false); console.log('FIFTH_DOMAIN_WHOLE_LANGUAGE_SYSTEM_ROUTE_PASS');