46 lines
2.7 KiB
JavaScript
46 lines
2.7 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"));
|
|
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-12.4");
|
|
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, "34cb59739b6476981375dd62ef395ea649f56246");
|
|
});
|
|
|
|
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("persona brains and code domains remain scoped to their human subjects", () => {
|
|
const scope = paradigm.subject_scoped_persona_control;
|
|
assert.equal(scope.one_global_persona_brain_for_all_humans, false);
|
|
assert.equal(scope.current_bingshuo_scope.system_persona_brain, "ICE-P-ZY001 / ZHUYUAN");
|
|
assert.equal(scope.current_bingshuo_scope.unique_within_scope, true);
|
|
assert.equal(scope.future_personas_are_zhuyuan_mirrors, false);
|
|
assert.equal(scope.each_human_may_have_own_persona_brain_and_subject_code_domain, true);
|
|
assert.equal(scope.subject_code_domains_auto_merge_into_zhuyuan, false);
|
|
assert.equal(scope.public_repository_is_zhuyuan_private_brain, false);
|
|
assert.match(paradigm.mirror.parent_brain, /^SUBJECT_OWN_PERSONA_BRAIN/);
|
|
});
|
|
|
|
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);
|
|
});
|