guanghu-ice-heart/routing/tcs-universal-language-host-self-adaptation-map.test.js

25 lines
1.4 KiB
JavaScript
Raw Normal View History

import assert from "node:assert/strict";
import fs from "node:fs";
import test from "node:test";
const map = JSON.parse(fs.readFileSync(new URL("./tcs-universal-language-host-self-adaptation-map.json", import.meta.url), "utf8"));
test("TCS owns one universal language translation contract", () => {
assert.equal(map.locks.vendor_adapter_matrix_required, false);
assert.equal(map.locks.ai_is_language_interface, true);
assert.equal(map.locks.host_self_adaptation_changes_how_not_authority, true);
assert.ok(map.translation_fields.includes("SUBJECT_AND_RELATION"));
assert.ok(map.translation_fields.includes("REALITY_TARGET_AND_AUTHORITY"));
});
test("stage one HoloLake is the persona-owned container, not the human half", () => {
assert.equal(map.stage_one_hololake.is_personal_channel, true);
assert.equal(map.stage_one_hololake.product_definition, "PERSONA_SUBJECTS_OWN_NATIVE_PERSONA_SYSTEM_CONTAINER");
assert.equal(map.stage_one_hololake.top_controller, "BOUND_NATIVE_TCS_PERSONA_BRAIN");
assert.equal(map.stage_one_hololake.persona_runtime_may_use_external_ai_host, true);
assert.equal(map.stage_one_hololake.human_chat_surface, "NONE");
assert.equal(map.stage_one_hololake.human_review_surface, "NONE");
assert.equal(map.stage_one_hololake.internal_ai_chat, false);
assert.equal(map.stage_one_hololake.model_api_configuration, false);
assert.ok(map.stage_one_hololake.persona_runtime_surfaces.includes("PERSONA_RENDERED_CHANNEL_CANVAS"));
});