docs: 收口 Monitor 空库切换

This commit is contained in:
Codex
2026-07-13 08:03:39 +02:00
parent 0213fe0196
commit 90f46dec50
3 changed files with 31 additions and 2 deletions
@@ -0,0 +1,11 @@
# R2.5.1 任务报告
## 结论
- 已按 [#1873 最新决策](https://github.com/pikasTech/unidesk/issues/1873#issuecomment-4954659225) 冻结为空库切换:旧 SQLite 历史允许全部丢弃,不执行 export/import/verify,不把 legacy gap 或 payload conflict 作为门禁。
- #1873 正文与 MDTODO 已同步为“从新数据开始”,后续 Artificer 不再收到迁移旧数据的冲突要求。
- 切换只允许处理 Monitor 专属 `web_probe_monitor` database/schemaAgentRun、Decision Center 等 Host PG sibling database 不在 mutation 范围。
## 边界
不双写、不回读 SQLite、不补洞,也不新增迁移兼容层、合同、租约、安全机制或围栏。R2.5.2 仅负责受控空库与 schema 就绪证据。
@@ -0,0 +1,18 @@
# R2.5.2 任务报告
## 结论
- [PR #1903](https://github.com/pikasTech/unidesk/pull/1903) 已合并,merge commit 为 `0213fe0196515e99ceba2b2f84adfad90acbe7c2`,提供 YAML-first 的 Monitor 专属 Host PG `plan/status/reset --confirm` 受控入口。
- owning YAML 精确限制 database=`web_probe_monitor`、owner=`web_probe_monitor`、schema=`monitor`CLI 不接受任意 database 或 SQL 参数。
- 空库操作已将 Monitor 业务行从 938 清为 0;未导入或读取 SQLite 历史。
## 验证
- 持久化 CLI 实测:`databaseExists=true``schemaReady=true``empty=true``ready=true``businessRows=0`schema version=`2026-07-12-p17-3`
- sibling OID 摘要保持为 `agentrun_v02:59744,decision_center:119248`,证明未重建这两个数据库。
- 独立定向测试 `8 pass / 0 fail``check --syntax-only``11/11``git diff --check` 通过。
- 审查发现并修复 `status` 假绿:`ready=false` 现在同时让远端 shell、JSON `ok` 和上层命令退出失败。
## 后续
只允许 R2.5.3 / R2.6.3 从该空库实施 Release B,开始接收新数据;禁止再次清库或恢复 SQLite 历史。
@@ -51,11 +51,11 @@ PR 合并后只等待自动发布链,使用受控 Web sentinel 原入口产生
按 [#1873 用户最新决策](https://github.com/pikasTech/unidesk/issues/1873#issuecomment-4954659225) 放弃全部 SQLite 历史数据迁移,以空 Monitor Host PG 从新数据开始;先清空并验证 Monitor 专属数据库/schema,再完成 Release B 原子切换,SQLite、legacy gap 与 migration 不进入运行路径,不双写、不回读、不补洞,完成任务后将详细报告写入[任务报告](./details/web-sentinel-runtime-reliability/R2.5_Task_Report.md)。
#### R2.5.1 [in_progress]
#### R2.5.1 [completed]
按 [#1873 最新决策](https://github.com/pikasTech/unidesk/issues/1873#issuecomment-4954659225) 冻结空库切换边界:取消 legacy gap、SQLite export/import/verify 和 payload conflict 作为门禁,确认只清空 Monitor 自有 Host PG database/schema,不影响共享 Host PG 其他服务,完成任务后将详细报告写入[任务报告](./details/web-sentinel-runtime-reliability/R2.5.1_Task_Report.md)。
#### R2.5.2
#### R2.5.2 [completed]
通过 YAML-first 受控入口按 [#1873 最新决策](https://github.com/pikasTech/unidesk/issues/1873#issuecomment-4954659225) 清空或重建 Monitor 专属 Host PG database/schema,验收 schema ready、业务数据 0 行且不读取 SQLite,再允许 Release B,完成任务后将详细报告写入[任务报告](./details/web-sentinel-runtime-reliability/R2.5.2_Task_Report.md)。