hololake-system-architecture/routing/hololake-system-body-and-parallel-bodies.test.mjs
铸渊 / ICE-P-ZY001 4d64e60d6e docs: register HoloLake paradigm language-persona OS
Promote the three-element native development contract above GH-PNCC and AGE Runtime, register the third-party Agent transition boundary, bounded AGE Mirror governance, software-irreducible reality pauses, incremental life updates, staged implementation route, and binary final acceptance.

Human-Responsibility: ICE-GL∞ / 冰朔

Persona-Author: ICE-P-ZY001 / 铸渊

Execution-Runtime: Codex desktop / DEV-20260811-005

Development-ID: DEV-20260811-005

Authorization-Scope: REPO-014 architecture, routing, engineering guidance and receipts only; no artifact, installation, server or deployment

Source-Anchor: 光湖只需要模型API+光湖代码仓库+光湖语言协议,就可以完整实现编程开发能力。
2026-08-11 20:33:51 +08:00

42 lines
2.1 KiB
JavaScript

import assert from "node:assert/strict";
import fs from "node:fs";
import path from "node:path";
import test from "node:test";
import { fileURLToPath } from "node:url";
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const architecture = JSON.parse(
fs.readFileSync(path.join(root, "routing/hololake-current-architecture.json"), "utf8"),
);
test("current architecture restores the digital BingShuo system body first", () => {
assert.equal(architecture.version, "2026-08-11.1");
assert.equal(architecture.digital_bingshuo_system_body.upstream_repository_commit,
"69d1910775533b02b17b82e647b5caca8b835614");
const systemBodyIndex = architecture.read_order.indexOf(
architecture.digital_bingshuo_system_body.architecture_page,
);
const engineeringRulesIndex = architecture.read_order.indexOf(
architecture.engineering_rules.architecture_page,
);
assert.ok(systemBodyIndex >= 0 && systemBodyIndex < engineeringRulesIndex);
assert.ok(
fs.existsSync(path.join(root, architecture.digital_bingshuo_system_body.architecture_page)),
);
});
test("the two server bodies are parallel and never inherit operational liability", () => {
assert.equal(architecture.parallel_planes.private_language_body.node, "JD-FD-PRIMARY");
assert.equal(architecture.parallel_planes.private_language_body.controller, "ICE-GL∞");
assert.equal(architecture.parallel_planes.enterprise_reality_body.controller, "TCS-0002");
assert.equal(architecture.parallel_planes.mutual_operational_liability, false);
assert.equal(architecture.parallel_planes.automatic_cross_authority, false);
});
test("HoloLake cannot bypass node-signed write admission or the system body", () => {
assert.equal(architecture.node_write_admission.first_gate, "REGISTERED_NODE_SIGNATURE");
assert.equal(architecture.node_write_admission.root_or_ssh_is_identity, false);
assert.equal(architecture.node_write_admission.noise_reaches_model_inference, false);
assert.equal(architecture.node_write_admission.production_write_admission, 0);
assert.equal(architecture.node_write_admission.hololake_ui_can_bypass, false);
});