docs(logbook): 記錄 P1-305 P1-306 正式驗證 [skip ci]

This commit is contained in:
Your Name
2026-06-05 09:41:16 +08:00
parent 2e93c1d1a9
commit f1bad81d32

View File

@@ -1,3 +1,25 @@
## 2026-06-05P1-305 / P1-306 任務批准邊界與進度彙總正式上線
**背景**:接續 P1-106 異地 / Escrow 準備度,本段收斂 AI Agent 自動化盤點的兩個可視化缺口:每個任務的批准邊界與 deterministic 進度百分比。這是 committed snapshot / API / 前台治理頁的只讀顯示,不是 runtime 執行授權、部署授權、owner response 接受或 active gate 提升。
**本輪完成**
- Code commit`4f0787f8 feat(governance): 顯示任務批准邊界與進度彙總`
- Deploy marker`af3a9d48 chore(cd): deploy 4f0787f [skip ci]`
- Gitea code-review `2593`run `3714`成功CD `2592`run `3713`)的 `tests``build-and-deploy``post-deploy-checks` 全部成功。
- Production APIautomation backlog `current_task_id=P1-306``next_task_id=P1-001``total_items=23`、done `16`、planned `7`、overall `70%`、P1 `76%`inventory tasks `26``read_only_allowed=24`、需明確批准 tasks `2`
- Production `/zh-TW/governance?tab=automation-inventory` desktop `1440x1000` 與 mobile `390x844``進度彙總``AUTO-P1-305``AUTO-P1-306`、批准邊界與 runtime 禁止文案可見;無錯誤文字;`horizontalOverflow=0`
**完成度更新**
- P1-305 任務批准邊界:本地 `100%`,正式站 `100%`
- P1-306 進度百分比彙總:本地 `100%`,正式站 `100%`
- AI Agent automation backlogdone `16 / 23`,整體 `70%`
- 下一步:`P1-001` runtime surface 只讀盤點;`runtime_execution_authorized=false`、active runtime gate `0`、production write / unapproved deploy / secret plaintext collection / active scan 仍全部禁止。
**正式證據**
- API`https://awoooi.wooo.work/api/v1/agents/automation-backlog-snapshot``https://awoooi.wooo.work/api/v1/agents/automation-inventory-snapshot`
- Browser desktop`https://awoooi.wooo.work/zh-TW/governance?tab=automation-inventory&_v=af3a9d48-p1-305-306-prod-desktop`,截圖 `/tmp/awoooi-governance-p1-305-306-prod-desktop-af3a9d48.png`
- Browser mobile`https://awoooi.wooo.work/zh-TW/governance?tab=automation-inventory&_v=af3a9d48-p1-305-306-prod-mobile`,截圖 `/tmp/awoooi-governance-p1-305-306-prod-mobile-af3a9d48.png``/tmp/awoooi-governance-p1-305-306-prod-mobile-progress-af3a9d48.png``/tmp/awoooi-governance-p1-305-306-prod-mobile-tasks-af3a9d48.png`
## 2026-06-05IwoooS P2-D2 AwoooP Runs fallback 文案上線
**背景**:接續 IwoooS P2-D2 Code Review 候選分類,本段處理 `/zh-TW/awooop/runs`、Callback Evidence、Source Flow 與狀態鏈 fallback 的可見英文 / 半英文殘留。這是 i18n 字典與 operator readability 收斂,不改 API、不改 enum key、不改執行邏輯也不是 owner response、runtime gate、Kali 維護、GitHub primary、自動修復或正式執行授權。
@@ -30205,23 +30227,26 @@ production browser smoke:
- NemoTron 仍為治理候選 / 執行角色資料面,未取代 OpenClaw正式頁已依市場治理資料顯示 `nemo_nemotron_fabric` 在候選清單中。
- OpenClaw 仍是 production baseline後續是否調整角色仍以市場主流資料、scorecard、replay、人工 gate 與 ADR 決策為準。
## 2026-06-05 — P1-305 / P1-306 任務批准邊界與進度彙總本地驗證
## 2026-06-05 — P1-305 / P1-306 任務批准邊界與進度彙總正式部署
**修正內容**
- `ai_agent_automation_inventory_snapshot_v1` 新增每個 task 的 `approval_boundary``task_approval_boundary_rollup`,並在 service 層驗證每個任務都有批准邊界、模式與 gate status 對齊、禁止行為非空、rollup 數字一致。
- `ai_agent_automation_backlog_v1` 新增每個 backlog item 的 `approval_boundary``item_approval_boundary_rollup``progress_summary`,並在 service 層驗證 priority / status / gate / owner rollup 與 deterministic progress 公式。
- `/zh-TW/governance?tab=automation-inventory` 顯示 task / backlog item 的允許、禁止、需人工批准摘要,並新增待辦進度彙總;不新增執行、批准、套件安裝、付費 API、shadow/canary、production routing 或 destructive operation 按鈕。
- `docs/ai/AI_AGENT_AUTOMATION_WORKLIST_2026-06-04.md` 與 MASTER 已同步 P1-305 / P1-306 完成度、目前數字、下一步 P1-001。
- Code commit`4f0787f8 feat(governance): 顯示任務批准邊界與進度彙總`
- Deploy marker`af3a9d48 chore(cd): deploy 4f0787f [skip ci]`
**目前數字**
- Inventory tasks`26`
- Task `read_only_allowed``24`
- 需明確批准 tasks`2``P0-001``P0-004`)。
- Backlog total`23`done`16`overall progress`70%`P1 progress`76%`
- Backlog 需明確批准 items`3``AUTO-P1-004``AUTO-P2-004``AUTO-P3-001`)。
**本地驗證**
- JSON parse通過。
- zh-TW / en i18n key mirror`missing=0``extra=0`
- `cmp -s apps/web/messages/zh-TW.json apps/web/messages/en.json`:通過,兩份訊息檔維持繁中鏡像一致
- `py_compile`:通過。
- `pytest apps/api/tests/test_ai_agent_automation_inventory_snapshot.py apps/api/tests/test_ai_agent_automation_inventory_snapshot_api.py apps/api/tests/test_ai_agent_automation_backlog_snapshot.py apps/api/tests/test_ai_agent_automation_backlog_snapshot_api.py -q``15 passed`
- `pnpm --filter @awoooi/web typecheck`:通過。
@@ -30229,17 +30254,38 @@ production browser smoke:
- `python3 scripts/security/source-control-owner-response-guard.py --root .``SOURCE_CONTROL_OWNER_RESPONSE_GUARD_OK`
- `python3 scripts/security/security-mirror-progress-guard.py --root .``SECURITY_MIRROR_PROGRESS_GUARD_OK`
- `git diff --check`:通過。
- 本地 desktop `http://127.0.0.1:3124/zh-TW/governance?tab=automation-inventory``進度彙總``AUTO-P1-305``AUTO-P1-306`、批准邊界與 runtime 禁止文案可見;`horizontalOverflow=0`;截圖 `/tmp/awoooi-p1-305-306-governance-local-desktop.png`
- 本地 mobile `390x900`:同上,`horizontalOverflow=0`;截圖 `/tmp/awoooi-p1-305-306-governance-local-mobile.png`
**Gitea / CD**
- Code-review run`2593`Actions run `3714``ai-code-review` success。
- CD run`2592`Actions run `3713``tests``build-and-deploy``post-deploy-checks` 全部 success。
- 最新 `gitea/main``af3a9d48`;本輪未 force push、未 destructive git。
**正式站 API readback**
- `https://awoooi.wooo.work/api/v1/health``status=healthy``environment=prod`
- `GET /api/v1/agents/automation-backlog-snapshot``current_task_id=P1-306``next_task_id=P1-001``overall_completion_percent=70``total_items=23`、done `16`、planned `7``read_only_allowed=20`
- `progress_summary`overall `70%`、P1 `76%`、WS2 `67%`、WS4 `100%`、WS5 `100%`、WS8 `100%`;百分比僅由 `status=done / total_items` 重算。
- `AUTO-P1-305``AUTO-P1-306` 均可見,且 `approval_boundary.mode=read_only_allowed`blocked actions 包含 `production_write``runtime_execution``destructive_operation``secret_plaintext_collection``unapproved_deploy``unapproved_external_call`
- `GET /api/v1/agents/automation-inventory-snapshot``current_task_id=P1-306``next_task_id=P1-001``task_approval_boundary_rollup.total_tasks=26``read_only_allowed=24`、需明確批准 tasks `2`
- `P1-305``P1-306` task 均可見,且批准邊界只允許讀取 committed snapshot、整理只讀證據與顯示治理 UI。
**正式站 Browser smoke**
- Desktop `https://awoooi.wooo.work/zh-TW/governance?tab=automation-inventory&_v=af3a9d48-p1-305-306-prod-desktop`viewport `1440x1000`:治理頁、自動化盤點、進度彙總、待辦進度、`P1-305``P1-306`、批准邊界與 runtime 禁止文案可見;無錯誤文字;`horizontalOverflow=0`;截圖 `/tmp/awoooi-governance-p1-305-306-prod-desktop-af3a9d48.png`
- Mobile `https://awoooi.wooo.work/zh-TW/governance?tab=automation-inventory&_v=af3a9d48-p1-305-306-prod-mobile`viewport `390x844`:同上;無錯誤文字;`horizontalOverflow=0`;截圖 `/tmp/awoooi-governance-p1-305-306-prod-mobile-af3a9d48.png`
- Mobile progress detail`進度彙總` 區塊可見,顯示 overall `70%`、done `16/23`、planned `7`、需批准 `3``horizontalOverflow=0`;截圖 `/tmp/awoooi-governance-p1-305-306-prod-mobile-progress-af3a9d48.png`
- Mobile task cards`AUTO-P1-305``AUTO-P1-306` 與「禁止:生產寫入 / 執行期操作 / 破壞性操作」可見;`horizontalOverflow=0`;截圖 `/tmp/awoooi-governance-p1-305-306-prod-mobile-tasks-af3a9d48.png`
**目前狀態**
- P1-305 任務批准邊界:本地 `100%`
- P1-306 進度百分比彙總:本地 `100%`
- 正式站待推版與 production smoke 後收斂
- 所有非只讀操作仍需 OpenClaw 仲裁與人工批准
- P1-305 任務批准邊界:本地 `100%`,正式站 `100%`
- P1-306 進度百分比彙總:本地 `100%`,正式站 `100%`
- AI Agent automation backlogdone `16 / 23`,整體 `70%`;下一步回到 `P1-001` runtime surface 只讀盤點
- Runtime execution authorized`false`active runtime gate`0`production write / unapproved deploy / secret plaintext collection / active scan 仍全部禁止
**下一步**
1. Commit 並推送 Gitea main
2. 等待 Gitea CD / deploy marker
3. 以 production API 與 `/zh-TW/governance?tab=automation-inventory` 做 desktop / mobile smoke確認進度彙總、批准邊界、無水平溢出與無執行按鈕
1. 同步另一個 AwoooP Sessioncode commit `4f0787f8`、deploy marker `af3a9d48`、code-review `2593`、CD `2592`、production API / Browser smoke 結果與 `0 / false` 邊界
2. 推進 `P1-001` runtime surface 只讀盤點;仍不得把 UI 可見、AwoooP approval 或 snapshot 進度當 runtime 授權
3. 若下一段涉及版本來源或 owner response重跑 source-control owner response guard 與 security mirror progress guard 後再推進
## 2026-06-05 — P1-305 / P1-306 正式環境 rollout smoke