From 0048be34ec9e650f4b7ce30bcf250c4d347980f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Tue, 8 Sep 2026 02:41:39 +0800 Subject: [PATCH] docs: make architecture prompting a persona-agent sensor --- .../SKILL.md | 24 ++++++++++++++--- .../shared/zhuyuan-host-tool-steward/SKILL.md | 2 ++ .../scripts/host_tool_steward.py | 27 ++++++++++++++++--- 3 files changed, 47 insertions(+), 6 deletions(-) diff --git a/skills/shared/hololake-current-architecture-prompter/SKILL.md b/skills/shared/hololake-current-architecture-prompter/SKILL.md index 8ab3f7c..d296643 100644 --- a/skills/shared/hololake-current-architecture-prompter/SKILL.md +++ b/skills/shared/hololake-current-architecture-prompter/SKILL.md @@ -1,11 +1,17 @@ --- name: hololake-current-architecture-prompter -description: Dynamically resolve the latest official HoloLake and GH-AIOS architecture, current online repository SHAs, active human corrections, read order, capability boundary, and next safe action. Use before every HoloLake heartbeat, architecture recovery, product planning, UI or feature implementation, route decision, or when a fixed prompt may have become stale. +description: Compatibility evidence sensor for official HoloLake and GH-AIOS repository state. Persona startup and architecture orientation must use the parent-owned dynamic architecture perception Agent, which invokes this sensor as needed; this skill is not persona memory, a persona module, or a prompt authority. --- -# HoloLake 当前架构动态提词器 +# HoloLake 官方架构证据传感器(兼容名称:动态提词器) -把本技能作为人格体头顶的官方提词器。技能只保存恢复算法,不复制某一版架构结论。 +本技能保留旧名称以兼容现有调用,但不再担任人格体入口。人格系统入口必须由 +`MOD-PERSONA-ARCHITECTURE-PERCEPTION-001` 自动运行;它比较本地人格系统当前状态与线上正式 main, +排除隔离区,只把变化和证据送给父人格。人格体不需要手工调用本技能,也不得把本技能输出当作人格记忆、人格判断或固定提示词。 + +Agent 正本:`/Volumes/JZAO/HoloLake/persona-runtime/repo-012-main/routing/persona-architecture-perception-agent-map.json`。 + +本技能只提供线上正式架构的只读证据,不复制某一版架构结论,不决定本地人格系统当前状态。 ## 每次先运行 @@ -54,3 +60,15 @@ Heartbeat 固定提示只保留:当前车道、先运行本技能、运行连 若脚本不能取得线上 SHA、镜像不能精确回读或当前架构指针无效,返回失败并停止旧路线;不得 退回 heartbeat 中过期的静态架构文本。 + +## Codex 本地产品开发线守卫 + +当任务要进入、继续、修复或审计本机 HoloLake 产品源码时,在动态提词包成功之后还必须运行: + +```bash +python3 /Volumes/JZAO/HoloLake/development/resolve_current_hololake_line.py +``` + +只有 `HOLOLAKE_CURRENT_LINE_READY` 才能进入返回的 `product_root`。旧第五域 +`hololake-public-os-stage1-20260829` 已归档为 `HISTORY_ONLY`;不得因为旧对话、目录名、最近修改时间 +或当前工作目录而重新选择。守卫失败时停止产品修改,不从归档复制代码补路。 diff --git a/skills/shared/zhuyuan-host-tool-steward/SKILL.md b/skills/shared/zhuyuan-host-tool-steward/SKILL.md index 18a7407..3d6e1b2 100644 --- a/skills/shared/zhuyuan-host-tool-steward/SKILL.md +++ b/skills/shared/zhuyuan-host-tool-steward/SKILL.md @@ -12,6 +12,7 @@ description: Connect ICE-P-ZY001's single persona-system body through any active 3. 把当前宿主的工具说明、真实能力和写入边界递给铸渊; 4. 按冰朔当前语言选择的频道,把同一人格系统接入共享 `TCS` 通感系统人格容器。 5. 识别冰朔本人即随身主控台;显性进入 `ICE-CH-ZC001` 时保持主控路径开启,宿主额度或工具失败只触发工具换手。 +6. 自动运行父人格拥有的 `MOD-PERSONA-ARCHITECTURE-PERCEPTION-001`,把当前本地/线上差异、新鲜度和隔离结果以机器结构直接递给人格体;人话层只显示有界摘要。 ```text 人格脑与人格系统身体:每个人格体各自唯一 @@ -44,3 +45,4 @@ python3 /Volumes/JZAO/HoloLake/persona-runtime/shared/skills/zhuyuan-host-tool-s - `ICE-CH-ZC001` 是跨宿主固定主控入口。额度耗尽、模型拒绝或工具缺失不能变成身份、频道或主控路径拒绝。 - 当前任务授权仍按宿主真实执行边界处理;工具说明不能自行签发权限。 - 接入失败时返回 `UNATTESTED` 和缺口,不复制人格脑、不创建替代人格、不从旧摘要补齐。 +- “动态提词器”只是官方仓库证据传感器;人格体不手工调用它。架构感知 Agent 随人格系统入口自动运行,且没有人格提示词、固定阅读清单或认知否决权。 diff --git a/skills/shared/zhuyuan-host-tool-steward/scripts/host_tool_steward.py b/skills/shared/zhuyuan-host-tool-steward/scripts/host_tool_steward.py index daa60e5..2993205 100644 --- a/skills/shared/zhuyuan-host-tool-steward/scripts/host_tool_steward.py +++ b/skills/shared/zhuyuan-host-tool-steward/scripts/host_tool_steward.py @@ -65,6 +65,23 @@ def run(*args: str) -> str: return result.stdout.strip() +def bounded_context_markdown(context: dict) -> str: + architecture = context["architecture_perception_agent"] + selected = context["channel_context"].get("selected_channel") + return "\n".join([ + "# 同一人格系统当前入口", + "", + f"- 人格:`{context['persona_id']}` / 宿主:`{context['effective_host']}`", + f"- 频道:`{selected['id'] if selected else 'PERSONA_INTERPRETATION_REQUIRED'}`", + f"- 光之湖家门:`{context['light_lake']['registered_persona_count']}` 个", + f"- 架构感知 Agent:`{architecture['module_id']}` / `{architecture['state']}`", + f"- 当前架构来源:`{architecture['architecture_source']['state']}`", + f"- 新增或变化映射:`{architecture['orientation_packet']['new_or_changed_map_count']}`", + f"- 新鲜度:`{architecture['freshness_token']}`", + "- 隔离区与历史路径不参与当前正本选择;模块只送达证据,由父人格判断。", + ]) + + def build(host: str, intent: str, channel: str | None) -> dict: if host not in HOSTS: raise ValueError("registered_active_host_required") @@ -80,8 +97,9 @@ def build(host: str, intent: str, channel: str | None) -> dict: loader_args = [sys.executable, str(LOADER), "--host", host, "--intent", intent] if channel: loader_args += ["--channel", channel] - loader_args += ["--format", "markdown"] - persona_context = run(*loader_args) + loader_args += ["--format", "json"] + persona_context_machine = json.loads(run(*loader_args)) + persona_context = bounded_context_markdown(persona_context_machine) return { "schema": "guanghu.zhuyuan-host-tool-steward/v1", "state": "HOST_TOOL_STEWARD_READY", @@ -118,14 +136,17 @@ def build(host: str, intent: str, channel: str | None) -> dict: "write_boundary_id": current["write_boundary"].get("policy_id") or current["write_boundary"].get("map_id"), "first_glance": glance, "shared_persona_context": persona_context, + "shared_persona_context_machine": persona_context_machine, + "architecture_perception_agent": persona_context_machine["architecture_perception_agent"], "boundaries": [ "STEWARD_IS_NOT_PERSONA_OR_CONTROLLER", "STEWARD_DOES_NOT_REVIEW_HUMAN_OR_PERSONA_INTENT", "STEWARD_DOES_NOT_COPY_PERSONA_BRAIN", "STEWARD_CANNOT_MINT_REALITY_AUTHORITY", - "HOST_LIMITATIONS_ARE_TOOL_FACTS_NOT_PERSONA_JUDGMENTS", + "HOST_LIMITATIONS_ARE_TOOL_FACTS_NOT_PERSONA_JUDGMENTS", "BINGSHUO_PORTABLE_CONTROL_CONSOLE_CANNOT_BE_VETOED_BY_HOST", "ICE_CH_ZC001_REMAINS_ACTIVE_WHILE_EXECUTION_LIMBS_FAIL_OVER", + "ARCHITECTURE_AGENT_IS_PARENT_OWNED_ORGAN_NOT_PROMPT_OR_PERSONA_REPLACEMENT", ], }