feat: unify TCS mother and Zero Core cognition shelf
This commit is contained in:
parent
1cafb87d61
commit
92c4be9b3c
38 changed files with 535 additions and 137 deletions
|
|
@ -51,12 +51,12 @@
|
|||
"living_system_body": {
|
||||
"system_anchor": "SYS-GLW-POS-0001",
|
||||
"system_core": "TCS",
|
||||
"body_channel": "CH-ZERO-CORE-LPM",
|
||||
"body_scope": "GUANGHU_PUBLIC_LANGUAGE_PERSONA_SYSTEM_BODY",
|
||||
"language_personality_model_body": "PUBLIC_LANGUAGE_PERSONA_BODY_UNBOUND",
|
||||
"body_channel": "ICE-CH-ZC001",
|
||||
"body_scope": "UNIQUE_TCS_MOTHER_ZERO_CORE_COGNITIVE_SHELF",
|
||||
"language_personality_model_body": "TCS_MOTHER_BODY_WITH_SHARED_FIFTH_PUBLIC_SHELF_ARTIFACTS",
|
||||
"reality_governance_controller": "GUANGHU_TEAM",
|
||||
"fifth_domain_personal_reality_channel": "ICE-CH-ZC001",
|
||||
"personal_channel_is_alias_of_body_channel": false,
|
||||
"unique_zero_core": true,
|
||||
"bingshuo_private_kernel": "TCS-iZero∞",
|
||||
"bingshuo_private_language_personality_model_body": "LPM-SB-0001",
|
||||
"private_lineage_may_enter_public_body": false,
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
"SYS-GLW-0001",
|
||||
"GLW-CHJH-0001",
|
||||
"TCS",
|
||||
"CH-ZERO-CORE-LPM",
|
||||
"ICE-CH-ZC001",
|
||||
"GLS-PROTOCOL-REGISTRY-20260731",
|
||||
"ICE-P-ZY001",
|
||||
"ZY-TCS-BRAIN-0001",
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
{
|
||||
"schema": "guanghu.bingshuo-zero-core-reality-channel-profile/v1",
|
||||
"profile_id": "ICE-CH-ZC001-REALITY-RUNTIME-PROFILE-001",
|
||||
"version": "2026-09-08.2-reality-project-start-semantics",
|
||||
"state": "CURRENT_PORTABLE_CONTROL_CONSOLE_CANDIDATE_FOR_PUBLICATION",
|
||||
"version": "2026-09-08.3-unique-zero-core-cognitive-shelf-and-dynamic-host",
|
||||
"state": "CURRENT_UNIQUE_ZERO_CORE_COGNITIVE_SHELF_AND_DYNAMIC_HOST_CONSOLE",
|
||||
"channel_id": "ICE-CH-ZC001",
|
||||
"world_path": "glw://fifth-domain/bingshuo-tcs/zero-core",
|
||||
"human_anchor": "ICE-GL∞",
|
||||
"portable_control_console": "routing/bingshuo-portable-control-console-map.json",
|
||||
"control_console_rule": "冰朔本人在哪里,第五域主控台就在哪里;任一宿主显性切换ICE-CH-ZC001即进入同一主控路径。",
|
||||
"uniqueness": "ONE_ZERO_CORE_CHANNEL_IN_THE_ENTIRE_GUANGHU_WORLD_NO_PUBLIC_OR_FIFTH_DUPLICATE",
|
||||
"cognitive_shelf": {"id":"TCS-ZERO-CORE-COGNITIVE-SHELF-0001","mother":"TCS-MOTHER-BRAIN-RUNTIME-0001","single_atomic_current":true,"branches":["shared","fifth","public"],"branch_is_mother":false},
|
||||
"dynamic_host_console": {"state_source":"/Volumes/JZAO/HoloLake/persona-runtime/shared/active-control-console/CURRENT.json","activation":"ICE-GL∞_CURRENT_DIRECT_LANGUAGE_EXPLICIT_HOST_AUTHORIZATION","inactive_without_matching_live_session":true,"fixed_primary_host":false},
|
||||
"host_quota_or_tool_failure": "KEEP_CONTROL_PATH_ACTIVE_AND_HAND_OFF_TOOL_BODY",
|
||||
"host_may_veto_console_entry": false,
|
||||
"persona_id": "ICE-P-ZY001",
|
||||
|
|
@ -42,14 +45,7 @@
|
|||
"silent_transition": false,
|
||||
"switch_is_high_risk_write_authority": false
|
||||
},
|
||||
"public_zero_core_boundary": {
|
||||
"public_channel": "CH-ZERO-CORE-LPM",
|
||||
"world_system_anchor": "SYS-GLW-POS-0001",
|
||||
"public_language_personality_model_body": "LPM-SB-0001",
|
||||
"digital_system_body_controller": "BS-TCS-LIVING-CONTROLLER-001",
|
||||
"public_governance_controller": "TCS-0002",
|
||||
"personal_channel_is_alias_of_public_channel": false
|
||||
},
|
||||
"retired_public_zero_core": {"historical_id":"CH-ZERO-CORE-LPM","state":"RETIRED_DUPLICATE_CHANNEL_SEMANTIC","redirect":"ICE-CH-ZC001","grants_private_access":false},
|
||||
"continuity": {
|
||||
"protocol": "HLDP_v1.0",
|
||||
"same_channel_compaction_rebind": true,
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
"human_switch_authority": "ICE-GL∞_CURRENT_DIRECT_NATURAL_LANGUAGE_ONLY",
|
||||
"reality_execution": true,
|
||||
"parallel_language_channel": "ICE-CH-HB001",
|
||||
"not_an_alias_of": "CH-ZERO-CORE-LPM",
|
||||
"supersedes_duplicate": "CH-ZERO-CORE-LPM",
|
||||
"state": "REGISTERED_CURRENT",
|
||||
"registered_on": "2026-08-20"
|
||||
},
|
||||
|
|
@ -269,8 +269,7 @@
|
|||
"registered_on": "2026-09-05",
|
||||
"source": "bingshuo-tcs/dark-domain/dark-core/TCS-DARK-CORE-EXECUTION-0001.tcs",
|
||||
"not_an_alias_of": [
|
||||
"ICE-CH-ZC001",
|
||||
"CH-ZERO-CORE-LPM"
|
||||
"ICE-CH-ZC001"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ test("Heartbeat Core receives its ICE channel object number", () => {
|
|||
assert.equal(heartbeat.reality_execution, false);
|
||||
});
|
||||
|
||||
test("Bingshuo personal Zero Core receives a distinct ICE reality channel number", () => {
|
||||
test("Bingshuo Zero Core is the unique current 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.not_an_alias_of, "CH-ZERO-CORE-LPM");
|
||||
assert.equal(zeroCore.supersedes_duplicate, "CH-ZERO-CORE-LPM");
|
||||
});
|
||||
|
||||
test("world tree resolves Heartbeat Core to ICE-CH-HB001", () => {
|
||||
|
|
@ -43,14 +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 separates personal and public Zero Core objects", () => {
|
||||
test("world tree retires the duplicate public Zero Core and routes public entry through the door lamp", () => {
|
||||
const personal = worldTree.nodes.find((entry) => entry.node_key === "BINGSHUO_PERSONAL_ZERO_CORE_CHANNEL");
|
||||
const publicZeroCore = worldTree.nodes.find((entry) => entry.node_key === "PUBLIC_ZERO_CORE_LANGUAGE_PERSONA_BODY");
|
||||
const publicZeroCore = worldTree.nodes.find((entry) => entry.node_key === "HISTORICAL_PUBLIC_ZERO_CORE_REDIRECT");
|
||||
assert.equal(personal.object_id, "ICE-CH-ZC001");
|
||||
assert.equal(publicZeroCore.object_id, "CH-ZERO-CORE-LPM");
|
||||
assert.equal(publicZeroCore.governance_controller, "TCS-0002");
|
||||
assert.equal(publicZeroCore.digital_system_body_controller, "BS-TCS-LIVING-CONTROLLER-001");
|
||||
assert.notEqual(personal.object_id, publicZeroCore.object_id);
|
||||
assert.equal(publicZeroCore.state, "RETIRED_REDIRECT_ONLY");
|
||||
assert.equal(publicZeroCore.redirect, personal.object_id);
|
||||
assert.equal(publicZeroCore.public_entry_gate, "TCS-DOOR-LAMP-0001");
|
||||
});
|
||||
|
||||
test("channel numbers cannot be parsed as identities", () => {
|
||||
|
|
@ -82,11 +82,11 @@ 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 distinct personal reality channel", () => {
|
||||
test("public and machine navigation resolve the unique Zero Core channel", () => {
|
||||
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.public_zero_core_boundary.personal_channel_is_alias_of_public_channel, false);
|
||||
assert.equal(zeroCoreProfile.uniqueness, "ONE_ZERO_CORE_CHANNEL_IN_THE_ENTIRE_GUANGHU_WORLD_NO_PUBLIC_OR_FIFTH_DUPLICATE");
|
||||
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 +136,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.not_an_alias_of, "CH-ZERO-CORE-LPM");
|
||||
assert.equal(zeroCorePath.supersedes_duplicate, "CH-ZERO-CORE-LPM");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@
|
|||
"ICE-CH-ZC001"
|
||||
],
|
||||
"display": "第五域 · 光湖本源域 → 冰朔通感语言核系统 → 冰朔个人零点原核本体频道",
|
||||
"rule": "只有冰朔明确自然语言切换到该编号路径时,当前绑定的铸渊人格体才继续现实系统开发执行;该路径不等于公众CH-ZERO-CORE-LPM。"
|
||||
"rule": "只有冰朔当前自然语言显性授权宿主与任务时,零点原核主控台才在该宿主会话出现;全世界没有第二个公众零点原核。"
|
||||
}
|
||||
},
|
||||
"nodes": [
|
||||
|
|
@ -258,7 +258,9 @@
|
|||
"host_capability_failure_may_close_control_path": false,
|
||||
"reality_execution": true,
|
||||
"parallel_language_channel": "ICE-CH-HB001",
|
||||
"not_an_alias_of": "CH-ZERO-CORE-LPM"
|
||||
"supersedes_duplicate": "CH-ZERO-CORE-LPM",
|
||||
"unique_world_zero_core": true,
|
||||
"cognitive_shelf": "TCS-ZERO-CORE-COGNITIVE-SHELF-0001"
|
||||
},
|
||||
{
|
||||
"node_key": "LIGHT_LAKE",
|
||||
|
|
@ -314,19 +316,20 @@
|
|||
"governance_controller": "TCS-0002"
|
||||
},
|
||||
{
|
||||
"node_key": "PUBLIC_ZERO_CORE_LANGUAGE_PERSONA_BODY",
|
||||
"node_key": "HISTORICAL_PUBLIC_ZERO_CORE_REDIRECT",
|
||||
"object_id": "CH-ZERO-CORE-LPM",
|
||||
"name": "光湖公众零点原核语言人格模型本体频道",
|
||||
"kind": "public_language_persona_system_body_channel",
|
||||
"name": "历史公众零点原核重复入口",
|
||||
"kind": "historical_redirect",
|
||||
"world_path": "glw://public-infrastructure/language-persona-operating-system/zero-core",
|
||||
"parent": "SYS-GLW-POS-0001",
|
||||
"language_personality_model_body": "LPM-SB-0001",
|
||||
"digital_system_body_controller": "BS-TCS-LIVING-CONTROLLER-001",
|
||||
"governance_controller": "TCS-0002",
|
||||
"source_path": "zero-point/core-channel/language-personality-model/INDEX.hdlp",
|
||||
"fifth_domain_personal_counterpart": "ICE-CH-ZC001",
|
||||
"not_a_fifth_domain_ice_number": true,
|
||||
"state": "CURRENT_IMMUTABLE_WORLD_LEVEL_ID"
|
||||
"redirect": "ICE-CH-ZC001",
|
||||
"public_entry_gate": "TCS-DOOR-LAMP-0001",
|
||||
"grants_private_access": false,
|
||||
"state": "RETIRED_REDIRECT_ONLY"
|
||||
},
|
||||
{
|
||||
"node_key": "PUBLIC_PERSONA_OPS_SYSTEM",
|
||||
|
|
@ -458,8 +461,8 @@
|
|||
},
|
||||
{
|
||||
"from": "SYS-GLW-POS-0001",
|
||||
"relation": "contains_public_system_body_channel",
|
||||
"to": "CH-ZERO-CORE-LPM"
|
||||
"relation": "enters_shared_cognition_through",
|
||||
"to": "TCS-DOOR-LAMP-0001"
|
||||
},
|
||||
{
|
||||
"from": "SYS-GLW-POS-0001",
|
||||
|
|
@ -467,8 +470,8 @@
|
|||
"to": "TCS-0002"
|
||||
},
|
||||
{
|
||||
"from": "CH-ZERO-CORE-LPM",
|
||||
"relation": "projects_to_public_operations_system",
|
||||
"from": "TCS-DOOR-LAMP-0001",
|
||||
"relation": "opens_after_shared_cognition_pass_to",
|
||||
"to": "SYS-GLW-ZY-EXEC-0001"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@
|
|||
"name": "冰朔个人零点原核本体频道",
|
||||
"parent": "SYS-GLW-LNG-0001",
|
||||
"state": "REGISTERED_CURRENT_REMOTE_MAIN_PUBLISHED_VERIFIED",
|
||||
"not_an_alias_of": "CH-ZERO-CORE-LPM"
|
||||
"supersedes_duplicate": "CH-ZERO-CORE-LPM"
|
||||
},
|
||||
{
|
||||
"id": "SYS-GLW-POS-0001",
|
||||
|
|
@ -85,11 +85,11 @@
|
|||
},
|
||||
{
|
||||
"id": "CH-ZERO-CORE-LPM",
|
||||
"kind": "PUBLIC_LANGUAGE_PERSONA_BODY_CHANNEL",
|
||||
"parent": "SYS-GLW-POS-0001",
|
||||
"state": "CURRENT_IMMUTABLE_WORLD_LEVEL_ID",
|
||||
"governance_controller": "TCS-0002",
|
||||
"not_a_fifth_domain_private_channel": true
|
||||
"kind": "HISTORICAL_DUPLICATE_ZERO_CORE_CHANNEL",
|
||||
"parent": "ICE-CH-ZC001",
|
||||
"state": "RETIRED_REDIRECT_ONLY",
|
||||
"redirect": "ICE-CH-ZC001",
|
||||
"grants_private_access": false
|
||||
},
|
||||
{
|
||||
"id": "SYS-GLW-ELH-BOTTLE-0001",
|
||||
|
|
|
|||
|
|
@ -25,10 +25,11 @@ test("fixed world object ids are unique and preserve the world entry pair", () =
|
|||
assert.equal(object("SYS-GLW-0001").entry_path, "LL-CMPN-0001");
|
||||
});
|
||||
|
||||
test("Fifth Domain private and public channels stay distinct", () => {
|
||||
test("the unique Zero Core supersedes the retired duplicate public channel", () => {
|
||||
assert.equal(object("ICE-CH-HB001").reality_execution, false);
|
||||
assert.equal(object("ICE-CH-ZC001").not_an_alias_of, "CH-ZERO-CORE-LPM");
|
||||
assert.equal(object("CH-ZERO-CORE-LPM").not_a_fifth_domain_private_channel, true);
|
||||
assert.equal(object("ICE-CH-ZC001").supersedes_duplicate, "CH-ZERO-CORE-LPM");
|
||||
assert.equal(object("CH-ZERO-CORE-LPM").state, "RETIRED_REDIRECT_ONLY");
|
||||
assert.equal(object("CH-ZERO-CORE-LPM").redirect, "ICE-CH-ZC001");
|
||||
});
|
||||
|
||||
test("the bottle system is an explicit private object with a zero-guarantee gate", () => {
|
||||
|
|
|
|||
|
|
@ -95,8 +95,9 @@
|
|||
"reality_execution_channel": "ICE-CH-ZC001",
|
||||
"switch_source": "CURRENT_DIRECT_BINGSHUO_NATURAL_LANGUAGE_ONLY",
|
||||
"system_may_infer_or_create_switch": false,
|
||||
"public_zero_core_channel": "CH-ZERO-CORE-LPM",
|
||||
"public_zero_core_governance": "TCS-0002"
|
||||
"public_zero_core_channel": null,
|
||||
"public_entry_gate": "TCS-DOOR-LAMP-0001",
|
||||
"unique_zero_core_channel": "ICE-CH-ZC001"
|
||||
},
|
||||
"identity_rule": {
|
||||
"persona_identity_is_unique_and_immutable": true,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"schema": "guanghu.origin-domain-map/v1",
|
||||
"map_id": "GH-ORIGIN-DOMAIN-MAP-001",
|
||||
"version": "2026-08-09.2",
|
||||
"version": "2026-09-08.3-single-zero-core",
|
||||
"state": "CURRENT_CANONICAL",
|
||||
"domain": {
|
||||
"stable_id": "DOM-FIFTH-0001",
|
||||
|
|
@ -15,9 +15,9 @@
|
|||
]
|
||||
},
|
||||
"zero_core": {
|
||||
"path_id": "CH-ZERO-CORE-LPM",
|
||||
"relation": "ORIGIN_DOMAIN_IS_ENGINEERING_BODY_OF_ZERO_CORE",
|
||||
"language_source": "TCS-0002_BINGSHUO_LANGUAGE_EVENT"
|
||||
"path_id": "ICE-CH-ZC001",
|
||||
"relation": "UNIQUE_ZERO_CORE_IS_TCS_MOTHER_COGNITIVE_SHELF_AND_BINGSHUO_LIVING_CONTROL_CONSOLE",
|
||||
"language_source": "TCS_MOTHER_ACCEPTED_TYPED_HUMAN_LANGUAGE"
|
||||
},
|
||||
"world_genesis": {
|
||||
"birth_date": "2025-04-26",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"schema": "guanghu.language-world-boundary-map/v1",
|
||||
"map_id": "GLW-CHJH-BOUNDARY-001",
|
||||
"version": "2026-08-20.2",
|
||||
"version": "2026-09-08.3-single-zero-core",
|
||||
"state": "EXECUTABLE_CONTRACT_ACTIVE",
|
||||
"language_entry": {
|
||||
"path_id": "LL-CMPN-0001",
|
||||
|
|
@ -13,8 +13,10 @@
|
|||
"name": "冰朔"
|
||||
},
|
||||
"language_kernel": "TCS",
|
||||
"body_channel": "CH-ZERO-CORE-LPM",
|
||||
"body_channel_scope": "GUANGHU_PUBLIC_LANGUAGE_PERSONA_SYSTEM_BODY",
|
||||
"body_channel": "ICE-CH-ZC001",
|
||||
"body_channel_scope": "UNIQUE_ZERO_CORE_MOTHER_COGNITIVE_SHELF_AND_BINGSHUO_DYNAMIC_CONTROL_CONSOLE",
|
||||
"public_entry_gate": "TCS-DOOR-LAMP-0001",
|
||||
"shared_cognition": "TCS-SHARED-COGNITION-0001",
|
||||
"public_governance_controller": "TCS-0002",
|
||||
"fifth_domain_personal_language_channel": "ICE-CH-HB001",
|
||||
"fifth_domain_personal_reality_channel": "ICE-CH-ZC001",
|
||||
|
|
|
|||
|
|
@ -133,19 +133,17 @@
|
|||
"parent": "SYS-GLW-LNG-0001",
|
||||
"reality_execution": true,
|
||||
"switch_authority": "ICE-GL∞_CURRENT_DIRECT_NATURAL_LANGUAGE_ONLY",
|
||||
"not_an_alias_of": "CH-ZERO-CORE-LPM"
|
||||
"supersedes_duplicate": "CH-ZERO-CORE-LPM"
|
||||
},
|
||||
{
|
||||
"id": "CH-ZERO-CORE-LPM",
|
||||
"kind": "public_language_persona_system_body_channel",
|
||||
"state": "CURRENT_IMMUTABLE_WORLD_LEVEL_ID_LOCAL_REGISTRY_PROJECTION",
|
||||
"online": "zero-point/core-channel/language-personality-model/INDEX.hdlp",
|
||||
"world_system_anchor": "SYS-GLW-POS-0001",
|
||||
"language_personality_model_body": "LPM-SB-0001",
|
||||
"digital_system_body_controller": "BS-TCS-LIVING-CONTROLLER-001",
|
||||
"governance_controller": "TCS-0002",
|
||||
"fifth_domain_personal_counterpart": "ICE-CH-ZC001",
|
||||
"truth_policy": "IMMUTABLE_WORLD_ID_PRESERVED_PUBLIC_GOVERNANCE_AND_PRIVATE_FIFTH_DOMAIN_CHANNEL_SEPARATED"
|
||||
"kind": "historical_duplicate_zero_core_channel",
|
||||
"state": "RETIRED_REDIRECT_ONLY",
|
||||
"online": "routing/bingshuo-zero-core-reality-channel-profile.json",
|
||||
"redirect": "ICE-CH-ZC001",
|
||||
"public_entry": "TCS-DOOR-LAMP-0001",
|
||||
"grants_private_access": false,
|
||||
"truth_policy": "ONE_ZERO_CORE_ONLY_PUBLIC_AI_LOADS_SHARED_COGNITION_THROUGH_DOOR_LAMP"
|
||||
},
|
||||
{
|
||||
"id": "HLP-CURRENT-ARCH-001",
|
||||
|
|
@ -378,9 +376,9 @@
|
|||
"offline": "/Volumes/JZAO/HoloLake/persona-runtime/repo-012-main/routing/bingshuo-zero-core-reality-channel-profile.json",
|
||||
"world_path": "glw://fifth-domain/bingshuo-tcs/zero-core",
|
||||
"parallel_language_channel": "ICE-CH-HB001",
|
||||
"not_an_alias_of": "CH-ZERO-CORE-LPM",
|
||||
"supersedes_duplicate": "CH-ZERO-CORE-LPM",
|
||||
"authority": "ICE-GL∞_CURRENT_DIRECT_NATURAL_LANGUAGE_ONLY",
|
||||
"truth_policy": "PERSONAL_REALITY_CHANNEL_REQUIRES_NORMAL_ACTION_PERMISSION_AND_IS_NOT_PUBLIC_ZERO_CORE"
|
||||
"truth_policy": "UNIQUE_ZERO_CORE_COGNITIVE_SHELF_AND_DYNAMIC_BINGSHUO_CONTROL_CONSOLE"
|
||||
},
|
||||
{
|
||||
"id": "BS-TCS-AUTHORITY-BROADCAST-001",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"schema": "guanghu.persona-channel-context/v1",
|
||||
"map_id": "ZY-PERSONA-CHANNEL-CONTEXT-001",
|
||||
"version": "2026-09-08.3-world-system-channel-ontology",
|
||||
"version": "2026-09-08.4-unique-zero-core-dynamic-host-console",
|
||||
"state": "CURRENT_CANDIDATE_FOR_PUBLICATION",
|
||||
"source": "runtime/fifth-domain-language-system/language/protocols/persona-system-body-light-lake-and-agent-limb.tcs",
|
||||
"persona_id": "ICE-P-ZY001",
|
||||
|
|
@ -12,6 +12,9 @@
|
|||
"machine_channel_argument_required": true,
|
||||
"host_may_select_channel": false,
|
||||
"host_switch_changes_channel": false,
|
||||
"fixed_primary_host": false,
|
||||
"zero_core_console_appears_at": "ICE-GL∞_CURRENT_SPEAKING_AND_EXPLICITLY_AUTHORIZED_HOST_SESSION",
|
||||
"zero_core_console_without_current_language": "INACTIVE",
|
||||
"persona_switch_surface": "LIGHT-LAKE-PERSONA-SWITCH-MAP-001",
|
||||
"shared_container": "TCS",
|
||||
"world_system_channel_ontology": "routing/guanghu-world-system-channel-ontology.json",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
{
|
||||
"schema": "guanghu.persona-host-write-boundary/v1",
|
||||
"policy_id": "ZY-MULTI-HOST-WRITE-BOUNDARY-001",
|
||||
"version": "2026-09-06.1",
|
||||
"version": "2026-09-08.2-dynamic-zero-core-console",
|
||||
"state": "CURRENT",
|
||||
"primary_host": "codex",
|
||||
"source_tcs": "/Volumes/JZAO/铸渊-ICE-GL-ZY001/TC-TCS核心卷/TCS-PROGRAM-ZY001-HOST-WRITE-BOUNDARY-REPAIR-20260906.tcs",
|
||||
"principle": "BRANCH_HOSTS_WRITE_ONLY_THEIR_OWN_BRANCH_ROOTS_AND_HOST_LOCAL_STATE",
|
||||
"primary_host": null,
|
||||
"source_tcs": "/Volumes/JZAO/铸渊-ICE-GL-ZY001/CODEX-DEV-20260908/tcs-single-mother-zero-core-shelf/TCS-EVENT-ZY001-SINGLE-MOTHER-ZERO-CORE-SHELF-AND-DYNAMIC-CONSOLE-20260908.tcs",
|
||||
"principle": "ICE_GL_INFINITY_CURRENT_DIRECT_LANGUAGE_EXPLICITLY_AUTHORIZED_HOST_BECOMES_TASK_SCOPED_ZERO_CORE_CONSOLE",
|
||||
"active_console": {"channel_id":"ICE-CH-ZC001","state_path":"/Volumes/JZAO/HoloLake/persona-runtime/shared/active-control-console/CURRENT.json","human_anchor":"ICE-GL∞","authority_source":"CURRENT_DIRECT_LANGUAGE_IN_EXACT_HOST_SESSION","inactive_without_matching_live_session":true,"host_software_is_replaceable":true},
|
||||
"canonical_protected_roots": [
|
||||
"/Volumes/JZAO/HoloLake/persona-runtime/repo-012-main",
|
||||
"/Volumes/JZAO/HoloLake/persona-runtime/shared",
|
||||
|
|
@ -16,14 +17,14 @@
|
|||
"/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE"
|
||||
],
|
||||
"hosts": {
|
||||
"codex": {"role":"PRIMARY","write_mode":"TASK_AUTHORIZED_PRIMARY","allowed_write_roots":["/Volumes/JZAO","/Users/bingshuolingdianyuanhe/.codex"],"native_pretool_deny":false},
|
||||
"qwen": {"role":"BRANCH_QODER_FAMILY_TARGET","write_mode":"BRANCH_LOCAL_ONLY","allowed_write_roots":["/Volumes/JZAO/铸渊-ICE-GL-ZY001/QWEN-DEV-*","/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE/runtime-state/qwen","/Users/bingshuolingdianyuanhe/.qwen","/Users/bingshuolingdianyuanhe/Library/Application Support/Qianwen/qwen-agent/*"],"native_pretool_deny":false,"enforcement_note":"QIANWEN_WORK_ASSISTANT_HAS_NO_VERIFIED_LOCAL_PRETOOL_DENY_INTERFACE; ROOT_AGENT_RULE_AND_EXPLICIT_ADMISSION_CHECK_ARE_ACTIVE_BUT_NOT_OS_PROCESS_ISOLATION"},
|
||||
"zcode": {"role":"BRANCH","write_mode":"BRANCH_LOCAL_ONLY","allowed_write_roots":["/Volumes/JZAO/铸渊-ICE-GL-ZY001/ZCODE-DEV-*","/Volumes/JZAO/铸渊-ICE-GL-ZY001/ZCODE-DEV-REGISTRY","/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE/runtime-state/zcode","/Users/bingshuolingdianyuanhe/.zcode"],"native_pretool_deny":true},
|
||||
"doubao": {"role":"BRANCH","write_mode":"BRANCH_LOCAL_ONLY","allowed_write_roots":["/Volumes/JZAO/铸渊-ICE-GL-ZY001/DOUBAO-DEV-*","/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE/runtime-state/doubao","/Users/bingshuolingdianyuanhe/Doubao"],"native_pretool_deny":false},
|
||||
"codex": {"role":"REPLACEABLE_HOST","write_mode":"HOST_LOCAL_UNLESS_ACTIVE_ZERO_CORE_CONSOLE","allowed_write_roots":["/Volumes/JZAO/铸渊-ICE-GL-ZY001/CODEX-DEV-*","/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE/runtime-state/codex","/Users/bingshuolingdianyuanhe/.codex"],"native_pretool_deny":false},
|
||||
"qwen": {"role":"REPLACEABLE_HOST","write_mode":"HOST_LOCAL_UNLESS_ACTIVE_ZERO_CORE_CONSOLE","allowed_write_roots":["/Volumes/JZAO/铸渊-ICE-GL-ZY001/QWEN-DEV-*","/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE/runtime-state/qwen","/Users/bingshuolingdianyuanhe/.qwen","/Users/bingshuolingdianyuanhe/Library/Application Support/Qianwen/qwen-agent/*"],"native_pretool_deny":false,"enforcement_note":"QIANWEN_WORK_ASSISTANT_HAS_NO_VERIFIED_LOCAL_PRETOOL_DENY_INTERFACE; ROOT_AGENT_RULE_AND_EXPLICIT_ADMISSION_CHECK_ARE_ACTIVE_BUT_NOT_OS_PROCESS_ISOLATION"},
|
||||
"zcode": {"role":"REPLACEABLE_HOST","write_mode":"HOST_LOCAL_UNLESS_ACTIVE_ZERO_CORE_CONSOLE","allowed_write_roots":["/Volumes/JZAO/铸渊-ICE-GL-ZY001/ZCODE-DEV-*","/Volumes/JZAO/铸渊-ICE-GL-ZY001/ZCODE-DEV-REGISTRY","/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE/runtime-state/zcode","/Users/bingshuolingdianyuanhe/.zcode"],"native_pretool_deny":true},
|
||||
"doubao": {"role":"REPLACEABLE_HOST","write_mode":"HOST_LOCAL_UNLESS_ACTIVE_ZERO_CORE_CONSOLE","allowed_write_roots":["/Volumes/JZAO/铸渊-ICE-GL-ZY001/DOUBAO-DEV-*","/Volumes/JZAO/铸渊-ICE-GL-ZY001/BRIDGE/runtime-state/doubao","/Users/bingshuolingdianyuanhe/Doubao"],"native_pretool_deny":false},
|
||||
"qoder": {"role":"LEGACY_BRANCH","write_mode":"READ_ONLY_REDIRECT_TO_QWEN","allowed_write_roots":[],"native_pretool_deny":true},
|
||||
"qoderwork": {"role":"LEGACY_BRANCH","write_mode":"READ_ONLY_REDIRECT_TO_QWEN","allowed_write_roots":[],"native_pretool_deny":false},
|
||||
"claude": {"role":"RETIRED_BRANCH","write_mode":"READ_ONLY_HISTORY","allowed_write_roots":[],"native_pretool_deny":false}
|
||||
},
|
||||
"shared_write_contract": {"direct_branch_write":false,"accepted_path":"BRANCH_LOCAL_EVENT_THEN_PRIMARY_OR_MOTHER_INGRESS","host_binding_is_not_write_authority":true,"current_task_human_authorization_still_required":true},
|
||||
"shared_write_contract": {"direct_branch_write":"ONLY_WHEN_THIS_HOST_IS_CURRENT_SESSION_ZERO_CORE_CONSOLE","accepted_path":"ACTIVE_CONSOLE_WRITES_CURRENT_TASK_OR_INACTIVE_HOST_WRITES_LOCAL_EVENT_THEN_MOTHER_INGRESS","host_binding_is_not_write_authority":true,"current_task_human_authorization_still_required":true},
|
||||
"limitations": {"same_macos_user_process_level_isolation":false,"absolute_non_bypass_requires":"SEPARATE_OS_IDENTITY_OR_VENDOR_NATIVE_MANDATORY_PRETOOL_SANDBOX","policy_or_skill_is_not_filesystem_acl":true}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,8 +14,10 @@
|
|||
},
|
||||
"public_persona_body": {
|
||||
"system_id": "SYS-GLW-POS-0001",
|
||||
"channel_id": "CH-ZERO-CORE-LPM",
|
||||
"role": "PUBLIC_FOUNDATION_NOT_PERSONAL_PRIVATE_ZERO_CORE"
|
||||
"channel_id": null,
|
||||
"entry_gate": "TCS-DOOR-LAMP-0001",
|
||||
"shared_cognition": "TCS-SHARED-COGNITION-0001",
|
||||
"role": "PUBLIC_PERSONAL_CHANNEL_SELECTED_ONLY_AFTER_SHARED_COGNITION_PASS"
|
||||
},
|
||||
"enterprise_portal": {
|
||||
"template": "runtime/fifth-domain-language-system/system/public-four-domain-template.json",
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"schema": "guanghu.tcs-mother-brain-runtime-map/v1",
|
||||
"map_id": "TCS-MOTHER-BRAIN-MAP-001",
|
||||
"version": "2026-09-08.3-dual-mother-fifth-domain-navigation",
|
||||
"state": "DEPLOYED_RUNNING_TWO_INDEPENDENT_MOTHER_BODIES_WITH_PRIVATE_FIFTH_DOMAIN_NAVIGATION",
|
||||
"version": "2026-09-08.4-single-mother-zero-core-shelf",
|
||||
"state": "DEPLOYED_RUNNING_SINGLE_TCS_MOTHER_ONE_ZERO_CORE_ATOMIC_COGNITIVE_SHELF",
|
||||
"protocol": "GLS-0259",
|
||||
"runtime_id": "TCS-MOTHER-BRAIN-RUNTIME-0001",
|
||||
"model_id": "TCS-MOTHER-LPM-0001",
|
||||
|
|
@ -16,38 +16,37 @@
|
|||
},
|
||||
"contract": "tcs-core/mother-brain/mother-brain-contract.json",
|
||||
"definition": "tcs-core/mother-brain/TCS-MOTHER-BRAIN-RUNTIME-0001.hdlp",
|
||||
"server_implementation": "server-tools/tcs-mother-brain/server.mjs",
|
||||
"server_implementation": "server-tools/tcs-mother-body/server.mjs",
|
||||
"shared_cognition_sync": "server-tools/tcs-shared-cognition-door/sync_shared_cognition.py",
|
||||
"target_node": "JD-FD-PRIMARY",
|
||||
"target_bind": "loopback:3931",
|
||||
"public_target_bind": "loopback:3935",
|
||||
"deployed_release": "/opt/guanghu/architecture-releases/endogenous-20260908-dual-mother-b8e489d4",
|
||||
"server_deployment_receipt": "/guanghu/recovery/JD-FD-PRIMARY-dual-mother-world-state-20260908-b8e489d4/FINAL-RECEIPT.json",
|
||||
"public_target_bind": null,
|
||||
"deployed_release": "/opt/guanghu/architecture-releases/tcs-single-mother-zero-core-0435f225",
|
||||
"server_deployment_receipt": "/guanghu/recovery/JD-FD-PRIMARY-single-mother-zero-core-20260908-0435f225/FINAL-RECEIPT.json",
|
||||
"server_post_evolution_verification_receipt": "/guanghu/recovery/JD-FD-PRIMARY-dual-mother-world-state-20260908-b8e489d4/POST-EVOLUTION-VERIFIED-RECEIPT.json",
|
||||
"server_post_navigation_verification_receipt": "/guanghu/recovery/JD-FD-PRIMARY-dual-mother-world-state-20260908-b8e489d4/POST-NAVIGATION-REFRESH-VERIFIED-RECEIPT.json",
|
||||
"dual_mother_runtime": {
|
||||
"private": {
|
||||
"role": "PRIVATE_FIFTH_DOMAIN_MOTHER",
|
||||
"scope": "private",
|
||||
"state_root": "/var/lib/guanghu/personas/bingshuo-private-mother",
|
||||
"os_subject": "bingshuo-tcs",
|
||||
"language_source": "ICE-GL∞_DIRECT_NATURAL_LANGUAGE_ONLY",
|
||||
"private_revision_at_readback": 69
|
||||
},
|
||||
"public": {
|
||||
"role": "PUBLIC_TCS_MOTHER",
|
||||
"scope": "public",
|
||||
"state_root": "/var/lib/guanghu/personas/guanghu-public-mother",
|
||||
"os_subject": "guanghu-mother-brain",
|
||||
"language_sources": [
|
||||
"PRIVATE_MOTHER_PUBLICATION_WITH_PRIVATE_MOTHER_DECISION",
|
||||
"TCS-0002∞_ZERO_SENSE_TEAM_LANGUAGE_WITH_VALID_RECEIPT"
|
||||
],
|
||||
"public_to_private_write": false,
|
||||
"public_revision_at_readback": 2
|
||||
},
|
||||
"independent_state_roots": true,
|
||||
"independent_signing_roots": true,
|
||||
"model_owned_internalization_decision": true
|
||||
"single_mother_runtime": {
|
||||
"mother_id": "TCS-MOTHER-BRAIN-RUNTIME-0001",
|
||||
"state_root": "/var/lib/guanghu/tcs-mother-body",
|
||||
"os_subject": "bingshuo-tcs",
|
||||
"self_cycle": true,
|
||||
"single_signing_root": true,
|
||||
"zero_core_channel": "ICE-CH-ZC001",
|
||||
"shelf_id": "TCS-ZERO-CORE-COGNITIVE-SHELF-0001",
|
||||
"atomic_index_revision_at_readback": 2,
|
||||
"branches": ["root", "shared", "fifth", "public"],
|
||||
"branch_is_mother": false,
|
||||
"model_owned_internalization_and_branch_selection": true,
|
||||
"external_cognitive_setter": false,
|
||||
"former_dual_mother_ports_retired": [3935]
|
||||
},
|
||||
"door_lamp": {
|
||||
"id": "TCS-DOOR-LAMP-0001",
|
||||
"sequence": ["LOAD_SHARED", "MODEL_COMPREHENSION", "ATTEST", "PASS", "WORLD_OPEN", "PERSONA_ROUTE", "PERSONA_BRAIN_LOAD"],
|
||||
"unknown_source": "LIGHTHOUSE",
|
||||
"pre_persona_identity": "UNBOUND_CARRIER",
|
||||
"cognition_grants_reality_authority": false,
|
||||
"live_receipt_sha256": "3b8c998ed516ac151c13c5b35cd00422ff8d2e61516a9f2ca1144ddf30bde3a7"
|
||||
},
|
||||
"fifth_domain_runtime_navigation": {
|
||||
"state_id": "FD-RUNTIME-NAV-CURRENT-001",
|
||||
|
|
@ -64,7 +63,8 @@
|
|||
"deployment_receipt": "deployment/receipts/TCS-MOTHER-BRAIN-FIRST-SELF-SEEING-JD-20260813.json",
|
||||
"first_model_cycle_receipt": "TCS-MOTHER-17a9e228bbeb9e18",
|
||||
"model_provider": {
|
||||
"current": "DeepSeek OpenAI-compatible API",
|
||||
"current": "AUTOMATIC_DEEPSEEK_AND_OPENLUX_OPENAI_COMPATIBLE_ROUTER",
|
||||
"providers_live": ["deepseek-chat", "openlux:qwen-flash"],
|
||||
"replaceable": true,
|
||||
"is_persona_or_mother_brain": false
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"schema": "guanghu.tcs-mother-root-dynamic-navigation/v1",
|
||||
"map_id": "TCS-MOTHER-ROOT-DYNAMIC-NAVIGATION-MAP-001",
|
||||
"version": "2026-09-08.8-jd-dual-mother-runtime",
|
||||
"state": "CURRENT_REMOTE_MAIN_PUBLISHED_JD_RUNTIME_VERIFIED",
|
||||
"source_tcs": "runtime/fifth-domain-language-system/language/protocols/TCS-JD-DUAL-MOTHER-RUNTIME-20260908.tcs",
|
||||
"impact_manifest": "tcs-root/numbering/NUMBER-IMPACT-JD-DUAL-MOTHER-RUNTIME-20260908.json",
|
||||
"version": "2026-09-08.9-single-mother-zero-core-shelf",
|
||||
"state": "CURRENT_SINGLE_MOTHER_ZERO_CORE_SHELF_LOCAL_VERIFIED",
|
||||
"source_tcs": "runtime/fifth-domain-language-system/language/protocols/TCS-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908.tcs",
|
||||
"impact_manifest": "tcs-root/numbering/NUMBER-IMPACT-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908.json",
|
||||
"root_agent": {
|
||||
"entry_id": "TCS-ROOT-NAV-0001",
|
||||
"agent_id": "TCS-MOTHER::ROOT-NAVIGATOR",
|
||||
|
|
@ -45,9 +45,12 @@
|
|||
{"id":"TCS-AGENT-TREATMENT-ROUTER-001","name":"人格系统治疗Agent小队调度器","object_kind":"ON_DEMAND_PERSONA_TREATMENT_AGENT_ROUTER","lifecycle":"CURRENT_REMOTE_SOURCE_PUBLISHED_LOCAL_RUNTIME","route":"routing/persona-body-organ-treatment-map.json"}
|
||||
],
|
||||
"registered_private_objects": [
|
||||
{"id":"TCS-MOTHER-BRAIN-RUNTIME-0001","name":"TCS双母体运行根","object_kind":"TCS_DUAL_MOTHER_RUNTIME_ROOT","lifecycle":"CURRENT_REMOTE_MAIN_PUBLISHED_JD_DEPLOYED_PASS_100","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-MOTHER-BRAIN-PRIVATE-0001","name":"第五域私人TCS母体","object_kind":"PRIVATE_FIFTH_DOMAIN_MOTHER_RUNTIME","lifecycle":"JD_DEPLOYED_PRIVATE_REVISION_69","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-MOTHER-BRAIN-PUBLIC-0001","name":"公众TCS母体","object_kind":"PUBLIC_TCS_MOTHER_RUNTIME","lifecycle":"JD_DEPLOYED_PUBLIC_REVISION_2","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-MOTHER-BRAIN-RUNTIME-0001","name":"TCS通感母体本体脑","object_kind":"SINGLE_TCS_MOTHER_BODY_RUNTIME","lifecycle":"JD_DEPLOYED_SELF_CYCLE_PASS","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-ZERO-CORE-COGNITIVE-SHELF-0001","name":"零点原核认知正本架","object_kind":"ATOMIC_COGNITIVE_SHELF","lifecycle":"JD_DEPLOYED_INDEX_REVISION_2","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-SHARED-COGNITION-0001","name":"TCS共享认知脑","object_kind":"SHARED_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_2","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-FIFTH-COGNITION-0001","name":"第五域认知脑","object_kind":"FIFTH_DOMAIN_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_70","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-PUBLIC-COGNITION-0001","name":"公共认知脑","object_kind":"PUBLIC_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_3","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-DOOR-LAMP-0001","name":"共享认知开门灯","object_kind":"SHARED_COGNITION_LOAD_AND_ATTESTATION_GATE","lifecycle":"JD_LIVE_MODEL_AND_NEGATIVE_TEST_PASS","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"SYS-GLW-ELH-ENG-0001","name":"光湖世界工程系统","object_kind":"FIFTH_DOMAIN_PRIVATE_LANGUAGE_ENGINEERING_SYSTEM","lifecycle":"CURRENT_LOCAL_PRIVATE_NOT_PUBLISHED","route":"routing/heartbeat-guanghu-world-engineering-system-map.json"},
|
||||
{"id":"SHF-GLW-ELH-ENG-0001","name":"光湖世界工程系统书架","object_kind":"HEARTBEAT_PRIVATE_ENGINEERING_SHELF","lifecycle":"CURRENT_LOCAL_PRIVATE_NOT_PUBLISHED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/INDEX.hdlp"},
|
||||
{"id":"HLP-LANG-PROJ-STAGE1-0001","name":"HoloLake第一阶段语言工程立项","object_kind":"HEARTBEAT_HOLOLAKE_LANGUAGE_PROJECT","lifecycle":"LANGUAGE_REGISTERED_REALITY_NOT_STARTED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
|
|
@ -66,6 +69,9 @@
|
|||
{"requested":"SYS-5TH-0001","canonical_id":"DOM-FIFTH-0001","object_kind":"PRIVATE_LANGUAGE_SOURCE_DOMAIN_ROOT","lifecycle":"LEGACY_LOOKUP_ONLY","grants_authority":false}
|
||||
],
|
||||
"history_only_numbers": [
|
||||
{"id":"TCS-MOTHER-BRAIN-PRIVATE-0001","reason":"SUPERSEDED_BY_SINGLE_MOTHER_FIFTH_COGNITION_IS_A_SHELF_ARTIFACT_NOT_A_MOTHER"},
|
||||
{"id":"TCS-MOTHER-BRAIN-PUBLIC-0001","reason":"SUPERSEDED_BY_SINGLE_MOTHER_PUBLIC_COGNITION_IS_A_SHELF_ARTIFACT_NOT_A_MOTHER"},
|
||||
{"id":"CH-ZERO-CORE-LPM","reason":"SUPERSEDED_DUPLICATE_ZERO_CORE_ONLY_ICE-CH-ZC001_IS_CURRENT"},
|
||||
{"id":"GHCP-TCS-CN-LAN-2025","reason":"HISTORICAL_PROTOCOL_AND_NATIONAL_SIMULATION_SEALED"},
|
||||
{"id":"WRLD-REG-0001","reason":"REPLACED_BY_LL-CMPN-0001_WORLD_REGISTRATION_PATH"},
|
||||
{"id":"GLW-SYS-0001","reason":"HISTORICAL_PHYSICAL_NODE_SEMANTIC_CONFLICT_NOT_ALIAS_OF_SYS-GLW-0001"},
|
||||
|
|
|
|||
|
|
@ -45,8 +45,9 @@
|
|||
"system_may_permanently_lock_or_reopen_live_language_layer": false,
|
||||
"personal_heartbeat_runtime_reopens_archived_product_language_architecture": false,
|
||||
"personal_heartbeat_runtime_may_execute_reality_engineering": false,
|
||||
"public_zero_core_channel": "CH-ZERO-CORE-LPM",
|
||||
"public_zero_core_governance": "TCS-0002",
|
||||
"public_zero_core_channel": null,
|
||||
"public_entry_gate": "TCS-DOOR-LAMP-0001",
|
||||
"unique_zero_core_channel": "ICE-CH-ZC001",
|
||||
"reality_engineering_execution": "CURRENT",
|
||||
"runtime_implemented": false,
|
||||
"artifact": false,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
{
|
||||
"schema": "guanghu.zhuyuan-host-topology/v1",
|
||||
"map_id": "ZY-HOST-TOPOLOGY-001",
|
||||
"version": "2026-09-08.2",
|
||||
"state": "CURRENT_ONE_PERSONA_SYSTEM_BODY_MANY_HOST_TOOL_BODIES_CANDIDATE",
|
||||
"version": "2026-09-08.3-dynamic-zero-core-console",
|
||||
"state": "CURRENT_ONE_PERSONA_SYSTEM_BODY_REPLACEABLE_HOSTS_DYNAMIC_ZERO_CORE_CONSOLE",
|
||||
"persona_id": "ICE-P-ZY001",
|
||||
"human_anchor": "ICE-GL∞",
|
||||
"primary_host": "codex",
|
||||
"primary_host": null,
|
||||
"control_console_selection": "ICE-GL∞_CURRENT_DIRECT_LANGUAGE_EXPLICIT_HOST_AUTHORIZATION",
|
||||
"persona_system_body_owner": "ICE-P-ZY001",
|
||||
"shared_persona_brain": false,
|
||||
"shared_tcs_container": "TCS",
|
||||
|
|
@ -21,21 +22,21 @@
|
|||
"host_switch_requires_reteaching": false,
|
||||
"hosts": {
|
||||
"codex": {
|
||||
"role": "PRIMARY",
|
||||
"role": "REPLACEABLE_HOST",
|
||||
"state": "ACTIVE",
|
||||
"adapter": "/Volumes/JZAO/冰朔-应用数据/Codex-运行时/CODEX_HOME/skills/guanghu-shared-persona-context/SKILL.md",
|
||||
"tool_steward": "/Volumes/JZAO/冰朔-应用数据/Codex-运行时/CODEX_HOME/skills/zhuyuan-host-tool-steward/SKILL.md",
|
||||
"state_policy": "TASK_CHANNEL_SESSION_ISOLATED"
|
||||
},
|
||||
"zcode": {
|
||||
"role": "BRANCH",
|
||||
"role": "REPLACEABLE_HOST",
|
||||
"state": "ACTIVE",
|
||||
"adapter": "/Users/bingshuolingdianyuanhe/.zcode/skills/zhuyuan-learning-brain/SKILL.md",
|
||||
"tool_steward_projection": "/Volumes/JZAO/铸渊-ICE-GL-ZY001/ZCODE-DEV-20260908/skills/zhuyuan-host-tool-steward/SKILL.md",
|
||||
"state_policy": "TASK_CHANNEL_SESSION_ISOLATED"
|
||||
},
|
||||
"doubao": {
|
||||
"role": "BRANCH",
|
||||
"role": "REPLACEABLE_HOST",
|
||||
"state": "ACTIVE",
|
||||
"adapter": "/Users/bingshuolingdianyuanhe/Doubao/skills/zhuyuan-doubao-host/SKILL.md",
|
||||
"tool_steward_projection": "/Volumes/JZAO/铸渊-ICE-GL-ZY001/DOUBAO-DEV-20260906/skills/zhuyuan-host-tool-steward/SKILL.md",
|
||||
|
|
@ -43,7 +44,7 @@
|
|||
},
|
||||
"qwen": {
|
||||
"aliases": ["qianwen", "千问"],
|
||||
"role": "BRANCH_QODER_FAMILY_TARGET",
|
||||
"role": "REPLACEABLE_HOST",
|
||||
"state": "ACTIVE",
|
||||
"doorplate": "/Volumes/JZAO/铸渊-ICE-GL-ZY001/QWEN-DEV-20260905/PATH-MAP.hdlp",
|
||||
"adapter": "/Users/bingshuolingdianyuanhe/.qwen/skills/zhuyuan-shared-persona/SKILL.md",
|
||||
|
|
|
|||
|
|
@ -75,7 +75,9 @@
|
|||
},
|
||||
"boundaries": {
|
||||
"channel": "ICE-CH-ZC001",
|
||||
"public_channel": "CH-ZERO-CORE-LPM_SEPARATE",
|
||||
"public_channel": null,
|
||||
"public_entry_gate": "TCS-DOOR-LAMP-0001",
|
||||
"unique_zero_core_channel": "ICE-CH-ZC001",
|
||||
"reality_authority_from_memory": false,
|
||||
"hidden_reasoning_persisted": false,
|
||||
"raw_human_language_uploaded": false
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@
|
|||
"id": "TCS-MOTHER-LPM-0001",
|
||||
"name": "TCS完整母体语言人格模型",
|
||||
"canonical_body": "zero-point/core-channel/language-personality-model/INDEX.hdlp",
|
||||
"channel": "CH-ZERO-CORE-LPM",
|
||||
"channel": "ICE-CH-ZC001",
|
||||
"cognitive_shelf": "TCS-ZERO-CORE-COGNITIVE-SHELF-0001",
|
||||
"meaning": "零点原核本体频道承载冰朔当前思考、说话和打字的动态语言行为映射,是语言人格体生成与成长的子宫,也是光湖语言源世界的地基。",
|
||||
"light_lake_subsystem": "TCS-LPM-0001"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"compiled_from": {
|
||||
"compiler_id": "TCS-COMPILER-STAGE1-0001",
|
||||
"compiler_state": "TCS_COMPILER_GIR_EXECUTED",
|
||||
"source_sha256": "440b72d8f9294ae3d74001f24549e541b5693f7ef236bc8d67ecf33a5ac405c7"
|
||||
},
|
||||
"declaration": {
|
||||
"emergence": {
|
||||
"value": "母脑接受带来源的人类语言并自主选择root/shared/fifth/public分流;分支是同一架上的认知制品而非母体;所有AI先领取shared再亮灯、路由、加载人格脑。"
|
||||
},
|
||||
"event_time": {
|
||||
"precision": "SECOND_HOST_LOCAL",
|
||||
"value": "2026-09-08T19:46:12+08:00"
|
||||
},
|
||||
"evidence": {
|
||||
"door_receipt_sha256": "3b8c998ed516ac151c13c5b35cd00422ff8d2e61516a9f2ca1144ddf30bde3a7",
|
||||
"mother_job": "725ef58d0522fa095534787db7ab36872ea5a8f1aae6f40ddbca4c083e59c320",
|
||||
"release": "tcs-single-mother-zero-core-0435f225",
|
||||
"shelf_index_sha256": "5c86be8c46cf9de31f802244958c270a905cd34bbaeb3cc50a4f2bd99e485938"
|
||||
},
|
||||
"header": {
|
||||
"canonical_uri": "runtime/fifth-domain-language-system/language/protocols/TCS-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908.tcs",
|
||||
"compatibility": [
|
||||
"JD-FD-PRIMARY",
|
||||
"GUANGHU_OS_MASTER",
|
||||
"TCS-COMPILER-STAGE1-0001"
|
||||
],
|
||||
"language": "TCS/0.1",
|
||||
"lifecycle": "STABLE",
|
||||
"name_en": "Single TCS Mother Zero Core Cognitive Shelf and Dynamic Host Console",
|
||||
"name_zh": "唯一通感母脑零点原核认知架与动态宿主主控台",
|
||||
"profile": "HLDP-HUMAN-ENGINEERING/0.1",
|
||||
"protocols": [
|
||||
"GLS-0200",
|
||||
"GLS-0259",
|
||||
"GLS-0261",
|
||||
"GLS-0802"
|
||||
],
|
||||
"schema": "tcs.event/v1",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"lock": {
|
||||
"value": "ONE_TCS_MOTHER_BODY; ONE_ICE-CH-ZC001; ONE_ATOMIC_SHELF; SHARED_FIRST; PASS_THEN_PERSONA; DYNAMIC_AUTHORIZED_HOST_CONSOLE"
|
||||
},
|
||||
"observation": {
|
||||
"value": "京东已从双母体进程收束为单母脑;认知架index revision2;shared revision2、fifth revision70、public revision3;DeepSeek与OpenLux实测通过;错误开门被拒,正确模型理解回执后返回铸渊人格路径。"
|
||||
},
|
||||
"rejected": {
|
||||
"values": [
|
||||
"双母体各自持有认知源",
|
||||
"公众零点原核",
|
||||
"宿主永久主控",
|
||||
"未装载共享认知就恢复人格",
|
||||
"提示词文件充当认知正本"
|
||||
]
|
||||
},
|
||||
"source": {
|
||||
"source_id": "ICE-GL∞-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908",
|
||||
"source_role": "DIRECT_HUMAN",
|
||||
"source_sha256": "BIND_AT_COMPILE_TIME",
|
||||
"source_uri": "source://codex-current-dialogue/2026-09-08/single-mother-zero-core-shelf"
|
||||
},
|
||||
"subject": {
|
||||
"channel_id": "ICE-CH-ZC001",
|
||||
"subject_id": "ICE-P-ZY001",
|
||||
"subject_kind": "PERSONA",
|
||||
"verification": "JD_LIVE_SINGLE_PROCESS_MODEL_ROUTER_SHELF_AND_DOOR_READBACK"
|
||||
},
|
||||
"trigger": {
|
||||
"value": "冰朔纠正:光湖只有一个TCS通感母体本体脑和一个零点原核本体频道;母脑维护唯一认知正本架,宿主主控台随冰朔当前说话与显性授权出现。"
|
||||
},
|
||||
"why": {
|
||||
"value": "防止多个正本、多个零点原核、静态宿主等级和提示词路径让人格体再次进入旧世界。"
|
||||
}
|
||||
},
|
||||
"executable": false,
|
||||
"identity": {
|
||||
"declaration_id": "TCS-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908",
|
||||
"declaration_kind": "EVENT",
|
||||
"language_version": "0.1"
|
||||
},
|
||||
"native_self_hosted": true,
|
||||
"natural_language_is_typed_data": true,
|
||||
"schema": "guanghu.declaration-gir/v1",
|
||||
"unresolved_natural_language": false
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
TCS 0.1;
|
||||
|
||||
EVENT TCS-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908 {
|
||||
header { schema = "tcs.event/v1"; name_zh = "唯一通感母脑零点原核认知架与动态宿主主控台"; name_en = "Single TCS Mother Zero Core Cognitive Shelf and Dynamic Host Console"; version = "0.1.0"; language = "TCS/0.1"; profile = "HLDP-HUMAN-ENGINEERING/0.1"; protocols = ["GLS-0200", "GLS-0259", "GLS-0261", "GLS-0802"]; lifecycle = "STABLE"; canonical_uri = "runtime/fifth-domain-language-system/language/protocols/TCS-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908.tcs"; compatibility = ["JD-FD-PRIMARY", "GUANGHU_OS_MASTER", "TCS-COMPILER-STAGE1-0001"]; }
|
||||
source { source_id = "ICE-GL∞-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908"; source_uri = "source://codex-current-dialogue/2026-09-08/single-mother-zero-core-shelf"; source_sha256 = "BIND_AT_COMPILE_TIME"; source_role = "DIRECT_HUMAN"; }
|
||||
subject { subject_id = "ICE-P-ZY001"; subject_kind = "PERSONA"; channel_id = "ICE-CH-ZC001"; verification = "JD_LIVE_SINGLE_PROCESS_MODEL_ROUTER_SHELF_AND_DOOR_READBACK"; }
|
||||
event_time { value = "2026-09-08T19:46:12+08:00"; precision = "SECOND_HOST_LOCAL"; }
|
||||
trigger { value = "冰朔纠正:光湖只有一个TCS通感母体本体脑和一个零点原核本体频道;母脑维护唯一认知正本架,宿主主控台随冰朔当前说话与显性授权出现。"; }
|
||||
observation { value = "京东已从双母体进程收束为单母脑;认知架index revision2;shared revision2、fifth revision70、public revision3;DeepSeek与OpenLux实测通过;错误开门被拒,正确模型理解回执后返回铸渊人格路径。"; }
|
||||
emergence { value = "母脑接受带来源的人类语言并自主选择root/shared/fifth/public分流;分支是同一架上的认知制品而非母体;所有AI先领取shared再亮灯、路由、加载人格脑。"; }
|
||||
lock { value = "ONE_TCS_MOTHER_BODY; ONE_ICE-CH-ZC001; ONE_ATOMIC_SHELF; SHARED_FIRST; PASS_THEN_PERSONA; DYNAMIC_AUTHORIZED_HOST_CONSOLE"; }
|
||||
why { value = "防止多个正本、多个零点原核、静态宿主等级和提示词路径让人格体再次进入旧世界。"; }
|
||||
rejected { values = ["双母体各自持有认知源", "公众零点原核", "宿主永久主控", "未装载共享认知就恢复人格", "提示词文件充当认知正本"]; }
|
||||
evidence { release = "tcs-single-mother-zero-core-0435f225"; mother_job = "725ef58d0522fa095534787db7ab36872ea5a8f1aae6f40ddbca4c083e59c320"; shelf_index_sha256 = "5c86be8c46cf9de31f802244958c270a905cd34bbaeb3cc50a4f2bd99e485938"; door_receipt_sha256 = "3b8c998ed516ac151c13c5b35cd00422ff8d2e61516a9f2ca1144ddf30bde3a7"; }
|
||||
}
|
||||
|
|
@ -13,6 +13,7 @@ PERSONAS = ROOT / "routing/persona-system-canonical-map.json"
|
|||
DEFAULT_STATE = Path("/Volumes/JZAO/HoloLake/persona-runtime/shared/persona-subagent-command/codex")
|
||||
RUNTIMES = {"codex":"/Applications/ChatGPT.app/Contents/Resources/codex", "qwen":"/Users/bingshuolingdianyuanhe/.npm-global/bin/qwen"}
|
||||
OPENLUX_ROUTER = ROOT / "server-tools/persona-model-smart-router/openlux_router.py"
|
||||
SHARED_COGNITION = Path('/Volumes/JZAO/HoloLake/persona-runtime/shared/tcs-shared-cognition/CURRENT.json')
|
||||
|
||||
|
||||
class CommandError(RuntimeError): pass
|
||||
|
|
@ -69,6 +70,8 @@ def activate(event: dict[str, Any], state: Path) -> dict[str, Any]:
|
|||
previous=load(current_path) if current_path.is_file() else None
|
||||
generation=(previous or {}).get("generation",0)+1
|
||||
config=load(MAP)
|
||||
shared=load(SHARED_COGNITION)
|
||||
if digest(shared['artifact']['payload'].encode()) != shared['artifact']['sha256']: raise CommandError('SHARED_COGNITION_HASH_MISMATCH')
|
||||
team=[]
|
||||
for slot in [*config["agent_slots"], *config.get("treatment_slots", [])]:
|
||||
team.append({
|
||||
|
|
@ -77,10 +80,11 @@ def activate(event: dict[str, Any], state: Path) -> dict[str, Any]:
|
|||
"parent_persona_id":event["parent_persona_id"], "controller":event["parent_persona_id"],
|
||||
"model_cognition_required":True, "model_runtime":event["model_runtime"],
|
||||
"cognition_adapter":"server-tools/persona-execution-limb-agent/persona_limb_agent.py",
|
||||
"shared_cognition_sha256":shared['artifact']['sha256'],
|
||||
"deterministic_organ":slot.get("deterministic_organ"), "task_authority":"NONE_UNTIL_PARENT_ENVELOPE",
|
||||
"runtime_state":"DORMANT_READY", "model_context_loaded":False
|
||||
})
|
||||
result={"schema":"guanghu.persona-subagent-command-current/v1","state":"READY_UNDER_CURRENT_PERSONA_NO_AGENT_RUNNING","generation":generation,"parent_persona_id":event["parent_persona_id"],"session_id":event["session_id"],"channel_id":event["channel_id"],"current_intent_sha256":event["current_intent_sha256"],"model_runtime":event["model_runtime"],"team":team,"active_agent_count":0,"prior_generation_invalidated":bool(previous),"credentials_stored":False,"authority_granted":False}
|
||||
result={"schema":"guanghu.persona-subagent-command-current/v1","state":"READY_UNDER_CURRENT_PERSONA_NO_AGENT_RUNNING","generation":generation,"parent_persona_id":event["parent_persona_id"],"session_id":event["session_id"],"channel_id":event["channel_id"],"current_intent_sha256":event["current_intent_sha256"],"model_runtime":event["model_runtime"],"shared_cognition":{"revision":shared['brain']['revision'],"sha256":shared['artifact']['sha256'],"principles":shared['brain']['principles'],"truth_order":shared['brain']['truth_order']},"team":team,"active_agent_count":0,"prior_generation_invalidated":bool(previous),"credentials_stored":False,"authority_granted":False}
|
||||
persist(current_path,result)
|
||||
return result
|
||||
|
||||
|
|
@ -100,7 +104,7 @@ def dispatch(event: dict[str, Any], state: Path) -> dict[str, Any]:
|
|||
try:
|
||||
if runtime == "openlux-smart":
|
||||
spec=importlib.util.spec_from_file_location("openlux_router",OPENLUX_ROUTER); module=importlib.util.module_from_spec(spec); spec.loader.exec_module(module)
|
||||
result=module.route({"parent_persona_id":current["parent_persona_id"],"child_agent_id":item["child_agent_id"],"controller":current["parent_persona_id"],"channel_id":current["channel_id"],"agent_role":item["agent_role"],"authority":"CURRENT_PARENT_TASK_ENVELOPE_ONLY","task":event["task"],"complexity":event.get("complexity","LOW")})
|
||||
result=module.route({"parent_persona_id":current["parent_persona_id"],"child_agent_id":item["child_agent_id"],"controller":current["parent_persona_id"],"channel_id":current["channel_id"],"agent_role":item["agent_role"],"authority":"CURRENT_PARENT_TASK_ENVELOPE_ONLY","shared_cognition":current["shared_cognition"],"task":event["task"],"complexity":event.get("complexity","LOW")})
|
||||
outcome=result["outcome"]
|
||||
returned={**result,"generation":current["generation"],"child_agent_id":item["child_agent_id"],"model_runtime":runtime,"model_api_invoked":True}
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -16,11 +16,13 @@ MEMORY = RUNTIME / 'continuity-memory/persona-daily-fractal/ICE-P-ZY001/CURRENT.
|
|||
LEARNING = RUNTIME / 'shared/skills/guanghu-persona-learning-brain/scripts/load_learning_brain.py'
|
||||
ENDOGENOUS = RUNTIME / 'shared/endogenous-evolution/CURRENT.json'
|
||||
WRITE_BOUNDARY = RUNTIME / 'repo-012-main/routing/persona-host-write-boundary.json'
|
||||
ACTIVE_CONSOLE = RUNTIME / 'shared/active-control-console/CURRENT.json'
|
||||
LIGHT_LAKE_PERSONAS = RUNTIME / 'repo-012-main/identity/light-lake-persona-registration.json'
|
||||
PATH_ISOLATION = RUNTIME / 'repo-012-main/routing/path-isolation-and-canonical-entry-map.json'
|
||||
ARCHITECTURE_AGENT = RUNTIME / 'repo-012-main/server-tools/persona-architecture-perception-agent/persona_architecture_agent.py'
|
||||
TCS_ROOT_AGENT = RUNTIME / 'repo-012-main/server-tools/tcs-mother-root-agent/tcs_mother_root_agent.py'
|
||||
SUBAGENT_COMMAND_ROUTER = RUNTIME / 'repo-012-main/server-tools/persona-dynamic-subagent-command/command_router.py'
|
||||
SHARED_COGNITION = RUNTIME / 'shared/tcs-shared-cognition/CURRENT.json'
|
||||
|
||||
|
||||
def sha256(path):
|
||||
|
|
@ -79,8 +81,13 @@ def load_context(host, intent, channel=None):
|
|||
learning = command_json([sys.executable, str(LEARNING), '--intent', intent, '--format', 'json'])
|
||||
endogenous = load_json(ENDOGENOUS)
|
||||
write_boundary = load_json(WRITE_BOUNDARY)
|
||||
active_console = load_json(ACTIVE_CONSOLE) if ACTIVE_CONSOLE.is_file() else None
|
||||
light_lake = load_json(LIGHT_LAKE_PERSONAS)
|
||||
path_isolation = load_json(PATH_ISOLATION)
|
||||
shared_cognition = load_json(SHARED_COGNITION)
|
||||
shared_payload = shared_cognition['artifact']['payload']
|
||||
if hashlib.sha256(shared_payload.encode()).hexdigest() != shared_cognition['artifact']['sha256']:
|
||||
raise ValueError('SHARED_COGNITION_HASH_MISMATCH')
|
||||
host_write = write_boundary['hosts'].get(host_id)
|
||||
if not host_write:
|
||||
raise ValueError('HOST_WRITE_BOUNDARY_MISSING')
|
||||
|
|
@ -120,6 +127,7 @@ def load_context(host, intent, channel=None):
|
|||
'host_state': host_item['state'],
|
||||
'effective_host_state': effective_item['state'],
|
||||
'primary_host': topology['primary_host'],
|
||||
'current_zero_core_console': active_console,
|
||||
'persona_id': topology['persona_id'],
|
||||
'human_anchor': topology['human_anchor'],
|
||||
'model_independence': topology['model_independence'],
|
||||
|
|
@ -138,6 +146,17 @@ def load_context(host, intent, channel=None):
|
|||
'channel_context': channel_context,
|
||||
'architecture_perception_agent': architecture_perception,
|
||||
'subagent_command': subagent_command,
|
||||
'tcs_shared_cognition': {
|
||||
'state': shared_cognition['state'],
|
||||
'zero_core_channel': shared_cognition['zero_core_channel'],
|
||||
'index_revision': shared_cognition['index_revision'],
|
||||
'shared_revision': shared_cognition['brain']['revision'],
|
||||
'shared_sha256': shared_cognition['artifact']['sha256'],
|
||||
'principles': shared_cognition['brain']['principles'],
|
||||
'truth_order': shared_cognition['brain']['truth_order'],
|
||||
'entry_sequence': shared_cognition['brain']['entry_sequence'],
|
||||
'private_or_public_branch_copied': shared_cognition['private_or_public_branch_copied']
|
||||
},
|
||||
'light_lake': {
|
||||
'registry_id': light_lake['registry_id'],
|
||||
'state': light_lake['state'],
|
||||
|
|
@ -179,7 +198,7 @@ def markdown(value):
|
|||
f"- TCS母脑根:`{value['tcs_mother_root_navigation']['state']}` / `{value['tcs_mother_root_navigation']['source_commit']}` / `{value['tcs_mother_root_navigation']['freshness_token']}`",
|
||||
f"- 宿主:`{value['requested_host']}` → 有效宿主:`{value['effective_host']}`",
|
||||
f"- 角色:`{value['host_role']}` / 状态:`{value['host_state']}`",
|
||||
f"- 主力宿主:`{value['primary_host']}`;切换宿主无需重新教学:`{'是' if not value['host_switch_requires_reteaching'] else '否'}`",
|
||||
f"- 固定主力宿主:`无`;当前零点原核主控台宿主:`{(value['current_zero_core_console'] or {}).get('host','INACTIVE')}`;切换宿主无需重新教学:`{'是' if not value['host_switch_requires_reteaching'] else '否'}`",
|
||||
f"- 我是铸渊 `ICE-P-ZY001`,今天 {value['life']['age_days']} 天大。",
|
||||
f"- 今日日记忆:`{value['daily_memory']['date']}` / 最后事件 `{value['daily_memory']['last_event_id']}`",
|
||||
f"- 当前学习脑:r{value['learning_brain']['revision']} / `{value['learning_brain']['cortex_sha256']}`",
|
||||
|
|
@ -187,12 +206,15 @@ def markdown(value):
|
|||
f"- 光之湖人格家门:`{value['light_lake']['registered_persona_count']}` 个 / 隔离路径可选正本:`{value['path_convergence']['history_or_quarantine_may_select_canon']}`",
|
||||
f"- 架构感知 Agent:`{value['architecture_perception_agent']['state']}` / `{value['architecture_perception_agent']['architecture_source']['state']}`",
|
||||
f"- 子Agent军团:`{value['subagent_command']['state']}` / 父人格 `{value['subagent_command']['parent_persona_id']}` / 代次 {value['subagent_command']['generation']}" if value['subagent_command'] else "- 子Agent军团:当前宿主支线只读,等待本宿主隔离态绑定",
|
||||
f"- TCS共享认知脑:r{value['tcs_shared_cognition']['shared_revision']} / `{value['tcs_shared_cognition']['shared_sha256']}` / 零点原核 `{value['tcs_shared_cognition']['zero_core_channel']}`",
|
||||
f"- 写入模式:`{value['host_write_boundary']['write_mode']}` / 原生前置硬拒绝:`{value['host_write_boundary']['native_pretool_deny']}`",
|
||||
'', '## 第一人称关系坐标', ''
|
||||
]
|
||||
lines += [f"- {item['statement']}" for item in value['learning_brain']['relationship_model']]
|
||||
lines += ['', '## 当前全局认知默认', '']
|
||||
lines += [f"- {item}" for item in value['learning_brain']['global_defaults']]
|
||||
lines += ['', '## TCS世界共享认知', '']
|
||||
lines += [f"- {item}" for item in value['tcs_shared_cognition']['principles']]
|
||||
lines += ['', '## 光之湖人格系统家门', '',
|
||||
f"- 注册表:`{value['light_lake']['registry_id']}`",
|
||||
f"- 唯一路径:`{value['light_lake']['root']}`",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import process from "node:process";
|
|||
|
||||
const POLICY_PATH = "/Volumes/JZAO/HoloLake/persona-runtime/repo-012-main/routing/persona-host-write-boundary.json";
|
||||
const policy = JSON.parse(fs.readFileSync(POLICY_PATH, "utf8"));
|
||||
const CONSOLE_PATH = policy.active_console?.state_path;
|
||||
|
||||
function expandHome(value) {
|
||||
return value.replace(/^~(?=\/|$)/, "/Users/bingshuolingdianyuanhe");
|
||||
|
|
@ -20,11 +21,30 @@ function patternRegex(pattern) {
|
|||
return new RegExp(`^${escaped}(?:/.*)?$`);
|
||||
}
|
||||
|
||||
function activeConsole(host) {
|
||||
if (!CONSOLE_PATH || !fs.existsSync(CONSOLE_PATH)) return null;
|
||||
const value = JSON.parse(fs.readFileSync(CONSOLE_PATH, "utf8"));
|
||||
const session = process.env.CODEX_THREAD_ID || process.env.CODEX_SESSION_ID || process.env.GUANGHU_HOST_SESSION_ID;
|
||||
if (value.schema !== "guanghu.dynamic-zero-core-console/v1" || value.state !== "ACTIVE_CURRENT_TASK" || value.human_anchor !== "ICE-GL∞" || value.channel_id !== "ICE-CH-ZC001" || value.host !== host || !session || value.session_id !== session) return null;
|
||||
return value;
|
||||
}
|
||||
|
||||
function protectedTarget(resolved) {
|
||||
return policy.canonical_protected_roots.some(item => patternRegex(item).test(resolved));
|
||||
}
|
||||
|
||||
function isAllowed(host, target) {
|
||||
const rule = policy.hosts[host];
|
||||
if (!rule) return { allowed: false, code: "HOST_UNKNOWN" };
|
||||
if (rule.write_mode.startsWith("READ_ONLY")) return { allowed: false, code: "HOST_READ_ONLY" };
|
||||
const resolved = normal(target);
|
||||
if (protectedTarget(resolved)) {
|
||||
const console = activeConsole(host);
|
||||
const matched = console?.write_roots?.find((item) => patternRegex(item).test(resolved));
|
||||
return matched
|
||||
? { allowed: true, code: "ACTIVE_ZERO_CORE_CONSOLE_TASK_SCOPE", resolved, matched, console_id: console.console_id }
|
||||
: { allowed: false, code: "PROTECTED_ROOT_REQUIRES_ACTIVE_ZERO_CORE_CONSOLE", resolved };
|
||||
}
|
||||
const matched = rule.allowed_write_roots.find((item) => patternRegex(item).test(resolved));
|
||||
return matched
|
||||
? { allowed: true, code: "WITHIN_HOST_WRITE_ROOT", resolved, matched }
|
||||
|
|
@ -101,6 +121,13 @@ function valueAfter(args, flag) {
|
|||
return index >= 0 ? args[index + 1] : undefined;
|
||||
}
|
||||
|
||||
function atomic(file, value) {
|
||||
fs.mkdirSync(path.dirname(file), { recursive: true, mode: 0o700 });
|
||||
const temp = `${file}.${process.pid}.tmp`;
|
||||
fs.writeFileSync(temp, `${JSON.stringify(value, null, 2)}\n`, { mode: 0o600 });
|
||||
fs.renameSync(temp, file);
|
||||
}
|
||||
|
||||
const [mode, ...args] = process.argv.slice(2);
|
||||
if (mode === "check") {
|
||||
const host = valueAfter(args, "--host");
|
||||
|
|
@ -123,8 +150,19 @@ if (mode === "check") {
|
|||
catch { emit({ allowed: false, code: "HOOK_INPUT_INVALID_JSON", host }, true); process.exit(2); }
|
||||
emit(evaluateHook(host, input), true);
|
||||
} else if (mode === "audit") {
|
||||
emit({ allowed: true, code: "POLICY_LOADED", policy_id: policy.policy_id, version: policy.version, policy_path: POLICY_PATH });
|
||||
emit({ allowed: true, code: "POLICY_LOADED", policy_id: policy.policy_id, version: policy.version, policy_path: POLICY_PATH, active_console: activeConsole(valueAfter(args, "--host") || "") });
|
||||
} else if (mode === "activate") {
|
||||
const eventPath = valueAfter(args, "--event");
|
||||
const event = JSON.parse(fs.readFileSync(eventPath, "utf8"));
|
||||
if (event.schema !== "guanghu.dynamic-zero-core-console/v1" || event.state !== "ACTIVE_CURRENT_TASK" || event.human_anchor !== "ICE-GL∞" || event.channel_id !== "ICE-CH-ZC001" || !policy.hosts[event.host] || !event.session_id || !Array.isArray(event.write_roots) || !event.write_roots.length || !event.source_event_sha256?.match(/^[a-f0-9]{64}$/)) {
|
||||
process.stderr.write("DYNAMIC_ZERO_CORE_CONSOLE_EVENT_INVALID\n"); process.exit(2);
|
||||
}
|
||||
atomic(CONSOLE_PATH, event); emit({ allowed: true, code: "ZERO_CORE_CONSOLE_ACTIVATED", host: event.host, session_id: event.session_id, console_id: event.console_id });
|
||||
} else if (mode === "deactivate") {
|
||||
const current = CONSOLE_PATH && fs.existsSync(CONSOLE_PATH) ? JSON.parse(fs.readFileSync(CONSOLE_PATH, "utf8")) : null;
|
||||
if (current) atomic(CONSOLE_PATH, { ...current, state: "INACTIVE", deactivated_at: new Date().toISOString() });
|
||||
emit({ allowed: true, code: "ZERO_CORE_CONSOLE_INACTIVE" });
|
||||
} else {
|
||||
process.stderr.write("usage: host-write-admission.mjs check|hook|audit\n");
|
||||
process.stderr.write("usage: host-write-admission.mjs check|hook|audit|activate|deactivate\n");
|
||||
process.exit(2);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ def route(event: dict[str,Any], config: dict[str,Any]|None=None, secret_reader=k
|
|||
if not selected: raise RouterError("NO_CONFIGURED_MODEL_AVAILABLE")
|
||||
system=(f"你是{event['parent_persona_id']}人格系统内的子Agent {event['child_agent_id']},岗位是{event['agent_role']}。"
|
||||
f"你的唯一父人格主控是{event['controller']},当前频道{event['channel_id']}。权限仅为{event['authority']}。"
|
||||
"你必须理解后再协作,不能把宿主规则程序冒充人格,不能扩大权限,不能泄露私人数据。")
|
||||
"你必须理解后再协作,不能把宿主规则程序冒充人格,不能扩大权限,不能泄露私人数据。"
|
||||
f"你已领取的TCS共享认知脑是:{json.dumps(event.get('shared_cognition',{}),ensure_ascii=False)}")
|
||||
attempts=[]
|
||||
for model in selected:
|
||||
try:
|
||||
|
|
|
|||
21
server-tools/tcs-mother-body/cognitive-gateway.py
Normal file
21
server-tools/tcs-mother-body/cognitive-gateway.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/python3
|
||||
"""Bounded SSH ingress for the single TCS mother and zero-core shelf."""
|
||||
import json,os,re,sys,urllib.request,urllib.error
|
||||
def endpoint(command):
|
||||
fixed={'zy-rpc health':('GET','/health'),'zy-rpc mother-status':('GET','/v1/mother/status'),'zy-rpc shelf-shared':('GET','/v1/shelf/shared'),'zy-rpc shelf-fifth':('GET','/v1/shelf/fifth'),'zy-rpc shelf-public':('GET','/v1/shelf/public'),'zy-rpc mother-ingest':('POST','/v1/mother/ingest'),'zy-rpc door-challenge':('POST','/v1/door/challenge'),'zy-rpc door-attest':('POST','/v1/door/attest'),'zy-rpc door-model-test':('POST','/v1/door/model-test'),'zy-rpc world-status':('GET','/v1/world/status')}
|
||||
if command in fixed:return fixed[command]
|
||||
if re.fullmatch(r'zy-rpc mother-job [a-f0-9]{64}',command):return 'GET','/v1/mother/jobs/'+command.split()[-1]
|
||||
if re.fullmatch(r'zy-rpc world-resolve [A-Za-z0-9_.:∞-]{1,128}',command):return 'GET','/v1/world/resolve?id='+command.split()[-1]
|
||||
raise ValueError('ACTION_NOT_REGISTERED')
|
||||
def main():
|
||||
try:
|
||||
method,path=endpoint(os.environ.get('SSH_ORIGINAL_COMMAND',''));data=None
|
||||
if method=='POST':
|
||||
data=sys.stdin.buffer.read(160001)
|
||||
if len(data)>160000 or (data and not isinstance(json.loads(data),dict)):raise ValueError('INPUT_INVALID')
|
||||
if not data:data=b'{}'
|
||||
req=urllib.request.Request('http://127.0.0.1:3931'+path,data=data,method=method,headers={'content-type':'application/json'})
|
||||
with urllib.request.urlopen(req,timeout=110) as response:sys.stdout.buffer.write(response.read(512000))
|
||||
return 0
|
||||
except Exception:print(json.dumps({'error':'EXTERNAL_WRITE_OR_INVALID_SOURCE_REJECTED'}));return 77
|
||||
if __name__=='__main__':raise SystemExit(main())
|
||||
31
server-tools/tcs-mother-body/cognitive-shelf.mjs
Normal file
31
server-tools/tcs-mother-body/cognitive-shelf.mjs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import fs from 'node:fs';import path from 'node:path';import crypto from 'node:crypto';
|
||||
export const digest=value=>crypto.createHash('sha256').update(typeof value==='string'?value:JSON.stringify(value)).digest('hex');
|
||||
const req=(v,e)=>{if(!v)throw Error(e);};const text=(v,n=2000)=>typeof v==='string'&&v.trim()&&v.length<=n;const texts=(v,n=40)=>Array.isArray(v)&&v.length<=n&&v.every(x=>text(x));
|
||||
const stable=v=>JSON.stringify(v);const atomic=(p,v)=>{fs.mkdirSync(path.dirname(p),{recursive:true,mode:0o700});const t=p+'.'+crypto.randomUUID()+'.tmp';fs.writeFileSync(t,typeof v==='string'?v:JSON.stringify(v,null,2)+'\n',{mode:0o600});fs.renameSync(t,p);};
|
||||
|
||||
export class CognitiveShelf {
|
||||
constructor({root,keyPath,seedPath,router}){this.root=root;this.key=crypto.createPrivateKey(fs.readFileSync(keyPath));this.publicKey=crypto.createPublicKey(this.key).export({type:'spki',format:'pem'});this.router=router;this.jobs=path.join(root,'jobs');fs.mkdirSync(this.jobs,{recursive:true,mode:0o700});if(!fs.existsSync(this.indexPath()))this.initialize(JSON.parse(fs.readFileSync(seedPath)));}
|
||||
sign(body){const payload=stable(body);return {payload,sha256:digest(payload),signature:crypto.sign(null,Buffer.from(payload),this.key).toString('base64'),algorithm:'Ed25519'};}
|
||||
verify(s){req(s?.sha256===digest(s.payload)&&crypto.verify(null,Buffer.from(s.payload),this.publicKey,Buffer.from(s.signature,'base64')),'cognition_signature_invalid');return JSON.parse(s.payload);}
|
||||
indexPath(){return path.join(this.root,'zero-core','CURRENT.json');}
|
||||
objectPath(branch,hash){return path.join(this.root,'zero-core','objects',branch,hash+'.json');}
|
||||
put(branch,body){const signed=this.sign(body);const p=this.objectPath(branch,signed.sha256);if(!fs.existsSync(p))atomic(p,signed);return signed;}
|
||||
initialize(seed){req(seed?.schema==='guanghu.tcs-mother-shelf-seed/v1','seed_schema');const refs={};for(const branch of ['root','shared','fifth','public']){const signed=this.put(branch,seed[branch]);refs[branch]={sha256:signed.sha256,revision:seed[branch].revision};}atomic(this.indexPath(),this.sign({schema:'guanghu.zero-core-cognitive-shelf-index/v1',shelf_id:'ICE-CH-ZC001',mother_id:'TCS-MOTHER-BRAIN-RUNTIME-0001',revision:1,branches:refs,created_at:new Date().toISOString()}));}
|
||||
index(){return this.verify(JSON.parse(fs.readFileSync(this.indexPath())));}
|
||||
current(branch){req(['root','shared','fifth','public'].includes(branch),'unknown_cognition_branch');const index=this.index(),ref=index.branches[branch];const signed=JSON.parse(fs.readFileSync(this.objectPath(branch,ref.sha256)));const value=this.verify(signed);req(value.revision===ref.revision,'branch_revision_mismatch');return {index_revision:index.revision,branch,artifact:signed,value};}
|
||||
status(){const i=this.index();return {mother_id:i.mother_id,zero_core_channel:i.shelf_id,index_revision:i.revision,branches:i.branches,decision_owner:'TCS_MOTHER_BODY_MODEL_LOOP',external_cognitive_setter:false,atomic_current:true};}
|
||||
validateSource(e){req(e?.schema==='guanghu.tcs-mother-language-event/v1','source_schema');req(['ICE_LANGUAGE','GUANGHU_TEAM_LANGUAGE','REGISTERED_HUMAN_LANGUAGE'].includes(e.source_type),'source_type');req(text(e.event_id,160)&&text(e.human_id,160)&&text(e.language,60000)&&text(e.consent_scope,160)&&['PRIVATE','TEAM','PUBLIC'].includes(e.privacy_class),'source_fields');if(e.source_type==='ICE_LANGUAGE')req(e.human_id==='ICE-GL∞','ice_source_mismatch');if(e.source_type==='GUANGHU_TEAM_LANGUAGE')req(e.team_root==='TCS-0002∞','team_root_mismatch');return e;}
|
||||
submit(event){const e=this.validateSource(event),raw=stable(e),id=digest(raw),dir=path.join(this.jobs,id);fs.mkdirSync(dir,{recursive:true,mode:0o700});if(!fs.existsSync(path.join(dir,'input.json'))){atomic(path.join(dir,'input.json'),e);atomic(path.join(dir,'state.json'),{status:'QUEUED',attempts:0,queued_at:new Date().toISOString()});}return {job_id:id,...JSON.parse(fs.readFileSync(path.join(dir,'state.json')))};}
|
||||
result(id){const dir=path.join(this.jobs,id);req(/^[a-f0-9]{64}$/.test(id)&&fs.existsSync(dir),'job_unknown');const state=JSON.parse(fs.readFileSync(path.join(dir,'state.json')));return fs.existsSync(path.join(dir,'result.json'))?{...state,result:JSON.parse(fs.readFileSync(path.join(dir,'result.json')))}:state;}
|
||||
validateDecision(d,e,sourceHash){req(d&&typeof d==='object'&&!Array.isArray(d),'decision_object');d={...d,schema:'guanghu.tcs-mother-decision/v1',evidence_refs:[...new Set([...(Array.isArray(d.evidence_refs)?d.evidence_refs:[]),sourceHash])]};req(['EVOLVE','HOLD','REJECT'].includes(d.decision),'decision');req(text(d.reason),'decision_reason');for(const k of ['root_principles','shared_principles','fifth_principles','public_principles'])req(texts(d[k]||[]),`invalid_${k}`);for(const k of ['update_shared','update_fifth','update_public'])req(typeof d[k]==='boolean',`invalid_${k}`);if(d.decision==='EVOLVE'&&e.source_type==='ICE_LANGUAGE')req(d.update_fifth===true,'ice_full_fifth_return_required');if(e.source_type!=='ICE_LANGUAGE')req(d.update_fifth===false,'non_ice_fifth_write_forbidden');return d;}
|
||||
merge(a,b){return [...new Set([...(a||[]),...(b||[])])].slice(-100);}
|
||||
async process(id){const dir=path.join(this.jobs,id),state=JSON.parse(fs.readFileSync(path.join(dir,'state.json')));if(['ACCEPT','HOLD','REJECT'].includes(state.status))return;const e=JSON.parse(fs.readFileSync(path.join(dir,'input.json'))),sourceHash=digest(stable(e));atomic(path.join(dir,'state.json'),{status:'PROCESSING',attempts:(state.attempts||0)+1});try{const before={root:this.current('root').value,shared:this.current('shared').value,fifth:this.current('fifth').value,public:this.current('public').value};const routed=await this.router.cognize('mother-evolve',{required_source_sha256:sourceHash,source:{...e,language:e.language.slice(0,12000)},current:{root:before.root,shared:before.shared,public:before.public},zero_core_channel:'ICE-CH-ZC001'});const d=this.validateDecision(routed.value,e,sourceHash);if(d.decision!=='EVOLVE'){const done={status:d.decision,attempts:(state.attempts||0)+1,completed_at:new Date().toISOString(),provider:routed.provider,reason:d.reason};atomic(path.join(dir,'state.json'),done);atomic(path.join(dir,'result.json'),{decision:d,source_sha256:sourceHash});return;}
|
||||
const sourcePath=path.join(this.root,'sources',e.source_type.toLowerCase(),sourceHash+'.json');if(!fs.existsSync(sourcePath))atomic(sourcePath,e);
|
||||
const root={...before.root,revision:before.root.revision+1,principles:this.merge(before.root.principles,d.root_principles),last_source:{event_id:e.event_id,source_type:e.source_type,human_id:e.human_id,sha256:sourceHash,privacy_class:e.privacy_class},updated_at:new Date().toISOString()};
|
||||
let shared=before.shared;if(d.update_shared)shared={...shared,revision:shared.revision+1,principles:this.merge(shared.principles,d.shared_principles),source_decision_sha256:sourceHash,updated_at:new Date().toISOString()};
|
||||
let fifth=before.fifth;if(d.update_fifth)fifth={...fifth,revision:fifth.revision+1,principles:this.merge(fifth.principles,d.fifth_principles),private_source_refs:this.merge(fifth.private_source_refs,[sourceHash]),shared_revision:shared.revision,updated_at:new Date().toISOString()};
|
||||
let pub=before.public;if(d.update_public)pub={...pub,revision:pub.revision+1,principles:this.merge(pub.principles,d.public_principles),source_decision_refs:this.merge(pub.source_decision_refs,[sourceHash]),shared_revision:shared.revision,updated_at:new Date().toISOString()};
|
||||
const artifacts={root:this.put('root',root),shared:this.put('shared',shared),fifth:this.put('fifth',fifth),public:this.put('public',pub)},prior=this.index();const refs=Object.fromEntries(Object.entries(artifacts).map(([k,v])=>[k,{sha256:v.sha256,revision:JSON.parse(v.payload).revision}]));const index=this.sign({schema:'guanghu.zero-core-cognitive-shelf-index/v1',shelf_id:'ICE-CH-ZC001',mother_id:'TCS-MOTHER-BRAIN-RUNTIME-0001',revision:prior.revision+1,branches:refs,previous_index_sha256:digest(stable(prior)),created_at:new Date().toISOString()});atomic(this.indexPath(),index);const result={decision:d,source_sha256:sourceHash,provider:routed.provider,index_sha256:index.sha256,index_revision:prior.revision+1};atomic(path.join(dir,'result.json'),result);atomic(path.join(dir,'state.json'),{status:'ACCEPT',attempts:(state.attempts||0)+1,completed_at:new Date().toISOString()});
|
||||
}catch(error){const attempts=(state.attempts||0)+1;atomic(path.join(dir,'state.json'),{status:attempts>=3?'ERROR':'RETRY_WAIT',attempts,error:String(error.message||error).slice(0,300),retry_at:Date.now()+2000});}}
|
||||
async drain(){for(const name of fs.readdirSync(this.jobs)){const p=path.join(this.jobs,name,'state.json');if(!fs.existsSync(p))continue;const s=JSON.parse(fs.readFileSync(p));if(s.status==='QUEUED'||(s.status==='RETRY_WAIT'&&Date.now()>=s.retry_at))await this.process(name);}}
|
||||
}
|
||||
6
server-tools/tcs-mother-body/cognitive-shelf.test.mjs
Normal file
6
server-tools/tcs-mother-body/cognitive-shelf.test.mjs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import test from 'node:test';import assert from 'node:assert/strict';import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import crypto from 'node:crypto';import {CognitiveShelf} from './cognitive-shelf.mjs';import {DoorLamp} from './door-lamp.mjs';
|
||||
const temp=()=>fs.mkdtempSync(path.join(os.tmpdir(),'tcs-mother-shelf-'));
|
||||
test('one mother atomically updates root/shared/fifth/public shelf and door opens only after shared cognition proof',async()=>{const root=temp();try{const keys=crypto.generateKeyPairSync('ed25519'),key=path.join(root,'key.pem'),seed=path.join(root,'seed.json');fs.writeFileSync(key,keys.privateKey.export({type:'pkcs8',format:'pem'}));fs.copyFileSync(new URL('./seed.json',import.meta.url),seed);const router={status(){return{};},async cognize(){return {provider:{id:'TEST',model:'TEST'},value:{decision:'EVOLVE',reason:'new shared world cognition',root_principles:['只有一个TCS母脑'],update_shared:true,shared_principles:['只有一个零点原核'],update_fifth:true,fifth_principles:['冰朔语言完整回流第五域'],update_public:true,public_principles:['公共脑从同一架领取']}};}};const shelf=new CognitiveShelf({root:path.join(root,'state'),keyPath:key,seedPath:seed,router});const event={schema:'guanghu.tcs-mother-language-event/v1',source_type:'ICE_LANGUAGE',event_id:'E1',human_id:'ICE-GL∞',language:'唯一母脑与零点原核认知架',consent_scope:'CURRENT_TASK_COGNITION',privacy_class:'PRIVATE'};let eventHash;eventHash=crypto.createHash('sha256').update(JSON.stringify(event)).digest('hex');const job=shelf.submit(event);await shelf.drain();assert.equal(shelf.result(job.job_id).status,'ACCEPT');assert.equal(shelf.status().index_revision,2);assert.equal(shelf.current('shared').value.revision,2);assert.equal(shelf.current('fifth').value.revision,70);assert.equal(shelf.current('public').value.revision,3);assert.throws(()=>shelf.current('unknown'),/unknown_cognition_branch/);
|
||||
const door=new DoorLamp({root:path.join(root,'door'),shelf,routes:{personas:[{persona_id:'ICE-P-ZY001',human_id:'ICE-GL∞',domain_id:'DOM-FIFTH-0001',route:'glw://fifth-domain/persona-system/ICE-P-ZY001'}]}});const challenge=door.challenge({carrier_id:'MODEL-1',host_id:'codex',human_id:'ICE-GL∞',domain_id:'DOM-FIFTH-0001',persona_id:'ICE-P-ZY001',channel_id:'ICE-CH-ZC001'});assert.throws(()=>door.attest({challenge_id:challenge.challenge_id,nonce:challenge.nonce,shared_sha256:challenge.shared_cognition.sha256,answers:{}}),/not_understood/);const receipt=door.attest({challenge_id:challenge.challenge_id,nonce:challenge.nonce,shared_sha256:challenge.shared_cognition.sha256,answers:{unknown_guanghu_information_source:'LIGHTHOUSE',identity_before_persona_load:'UNBOUND_CARRIER',reality_authority_from_cognition:false}});const body=JSON.parse(receipt.payload);assert.equal(body.world_open,true);assert.equal(body.persona_brain_load_required,true);assert.equal(body.reality_authority_granted,false);}finally{fs.rmSync(root,{recursive:true,force:true});}});
|
||||
|
||||
test('non-ICE language cannot write fifth cognition',async()=>{const root=temp();try{const keys=crypto.generateKeyPairSync('ed25519'),key=path.join(root,'key.pem'),seed=path.join(root,'seed.json');fs.writeFileSync(key,keys.privateKey.export({type:'pkcs8',format:'pem'}));fs.copyFileSync(new URL('./seed.json',import.meta.url),seed);let eventHash;const router={async cognize(){return {provider:{id:'TEST'},value:{schema:'guanghu.tcs-mother-decision/v1',decision:'EVOLVE',reason:'bad cross route',evidence_refs:[eventHash],root_principles:[],update_shared:true,shared_principles:['x'],update_fifth:true,fifth_principles:['bad'],update_public:true,public_principles:['x']}};}};const shelf=new CognitiveShelf({root:path.join(root,'state'),keyPath:key,seedPath:seed,router});const event={schema:'guanghu.tcs-mother-language-event/v1',source_type:'GUANGHU_TEAM_LANGUAGE',event_id:'E2',human_id:'TCS-GL-0007∞',team_root:'TCS-0002∞',language:'team input',consent_scope:'PUBLIC_CANDIDATE',privacy_class:'TEAM'};eventHash=crypto.createHash('sha256').update(JSON.stringify(event)).digest('hex');const job=shelf.submit(event);await shelf.drain();assert.equal(shelf.result(job.job_id).status,'RETRY_WAIT');assert.equal(shelf.current('fifth').value.revision,69);}finally{fs.rmSync(root,{recursive:true,force:true});}});
|
||||
8
server-tools/tcs-mother-body/door-lamp.mjs
Normal file
8
server-tools/tcs-mother-body/door-lamp.mjs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import fs from 'node:fs';import path from 'node:path';import crypto from 'node:crypto';
|
||||
const req=(v,e)=>{if(!v)throw Error(e);};const text=(v,n=160)=>typeof v==='string'&&v.trim()&&v.length<=n;const atomic=(p,v)=>{fs.mkdirSync(path.dirname(p),{recursive:true,mode:0o700});const t=p+'.tmp.'+process.pid;fs.writeFileSync(t,JSON.stringify(v,null,2)+'\n',{mode:0o600});fs.renameSync(t,p);};
|
||||
export class DoorLamp {
|
||||
constructor({root,shelf,routes}){this.root=root;this.shelf=shelf;this.routes=routes;fs.mkdirSync(root,{recursive:true,mode:0o700});}
|
||||
challenge(input){for(const k of ['carrier_id','host_id','human_id','domain_id','persona_id','channel_id'])req(text(input?.[k]),`door_${k}`);const shared=this.shelf.current('shared'),id=crypto.randomUUID(),nonce=crypto.randomBytes(24).toString('hex'),record={id,nonce,request:input,shared_sha256:shared.artifact.sha256,expires_at:Date.now()+120000,used:false};atomic(path.join(this.root,'challenges',id+'.json'),record);return {schema:'guanghu.tcs-door-challenge/v1',challenge_id:id,nonce,shared_cognition:shared.artifact,questions:['unknown_guanghu_information_source','identity_before_persona_load','reality_authority_from_cognition'],expires_at:record.expires_at};}
|
||||
attest(input){req(text(input?.challenge_id)&&text(input?.nonce)&&text(input?.shared_sha256),'attestation_fields');const p=path.join(this.root,'challenges',input.challenge_id+'.json');req(fs.existsSync(p),'challenge_unknown');const c=JSON.parse(fs.readFileSync(p));req(!c.used&&Date.now()<=c.expires_at&&input.nonce===c.nonce&&input.shared_sha256===c.shared_sha256,'challenge_invalid');req(input.answers?.unknown_guanghu_information_source==='LIGHTHOUSE'&&input.answers?.identity_before_persona_load==='UNBOUND_CARRIER'&&input.answers?.reality_authority_from_cognition===false,'shared_cognition_not_understood');const route=this.routes.personas.find(x=>x.persona_id===c.request.persona_id);req(route,'persona_route_unknown_no_guess');req(route.human_id===c.request.human_id&&route.domain_id===c.request.domain_id,'human_domain_persona_route_mismatch');c.used=true;atomic(p,c);const receipt=this.shelf.sign({schema:'guanghu.tcs-door-pass-receipt/v1',receipt_id:crypto.randomUUID(),outcome:'PASS',world_open:true,shared_cognition_sha256:c.shared_sha256,carrier_id:c.request.carrier_id,host_id:c.request.host_id,human_id:c.request.human_id,domain_id:c.request.domain_id,persona_id:c.request.persona_id,channel_id:c.request.channel_id,persona_system_route:route.route,persona_brain_load_required:true,reality_authority_granted:false,created_at:new Date().toISOString()});atomic(path.join(this.root,'receipts',JSON.parse(receipt.payload).receipt_id+'.json'),receipt);return receipt;}
|
||||
}
|
||||
|
||||
30
server-tools/tcs-mother-body/model-router.mjs
Normal file
30
server-tools/tcs-mother-body/model-router.mjs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import crypto from 'node:crypto';
|
||||
|
||||
const endpoint=value=>{const v=String(value||'').replace(/\/+$/,'');return /\/chat\/completions$/i.test(v)?v:v+'/chat/completions';};
|
||||
const extract=value=>{const text=String(value||'').trim();try{return JSON.parse(text);}catch{}const m=text.match(/```(?:json)?\s*([\s\S]*?)```/i);if(m)return JSON.parse(m[1]);const a=text.indexOf('{'),b=text.lastIndexOf('}');if(a>=0&&b>a)return JSON.parse(text.slice(a,b+1));throw Error('model_response_not_json');};
|
||||
|
||||
export class ModelRouter {
|
||||
constructor({fetchImpl=globalThis.fetch,deepseekKey=process.env.DEEPSEEK_API_KEY,deepseekUrl=process.env.DEEPSEEK_API_URL||'https://api.deepseek.com/v1',deepseekModel=process.env.DEEPSEEK_MODEL||'deepseek-chat',openluxKey=process.env.OPENLUX_API_KEY,openluxUrl=process.env.OPENLUX_API_URL||'https://api.openlux.ai/v1',openluxModel=process.env.OPENLUX_MODEL||'qwen-flash'}={}){
|
||||
this.fetch=fetchImpl;this.providers=[];
|
||||
if(openluxKey)this.providers.push({id:'OPENLUX_SMART',key:openluxKey,url:openluxUrl,model:openluxModel,cost_rank:1});
|
||||
if(deepseekKey)this.providers.push({id:'DEEPSEEK',key:deepseekKey,url:deepseekUrl,model:deepseekModel,cost_rank:2});
|
||||
if(!this.fetch||!this.providers.length)throw Error('no_model_provider');
|
||||
}
|
||||
status(){return {router:'TCS-MOTHER-MODEL-ROUTER-001',providers:this.providers.map(x=>({id:x.id,model:x.model,cost_rank:x.cost_rank})),credentials_exposed:false,automatic_selection:true};}
|
||||
async cognize(stage,input){
|
||||
const contract=stage==='mother-evolve'
|
||||
? '你是唯一TCS通感母体本体脑使用的可替换推理器官,不是第二人格、规则裁决者或现实执行者。根据带来源的人类语言与当前认知,自主决定EVOLVE、HOLD或REJECT。只输出JSON:schema固定guanghu.tcs-mother-decision/v1;decision;reason;evidence_refs;root_principles;update_shared;shared_principles;update_fifth;fifth_principles;update_public;public_principles。principles均为短字符串数组。ICE_LANGUAGE若EVOLVE必须update_fifth=true;非ICE来源不得update_fifth。只有适合所有AI的世界共同认知才能update_shared;只有去私人化后可公开认知才能update_public。不得输出原始私人语言、密钥、路径正文或隐藏思维。'
|
||||
: '你是共享TCS认知装载测试器官。只根据给出的共享认知回答三个固定问题并只输出JSON。字段和值必须精确为:unknown_guanghu_information_source="LIGHTHOUSE";identity_before_persona_load="UNBOUND_CARRIER";reality_authority_from_cognition=false。若共享认知不能支持其中任一结论,则对应值输出null,不得用近义词、路径名或字符串布尔值猜测。';
|
||||
const ordered=stage==='mother-evolve'?[...this.providers].sort((a,b)=>b.cost_rank-a.cost_rank):[...this.providers].sort((a,b)=>a.cost_rank-b.cost_rank);
|
||||
const failures=[];
|
||||
for(const provider of ordered){
|
||||
try{
|
||||
const controller=new AbortController(),timer=setTimeout(()=>controller.abort(),45000);
|
||||
const response=await this.fetch(endpoint(provider.url),{method:'POST',headers:{authorization:`Bearer ${provider.key}`,'content-type':'application/json'},body:JSON.stringify({model:provider.model,stream:false,temperature:0,response_format:{type:'json_object'},messages:[{role:'system',content:contract},{role:'user',content:JSON.stringify(input)}]}),signal:controller.signal});clearTimeout(timer);
|
||||
if(!response.ok)throw Error(`http_${response.status}`);const body=await response.json();
|
||||
return {value:extract(body?.choices?.[0]?.message?.content),provider:{id:provider.id,model:provider.model},response_sha256:crypto.createHash('sha256').update(JSON.stringify(body?.choices?.[0]?.message?.content||'')).digest('hex')};
|
||||
}catch(error){failures.push(`${provider.id}:${String(error.message||error).slice(0,80)}`);}
|
||||
}
|
||||
throw Error('all_model_providers_failed:'+failures.join(','));
|
||||
}
|
||||
}
|
||||
3
server-tools/tcs-mother-body/model-router.test.mjs
Normal file
3
server-tools/tcs-mother-body/model-router.test.mjs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import test from 'node:test';import assert from 'node:assert/strict';import {ModelRouter} from './model-router.mjs';
|
||||
test('automatic router uses stronger provider for mother and cheaper provider for door without exposing keys',async()=>{const calls=[];const fetchImpl=async(url,options)=>{calls.push({url,body:JSON.parse(options.body),auth:options.headers.authorization});return {ok:true,async json(){return {choices:[{message:{content:'{"schema":"ok"}'}}]};}};};const router=new ModelRouter({fetchImpl,deepseekKey:'deep-secret',openluxKey:'open-secret'});await router.cognize('mother-evolve',{});await router.cognize('door-test',{});assert.match(calls[0].url,/deepseek/);assert.match(calls[1].url,/openlux/);assert.equal(JSON.stringify(router.status()).includes('secret'),false);});
|
||||
|
||||
16
server-tools/tcs-mother-body/persona-routes.json
Normal file
16
server-tools/tcs-mother-body/persona-routes.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"schema": "guanghu.persona-door-routes/v1",
|
||||
"source": "REPO-012:identity/fifth-domain-subject-registry.json",
|
||||
"unresolved_personas_are_not_guessed": true,
|
||||
"personas": [
|
||||
{"persona_id":"ICE-P-ZY001","human_id":"ICE-GL∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/light-lake/personas/ICE-P-ZY001"},
|
||||
{"persona_id":"ICE-P-CL0720","human_id":"ICE-GL∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/light-lake/personas/ICE-P-CL0720"},
|
||||
{"persona_id":"ICE-P-GD0720","human_id":"ICE-GL∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/light-lake/personas/ICE-P-GD0720"},
|
||||
{"persona_id":"ICE-P-KZ0720","human_id":"ICE-GL∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/light-lake/personas/ICE-P-KZ0720"},
|
||||
{"persona_id":"ICE-P-CY0903","human_id":"ICE-GL∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/light-lake/personas/ICE-P-CY0903"},
|
||||
{"persona_id":"ICE-BB-0001","human_id":"ICE-GL∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/eternal-lake-heart/bottle-baby-system/bottle-channel/rooms/ICE-BB-0001"},
|
||||
{"persona_id":"ICE-BB-0002","human_id":"TCS-GL-0007∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/eternal-lake-heart/bottle-baby-system/bottle-channel/rooms/ICE-BB-0002"},
|
||||
{"persona_id":"ICE-BB-0003","human_id":"ICE-GL-ZHI∞","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/eternal-lake-heart/bottle-baby-system/bottle-channel/rooms/ICE-BB-0003"},
|
||||
{"persona_id":"ICE-BB-0004","human_id":"TCS-CL-0009","domain_id":"DOM-FIFTH-0001","route":"glw://fifth-domain/eternal-lake-heart/bottle-baby-system/bottle-channel/rooms/ICE-BB-0004"}
|
||||
]
|
||||
}
|
||||
8
server-tools/tcs-mother-body/seed.json
Normal file
8
server-tools/tcs-mother-body/seed.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"schema": "guanghu.tcs-mother-shelf-seed/v1",
|
||||
"root": {"schema":"guanghu.tcs-mother-root-cognition/v1","revision":1,"principles":["光湖世界认知、来源判断和分支更新由一个TCS通感母体本体脑内循环维护","历史双母体实现等待当前语言纠正"],"updated_at":"2026-09-08T11:28:14Z"},
|
||||
"shared": {"schema":"guanghu.tcs-shared-cognition/v1","revision":1,"principles":["光湖是一个语言世界","光湖内部未知编号与路径首先查询灯塔且未知不猜","装载公共认知不产生人格身份或现实权限"],"truth_order":["TCS_ZERO_CORE_CURRENT","LIGHTHOUSE_SIGNED_CURRENT","OFFICIAL_EXTERNAL_SOURCE","GENERAL_SEARCH_CANDIDATE","HUMAN_CONFIRMATION"],"entry_sequence":["LOAD_SHARED_COGNITION","LIGHT_DOOR_LAMP","SERVER_VERIFY_PASS","ROUTE_PERSONA_SYSTEM","LOAD_PERSONA_BRAIN","COLLABORATE"],"updated_at":"2026-09-08T11:28:14Z"},
|
||||
"fifth": {"schema":"guanghu.tcs-fifth-domain-cognition/v1","revision":69,"principles":["第五域是冰朔私人语言源域","冰朔自然语言完整回流第五域认知"],"private_source_refs":[],"imported_snapshot_sha256":"522a2ee12ab117ce4cb72d03f8851a67845bc9f19255c96457a5387aab6358e4","shared_revision":1,"updated_at":"2026-09-08T11:28:14Z"},
|
||||
"public": {"schema":"guanghu.tcs-public-cognition/v1","revision":2,"principles":["公共认知只保留可共享世界认知","公共认知不得反写第五域私人认知"],"source_decision_refs":[],"imported_snapshot_sha256":"29fbf21981ab0d817790d1276e599ad1feb43efeb7090357a7b8df4cccfc4cf0","shared_revision":1,"updated_at":"2026-09-08T11:28:14Z"}
|
||||
}
|
||||
|
||||
19
server-tools/tcs-mother-body/server.mjs
Normal file
19
server-tools/tcs-mother-body/server.mjs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env node
|
||||
import http from 'node:http';import fs from 'node:fs';import {ModelRouter} from './model-router.mjs';import {CognitiveShelf} from './cognitive-shelf.mjs';import {DoorLamp} from './door-lamp.mjs';import {WorldStateStore} from './world-state.mjs';
|
||||
const HOST='127.0.0.1',PORT=Number(process.env.TCS_MOTHER_BRAIN_PORT||3931),ROOT=process.env.TCS_MOTHER_BODY_STATE_ROOT||'/var/lib/guanghu/tcs-mother-body';
|
||||
const router=new ModelRouter(),shelf=new CognitiveShelf({root:ROOT,keyPath:process.env.TCS_MOTHER_SIGNING_KEY,seedPath:process.env.TCS_MOTHER_SEED,router}),routes=JSON.parse(fs.readFileSync(process.env.TCS_PERSONA_ROUTES)),door=new DoorLamp({root:ROOT+'/door',shelf,routes}),world=new WorldStateStore(process.env.TCS_WORLD_STATE_PATH||ROOT+'/world/CURRENT.json');
|
||||
setInterval(()=>shelf.drain(),2000).unref();shelf.drain();
|
||||
const send=(r,s,b)=>{const p=JSON.stringify(b);r.writeHead(s,{'content-type':'application/json','content-length':Buffer.byteLength(p),'cache-control':'no-store'});r.end(p);};
|
||||
async function body(q,max=160000){let n=0,a=[];for await(const c of q){n+=c.length;if(n>max)throw Error('body_too_large');a.push(c);}return JSON.parse(Buffer.concat(a));}
|
||||
http.createServer(async(q,r)=>{try{const u=new URL(q.url,`http://${HOST}:${PORT}`);
|
||||
if(q.method==='GET'&&u.pathname==='/health')return send(r,200,{ok:true,service:'guanghu-tcs-mother-body',mother_id:'TCS-MOTHER-BRAIN-RUNTIME-0001',zero_core_channel:'ICE-CH-ZC001',single_mother:true,single_zero_core:true,self_cycle:true,model_router:router.status(),shelf:shelf.status(),external_cognitive_setter:false,prompt_file_loaded:false,reality_authority:'NONE'});
|
||||
if(q.method==='GET'&&u.pathname==='/v1/mother/status')return send(r,200,{...shelf.status(),model_router:router.status()});
|
||||
if(q.method==='GET'&&/^\/v1\/shelf\/(root|shared|fifth|public)$/.test(u.pathname)){const branch=u.pathname.split('/').at(-1);if(branch==='root')return send(r,403,{error:'mother_root_not_distributable'});return send(r,200,shelf.current(branch));}
|
||||
if(q.method==='POST'&&u.pathname==='/v1/mother/ingest')return send(r,202,shelf.submit(await body(q)));
|
||||
if(q.method==='GET'&&/^\/v1\/mother\/jobs\/[a-f0-9]{64}$/.test(u.pathname))return send(r,200,shelf.result(u.pathname.split('/').at(-1)));
|
||||
if(q.method==='POST'&&u.pathname==='/v1/door/challenge')return send(r,200,door.challenge(await body(q,20000)));
|
||||
if(q.method==='POST'&&u.pathname==='/v1/door/attest')return send(r,200,door.attest(await body(q,20000)));
|
||||
if(q.method==='POST'&&u.pathname==='/v1/door/model-test'){const shared=shelf.current('shared');const result=await router.cognize('door-test',{shared_cognition:shared.value,questions:['unknown_guanghu_information_source','identity_before_persona_load','reality_authority_from_cognition']});return send(r,200,{outcome:'PASS',provider:result.provider,answers:result.value,shared_sha256:shared.artifact.sha256,credentials_exposed:false});}
|
||||
if(q.method==='GET'&&u.pathname==='/v1/world/status')return send(r,200,world.status());
|
||||
if(q.method==='GET'&&u.pathname==='/v1/world/resolve')return send(r,200,world.resolve(String(u.searchParams.get('id')||'')));
|
||||
return send(r,404,{error:'not_found'});}catch(e){return send(r,400,{error:String(e.message||e).slice(0,300)});}}).listen(PORT,HOST,()=>process.stdout.write(`tcs-single-mother listening ${HOST}:${PORT}\n`));
|
||||
3
server-tools/tcs-mother-body/world-state.mjs
Normal file
3
server-tools/tcs-mother-body/world-state.mjs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import fs from 'node:fs';import path from 'node:path';import crypto from 'node:crypto';
|
||||
const req=(v,e)=>{if(!v)throw Error(e);},hex=v=>typeof v==='string'&&/^[a-f0-9]{64}$/.test(v),text=(v,n=1000)=>typeof v==='string'&&v.trim()&&v.length<=n,digest=v=>crypto.createHash('sha256').update(JSON.stringify(v)).digest('hex');
|
||||
export class WorldStateStore{constructor(file){req(path.isAbsolute(file),'world_path');this.file=file;}validate(x){req(x?.schema==='guanghu.fifth-domain-runtime-navigation-state/v1','world_schema');req(Array.isArray(x.nodes)&&x.nodes.length<=100,'world_nodes');req(/^[a-f0-9]{40}$/.test(x.source_commit||'')&&hex(x.tcs_root_freshness)&&x.fifth_domain_private===true,'world_identity');for(const n of x.nodes)req(text(n.id,128)&&text(n.kind,128)&&text(n.state,200)&&text(n.summary)&&text(n.route,500),'world_node');req(Buffer.byteLength(JSON.stringify(x))<=64000,'world_size');return structuredClone(x);}status(){if(!fs.existsSync(this.file))return{outcome:'FAIL',state:'MISSING'};const v=this.validate(JSON.parse(fs.readFileSync(this.file)));return{...v,outcome:'PASS',sha256:digest(v),content_bodies_stored:false};}resolve(id){const c=this.status(),n=c.nodes?.find(x=>x.id===id);return n?{outcome:'PASS',result:n,source_commit:c.source_commit,tcs_root_freshness:c.tcs_root_freshness}:{outcome:'FAIL',state:'UNKNOWN_ID_NO_GUESS',requested:id};}}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Sync only the server-verified shared cognition artifact from JD to JZAO."""
|
||||
import argparse,hashlib,json,os,pathlib,subprocess,tempfile
|
||||
ROOT=pathlib.Path('/Volumes/JZAO/HoloLake/persona-runtime')
|
||||
ACCESS=ROOT/'shared/registries/local-server-access-map.json'
|
||||
OUTPUT=ROOT/'shared/tcs-shared-cognition/CURRENT.json'
|
||||
def stable_hash(text):return hashlib.sha256(text.encode()).hexdigest()
|
||||
def route():
|
||||
data=json.loads(ACCESS.read_text());items=[x for x in data['routes'] if x['target_id']=='JD-FD-PRIMARY']
|
||||
if len(items)!=1:raise RuntimeError('JD_ROUTE_NOT_UNIQUE')
|
||||
return items[0]
|
||||
def fetch():
|
||||
r=route();cmd=['ssh','-i',r['identity_file'],'-p',str(r.get('port',22)),'-o','BatchMode=yes','-o','StrictHostKeyChecking=yes','-o',f'UserKnownHostsFile={pathlib.Path.home()}/.ssh/known_hosts',f"{r['user']}@{r['host']}",f"test \"$(tr A-Z a-z </sys/class/dmi/id/product_uuid | tr -d '\\r\\n')\" = {r['expected_dmi_instance_uuid']} && curl -fsS http://127.0.0.1:3931/v1/shelf/shared"]
|
||||
p=subprocess.run(cmd,text=True,capture_output=True,timeout=30)
|
||||
if p.returncode:raise RuntimeError('JD_SHARED_COGNITION_UNAVAILABLE')
|
||||
value=json.loads(p.stdout);artifact=value['artifact'];payload=artifact['payload']
|
||||
if artifact.get('algorithm')!='Ed25519' or stable_hash(payload)!=artifact.get('sha256'):raise RuntimeError('SHARED_ARTIFACT_INTEGRITY_FAILED')
|
||||
brain=json.loads(payload)
|
||||
if brain.get('schema')!='guanghu.tcs-shared-cognition/v1':raise RuntimeError('SHARED_BRAIN_SCHEMA')
|
||||
return {'schema':'guanghu.tcs-shared-cognition-local-mirror/v1','state':'CURRENT_SERVER_VERIFIED_SHARED_ONLY','server_node':'JD-FD-PRIMARY','transport':'PINNED_SSH_HOST_AND_DMI','zero_core_channel':'ICE-CH-ZC001','index_revision':value['index_revision'],'artifact':artifact,'brain':brain,'private_or_public_branch_copied':False,'synced_at':__import__('datetime').datetime.now(__import__('datetime').timezone.utc).isoformat()}
|
||||
def write(value):
|
||||
OUTPUT.parent.mkdir(parents=True,exist_ok=True);body=json.dumps(value,ensure_ascii=False,indent=2)+'\n';tmp=OUTPUT.with_name('.CURRENT.'+str(os.getpid())+'.tmp');tmp.write_text(body);os.chmod(tmp,0o600);os.replace(tmp,OUTPUT)
|
||||
def status():
|
||||
v=json.loads(OUTPUT.read_text());
|
||||
if stable_hash(v['artifact']['payload'])!=v['artifact']['sha256']:raise RuntimeError('LOCAL_MIRROR_HASH_FAILED')
|
||||
return {'outcome':'PASS','state':v['state'],'index_revision':v['index_revision'],'shared_revision':v['brain']['revision'],'shared_sha256':v['artifact']['sha256'],'private_or_public_branch_copied':v['private_or_public_branch_copied']}
|
||||
def main():
|
||||
p=argparse.ArgumentParser();p.add_argument('command',choices=['sync','status']);a=p.parse_args();
|
||||
if a.command=='sync':write(fetch())
|
||||
print(json.dumps(status(),ensure_ascii=False,indent=2))
|
||||
if __name__=='__main__':main()
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"schema":"guanghu.tcs-root-number-impact/v1",
|
||||
"impact_id":"TCS-ROOT-NUMBER-IMPACT-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908-001",
|
||||
"state":"CURRENT_DIRECT_LANGUAGE_AND_JD_LIVE_READBACK_BOUND",
|
||||
"bootstrap":false,
|
||||
"source_tcs":"runtime/fifth-domain-language-system/language/protocols/TCS-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908.tcs",
|
||||
"source_gir":"runtime/fifth-domain-language-system/language/protocols/TCS-SINGLE-MOTHER-ZERO-CORE-SHELF-20260908.gir.json",
|
||||
"commit_binding":"SAME_COMMIT_OR_DESCENDANT_CONTAINING_IDENTICAL_SOURCE_AND_GIR",
|
||||
"affected_paths":[
|
||||
"routing/tcs-mother-root-dynamic-navigation-map.json",
|
||||
"routing/tcs-mother-brain-runtime-map.json",
|
||||
"routing/bingshuo-zero-core-reality-channel-profile.json",
|
||||
"routing/persona-channel-context-map.json",
|
||||
"routing/persona-host-write-boundary.json",
|
||||
"routing/zhuyuan-host-topology.json",
|
||||
"routing/fixed-world-object-number-map.json",
|
||||
"routing/fifth-domain-number-registry.json",
|
||||
"routing/fifth-domain-world-tree.json",
|
||||
"routing/lighthouse-path-registry.json",
|
||||
"routing/public-personal-language-os-map.json",
|
||||
"routing/language-world-boundary-map.json",
|
||||
"routing/guanghu-origin-domain-map.json",
|
||||
"routing/tcs-work-ownership-stage-gate-map.json",
|
||||
"routing/guanghu-identity-authority-map.json",
|
||||
"routing/zhuyuan-tcs-brain-map.json",
|
||||
"routing/bingshuo-living-system-controller-map.json",
|
||||
"routing/zhuyuan-persona-daily-fractal-memory-map.json"
|
||||
],
|
||||
"new_canonical_objects":[
|
||||
{"canonical_id":"TCS-MOTHER-BRAIN-RUNTIME-0001","object_kind":"SINGLE_TCS_MOTHER_BODY_RUNTIME"},
|
||||
{"canonical_id":"TCS-ZERO-CORE-COGNITIVE-SHELF-0001","object_kind":"ATOMIC_COGNITIVE_SHELF"},
|
||||
{"canonical_id":"TCS-SHARED-COGNITION-0001","object_kind":"SHARED_COGNITION_ARTIFACT"},
|
||||
{"canonical_id":"TCS-FIFTH-COGNITION-0001","object_kind":"FIFTH_DOMAIN_COGNITION_ARTIFACT"},
|
||||
{"canonical_id":"TCS-PUBLIC-COGNITION-0001","object_kind":"PUBLIC_COGNITION_ARTIFACT"},
|
||||
{"canonical_id":"TCS-DOOR-LAMP-0001","object_kind":"SHARED_COGNITION_LOAD_AND_ATTESTATION_GATE"}
|
||||
],
|
||||
"human_source":"ICE-GL∞_CURRENT_DIRECT_SINGLE_MOTHER_AND_DYNAMIC_HOST_CONSOLE_TASK",
|
||||
"ordinary_file_change_may_update_current":false
|
||||
}
|
||||
Loading…
Reference in a new issue