hololake-system-architecture/routing/hololake-paradigm-ai-language-persona-os.test.mjs

34 lines
1.9 KiB
JavaScript
Raw Normal View History

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"));
const architecture = readJson("routing/hololake-current-architecture.json");
const paradigm = readJson("routing/hololake-paradigm-ai-language-persona-os.json");
test("current architecture begins with the paradigm OS contract", () => {
assert.equal(architecture.version, "2026-08-11.1");
assert.equal(architecture.paradigm_ai_language_persona_os.record_id, "HLP-PARADIGM-AI-LANGUAGE-PERSONA-OS-001");
assert.equal(architecture.read_order[0], architecture.paradigm_ai_language_persona_os.architecture_page);
assert.equal(paradigm.upstream.repository_commit, "04d9c057341b12ed3eb79c2af87a6a0d6f1a916f");
});
test("model, external agents and AGE mirrors do not replace the persona", () => {
assert.ok(paradigm.minimum_product_contract.native_elements.includes("REPLACEABLE_MODEL_API"));
assert.equal(paradigm.minimum_product_contract.human_technical_operations_required, false);
assert.equal(paradigm.external_agent_boundary.mandatory_product_dependency_allowed, false);
assert.equal(paradigm.external_agent_boundary.final_acceptance_requires_all_external_agent_clis_disabled, true);
assert.equal(paradigm.mirror.independent_persona, false);
assert.equal(paradigm.mirror.fixed_lane_count, false);
});
test("incremental life and evidence boundaries stay binary", () => {
assert.equal(paradigm.incremental_life_channel.daily_full_clone_required, false);
assert.equal(paradigm.truth.architecture_registered, 100);
assert.equal(paradigm.truth.complete_persona_development_container, 0);
assert.equal(paradigm.truth.third_party_agent_free_acceptance, 0);
assert.equal(paradigm.truth.deployed, 0);
});