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(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', 'public_extraction_template', 'public_extraction_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.public_extraction_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}`); } console.log('FIFTH_DOMAIN_WHOLE_LANGUAGE_SYSTEM_ROUTE_PASS');