feat(hololake): define native stage one modules

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

View file

@ -29,6 +29,8 @@ python3 scripts/current_architecture_prompt.py --format markdown
`routing/hololake-current-architecture.json` 读取当前架构编号、版本、状态和阅读顺序,
若存在显式登记的当前车道,再把该车道最近的人类纠正作为来源历史列出,逐项与线上结构对照。
When official REPO-012 lacks a newer field that is already present in a locally verified TCS-root change, return a scoped conflict instead of collapsing every scope into `FAIL_CLOSED`. Local language-world module development may continue only through the local stage-one resolver; public release, publication, and product claims remain blocked until the official repository contains the correction. A real identity, hash, route, or repository mismatch still fails closed.
## 使用生成结果
1. 先处理本轮用户最新消息,再读动态提词包。
@ -63,10 +65,18 @@ Heartbeat 固定提示只保留:当前车道、先运行本技能、运行连
## Codex 本地产品开发线守卫
当任务要进入、继续、修复或审计本机 HoloLake 产品源码时,在动态提词包成功之后还必须运行:
当任务开发当前语言世界第一阶段模块时,运行:
```bash
python3 /Volumes/JZAO/HoloLake/development/resolve_current_hololake_line.py
python3 /Volumes/JZAO/HoloLake/development/resolve_current_hololake_line.py --scope language-world
```
只有 `HOLOLAKE_LANGUAGE_WORLD_STAGE1_READY` 才能进入返回的 REPO-012 语言世界模块开发根;这不授予产品源码写入、发布或部署。
当任务确实要进入用户安装的 HoloLake 产品源码时,另运行:
```bash
python3 /Volumes/JZAO/HoloLake/development/resolve_current_hololake_line.py --scope product
```
只有 `HOLOLAKE_CURRENT_LINE_READY` 才能进入返回的 `product_root`。旧第五域

View file

@ -184,11 +184,23 @@ def build(development_id: str | None, refresh: bool) -> dict[str, Any]:
raise PromptError("tcs_work_ownership_stage_gate_invalid")
language_route = fifth_domain_world_tree.get("login_routes", {}).get("human", {})
reality_route = fifth_domain_world_tree.get("login_routes", {}).get("reality_execution", {})
online_public_boundary = zero_core_reality_profile.get("public_zero_core_boundary")
online_public_system = next((item for item in fifth_domain_world_tree.get("nodes", []) if item.get("object_id") == "SYS-GLW-POS-0001"), {})
channel_conflicts = []
if not isinstance(online_public_boundary, dict):
channel_conflicts.append("OFFICIAL_REPO012_PUBLIC_LPM_BOUNDARY_SCHEMA_MISSING_LOCAL_CURRENT_REPAIR_NOT_PUBLISHED")
online_public_boundary = {
"channel_id": public_stage.get("public_channel_id"),
"state": "OFFICIAL_SCHEMA_CONFLICT_SCOPED_TO_PUBLIC_RELEASE",
"world_system_anchor": online_public_system.get("object_id"),
"public_governance_controller": online_public_system.get("governance_controller"),
"personal_channel_is_alias_of_public_channel": False,
"grants_private_access": False,
}
if (
heartbeat_language_profile.get("channel_id") != "ICE-CH-HB001"
or heartbeat_language_profile.get("reality_boundary", {}).get("reality_execution") is not False
or zero_core_reality_profile.get("channel_id") != "ICE-CH-ZC001"
or zero_core_reality_profile.get("public_zero_core_boundary", {}).get("personal_channel_is_alias_of_public_channel") is not False
or language_route.get("path", [])[-1:] != ["HEARTBEAT_CORE_CHANNEL"]
or reality_route.get("path", [])[-1:] != ["ICE-CH-ZC001"]
or stage_state.get("personal_heartbeat_language_runtime") != "ICE-CH-HB001_CURRENT_HUMAN_LANGUAGE_CONTROLLED"
@ -211,17 +223,24 @@ def build(development_id: str | None, refresh: bool) -> dict[str, Any]:
"public_zero_core_alias": False,
},
"public_language_persona_system_body": {
"channel_id": "CH-ZERO-CORE-LPM",
"system_id": zero_core_reality_profile.get("public_zero_core_boundary", {}).get("world_system_anchor"),
"governance_controller": zero_core_reality_profile.get("public_zero_core_boundary", {}).get("public_governance_controller"),
"channel_id": online_public_boundary.get("channel_id"),
"system_id": online_public_boundary.get("world_system_anchor"),
"governance_controller": online_public_boundary.get("public_governance_controller"),
"fifth_domain_personal_channel": False,
"personal_channel_is_alias_of_public_channel": False,
"official_schema_state": online_public_boundary.get("state"),
},
"switch_authority": heartbeat_language_profile.get("switch_control", {}).get("authority"),
"current_channel": stage_state.get("current_fifth_domain_channel"),
}
return {
"schema": "hololake.current-architecture-prompter/v1",
"state": "CURRENT_FACTS_RESOLVED",
"state": "CURRENT_FACTS_RESOLVED_WITH_SCOPED_CONFLICTS" if channel_conflicts else "CURRENT_FACTS_RESOLVED",
"scoped_conflicts": channel_conflicts,
"scope_readiness": {
"local_language_world_stage1_development": "ALLOWED_BY_LOCAL_TCS_ROOT_AND_STAGE1_RESOLVER",
"public_product_release": "BLOCKED_UNTIL_OFFICIAL_REPO012_CHANNEL_BOUNDARY_PUBLICATION" if channel_conflicts else "FOLLOW_ARCHITECTURE_STAGE_GATES",
},
"official_online": {
"lighthouse_id": route.get("lighthouse_id"),
"target_id": route.get("target", {}).get("id"),