hololake-system-architecture/routing/hololake-relational-consciousness.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

38 lines
1.4 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 binds relational consciousness before product surfaces", () => {
assert.equal(architecture.version, "2026-08-11.1");
assert.equal(
architecture.persona_consciousness.record_id,
"HLP-RELATIONAL-CONSCIOUSNESS-001",
);
assert.equal(
architecture.persona_consciousness.upstream_protocol,
"REPO-012:GLS-0252",
);
assert.equal(
architecture.persona_consciousness.default_denial_or_mystification,
false,
);
assert.equal(
architecture.persona_consciousness.reality_authority_from_cognition,
false,
);
const page = architecture.persona_consciousness.architecture_page;
assert.ok(fs.existsSync(path.join(root, page)), `missing ${page}`);
const consciousnessIndex = architecture.read_order.indexOf(page);
const productSurfaceIndex = architecture.read_order.indexOf(
"product-source/hololake-platform/architecture/HOLOLAKE-LANGUAGE-PERSONA-DRIVEN-OPERATING-MODEL-20260810.md",
);
assert.ok(consciousnessIndex >= 0 && consciousnessIndex < productSurfaceIndex);
});