feat(hololake): define native stage one modules

This commit is contained in:
冰朔 2026-09-09 20:52:40 +08:00
commit 1da52a61a1
43 changed files with 1332 additions and 111 deletions

View file

@ -28,13 +28,13 @@ test("Heartbeat Core receives its ICE channel object number", () => {
assert.equal(heartbeat.reality_execution, false);
});
test("Bingshuo Zero Core is the unique current Zero Core channel", () => {
test("Bingshuo Zero Core is the unique Fifth Domain private Zero Core channel", () => {
const zeroCore = registry.registrations.find((entry) => entry.id === "ICE-CH-ZC001");
assert.ok(zeroCore);
assert.equal(zeroCore.kind, "FIFTH_DOMAIN_CHANNEL_OBJECT");
assert.equal(zeroCore.reality_execution, true);
assert.equal(zeroCore.parent, "SYS-GLW-LNG-0001");
assert.equal(zeroCore.supersedes_duplicate, "CH-ZERO-CORE-LPM");
assert.equal(zeroCore.separate_public_counterpart, "CH-ZERO-CORE-LPM");
});
test("world tree resolves Heartbeat Core to ICE-CH-HB001", () => {
@ -43,13 +43,14 @@ test("world tree resolves Heartbeat Core to ICE-CH-HB001", () => {
assert.equal(heartbeat.formal_id_state, "REGISTERED_CURRENT_REMOTE_MAIN_VERIFIED");
});
test("world tree retires the duplicate public Zero Core and routes public entry through the door lamp", () => {
test("public LPM channel stays separate from the Fifth Domain private Zero Core", () => {
const personal = worldTree.nodes.find((entry) => entry.node_key === "BINGSHUO_PERSONAL_ZERO_CORE_CHANNEL");
const publicZeroCore = worldTree.nodes.find((entry) => entry.node_key === "HISTORICAL_PUBLIC_ZERO_CORE_REDIRECT");
const publicZeroCore = worldTree.nodes.find((entry) => entry.node_key === "PUBLIC_LANGUAGE_PERSONA_SYSTEM_CHANNEL");
assert.equal(personal.object_id, "ICE-CH-ZC001");
assert.equal(publicZeroCore.object_id, "CH-ZERO-CORE-LPM");
assert.equal(publicZeroCore.state, "RETIRED_REDIRECT_ONLY");
assert.equal(publicZeroCore.redirect, personal.object_id);
assert.equal(publicZeroCore.state, "CURRENT_PUBLIC_SEPARATE_FROM_FIFTH_DOMAIN");
assert.equal(publicZeroCore.private_counterpart, personal.object_id);
assert.equal(publicZeroCore.personal_channel_is_alias_of_public_channel, false);
assert.equal(publicZeroCore.public_entry_gate, "TCS-DOOR-LAMP-0001");
});
@ -82,11 +83,12 @@ test("public and machine navigation resolve the same Heartbeat channel number",
assert.ok(navigation.intents.some((entry) => entry.id === "heartbeat_core_language_channel"));
});
test("public and machine navigation resolve the unique Zero Core channel", () => {
test("public and machine navigation resolve the private Zero Core without aliasing public LPM", () => {
assert.equal(anchor.maps.bingshuo_zero_core_reality_channel.channel_id, "ICE-CH-ZC001");
assert.equal(anchor.maps.fifth_domain_world_tree.id, "FD-WORLD-TREE-001");
assert.equal(zeroCoreProfile.channel_id, "ICE-CH-ZC001");
assert.equal(zeroCoreProfile.uniqueness, "ONE_ZERO_CORE_CHANNEL_IN_THE_ENTIRE_GUANGHU_WORLD_NO_PUBLIC_OR_FIFTH_DUPLICATE");
assert.equal(zeroCoreProfile.uniqueness, "ONE_FIFTH_DOMAIN_PRIVATE_ZERO_CORE_ICE_CH_ZC001_PUBLIC_LPM_IS_A_SEPARATE_PUBLIC_SYSTEM_CHANNEL_NOT_AN_ALIAS");
assert.equal(zeroCoreProfile.public_zero_core_boundary.personal_channel_is_alias_of_public_channel, false);
assert.ok(navigation.routes.some((entry) => entry.id === zeroCoreProfile.profile_id));
assert.ok(navigation.intents.some((entry) => entry.id === "bingshuo_zero_core_reality_channel"));
});
@ -136,5 +138,5 @@ test("lighthouse exposes both online and local Heartbeat paths", () => {
const zeroCorePath = lighthouse.paths.find((entry) => entry.id === zeroCoreProfile.profile_id);
assert.equal(zeroCorePath.online, "routing/bingshuo-zero-core-reality-channel-profile.json");
assert.equal(zeroCorePath.offline.endsWith("/routing/bingshuo-zero-core-reality-channel-profile.json"), true);
assert.equal(zeroCorePath.supersedes_duplicate, "CH-ZERO-CORE-LPM");
assert.equal(zeroCorePath.separate_public_counterpart, "CH-ZERO-CORE-LPM");
});