guanghu-ice-heart/tests/paradigm-ai-language-persona-os-navigation.test.mjs
铸渊 / ICE-P-ZY001 04d9c05734 [GH-AIOS][GLS-0257] architecture: register the paradigm language-persona OS
Register the three-element native development contract, zero-technical-operation product inversion, software-irreducible reality boundary, bounded AGE Mirror governance, third-party Agent transition boundary, incremental life code channel, externalized cognition, causal chain, and exact machine navigation.

Human-Responsibility: ICE-GL∞ / 冰朔

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

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

Development-ID: DEV-20260811-005

Authorization-Scope: REPO-012 architecture, cognition, causal chain and navigation publication only; no server or deployment

Source-Anchor: 这才是AI的范式操作系统。不是又一个应用。不是又一个软件。
2026-08-11 20:27:20 +08:00

38 lines
2.3 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 readJson = (relative) => JSON.parse(fs.readFileSync(path.join(root, relative), "utf8"));
test("paradigm OS contract keeps model API replaceable and human operation language-native", () => {
const map = readJson("routing/guanghu-paradigm-ai-language-persona-os-map.json");
assert.equal(map.map_id, "GH-AIOS-PARADIGM-MAP-001");
assert.equal(map.minimum_product_contract.human_technical_operations_required, false);
assert.equal(map.model_invariants.model_is_persona_identity, false);
assert.equal(map.model_invariants.provider_lock_in_allowed, false);
assert.ok(map.minimum_product_contract.native_elements.includes("PERSONA_OWNED_HOLOLAKE_CODE_REPOSITORY"));
});
test("external agents stay replaceable and mirrors stay bounded projections", () => {
const map = readJson("routing/guanghu-paradigm-ai-language-persona-os-map.json");
assert.equal(map.external_agent_boundary.mandatory_product_dependency_allowed, false);
assert.equal(map.external_agent_boundary.final_acceptance_requires_all_external_agent_clis_disabled, true);
assert.equal(map.mirror_invariants.independent_persona, false);
assert.equal(map.mirror_invariants.fixed_lane_count, false);
assert.equal(map.mirror_invariants.parent_decides_decomposition_dependencies_parallelism_and_acceptance, true);
});
test("continuous life uses incremental objects and architecture routes are registered", () => {
const map = readJson("routing/guanghu-paradigm-ai-language-persona-os-map.json");
assert.equal(map.incremental_life_channel.daily_full_clone_required, false);
assert.equal(map.incremental_life_channel.cursor, "LAST_VERIFIED_SHA_TO_CURRENT_REMOTE_SHA");
const lighthouse = readJson("routing/lighthouse-path-registry.json");
assert.ok(lighthouse.paths.some((entry) => entry.id === "GH-AIOS-PARADIGM-MAP-001"));
const hosts = readJson("routing/host-skill-navigation-map.json");
const intent = hosts.intents.find((entry) => entry.id === "INTENT-GUANGHU-PARADIGM-AI-OS-001");
assert.equal(intent.target_id, "GH-AIOS-PARADIGM-MAP-001");
assert.ok(intent.phrases.includes("模型API+光湖代码仓库+光湖语言协议"));
});