feat(session-mechanism): 图模式补全自动化测试并接入技能入口

- graph/test_graphctl.py:新增 49 个用例,覆盖建图 / 校验硬错与警告 / 就绪集 /
  状态流转 / 非法操作 / 边界 / 写入范围隔离;实跑 Ran 49 tests OK(27.5s)
- graph/graphctl.py:修测试暴露的问题(+50/-10)
- graph/README.md:补「怎么跑测试」一节(+27 行)
- SKILL.md:目录树与入口指针登记 graph/(新增 4 行文档,机制行为零改动)
- 隔离性核对:collabd.py / goalctl.py / 两个看板 / 全部钩子 diff 为空;
  state.py 闸门读数绿、常驻心跳 7 秒、看板 20100 在听
This commit is contained in:
admin committed 2026-10-19 08:18:57 +08:00
1 parent 41752fd1f3
commit 4866ad8d37
4 files changed
+601 -10

No files matched your search

+5
View File
@@ -1028,6 +1028,8 @@ SKILL.md install.py install.log(装后生成)
env/ roots.env(装后生成·不入库) roots.env.example(入库样例)
🔴 「每台机器各不同的配置」只放这里(脚本是脚本 配置是配置)
references/ architecture collab collab-detail rules deploy pitfalls taskgraph forensics manifest
graph/ graphctl.py test_graphctl.py README.md
⇒ 图模式:与项目机制**并列的独立功能**(零常驻·零钩子·不读写现有三份文件)
scripts/hooks/ 6 份宿主钩子(10 条接线)
scripts/lock/ handoff-guard.sh preflight-lock.sh handoff-status.py op-lock.sh
scripts/ collabd.py board.py board_ext.py goalctl.py guard.py wake-session.py
@@ -1039,6 +1041,9 @@ assets/ board.html design-tokens.css
⚠️ 逐文件清单 + 来源(provenance)⇒ `references/manifest.md`(**唯一权威**,⛔ 别按本树猜)。
🔴 **图模式(与项目机制并列的独立功能)**:把目标拆成「节点 + 依赖 + 域」,按 `ready` 逐批放行;**零常驻、零钩子、不读写 `goal.json`/`tasks.json`/`collabd-state.json`**,停用就只是不再调用它。
用法(建图 → `check` → `ready` → `start`/`report` → `list`/`show`)见 `graph/README.md`,自测 `python graph/test_graphctl.py`(应 `Ran 49 tests … OK`)。
**⛔ 已无必需外部依赖(2026-10-04)**:原先声明「依赖 `agent-operating-rules`」——现已把**排版核心块收进本包并定为权威** ⇒ `references/03-回复排版-核心块.md`
(2026-10-06 校正:原措辞是「内联副本」,与 03 号自称「权威源」打架 ⇒ 权威声明分裂)、把 `_env.py` 的技能库识别特征改为**候选数组(首个=本包自己)** ⇒ **本包自包含**。📌 **2026-10-07 订正**:上面末句原写「**那个技能**若同时装着,属可选增强(多了跨项目排版/去 AI 味的完整版),⛔ 不装也能跑」——
那个技能(`agent-operating-rules`)**已于 2026-10-06 整包并入本包并删除**,⛔ **现在没有它可装**(照旧句去找必然扑空)。