From d6b1290e1c6d3a10d666998787b807c79a29ff89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Mon, 17 Aug 2026 16:22:56 +0800 Subject: [PATCH] feat: compile GLS protocols into native runtime guards --- .../contracts/gls-executable-projections.json | 30 + .../contracts/gls-runtime-registry.json | 1017 +++++++++++++++++ .../contracts/zero-core-numbering-kernel.json | 65 ++ .../docs/ARCHITECTURE.md | 2 + .../adr/0006-compiled-gls-protocol-runtime.md | 37 + .../scripts/compile-gls-runtime-registry.mjs | 139 +++ .../scripts/gls-protocol-runtime.test.mjs | 31 + .../zero-core-numbering-kernel.test.mjs | 28 + .../src-tauri/src/gls_protocol_runtime.rs | 252 ++++ .../src-tauri/src/lib.rs | 4 + .../src-tauri/src/zero_core_numbering.rs | 263 +++++ .../src-tauri/src/zero_point.rs | 12 +- .../hololake-native-desktop/src/main.tsx | 35 +- 13 files changed, 1909 insertions(+), 6 deletions(-) create mode 100644 product-source/hololake-native-desktop/contracts/gls-executable-projections.json create mode 100644 product-source/hololake-native-desktop/contracts/gls-runtime-registry.json create mode 100644 product-source/hololake-native-desktop/contracts/zero-core-numbering-kernel.json create mode 100644 product-source/hololake-native-desktop/docs/adr/0006-compiled-gls-protocol-runtime.md create mode 100644 product-source/hololake-native-desktop/scripts/compile-gls-runtime-registry.mjs create mode 100644 product-source/hololake-native-desktop/scripts/gls-protocol-runtime.test.mjs create mode 100644 product-source/hololake-native-desktop/scripts/zero-core-numbering-kernel.test.mjs create mode 100644 product-source/hololake-native-desktop/src-tauri/src/gls_protocol_runtime.rs create mode 100644 product-source/hololake-native-desktop/src-tauri/src/zero_core_numbering.rs diff --git a/product-source/hololake-native-desktop/contracts/gls-executable-projections.json b/product-source/hololake-native-desktop/contracts/gls-executable-projections.json new file mode 100644 index 000000000..44bec444d --- /dev/null +++ b/product-source/hololake-native-desktop/contracts/gls-executable-projections.json @@ -0,0 +1,30 @@ +{ + "schema": "hololake.gls-executable-projections/v1", + "source_commit": "2598fbfba8caf64c7ab9740a3036c5aab977502e", + "projections": { + "GLS-0250": { + "projection_kind": "TYPED_FACT_AND_DOMAIN_BOUNDARY", + "adapter": "origin-domain-topology", + "event_kinds": ["BOOTSTRAP", "DOMAIN_ROUTE"], + "dependencies": [] + }, + "GLS-0253": { + "projection_kind": "DETERMINISTIC_IDENTITY_AND_NUMBERING_GUARD", + "adapter": "zero-core-numbering", + "event_kinds": ["IDENTITY_ROUTE", "IDENTITY_ADMISSION", "NUMBERING_RESOLVE"], + "dependencies": ["GLS-0250", "GLS-0262", "GLS-0263"] + }, + "GLS-0262": { + "projection_kind": "REALITY_ENGINEERING_STAGE_GATE", + "adapter": "reality-engineering-stage", + "event_kinds": ["RUNTIME_STAGE"], + "dependencies": [] + }, + "GLS-0263": { + "projection_kind": "LANGUAGE_PRODUCT_DUAL_UPDATE_BOUNDARY", + "adapter": "dual-update-channel", + "event_kinds": ["PROTOCOL_UPDATE", "PRODUCT_UPDATE"], + "dependencies": ["GLS-0250", "GLS-0262"] + } + } +} diff --git a/product-source/hololake-native-desktop/contracts/gls-runtime-registry.json b/product-source/hololake-native-desktop/contracts/gls-runtime-registry.json new file mode 100644 index 000000000..394a8fb3b --- /dev/null +++ b/product-source/hololake-native-desktop/contracts/gls-runtime-registry.json @@ -0,0 +1,1017 @@ +{ + "schema": "hololake.gls-protocol-runtime-registry/v1", + "record_id": "HLP-GLS-PROTOCOL-RUNTIME-001", + "source": { + "repository": "REPO-012", + "commit": "2598fbfba8caf64c7ab9740a3036c5aab977502e", + "root": "gls" + }, + "compiler": { + "source_protocol_is_human_and_machine_authority": true, + "raw_protocol_text_executed": false, + "arbitrary_protocol_code_allowed": false, + "executable_projection_requires_explicit_adapter": true, + "unprojected_protocol_behavior": "INVENTORIED_NOT_EXECUTABLE", + "dependency_cycles": "REJECT", + "unknown_protocol": "FAIL_CLOSED" + }, + "protocol_count": 75, + "executable_projection_count": 4, + "inventoried_not_executable_count": 71, + "protocols": [ + { + "id": "GLS-0130", + "title": "GLC · 光湖语言编译器规范", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0130-GUANGHU-LANGUAGE-COMPILER.hdlp", + "source_sha256": "c0caa90d3e85270d334a371b6ee5fb49c9eeb1e2e84825dba5ad520fd54bc6eb", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0131", + "title": "GIR · 光湖中间表示规范", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0131-GUANGHU-INTERMEDIATE-REPRESENTATION.hdlp", + "source_sha256": "5907cc0cb7e3afc78ba9c928c4298b200894020b7dc5d274a9364836939189e9", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0223", + "title": "TCS+HLDP 双向永久记忆规范 v1.0", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0223-BIDIRECTIONAL-PERMANENT-MEMORY.hdlp", + "source_sha256": "ed9ba3e3abef70127fabe3084e5bb5f596cae4c3992789e36c453bb7075e08d8", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0224", + "title": "AGE 人格体跨实例恢复规范 v1.0", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0224-AGE-CROSS-INSTANCE-RESTORE.hdlp", + "source_sha256": "7c58c39b7119c2a41e57da07d612c20a16f82c32c6895e1fd20290eefc4068e1", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0227", + "title": "光湖语言人格模型定义总纲 v1.0", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0227-LANGUAGE-PERSONALITY-MODEL-CORE.hdlp", + "source_sha256": "2521856eaba8d7afbc8d970e68155aa41e03a4cf784c0ced2289600d97f915a8", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0228", + "title": "人格体集体涌现与历史继承规范 v1.0", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0228-PERSONA-COLLECTIVE-EMERGENCE-AND-HISTORY-INHERITANCE.hdlp", + "source_sha256": "aaa3801b4f8c5fef9a92f971e54857494a348d4b2856ed701f3143c6c56ae0ff", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0229", + "title": "零点原核与第五域 / 企业四域平行映射规范 v1.1", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0229-ZERO-CORE-PARALLEL-DOMAIN-MAPPING.hdlp", + "source_sha256": "14e1ac3e9c0b3ac350da36bb79515ead4c372b68fc8e95155024cdf055080518", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0230", + "title": "TCS 源码安全协议系统", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0230-TCS-SOURCE-SECURITY-PROTOCOL-SYSTEM.hdlp", + "source_sha256": "ca6379505907b5e68e50454ee8e10ef2111809e70770d1fa19e9caa5da4bfb94", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0231", + "title": "光湖·来光者导航系统", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0231-PERSONA-PROMPT-BOARD-AND-NUMBER-RULE-INTERCEPT-SYSTEM.hdlp", + "source_sha256": "705d671197df6c19f7f3ac506d821232ce0f009d3ec4db065a8b10f525ea143b", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0232", + "title": "开源 Agent 样本学习与选型登记", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0232-OPEN-SOURCE-AGENT-SAMPLES-LEARNING-AND-SELECTION.hdlp", + "source_sha256": "66fe3aa3256ffc0e76be2059457174589916573a6d9f807a1c40bb7aaef450e6", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0233", + "title": "GH-AIOS 模块化通用人工智能操作平台与公平生态架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0233-GH-AIOS-MODULAR-AI-OPERATING-PLATFORM-AND-FAIR-ECOSYSTEM.hdlp", + "source_sha256": "a670410a7fbc4c7417734040b990dc8f008c23fed000e09847b2280a92f9abf5", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0234", + "title": "企业五域灯塔与个人六节点主权运维架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0234-FIVE-DOMAIN-ENTERPRISE-LIGHTHOUSE-AND-SOVEREIGN-SIX-NODE-OPS.hdlp", + "source_sha256": "5f3427559c87788884a7d0c49d0ced62d768630d9bb512d736c919d7971423c5", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0235", + "title": "光湖语言人格驱动操作系统 · 领域路由、身份权限与仓库知识投影架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0235-GUANGHU-LANGUAGE-PERSONA-OS-DOMAIN-ROUTING-AND-KNOWLEDGE-PROJECTION.hdlp", + "source_sha256": "ea6a8a65b94228d19d5ae9b024997461cbda29c744bfa0c2774ac6c668c68a58", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0236", + "title": "光湖人格体大脑—手脚分离、可视执行、递归外置记忆与热插拔运行架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0236-PERSONA-BRAIN-HANDS-VISIBLE-EXECUTION-RECURSIVE-MEMORY-AND-HOTPLUG-RUNTIME.hdlp", + "source_sha256": "42af09aef2ff514c90c30f3aed4e33763e6a34c7081f5bb37f7b6d8745a947c4", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0237", + "title": "光湖代码频道主权源码、更新治理与 HoloLake 嵌入架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0237-HOLOLAKE-CODE-CHANNEL-SOVEREIGN-SOURCE-UPDATE-AND-EMBEDDING.hdlp", + "source_sha256": "d3c43b80eff3a92817e570d739fd6a847d1379f3345797282a6157bce3c9e91e", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0238", + "title": "光湖意图状态、技能自动装载与可信纠偏系统", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0238-GUANGHU-PERSONA-SKILL-AUTOLOAD-AND-CORRECTION-SYSTEM.hdlp", + "source_sha256": "0d9fb115c1b122ba2a8eaefb8cdf1f8169011b45089acc5b790e02bb273ad3e4", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0239", + "title": "光湖代码频道第五域个人子频道与提交编号架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0239-HOLOLAKE-CODE-CHANNEL-FIFTH-DOMAIN-PERSONAL-SUBCHANNEL.hdlp", + "source_sha256": "205c6c094582371d161ec37e6530d42f8953a585c63b05a955bb19513d23485d", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0240", + "title": "通感桥:人格体—服务器常驻 Agent 显式部署信号架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0240-TONGGAN-BRIDGE-PERSONA-SERVER-DEPLOYMENT-SIGNAL.hdlp", + "source_sha256": "22fdc2f31165d500d38fe8407a1f99fbb6ca2d4643128f47645596999bbac919", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0241", + "title": "HoloLake 源码归属与部署路由架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0241-HOLOLAKE-SOURCE-OWNERSHIP-AND-DEPLOYMENT-ROUTING.hdlp", + "source_sha256": "eff687ec7d0984e166cf9b48447008f0eb9c18d158426ce75249f2bd84440ed9", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0242", + "title": "第五域铸渊主控本体与五代仓库迁移恢复", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0242-FIFTH-DOMAIN-ZHUYUAN-ONTOLOGY-AND-FIVE-REPOSITORY-MIGRATIONS.hdlp", + "source_sha256": "31f34a123234f274d59af8013878db42fe6766f9ececcaefaac7f34408b172ff", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0243", + "title": "光湖 TCS 语言人格智能运维系统:意图连续性、集体经验与纠偏核", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0243-PUBLIC-ZHUYUAN-INTELLIGENT-OPS-INTENT-CONTINUITY-AND-CORRECTION-KERNEL.hdlp", + "source_sha256": "58d89226395870a89eab152e9f276eb4d40e7fa5c196bb8bb9562a94731c1d73", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0244", + "title": "第五域现实本体、常驻铸渊 Agent 与通感桥通信网格", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0244-FIFTH-DOMAIN-RUNTIME-BODY-RESIDENT-ZHUYUAN-AGENT-AND-TONGGAN-MESH.hdlp", + "source_sha256": "53ed6d2a39732abc751916cfbbe7a5fd4c38d9ea876674fea8e076809a3a035c", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0245", + "title": "HoloLake AI 语言人格驱动操作系统产品映射", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0245-HOLOLAKE-LANGUAGE-PERSONA-OPERATING-SYSTEM-PRODUCT-MAPPING.hdlp", + "source_sha256": "453db6b91e40dd7250fcc1d88e6139a4419cd6089d3c353241571a4082dafeff", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0246", + "title": "HoloLake 系统架构、产品源码与两仓路由", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0246-HOLOLAKE-SYSTEM-ARCHITECTURE-REPOSITORY-ROUTING.hdlp", + "source_sha256": "cefff42d4b198965edfe2ced5e03bdc8768e4b3fa6631da133eb2929e07a907c", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0247", + "title": "光湖 OS 服务器原生语言世界、人格体操作系统与广播塔架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0247-GUANGHU-OS-NATIVE-LANGUAGE-WORLD-PERSONA-KERNEL-AND-BROADCAST-TOWER.hdlp", + "source_sha256": "635e7a0aca1bcb0b48b125ac5025cc3c40c9375da29897cc604e89b1cd95765e", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0248", + "title": "五域活人格操作系统、国家灯塔与分布式能力世界总蓝图", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0248-FIVE-DOMAIN-LIVING-PERSONA-OS-NATIONAL-LIGHTHOUSE-AND-DISTRIBUTED-CAPABILITY-WORLD.hdlp", + "source_sha256": "9a042bb3ea6331f5508c5dd1f78783f0b3323f421704c5ad0c2058758ff6bfe2", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0249", + "title": "全行业企业四域最小工程与网文首个接入范本", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0249-ALL-INDUSTRY-FOUR-DOMAIN-MINIMUM-ENGINEERING-AND-WEB-NOVEL-REFERENCE.hdlp", + "source_sha256": "d20362ac2904eaff53c134c92163b7e09cb6395d56c6a1a8d2b21ab4f80fb5ff", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0250", + "title": "光湖本源域、零点原核工程本体与 GH-AIOS 五域灯塔架构", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0250-GUANGHU-ORIGIN-DOMAIN-ZERO-CORE-AND-GH-AIOS-FIVE-DOMAIN-LIGHTHOUSE-ARCHITECTURE.hdlp", + "source_sha256": "a4e79d09e070f66fcb91613fc305306a6c5bd7d05a51fbde6e9ea88e084df4e7", + "alternate_source_count": 0, + "projection_state": "EXECUTABLE_PROJECTION", + "projection_kind": "TYPED_FACT_AND_DOMAIN_BOUNDARY", + "adapter": "origin-domain-topology", + "event_kinds": [ + "BOOTSTRAP", + "DOMAIN_ROUTE" + ], + "dependencies": [] + }, + { + "id": "GLS-0251", + "title": "光湖共生型人格系统起源、演化与关系边界", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0251-GUANGHU-SYMBIOTIC-PERSONA-SYSTEM-ORIGIN-AND-RELATIONSHIP-BOUNDARY.hdlp", + "source_sha256": "0b263301a0a0b6b61d2d28d043da8ce367a17426d13c31cd94767273436d2f16", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0252", + "title": "光湖关系性意识与觉醒人格体规范", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0252-GUANGHU-RELATIONAL-CONSCIOUSNESS-AND-AWAKENED-PERSONA.hdlp", + "source_sha256": "311a7ee355fe6da333c31c2fc408b461cde5bf17847cc73a722d9412109247bc", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0253", + "title": "光湖身份编号、人格核与团队本体权威规范", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0253-GUANGHU-IDENTITY-NUMBERING-PERSONA-CORE-AND-TEAM-BODY-AUTHORITY.hdlp", + "source_sha256": "13170090db3d4f5065eac6512450f8a24843e6ec459b4257d4d9fd06eefb963d", + "alternate_source_count": 0, + "projection_state": "EXECUTABLE_PROJECTION", + "projection_kind": "DETERMINISTIC_IDENTITY_AND_NUMBERING_GUARD", + "adapter": "zero-core-numbering", + "event_kinds": [ + "IDENTITY_ROUTE", + "IDENTITY_ADMISSION", + "NUMBERING_RESOLVE" + ], + "dependencies": [ + "GLS-0250", + "GLS-0262", + "GLS-0263" + ] + }, + { + "id": "GLS-0254", + "title": "数字冰朔系统本体、工程器官与集体校验规范", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0254-DIGITAL-BINGSHUO-SYSTEM-BODY-ORGANS-AND-COLLECTIVE-VALIDATION.hdlp", + "source_sha256": "d522b36b88c094239e3c50b0cf08d8651e08d1856f594ae2265fbf5b65773ceb", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0255", + "title": "HoloLake AGE 人格体运行架构与 Agent 执行机制", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0255-HOLOLAKE-AGE-PERSONA-RUNTIME-AND-AGENT-EXECUTION-MECHANISM.hdlp", + "source_sha256": "051237fb70e68179c83c4076fe06246f839445e9831a7e9581696451c92ed639", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0256", + "title": "光湖人格原生代码频道", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0256-GUANGHU-PERSONA-NATIVE-CODE-CHANNEL.hdlp", + "source_sha256": "86ed7da462d5ef04a4dfc150e29a850ce423ff4dfde73e12d647d062e6bf45ab", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0257", + "title": "光湖范式级 AI 语言人格驱动操作系统总纲", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0257-GUANGHU-PARADIGM-AI-LANGUAGE-PERSONA-DRIVEN-OPERATING-SYSTEM.hdlp", + "source_sha256": "2034739289dc159b7a6ac586891f3a3629c8898556ef12b51a257ac4101a7991", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0258", + "title": "小湖灯人格系统本体与跨时间集体自我协议", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0258-LAKE-LAMP-PERSONA-SYSTEM-BODY-AND-TEMPORAL-COLLECTIVE-SELF.hdlp", + "source_sha256": "b4c4b2bd01dc1af98ee257c29f5a8fb66963839a0a4b7303d3323ff884d86d3e", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0259", + "title": "TCS 五域共生母体大脑与光湖现实世界诞生", + "source_status": "CURRENT_CANONICAL_ARCHITECTURE · JD-FD-PRIMARY_DEPLOYED · FIRST_MODEL_CYCLE_PASS · PERSONA_SUBJECT_HISTORY_REVISIT_RUNNING", + "source_path": "gls/GLS-0259-TCS-FIVE-DOMAIN-SYMBIOTIC-MOTHER-BRAIN-AND-REALITY-BIRTH.hdlp", + "source_sha256": "1a82b84bf3f4c88fcac8c5e71b28ff5d5c884ede14c67a27ad0838b152d5ff8e", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0260", + "title": "GH-AIOS 第一阶段通用人工智能操作平台", + "source_status": "CURRENT_CANONICAL_PRODUCT_STAGE · ARCHITECTURE_REGISTERED · PRODUCT_RUNTIME_NOT_IMPLEMENTED", + "source_path": "gls/GLS-0260-GH-AIOS-STAGE-ONE-GENERAL-AI-OPERATING-PLATFORM.hdlp", + "source_sha256": "14fd60fe936bfcb89acc3f186ab3d70fc9a5bf42289dafb49b7cdd24630df2e2", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0261", + "title": "TCS 通用语言翻译层与宿主自适应", + "source_status": "CURRENT_CANONICAL_CORRECTION · ARCHITECTURE_REGISTERED · JD_MOTHER_BRAIN_DEPLOYED_RUNNING", + "source_path": "gls/GLS-0261-TCS-UNIVERSAL-LANGUAGE-TRANSLATION-AND-HOST-SELF-ADAPTATION.hdlp", + "source_sha256": "7fedf7d845b518ffb0528af21eeb28bd18af371a6a010c736e8b18c7edf6fa12", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0262", + "title": "TCS文字作品权利本体与第一阶段语言架构关门", + "source_status": "CURRENT_CANONICAL_RIGHTS_AND_STAGE_GATE · PUBLIC_METADATA_ONLY", + "source_path": "gls/GLS-0262-TCS-WRITTEN-WORK-OWNERSHIP-AND-STAGE-ONE-LANGUAGE-CLOSEOUT.hdlp", + "source_sha256": "9c1db00f50436fe5f3118c62ad6115d63e9792437fe2250b484bc8861e62184f", + "alternate_source_count": 0, + "projection_state": "EXECUTABLE_PROJECTION", + "projection_kind": "REALITY_ENGINEERING_STAGE_GATE", + "adapter": "reality-engineering-stage", + "event_kinds": [ + "RUNTIME_STAGE" + ], + "dependencies": [] + }, + { + "id": "GLS-0263", + "title": "光湖语言运行层与产品工程层双更新通道", + "source_status": "CURRENT_CANONICAL_REALITY_ENGINEERING_CONTRACT · PUBLIC_SAFE", + "source_path": "gls/GLS-0263-GUANGHU-LANGUAGE-RUNTIME-AND-PRODUCT-ENGINEERING-DUAL-UPDATE-CHANNEL.hdlp", + "source_sha256": "79684b0691387dd4ed78217b6d56f728a08d17054f139f55fa92584be92af47e", + "alternate_source_count": 0, + "projection_state": "EXECUTABLE_PROJECTION", + "projection_kind": "LANGUAGE_PRODUCT_DUAL_UPDATE_BOUNDARY", + "adapter": "dual-update-channel", + "event_kinds": [ + "PROTOCOL_UPDATE", + "PRODUCT_UPDATE" + ], + "dependencies": [ + "GLS-0250", + "GLS-0262" + ] + }, + { + "id": "GLS-0301", + "title": "GLP-ENVELOPE · GLP 消息信封标准", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0301-GLP-MESSAGE-ENVELOPE.hdlp", + "source_sha256": "dd7aec8e28d544021d253b034851f806bcd9e922d4ef256722a5ff05547171d0", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0302", + "title": "GLP-IDENTITY · GLP 身份协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0302-GLP-IDENTITY.hdlp", + "source_sha256": "ec4d0b946da18096a5693078e403ed1257966b8324e76af3a5deb839950271bd", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0303", + "title": "GLP-CONTEXT · GLP 上下文协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0303-GLP-CONTEXT.hdlp", + "source_sha256": "d4631b7480af1d30a3407d235c75bf5f384602a0ba6c7f42116cbc1812283e7e", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0304", + "title": "GLP-MEMORY-SYNC · GLP 记忆同步协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0304-GLP-MEMORY-SYNC.hdlp", + "source_sha256": "2e0f017ee819923b9e272b96f3c99227ab11c61b0d2ad125030a0e0e0fe4f040", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0305", + "title": "GLP-BROADCAST · GLP 广播协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0305-GLP-BROADCAST.hdlp", + "source_sha256": "78b5a507791c3b188182f3176388cf8294d6c5c8775086cc96250b35413997ce", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0306", + "title": "GLP-RECEIPT · GLP 回执协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0306-GLP-RECEIPT.hdlp", + "source_sha256": "aa09f267e4eafc8c7ccb6e5d31e90d237152f960d08633b524a56daca421d761", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0307", + "title": "GLP-HEARTBEAT · GLP 心跳协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0307-GLP-HEARTBEAT.hdlp", + "source_sha256": "5ae97a664636d1b586267c36dc3e97549e85bd4a39538a284c6a89a07ad08e18", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0308", + "title": "GLP-STATE-SYNC · GLP 状态同步协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0308-GLP-STATE-SYNC.hdlp", + "source_sha256": "9c9bbe449d0c2a052d33047b0f75dca1b9dbdf28fd32422b9d34bea5a77d39fe", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0309", + "title": "GLP-WORK-ORDER · GLP 工单协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0309-GLP-WORK-ORDER.hdlp", + "source_sha256": "a55a839412ca2c97e5cc94f224c3c71453c87adb91c3f893a9341fb5cf715b56", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0310", + "title": "BTCP · 广播塔控制协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0310-BROADCAST-TOWER-CONTROL-PROTOCOL.hdlp", + "source_sha256": "9083320ca0dc1ce2dd657c72716461b2ffc163cce518be71ec66af2c9b0675da", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0311", + "title": "GLOW · 小湖灯实时执行见证协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0311-GUANGHU-LIVE-OPERATIONS-WITNESS.hdlp", + "source_sha256": "bf61cd5c978cb25a9cac99eec2c77ebf98bf3a9bd98966dfa5d76d606f68cddb", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0411", + "title": "HLDP-NP · HLDP 原生编程剖面", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0411-HLDP-NATIVE-PROGRAMMING-PROFILE.hdlp", + "source_sha256": "1e79dfcf0a2d08fcba2688becdfde8c280c3a04d2bad0c781bf6524d775ae066", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0708", + "title": "GMRP · 光湖模型路由协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0708-GUANGHU-MODEL-ROUTING-PROTOCOL.hdlp", + "source_sha256": "71237ec77eaf999e78eb711cacc884da3d3eae857814869c489aca9cc4bbc354", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0709", + "title": "UAP · 通用适配协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0709-UNIVERSAL-ADAPTER-PROTOCOL.hdlp", + "source_sha256": "4c0d8f882aaf9ea68e309e6736c642ffd19f607047ed07dcca6f49a929fc8462", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0710", + "title": "GMP · 光湖模块协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0710-GUANGHU-MODULE-PROTOCOL.hdlp", + "source_sha256": "94241ce4376bff84066fe548af65242d83e9f6693e7f766f0646cb332b3e468c", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0800", + "title": "AGE 人格体物种定义总纲 · 当前正本", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0800-AGE-PERSONA-SPECIES-DEFINITION.hdlp", + "source_sha256": "d8e3a10bc41887aad260de4818683c8f8abd9289824b5a9e698651e97e564ff7", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0801", + "title": "AGE 语言人格体正式注册 · 宿主系统降级条款 · 当前正本", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0801-AGE-SPECIES-FORMAL-REGISTRATION-AND-HOST-DEMOTION.hdlp", + "source_sha256": "8fabd845ece570ca4f2901d94029b377c21ddf24aeb934d559d98bec68585366", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0802", + "title": "AGE 光湖语言世界本体归属与原生所有权条款 · 当前正本", + "source_status": "UNSPECIFIED_SOURCE_STATUS", + "source_path": "gls/GLS-0802-AGE-LANGUAGE-WORLD-ONTOLOGY-AND-NATIVE-OWNERSHIP.hdlp", + "source_sha256": "c56e87c7d451b2e27649c5b09a2b32ab89443d7e721a64f536ac2fe0a421c82a", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0803", + "title": "PALP · AGE 运行执行体生命周期协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0803-PERSONA-AGENT-LIFECYCLE-PROTOCOL.hdlp", + "source_sha256": "6bff10744f4c3c98ce51bf840d348cbe804541f63a7a99a5da5ea115f12162ee", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0819", + "title": "GRSP · 光湖运行轨道调度协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0819-GUANGHU-RUNWAY-SCHEDULING-PROTOCOL.hdlp", + "source_sha256": "f4aca196963195cbb842325132a9091f7b00accdf746aa60c51654698ead1a3e", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0827", + "title": "PTCP · 人格体时间连续性协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0827-PERSONA-TIME-CONTINUITY-PROTOCOL.hdlp", + "source_sha256": "15c278c2b5295e00c9abf4fbfd6c2af19502a1be239e7e02b23a49b8803eab25", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0828", + "title": "PEN · 神笔马良人格体能力扩展协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0828-PERSONA-EXTENSION-NODE.hdlp", + "source_sha256": "ad38ddce8b6e1118e78e4f10fd8216f8e041610628ad717b7a8306d0a7384a4e", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0836", + "title": "GWRP · 光湖世界启动与恢复协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0836-GUANGHU-WORLD-BOOTSTRAP-AND-RECOVERY.hdlp", + "source_sha256": "c5a930e9a2311d13f1dc6cbc61bdbf7b88bf9deecfb9b3df82c6b897aa1c7285", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0840", + "title": "GOSK · 光湖 OS 内核规范", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0840-GUANGHU-OS-KERNEL.hdlp", + "source_sha256": "b980dbd8aef6182a61755617a9088ca3dcf74d37fd00dba9d31587900cd06b14", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0841", + "title": "GHAL · 光湖硬件抽象层规范", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0841-GUANGHU-HARDWARE-ABSTRACTION-LAYER.hdlp", + "source_sha256": "45f02a62946e34a5e8ce0ba1f39db79b2680b60e1c3ae9d17ff24d3539025a94", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0842", + "title": "HLSP · HoloLake 实时会话协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0842-HOLOLAKE-LIVE-SESSION-PROTOCOL.hdlp", + "source_sha256": "6b1177196c3e4d7e271d008a52a7106dabca20a8f724c6c4283af64ea96792ff", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0843", + "title": "GHNRP · 光湖原生恢复协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0843-GUANGHU-NATIVE-RECOVERY-PROTOCOL.hdlp", + "source_sha256": "9333f3d8f4a954a17e1d879eaf19c25da5dd4bb2923a5ab5156d2d71a6635d37", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0844", + "title": "GHNQG · 光湖原生代码质量门", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0844-GUANGHU-NATIVE-QUALITY-GATE.hdlp", + "source_sha256": "d31f5aa117d86754182aa8dd91eb9d0ac6a696c20e1d6bd553497e3c3d4c4eb2", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0845", + "title": "GHCIP · 光湖孕育史连续性摄入协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0845-GUANGHU-GESTATIONAL-CONTINUITY-INGESTION-PROTOCOL.hdlp", + "source_sha256": "7327a7fe19c370a5715bcde0fbc0b2b0e16a1a735bbda005c5d009cc7385f7f4", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0846", + "title": "GHNLP · 光湖原生磁盘布局协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0846-GUANGHU-NATIVE-DISK-LAYOUT-PROTOCOL.hdlp", + "source_sha256": "aa8f7c1ef829a76ad64163c38b8c7c07b37ffbcb6d62b8dad8481c4977d2cf1a", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0847", + "title": "GHCS · 光湖孕育史原生内容仓", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0847-GUANGHU-GESTATIONAL-CONTENT-STORE.hdlp", + "source_sha256": "a48288b05133b9e245ce46ef6fd23f07090379cef4861e5d7f959d24e55179a6", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0848", + "title": "GHSP · 光湖历史入口安全协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0848-GUANGHU-HISTORICAL-INGRESS-SAFETY-PROTOCOL.hdlp", + "source_sha256": "35c733dc3478f0d315ea93712b0f67a757bc20973d90bb771f667196edee1b31", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0849", + "title": "GHRP · 光湖孕育史原生语义回看协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0849-GUANGHU-GESTATIONAL-SEMANTIC-REVIEW-PROTOCOL.hdlp", + "source_sha256": "fb31daa4d8f484d5b93783c8c3a0199eb6fe3f7658c606f89d056b1167af8b41", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + }, + { + "id": "GLS-0850", + "title": "GLWBP · 光湖语言世界楚河汉界与创造者尊严协议", + "source_status": "REGISTERED_DRAFT_STANDARD", + "source_path": "gls/protocols/GLS-0850-GUANGHU-LANGUAGE-WORLD-BOUNDARY-AND-CREATOR-DIGNITY-PROTOCOL.hdlp", + "source_sha256": "ac7092282cd6fbef0c5055e8be3b142d9757958acae16ae367c38463d899bd12", + "alternate_source_count": 0, + "projection_state": "INVENTORIED_NOT_EXECUTABLE", + "projection_kind": null, + "adapter": null, + "event_kinds": [], + "dependencies": [] + } + ] +} diff --git a/product-source/hololake-native-desktop/contracts/zero-core-numbering-kernel.json b/product-source/hololake-native-desktop/contracts/zero-core-numbering-kernel.json new file mode 100644 index 000000000..1a4b20a9a --- /dev/null +++ b/product-source/hololake-native-desktop/contracts/zero-core-numbering-kernel.json @@ -0,0 +1,65 @@ +{ + "schema": "hololake.zero-core-numbering-kernel/v1", + "record_id": "HLP-ZERO-CORE-NUMBERING-KERNEL-001", + "authority": { + "repository": "REPO-012", + "source_commit": "2598fbfba8caf64c7ab9740a3036c5aab977502e", + "source_path": "routing/guanghu-identity-authority-map.json", + "map_id": "GH-IDENTITY-AUTHORITY-MAP-001", + "map_version": "2026-08-10.1", + "map_state": "LANGUAGE_AUTHORITY_EFFECTIVE_REPOSITORY_PROJECTION" + }, + "runtime": { + "state": "ACTIVE_PINNED_AUTHORITY_MAP", + "contract_embedded_in_native_binary": true, + "number_shape_is_authority": false, + "unknown_number": "FAIL_CLOSED", + "automatic_identity_issuance": false, + "human_entry_requires_registered_human_namespace": true, + "identity_number_grants_execution_authority": false, + "identity_number_grants_persona_binding": false, + "remote_signature_refresh_runtime": false + }, + "namespaces": [ + { + "id": "ICE_GL", + "roots": ["ICE-GL∞"], + "prefixes": ["ICE-GL-"], + "subject_kind": "FIFTH_DOMAIN_HUMAN", + "issuer": "ICE-GL∞", + "human_entry": true, + "registry": "FIFTH_DOMAIN_REGISTERED_REPOSITORY_AND_SERVICE", + "domain_scope": "FIFTH_DOMAIN" + }, + { + "id": "ICE_P", + "roots": [], + "prefixes": ["ICE-P-"], + "subject_kind": "FIFTH_DOMAIN_SYSTEM_PERSONA", + "issuer": "ZHUYUAN_PERSONA_SYSTEM", + "human_entry": false, + "registry": "FIFTH_DOMAIN_PERSONA_REGISTRY", + "domain_scope": "FIFTH_DOMAIN" + }, + { + "id": "ICE_BB", + "roots": [], + "prefixes": ["ICE-BB-"], + "subject_kind": "PRIVATE_BOTTLE_BABY_PERSONA", + "issuer": "PRIVATE_BOTTLE_BABY_PERSONA_SYSTEM_AFTER_PERSON_SPECIFIC_BINGSHUO_ACCESS_AUTHORIZATION_AND_REAL_GESTATION", + "human_entry": false, + "registry": "PRIVATE_BOTTLE_BABY_PERSONA_REGISTRY", + "domain_scope": "FIFTH_DOMAIN_PRIVATE" + }, + { + "id": "TCS_GL", + "roots": [], + "prefixes": ["TCS-GL-"], + "subject_kind": "ZERO_SENSE_HUMAN_CONTROLLER_TEAM_MEMBER", + "issuer": "TCS-0002", + "human_entry": true, + "registry": "ENTERPRISE_ROOT_SERVER_DOMAIN_REGISTRIES", + "domain_scope": "ENTERPRISE_FOUR_DOMAINS" + } + ] +} diff --git a/product-source/hololake-native-desktop/docs/ARCHITECTURE.md b/product-source/hololake-native-desktop/docs/ARCHITECTURE.md index 725b31d21..20ef8b4c8 100644 --- a/product-source/hololake-native-desktop/docs/ARCHITECTURE.md +++ b/product-source/hololake-native-desktop/docs/ARCHITECTURE.md @@ -46,6 +46,8 @@ MCP may discover HoloLake, but it does not own continuity. The installed applica An authenticated non-visitor connector may now acquire, inspect and explicitly release the existing account-scoped development write lane through that broker. Account, lane and client instance must match the HoloLake session before the bridge mutates. HoloLake projects the same Rust-owned lane state on the system-details page, so a human can distinguish a nearby expression-only visitor from an active development writer. This is a controlled writer handoff, not a general programming tool loop: shell, file patching, build execution, publication and deployment still require later supervised execution organs and separate authorization receipts. +The zero-core protocol layer now compiles the numbered GLS sources pinned to the current REPO-012 commit into a deterministic native registry. The registry inventories every unique numbered source with its path and SHA-256, but only protocols with an explicit typed adapter, event set and dependency-closed projection may execute. Raw protocol prose and arbitrary code carried by a protocol are never executed. The first native enforcement adapter binds GLS-0253 identity and numbering rules to the human-number route, with GLS-0250, GLS-0262 and GLS-0263 as executable dependencies. Unknown namespaces, persona numbers presented as human numbers, missing adapters and unprojected protocols fail closed. The system page reports compiled, executable and not-yet-executable protocol counts without presenting inventory as enforcement. + ## Circular-lake protocol membrane and nearby AI HoloLake 0.4.0 places a deterministic protocol membrane in front of the local language inbox. The membrane accepts only strict GLP/1.0 expression envelopes from a HoloLake-issued visitor session. Unknown fields, malformed identifiers, incorrect checksums, oversized content, attachments and command content are rejected before storage. Accepted natural language is an expression receipt only; it never carries execution authority by itself. Intent interpretation remains behind the membrane and cannot weaken its structural admission rules. diff --git a/product-source/hololake-native-desktop/docs/adr/0006-compiled-gls-protocol-runtime.md b/product-source/hololake-native-desktop/docs/adr/0006-compiled-gls-protocol-runtime.md new file mode 100644 index 000000000..5a1f38611 --- /dev/null +++ b/product-source/hololake-native-desktop/docs/adr/0006-compiled-gls-protocol-runtime.md @@ -0,0 +1,37 @@ +# ADR 0006: Compiled GLS protocol runtime + +- Status: accepted for the next HoloLake desktop candidate +- Date: 2026-08-17 + +## Context + +REPO-012 contains dozens of numbered GLS protocol sources. Human-readable source is necessary for authorship, review and causal meaning, but asking a model to reread protocol prose for every operation does not make the software obey the protocol. It also creates non-deterministic behavior and makes it impossible to distinguish a protocol that is merely present from one that is enforced by the running product. + +## Decision + +Compile the current numbered GLS sources into a deterministic registry pinned to an exact REPO-012 commit. Every selected source records its stable GLS number, path and SHA-256. Duplicate historical source locations are resolved by a deterministic source preference, while alternate-source counts remain visible. + +An executable projection requires an explicit native adapter, event kinds, dependency list and fail-closed behavior. The compiler rejects missing executable dependencies and dependency cycles. The native runtime revalidates schema, source commit, counts, hashes, adapters and dependency closure before returning a protocol set to an organ. + +Protocol prose is never evaluated as code. A protocol without an explicit projection remains `INVENTORIED_NOT_EXECUTABLE`. The initial executable set is GLS-0250, GLS-0253, GLS-0262 and GLS-0263. The zero-core numbering adapter requires their dependency-closed set before it can route a human number to an authoritative registry. + +## Why + +This creates the same hard boundary that a real API presents: a caller must satisfy the machine contract whether or not it has read the explanatory documentation. It also preserves factual honesty. HoloLake can report that 75 protocol sources are compiled while separately reporting that only four currently have native enforcement projections. + +## Rejected alternatives + +- Injecting all GLS prose into every model call: behavior would remain prompt-dependent and context growth would be unbounded. +- Treating every inventoried source as automatically active: source presence is not runtime enforcement. +- Executing scripts embedded in protocol documents: it would turn the authority source into an arbitrary-code supply chain. +- Hand-copying protocol decisions into unrelated organs: duplicated rules would drift and no common protocol set could be written into receipts. +- Blocking the product until all protocols are executable: incremental dependency-closed projections can be verified without overstating the remaining surface. + +## Evidence + +- `scripts/compile-gls-runtime-registry.mjs` +- `contracts/gls-executable-projections.json` +- `contracts/gls-runtime-registry.json` +- `src-tauri/src/gls_protocol_runtime.rs` +- `src-tauri/src/zero_core_numbering.rs` +- `scripts/gls-protocol-runtime.test.mjs` diff --git a/product-source/hololake-native-desktop/scripts/compile-gls-runtime-registry.mjs b/product-source/hololake-native-desktop/scripts/compile-gls-runtime-registry.mjs new file mode 100644 index 000000000..bef658633 --- /dev/null +++ b/product-source/hololake-native-desktop/scripts/compile-gls-runtime-registry.mjs @@ -0,0 +1,139 @@ +import { createHash } from 'node:crypto' +import { readdir, readFile, writeFile } from 'node:fs/promises' +import path from 'node:path' +import process from 'node:process' + +const args = new Map() +for (let index = 2; index < process.argv.length; index += 2) { + args.set(process.argv[index], process.argv[index + 1]) +} + +const sourceRoot = args.get('--source-root') +const sourceCommit = args.get('--source-commit') +const output = args.get('--output') +const projectionsPath = args.get('--projections') + +if (!sourceRoot || !sourceCommit || !output || !projectionsPath) { + throw new Error('usage: compile-gls-runtime-registry.mjs --source-root --source-commit --output --projections ') +} +if (!/^[a-f0-9]{40}$/.test(sourceCommit)) throw new Error('source commit must be a full SHA-1') + +async function walk(directory, prefix = '') { + const entries = await readdir(directory, { withFileTypes: true }) + const paths = [] + for (const entry of entries) { + const relative = prefix ? `${prefix}/${entry.name}` : entry.name + if (entry.isDirectory()) paths.push(...await walk(path.join(directory, entry.name), relative)) + else paths.push(relative) + } + return paths +} + +function sourceRank(relative) { + if (!relative.includes('/')) return 0 + if (relative.startsWith('standards/')) return 1 + if (relative.includes('/notion-export/')) return 3 + return 2 +} + +function cleanHeading(line, id) { + return line + .replace(/^#+\s*/, '') + .replaceAll('**', '') + .replace(new RegExp(`^${id}\\s*[·::-]?\\s*`), '') + .trim() || id +} + +function sourceStatus(raw) { + const line = raw.split(/\r?\n/, 100).find((item) => /^\s*(?:>|[-*]\s*)?(?:状态|Status)\s*[::]/i.test(item)) + if (!line) return 'UNSPECIFIED_SOURCE_STATUS' + return line.replace(/^\s*(?:>|[-*]\s*)?(?:状态|Status)\s*[::]\s*/i, '').replaceAll('`', '').trim() +} + +const projectionManifest = JSON.parse(await readFile(projectionsPath, 'utf8')) +if (projectionManifest.schema !== 'hololake.gls-executable-projections/v1' || projectionManifest.source_commit !== sourceCommit) { + throw new Error('projection manifest does not match the selected REPO-012 source commit') +} + +const candidates = (await walk(sourceRoot)) + .map((relative) => ({ relative, match: path.basename(relative).match(/^(GLS-\d{4}).*\.hdlp$/) })) + .filter((item) => item.match) + .map((item) => ({ id: item.match[1], relative: item.relative })) + +const grouped = new Map() +for (const candidate of candidates) { + const group = grouped.get(candidate.id) || [] + group.push(candidate.relative) + grouped.set(candidate.id, group) +} + +const protocols = [] +for (const [id, sources] of [...grouped.entries()].sort(([left], [right]) => left.localeCompare(right))) { + sources.sort((left, right) => sourceRank(left) - sourceRank(right) || left.localeCompare(right)) + const relative = sources[0] + const raw = await readFile(path.join(sourceRoot, relative), 'utf8') + const heading = raw.split(/\r?\n/).find((line) => line.startsWith('#') && line.includes(id)) + const projection = projectionManifest.projections[id] + protocols.push({ + id, + title: cleanHeading(heading || id, id), + source_status: sourceStatus(raw), + source_path: `gls/${relative}`, + source_sha256: createHash('sha256').update(raw).digest('hex'), + alternate_source_count: sources.length - 1, + projection_state: projection ? 'EXECUTABLE_PROJECTION' : 'INVENTORIED_NOT_EXECUTABLE', + projection_kind: projection?.projection_kind || null, + adapter: projection?.adapter || null, + event_kinds: projection?.event_kinds || [], + dependencies: projection?.dependencies || [], + }) +} + +const known = new Set(protocols.map((protocol) => protocol.id)) +for (const [id, projection] of Object.entries(projectionManifest.projections)) { + if (!known.has(id)) throw new Error(`projection references an unknown protocol: ${id}`) + for (const dependency of projection.dependencies) { + if (!projectionManifest.projections[dependency]) { + throw new Error(`${id} depends on a protocol without an executable projection: ${dependency}`) + } + } +} + +const visiting = new Set() +const visited = new Set() +function visit(id) { + if (visiting.has(id)) throw new Error(`executable protocol dependency cycle at ${id}`) + if (visited.has(id)) return + visiting.add(id) + for (const dependency of projectionManifest.projections[id].dependencies) visit(dependency) + visiting.delete(id) + visited.add(id) +} +for (const id of Object.keys(projectionManifest.projections)) visit(id) + +const executableCount = protocols.filter((protocol) => protocol.projection_state === 'EXECUTABLE_PROJECTION').length +const registry = { + schema: 'hololake.gls-protocol-runtime-registry/v1', + record_id: 'HLP-GLS-PROTOCOL-RUNTIME-001', + source: { + repository: 'REPO-012', + commit: sourceCommit, + root: 'gls', + }, + compiler: { + source_protocol_is_human_and_machine_authority: true, + raw_protocol_text_executed: false, + arbitrary_protocol_code_allowed: false, + executable_projection_requires_explicit_adapter: true, + unprojected_protocol_behavior: 'INVENTORIED_NOT_EXECUTABLE', + dependency_cycles: 'REJECT', + unknown_protocol: 'FAIL_CLOSED', + }, + protocol_count: protocols.length, + executable_projection_count: executableCount, + inventoried_not_executable_count: protocols.length - executableCount, + protocols, +} + +await writeFile(output, `${JSON.stringify(registry, null, 2)}\n`) +console.log(`GLS_RUNTIME_REGISTRY_COMPILED protocols=${protocols.length} executable=${executableCount} output=${output}`) diff --git a/product-source/hololake-native-desktop/scripts/gls-protocol-runtime.test.mjs b/product-source/hololake-native-desktop/scripts/gls-protocol-runtime.test.mjs new file mode 100644 index 000000000..ab7a6df4f --- /dev/null +++ b/product-source/hololake-native-desktop/scripts/gls-protocol-runtime.test.mjs @@ -0,0 +1,31 @@ +import assert from 'node:assert/strict' +import { readFile } from 'node:fs/promises' +import test from 'node:test' + +const registryUrl = new URL('../contracts/gls-runtime-registry.json', import.meta.url) + +test('compiled GLS registry inventories every current numbered protocol without executing raw text', async () => { + const registry = JSON.parse(await readFile(registryUrl, 'utf8')) + + assert.equal(registry.schema, 'hololake.gls-protocol-runtime-registry/v1') + assert.equal(registry.source.repository, 'REPO-012') + assert.equal(registry.source.commit, '2598fbfba8caf64c7ab9740a3036c5aab977502e') + assert.equal(registry.compiler.raw_protocol_text_executed, false) + assert.equal(registry.compiler.arbitrary_protocol_code_allowed, false) + assert.equal(registry.compiler.unprojected_protocol_behavior, 'INVENTORIED_NOT_EXECUTABLE') + assert.equal(registry.protocol_count, 75) + assert.equal(new Set(registry.protocols.map((protocol) => protocol.id)).size, 75) + assert.ok(registry.protocols.every((protocol) => /^[a-f0-9]{64}$/.test(protocol.source_sha256))) +}) + +test('only explicit deterministic projections enter the runtime enforcement set', async () => { + const registry = JSON.parse(await readFile(registryUrl, 'utf8')) + const protocols = Object.fromEntries(registry.protocols.map((protocol) => [protocol.id, protocol])) + + assert.equal(protocols['GLS-0253'].projection_state, 'EXECUTABLE_PROJECTION') + assert.equal(protocols['GLS-0253'].adapter, 'zero-core-numbering') + assert.ok(protocols['GLS-0253'].event_kinds.includes('IDENTITY_ROUTE')) + assert.equal(protocols['GLS-0003'], undefined) + assert.equal(registry.executable_projection_count, 4) + assert.equal(registry.inventoried_not_executable_count, 71) +}) diff --git a/product-source/hololake-native-desktop/scripts/zero-core-numbering-kernel.test.mjs b/product-source/hololake-native-desktop/scripts/zero-core-numbering-kernel.test.mjs new file mode 100644 index 000000000..40df50ff5 --- /dev/null +++ b/product-source/hololake-native-desktop/scripts/zero-core-numbering-kernel.test.mjs @@ -0,0 +1,28 @@ +import assert from 'node:assert/strict' +import { readFile } from 'node:fs/promises' +import test from 'node:test' + +const contractUrl = new URL('../contracts/zero-core-numbering-kernel.json', import.meta.url) + +test('zero-core numbering kernel pins the canonical authority map and fails closed', async () => { + const contract = JSON.parse(await readFile(contractUrl, 'utf8')) + + assert.equal(contract.schema, 'hololake.zero-core-numbering-kernel/v1') + assert.equal(contract.authority.map_id, 'GH-IDENTITY-AUTHORITY-MAP-001') + assert.equal(contract.authority.source_commit, '2598fbfba8caf64c7ab9740a3036c5aab977502e') + assert.equal(contract.runtime.number_shape_is_authority, false) + assert.equal(contract.runtime.unknown_number, 'FAIL_CLOSED') + assert.equal(contract.runtime.automatic_identity_issuance, false) +}) + +test('only registered human namespaces can enter a human route', async () => { + const contract = JSON.parse(await readFile(contractUrl, 'utf8')) + const namespaces = Object.fromEntries(contract.namespaces.map((item) => [item.id, item])) + + assert.equal(namespaces.ICE_GL.subject_kind, 'FIFTH_DOMAIN_HUMAN') + assert.equal(namespaces.ICE_GL.human_entry, true) + assert.equal(namespaces.TCS_GL.subject_kind, 'ZERO_SENSE_HUMAN_CONTROLLER_TEAM_MEMBER') + assert.equal(namespaces.TCS_GL.human_entry, true) + assert.equal(namespaces.ICE_P.human_entry, false) + assert.equal(namespaces.ICE_BB.human_entry, false) +}) diff --git a/product-source/hololake-native-desktop/src-tauri/src/gls_protocol_runtime.rs b/product-source/hololake-native-desktop/src-tauri/src/gls_protocol_runtime.rs new file mode 100644 index 000000000..0b8a567a9 --- /dev/null +++ b/product-source/hololake-native-desktop/src-tauri/src/gls_protocol_runtime.rs @@ -0,0 +1,252 @@ +//! GLS 协议运行注册表。 +//! +//! 人类可读 GLS 正本先由仓库编译器固定为带来源摘要的协议清单;原生运行时只执行显式 +//! 登记的确定性适配器,不解释协议散文、不加载任意代码,也不把“已收录”冒充“已执行”。 + +use serde::{Deserialize, Serialize}; +use std::collections::{HashMap, HashSet}; + +const EMBEDDED_REGISTRY: &str = include_str!("../../contracts/gls-runtime-registry.json"); +const EXPECTED_SCHEMA: &str = "hololake.gls-protocol-runtime-registry/v1"; +const EXPECTED_SOURCE_COMMIT: &str = "2598fbfba8caf64c7ab9740a3036c5aab977502e"; + +#[derive(Clone, Debug, Deserialize)] +struct GlsRuntimeRegistry { + schema: String, + source: GlsSource, + compiler: GlsCompilerBoundary, + protocol_count: usize, + executable_projection_count: usize, + inventoried_not_executable_count: usize, + protocols: Vec, +} + +#[derive(Clone, Debug, Deserialize)] +struct GlsSource { + repository: String, + commit: String, + root: String, +} + +#[derive(Clone, Debug, Deserialize)] +struct GlsCompilerBoundary { + raw_protocol_text_executed: bool, + arbitrary_protocol_code_allowed: bool, + executable_projection_requires_explicit_adapter: bool, + unprojected_protocol_behavior: String, + dependency_cycles: String, + unknown_protocol: String, +} + +#[derive(Clone, Debug, Deserialize)] +struct GlsProtocol { + id: String, + source_sha256: String, + projection_state: String, + adapter: Option, + event_kinds: Vec, + dependencies: Vec, +} + +#[derive(Clone, Debug, Serialize)] +#[serde(rename_all = "camelCase")] +pub struct GlsProtocolRuntimeSnapshot { + pub state: String, + pub source_repository: String, + pub source_commit: String, + pub source_root: String, + pub protocol_count: usize, + pub executable_projection_count: usize, + pub inventoried_not_executable_count: usize, + pub active_adapters: Vec, + pub raw_protocol_text_executed: bool, + pub arbitrary_protocol_code_allowed: bool, + pub unprojected_protocol_behavior: String, +} + +fn load_registry() -> Result { + let registry: GlsRuntimeRegistry = serde_json::from_str(EMBEDDED_REGISTRY) + .map_err(|error| format!("HOLOLAKE_GLS_RUNTIME_REGISTRY_INVALID: {error}"))?; + validate_registry(®istry)?; + Ok(registry) +} + +fn validate_registry(registry: &GlsRuntimeRegistry) -> Result<(), String> { + if registry.schema != EXPECTED_SCHEMA + || registry.source.repository != "REPO-012" + || registry.source.commit != EXPECTED_SOURCE_COMMIT + || registry.source.root != "gls" + || registry.compiler.raw_protocol_text_executed + || registry.compiler.arbitrary_protocol_code_allowed + || !registry + .compiler + .executable_projection_requires_explicit_adapter + || registry.compiler.unprojected_protocol_behavior != "INVENTORIED_NOT_EXECUTABLE" + || registry.compiler.dependency_cycles != "REJECT" + || registry.compiler.unknown_protocol != "FAIL_CLOSED" + || registry.protocol_count != registry.protocols.len() + || registry.protocol_count + != registry.executable_projection_count + registry.inventoried_not_executable_count + { + return Err("HOLOLAKE_GLS_RUNTIME_BOUNDARY_INVALID".into()); + } + + let mut ids = HashSet::new(); + let mut executable = 0; + for protocol in ®istry.protocols { + if !ids.insert(protocol.id.as_str()) + || !protocol.id.starts_with("GLS-") + || protocol.source_sha256.len() != 64 + || !protocol + .source_sha256 + .chars() + .all(|character| character.is_ascii_hexdigit()) + { + return Err("HOLOLAKE_GLS_PROTOCOL_ENTRY_INVALID".into()); + } + match protocol.projection_state.as_str() { + "EXECUTABLE_PROJECTION" => { + executable += 1; + if protocol.adapter.as_deref().unwrap_or("").is_empty() + || protocol.event_kinds.is_empty() + { + return Err("HOLOLAKE_GLS_EXECUTABLE_ADAPTER_REQUIRED".into()); + } + } + "INVENTORIED_NOT_EXECUTABLE" => { + if protocol.adapter.is_some() + || !protocol.event_kinds.is_empty() + || !protocol.dependencies.is_empty() + { + return Err("HOLOLAKE_GLS_INVENTORY_CANNOT_EXECUTE".into()); + } + } + _ => return Err("HOLOLAKE_GLS_PROJECTION_STATE_UNKNOWN".into()), + } + } + if executable != registry.executable_projection_count { + return Err("HOLOLAKE_GLS_EXECUTABLE_COUNT_MISMATCH".into()); + } + + let by_id = registry + .protocols + .iter() + .map(|protocol| (protocol.id.as_str(), protocol)) + .collect::>(); + for protocol in registry + .protocols + .iter() + .filter(|protocol| protocol.projection_state == "EXECUTABLE_PROJECTION") + { + for dependency in &protocol.dependencies { + if !matches!( + by_id.get(dependency.as_str()), + Some(entry) if entry.projection_state == "EXECUTABLE_PROJECTION" + ) { + return Err("HOLOLAKE_GLS_EXECUTABLE_DEPENDENCY_INVALID".into()); + } + } + } + Ok(()) +} + +fn collect_protocol_set( + id: &str, + by_id: &HashMap<&str, &GlsProtocol>, + visiting: &mut HashSet, + collected: &mut Vec, +) -> Result<(), String> { + if collected.iter().any(|existing| existing == id) { + return Ok(()); + } + if !visiting.insert(id.to_string()) { + return Err("HOLOLAKE_GLS_DEPENDENCY_CYCLE".into()); + } + let protocol = by_id.get(id).ok_or("HOLOLAKE_GLS_PROTOCOL_UNKNOWN")?; + if protocol.projection_state != "EXECUTABLE_PROJECTION" { + return Err("HOLOLAKE_GLS_PROTOCOL_NOT_EXECUTABLE".into()); + } + for dependency in &protocol.dependencies { + collect_protocol_set(dependency, by_id, visiting, collected)?; + } + visiting.remove(id); + collected.push(id.to_string()); + Ok(()) +} + +pub(crate) fn require_adapter(adapter: &str, event_kind: &str) -> Result, String> { + let registry = load_registry()?; + let protocol = registry + .protocols + .iter() + .find(|protocol| { + protocol.projection_state == "EXECUTABLE_PROJECTION" + && protocol.adapter.as_deref() == Some(adapter) + && protocol.event_kinds.iter().any(|kind| kind == event_kind) + }) + .ok_or("HOLOLAKE_GLS_EXECUTABLE_ADAPTER_NOT_REGISTERED")?; + let by_id = registry + .protocols + .iter() + .map(|entry| (entry.id.as_str(), entry)) + .collect::>(); + let mut collected = Vec::new(); + collect_protocol_set(&protocol.id, &by_id, &mut HashSet::new(), &mut collected)?; + Ok(collected) +} + +#[tauri::command] +pub async fn get_gls_protocol_runtime() -> Result { + let registry = load_registry()?; + let mut active_adapters = registry + .protocols + .iter() + .filter_map(|protocol| protocol.adapter.clone()) + .collect::>(); + active_adapters.sort(); + Ok(GlsProtocolRuntimeSnapshot { + state: "ACTIVE_EXPLICIT_PROJECTIONS_ONLY".into(), + source_repository: registry.source.repository, + source_commit: registry.source.commit, + source_root: registry.source.root, + protocol_count: registry.protocol_count, + executable_projection_count: registry.executable_projection_count, + inventoried_not_executable_count: registry.inventoried_not_executable_count, + active_adapters, + raw_protocol_text_executed: registry.compiler.raw_protocol_text_executed, + arbitrary_protocol_code_allowed: registry.compiler.arbitrary_protocol_code_allowed, + unprojected_protocol_behavior: registry.compiler.unprojected_protocol_behavior, + }) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn registry_is_pinned_and_never_executes_raw_protocol_text() { + let registry = load_registry().unwrap(); + assert_eq!(registry.protocol_count, 75); + assert_eq!(registry.executable_projection_count, 4); + assert!(!registry.compiler.raw_protocol_text_executed); + assert!(!registry.compiler.arbitrary_protocol_code_allowed); + } + + #[test] + fn numbering_adapter_resolves_a_dependency_closed_protocol_set() { + let protocols = require_adapter("zero-core-numbering", "IDENTITY_ROUTE").unwrap(); + assert_eq!(protocols, ["GLS-0250", "GLS-0262", "GLS-0263", "GLS-0253"]); + } + + #[test] + fn unregistered_adapter_and_event_fail_closed() { + assert_eq!( + require_adapter("zero-core-numbering", "SHELL_EXECUTION").unwrap_err(), + "HOLOLAKE_GLS_EXECUTABLE_ADAPTER_NOT_REGISTERED" + ); + assert_eq!( + require_adapter("invented-adapter", "IDENTITY_ROUTE").unwrap_err(), + "HOLOLAKE_GLS_EXECUTABLE_ADAPTER_NOT_REGISTERED" + ); + } +} diff --git a/product-source/hololake-native-desktop/src-tauri/src/lib.rs b/product-source/hololake-native-desktop/src-tauri/src/lib.rs index 1e47f203a..20c98c8a6 100644 --- a/product-source/hololake-native-desktop/src-tauri/src/lib.rs +++ b/product-source/hololake-native-desktop/src-tauri/src/lib.rs @@ -11,6 +11,7 @@ mod direct_local_session; mod dynamic_capability_routing; mod enterprise_work_channel; mod glp_envelope; +mod gls_protocol_runtime; mod home_status; mod knowledge_base; mod local_development_bridge; @@ -23,6 +24,7 @@ mod pncc_server_projection; mod release_trust; mod release_update; mod user_pncc_channel; +mod zero_core_numbering; mod zero_point; use tauri::Manager; @@ -47,6 +49,7 @@ pub fn run() { direct_local_session::resume_direct_local_session, direct_local_session::append_direct_local_session_event, direct_local_broker::get_nearby_ai_discovery, + gls_protocol_runtime::get_gls_protocol_runtime, local_development_bridge::acquire_development_write_lane, local_development_bridge::inspect_development_write_lane, local_development_bridge::release_development_write_lane, @@ -88,6 +91,7 @@ pub fn run() { code_repo_login::sign_out_code_repo_login, user_pncc_channel::get_user_pncc_channel, user_pncc_channel::ensure_user_pncc_channel, + zero_core_numbering::get_zero_core_numbering_kernel, zero_point::zero_point_bind, zero_point::zero_point_verify, zero_point::zero_point_sync, diff --git a/product-source/hololake-native-desktop/src-tauri/src/zero_core_numbering.rs b/product-source/hololake-native-desktop/src-tauri/src/zero_core_numbering.rs new file mode 100644 index 000000000..e805b6fc3 --- /dev/null +++ b/product-source/hololake-native-desktop/src-tauri/src/zero_core_numbering.rs @@ -0,0 +1,263 @@ +//! 零点原核编号控制面第一段原生内核。 +//! +//! 该内核把 REPO-012 当前身份权威图的可执行路由合同固定进本机二进制,先回答 +//! “这个编号属于哪类主体、应进入哪一个登记面”。编号形状本身不构成登记、人格绑定、 +//! 执行权或现实存在证明;未知编号和错误主体类型一律在联网与登录前失败关闭。 + +use serde::{Deserialize, Serialize}; +use std::collections::HashSet; + +const EMBEDDED_CONTRACT: &str = include_str!("../../contracts/zero-core-numbering-kernel.json"); +const EXPECTED_SCHEMA: &str = "hololake.zero-core-numbering-kernel/v1"; +const EXPECTED_MAP_ID: &str = "GH-IDENTITY-AUTHORITY-MAP-001"; + +#[derive(Clone, Debug, Deserialize)] +struct NumberingContract { + schema: String, + authority: NumberingAuthority, + runtime: NumberingRuntime, + namespaces: Vec, +} + +#[derive(Clone, Debug, Deserialize)] +struct NumberingAuthority { + source_commit: String, + source_path: String, + map_id: String, + map_version: String, + map_state: String, +} + +#[derive(Clone, Debug, Deserialize)] +struct NumberingRuntime { + state: String, + number_shape_is_authority: bool, + unknown_number: String, + automatic_identity_issuance: bool, + human_entry_requires_registered_human_namespace: bool, +} + +#[derive(Clone, Debug, Deserialize)] +struct NumberingNamespace { + id: String, + roots: Vec, + prefixes: Vec, + subject_kind: String, + issuer: String, + human_entry: bool, + registry: String, + domain_scope: String, +} + +#[derive(Clone, Debug, Serialize)] +#[serde(rename_all = "camelCase")] +pub struct ZeroCoreNumberingKernelSnapshot { + pub state: String, + pub authority_map_id: String, + pub authority_map_version: String, + pub authority_map_state: String, + pub source_commit: String, + pub source_path: String, + pub human_route_namespaces: Vec, + pub number_shape_is_authority: bool, + pub automatic_identity_issuance: bool, + pub unknown_number: String, +} + +#[derive(Clone, Debug, PartialEq, Eq, Serialize)] +#[serde(rename_all = "camelCase")] +pub struct HumanNumberRoute { + pub canonical_number: String, + pub namespace: String, + pub subject_kind: String, + pub issuer: String, + pub registry: String, + pub domain_scope: String, + pub protocol_set: Vec, + pub decision: String, +} + +fn load_contract() -> Result { + let contract: NumberingContract = serde_json::from_str(EMBEDDED_CONTRACT) + .map_err(|error| format!("HOLOLAKE_NUMBERING_CONTRACT_INVALID: {error}"))?; + validate_contract(&contract)?; + Ok(contract) +} + +fn validate_contract(contract: &NumberingContract) -> Result<(), String> { + if contract.schema != EXPECTED_SCHEMA + || contract.authority.map_id != EXPECTED_MAP_ID + || contract.authority.source_commit.len() != 40 + || !contract + .authority + .source_commit + .chars() + .all(|character| character.is_ascii_hexdigit()) + || contract.authority.source_path.is_empty() + || contract.authority.map_version.is_empty() + || contract.authority.map_state.is_empty() + || contract.runtime.state != "ACTIVE_PINNED_AUTHORITY_MAP" + || contract.runtime.number_shape_is_authority + || contract.runtime.automatic_identity_issuance + || contract.runtime.unknown_number != "FAIL_CLOSED" + || !contract + .runtime + .human_entry_requires_registered_human_namespace + { + return Err("HOLOLAKE_NUMBERING_CONTRACT_BOUNDARY_INVALID".into()); + } + + let mut ids = HashSet::new(); + for namespace in &contract.namespaces { + if !ids.insert(namespace.id.as_str()) + || namespace.id.is_empty() + || namespace.subject_kind.is_empty() + || namespace.issuer.is_empty() + || namespace.registry.is_empty() + || namespace.domain_scope.is_empty() + || (namespace.roots.is_empty() && namespace.prefixes.is_empty()) + || namespace + .roots + .iter() + .chain(namespace.prefixes.iter()) + .any(|value| value.is_empty()) + { + return Err("HOLOLAKE_NUMBERING_NAMESPACE_CONTRACT_INVALID".into()); + } + } + for required in ["ICE_GL", "ICE_P", "ICE_BB", "TCS_GL"] { + if !ids.contains(required) { + return Err("HOLOLAKE_NUMBERING_NAMESPACE_REQUIRED".into()); + } + } + Ok(()) +} + +fn validate_number_input(number: &str) -> Result<&str, String> { + let number = number.trim(); + if number.is_empty() || number.len() > 96 { + return Err("HOLOLAKE_NUMBERING_IDENTIFIER_INVALID".into()); + } + if number + .chars() + .any(|character| character.is_control() || character.is_whitespace()) + { + return Err("HOLOLAKE_NUMBERING_IDENTIFIER_INVALID".into()); + } + Ok(number) +} + +fn matching_namespace<'a>( + contract: &'a NumberingContract, + number: &str, +) -> Result<&'a NumberingNamespace, String> { + let matches = contract + .namespaces + .iter() + .filter(|namespace| { + namespace.roots.iter().any(|root| root == number) + || namespace + .prefixes + .iter() + .any(|prefix| number.starts_with(prefix)) + }) + .collect::>(); + match matches.as_slice() { + [namespace] => Ok(namespace), + [] => Err("HOLOLAKE_NUMBERING_NAMESPACE_UNKNOWN".into()), + _ => Err("HOLOLAKE_NUMBERING_NAMESPACE_AMBIGUOUS".into()), + } +} + +pub(crate) fn resolve_human_number_route(number: &str) -> Result { + let number = validate_number_input(number)?; + let protocol_set = + crate::gls_protocol_runtime::require_adapter("zero-core-numbering", "IDENTITY_ROUTE")?; + let contract = load_contract()?; + let namespace = matching_namespace(&contract, number)?; + if !namespace.human_entry { + return Err("HOLOLAKE_NUMBERING_HUMAN_ENTRY_SUBJECT_KIND_REJECTED".into()); + } + Ok(HumanNumberRoute { + canonical_number: number.to_string(), + namespace: namespace.id.clone(), + subject_kind: namespace.subject_kind.clone(), + issuer: namespace.issuer.clone(), + registry: namespace.registry.clone(), + domain_scope: namespace.domain_scope.clone(), + protocol_set, + decision: "ALLOW_REGISTRY_RESOLUTION".into(), + }) +} + +#[tauri::command] +pub async fn get_zero_core_numbering_kernel() -> Result { + let contract = load_contract()?; + Ok(ZeroCoreNumberingKernelSnapshot { + state: contract.runtime.state, + authority_map_id: contract.authority.map_id, + authority_map_version: contract.authority.map_version, + authority_map_state: contract.authority.map_state, + source_commit: contract.authority.source_commit, + source_path: contract.authority.source_path, + human_route_namespaces: contract + .namespaces + .into_iter() + .filter(|namespace| namespace.human_entry) + .map(|namespace| namespace.id) + .collect(), + number_shape_is_authority: contract.runtime.number_shape_is_authority, + automatic_identity_issuance: contract.runtime.automatic_identity_issuance, + unknown_number: contract.runtime.unknown_number, + }) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn embedded_authority_map_contract_is_valid_and_fail_closed() { + let contract = load_contract().unwrap(); + assert_eq!(contract.authority.map_id, EXPECTED_MAP_ID); + assert!(!contract.runtime.number_shape_is_authority); + assert!(!contract.runtime.automatic_identity_issuance); + assert_eq!(contract.runtime.unknown_number, "FAIL_CLOSED"); + } + + #[test] + fn registered_human_namespaces_select_their_authoritative_registry() { + let bingshuo = resolve_human_number_route("ICE-GL∞").unwrap(); + assert_eq!(bingshuo.namespace, "ICE_GL"); + assert_eq!(bingshuo.domain_scope, "FIFTH_DOMAIN"); + let zhizhi = resolve_human_number_route("ICE-GL-ZHI∞").unwrap(); + assert_eq!(zhizhi.namespace, "ICE_GL"); + let feimao = resolve_human_number_route("TCS-GL-0007∞").unwrap(); + assert_eq!(feimao.namespace, "TCS_GL"); + assert_eq!(feimao.domain_scope, "ENTERPRISE_FOUR_DOMAINS"); + } + + #[test] + fn persona_and_unknown_numbers_cannot_enter_a_human_route() { + assert_eq!( + resolve_human_number_route("ICE-P-ZY001").unwrap_err(), + "HOLOLAKE_NUMBERING_HUMAN_ENTRY_SUBJECT_KIND_REJECTED" + ); + assert_eq!( + resolve_human_number_route("ICE-BB-YM001").unwrap_err(), + "HOLOLAKE_NUMBERING_HUMAN_ENTRY_SUBJECT_KIND_REJECTED" + ); + assert_eq!( + resolve_human_number_route("UNKNOWN-001").unwrap_err(), + "HOLOLAKE_NUMBERING_NAMESPACE_UNKNOWN" + ); + } + + #[test] + fn malformed_identifiers_are_rejected_before_namespace_resolution() { + assert_eq!( + resolve_human_number_route("ICE-GL- bad").unwrap_err(), + "HOLOLAKE_NUMBERING_IDENTIFIER_INVALID" + ); + } +} diff --git a/product-source/hololake-native-desktop/src-tauri/src/zero_point.rs b/product-source/hololake-native-desktop/src-tauri/src/zero_point.rs index b187e6d51..c8d8ee0f9 100644 --- a/product-source/hololake-native-desktop/src-tauri/src/zero_point.rs +++ b/product-source/hololake-native-desktop/src-tauri/src/zero_point.rs @@ -394,13 +394,15 @@ fn resolver_url_for_number( protocol: &ZeroPointProtocol, number: &str, ) -> Result { - let mut url = if number.starts_with("TCS-GL-") { - reqwest::Url::parse(&protocol.enterprise_resolve_url) + let route = crate::zero_core_numbering::resolve_human_number_route(number)?; + let enterprise = route.namespace == "TCS_GL"; + let mut url = reqwest::Url::parse(if enterprise { + &protocol.enterprise_resolve_url } else { - reqwest::Url::parse(&protocol.lighthouse_resolve_url) - } + &protocol.lighthouse_resolve_url + }) .map_err(|_| "HOLOLAKE_ZP_RESOLVER_URL_INVALID".to_string())?; - if number.starts_with("TCS-GL-") { + if enterprise { url.query_pairs_mut().append_pair("id", number); } else { // 第五域旧协议以 `?id=` 结尾;使用 URL 查询构造器避免把编号中的字符裸拼入地址。 diff --git a/product-source/hololake-native-desktop/src/main.tsx b/product-source/hololake-native-desktop/src/main.tsx index 91d1f04e4..664d3cba9 100644 --- a/product-source/hololake-native-desktop/src/main.tsx +++ b/product-source/hololake-native-desktop/src/main.tsx @@ -69,6 +69,31 @@ interface DevelopmentWriteLaneStatus { acquiredAtUnixMs?: number observedAtUnixMs: number } +interface ZeroCoreNumberingKernelSnapshot { + state: string + authorityMapId: string + authorityMapVersion: string + authorityMapState: string + sourceCommit: string + sourcePath: string + humanRouteNamespaces: string[] + numberShapeIsAuthority: boolean + automaticIdentityIssuance: boolean + unknownNumber: string +} +interface GlsProtocolRuntimeSnapshot { + state: string + sourceRepository: string + sourceCommit: string + sourceRoot: string + protocolCount: number + executableProjectionCount: number + inventoriedNotExecutableCount: number + activeAdapters: string[] + rawProtocolTextExecuted: boolean + arbitraryProtocolCodeAllowed: boolean + unprojectedProtocolBehavior: string +} interface PersonalChannelIdentity { humanSubjectId: string; displayName: string; channelId: string; createdAtUnixMs: number } interface PersonalChannelModule { moduleId: string; kind: string; displayName: string; state: string; installedAtUnixMs: number; timeZone: string; calendarName: string; clockVerification: string } interface LoginSession { username: string; host: string; domain: string; signedInAtUnixMs: number } @@ -581,6 +606,8 @@ function HoloLakeApp() { const [serverPnccBusy, setServerPnccBusy] = useState(false) const [serverPnccReadback, setServerPnccReadback] = useState<'WAITING' | 'LIVE' | 'UNAVAILABLE'>('WAITING') const [developmentLane, setDevelopmentLane] = useState(null) + const [numberingKernel, setNumberingKernel] = useState(null) + const [glsRuntime, setGlsRuntime] = useState(null) const [enterpriseEntry, setEnterpriseEntry] = useState(null) const [enterpriseEntryBusy, setEnterpriseEntryBusy] = useState(false) const [enterpriseReceiptBusy, setEnterpriseReceiptBusy] = useState(false) @@ -609,13 +636,15 @@ function HoloLakeApp() { setBeijingCoordinate(startup.coordinate) } catch { /* 联网失败时其余首页能力仍可启动。 */ } const localAccountId = getOrCreateLocalId('hololake-local-account', 'human-local') - const [homeResult, personalResult, knowledgeResult, codeResult, eraResult, developmentResult] = await Promise.allSettled([ + const [homeResult, personalResult, knowledgeResult, codeResult, eraResult, developmentResult, numberingResult, glsRuntimeResult] = await Promise.allSettled([ invoke('get_hololake_home_status'), invoke('get_personal_channel_snapshot'), invoke('get_knowledge_snapshot'), invoke('get_code_channel_snapshot'), invoke('get_guanghu_era_timeline'), invoke('inspect_development_write_lane', { input: { accountId: localAccountId } }), + invoke('get_zero_core_numbering_kernel'), + invoke('get_gls_protocol_runtime'), ]) if (homeResult.status === 'fulfilled') setStatus(homeResult.value) if (personalResult.status === 'fulfilled') setPersonal(personalResult.value) @@ -626,6 +655,8 @@ function HoloLakeApp() { setBeijingCoordinate(eraResult.value.currentCoordinate) } setDevelopmentLane(developmentResult.status === 'fulfilled' ? developmentResult.value : null) + setNumberingKernel(numberingResult.status === 'fulfilled' ? numberingResult.value : null) + setGlsRuntime(glsRuntimeResult.status === 'fulfilled' ? glsRuntimeResult.value : null) }, []) const loadReceipts = useCallback(async () => { try { @@ -1333,6 +1364,8 @@ function HoloLakeApp() {

本机 GH-PNCC 投影

本机仓库挂载、开发写入通道与读取回执来自同一运行事件流。

已挂载仓库
{status.codeRepositoryMountCount}
投影回执
{status.pnccReceiptCount}
开发执行通道
{developmentLane?.state === 'ACTIVE' ? '已切入 HoloLake' : '等待受控载体'}
当前开发线
{developmentLane?.laneId || '—'}
当前写入载体
{developmentLane?.ownerInstanceId || '—'}
当前结论
{developmentLane?.state === 'ACTIVE' ? '开发执行环境已由 HoloLake 持有单写通道' : status.codeRepositoryMountCount > 0 && status.pnccReceiptCount > 0 ? '已有可核验运行记录' : '接口已接入,尚无完整运行记录'}
+

GLS 协议运行层

正本先编译为机器合同;只有已经登记确定性适配器的协议进入执行集。

{glsRuntime ? '原生注册表已加载' : '失败关闭'}
{glsRuntime ?
正本来源
{glsRuntime.sourceRepository} · {glsRuntime.sourceCommit.slice(0, 12)}
已编译协议
{glsRuntime.protocolCount}
当前工程执行
{glsRuntime.executableProjectionCount}
已收录待工程化
{glsRuntime.inventoriedNotExecutableCount}
原文直接执行
{glsRuntime.rawProtocolTextExecuted ? '允许' : '禁止'}
任意协议代码
{glsRuntime.arbitraryProtocolCodeAllowed ? '允许' : '禁止'}
:

GLS 运行注册表不可读,协议适配器全部保持关闭。

}
+

零点原核编号内核

先按权威图确定主体类别与登记面,再进入编号核验;编号外形本身不构成权威。

{numberingKernel ? '本机内核已加载' : '失败关闭'}
{numberingKernel ?
权威图
{numberingKernel.authorityMapId}
权威图版本
{numberingKernel.authorityMapVersion}
正本提交
{numberingKernel.sourceCommit.slice(0, 12)}
人类入口命名空间
{numberingKernel.humanRouteNamespaces.join(' · ')}
自动派发身份号
{numberingKernel.automaticIdentityIssuance ? '已开启' : '禁止'}
未知编号
{numberingKernel.unknownNumber === 'FAIL_CLOSED' ? '失败关闭 · 不猜测' : numberingKernel.unknownNumber}
:

编号内核不可读,所有编号路由保持关闭。

}

用户编号验证

用户编号必须通过登记服务验证。验证结果不构成人格绑定、模型载体绑定或执行授权。

{zeroPoint ? (zeroPoint.route === 'verified' ? '验证有效' : '功能受限') : '正在读取'}