fix(governance): 穩定 P1-002 盤點頁文字換行
All checks were successful
CD Pipeline / tests (push) Successful in 1m30s
Code Review / ai-code-review (push) Successful in 14s
CD Pipeline / build-and-deploy (push) Successful in 4m0s
CD Pipeline / post-deploy-checks (push) Successful in 1m33s

This commit is contained in:
Your Name
2026-06-05 11:47:03 +08:00
parent 985c0b1c45
commit ff26692688
4 changed files with 30 additions and 10 deletions

View File

@@ -3508,8 +3508,8 @@ Phase 6 完成後
- P1-002新增 `GET /api/v1/agents/gitea-workflow-runner-health` 只讀 API 與 service guard強制拒絕把 snapshot 誤讀成 workflow 修改、runner restart / stop、Secret payload、Telegram 測試通知、排程變更、Gitea write token、deploy / migration workflow 觸發授權。
- P1-002治理頁 `/zh-TW/governance?tab=automation-inventory` 新增 Gitea 工作流程 / Runner 健康合約區塊不新增任何執行、部署、通知、workflow 或 runner 操作按鈕。
- 目前數字Gitea workflows `9`schedule `2`workflow_dispatch `7`notify bridge `6`actionable / failure quiet workflows `2`runner contracts `4`runner contract action_required `1`;仍需 runner owner attestation 的 workflow `8`notification contracts `6`quiet success contracts `2`automation backlog done `18/23`、overall `78%`、P1 `86%`inventory tasks `28`
- 本地驗證JSON parse 通過Gitea workflow / runner health、automation inventory、automation backlog 目標 pytest `23 passed`Python py_compile 通過zh-TW / en i18n key 差異 `0`web typecheck 通過;`source-control-owner-response-guard.py``security-mirror-progress-guard.py``git diff --check` 通過;本地 API readback 回 `gitea_workflow_runner_health_v1`、current `P1-002`、next `P1-003`、workflows `9`
- 本機 Web build / browser smoke本機磁碟 `99-100%` `.next` cache / chunk 缺檔阻擋;編譯階段曾到 `Compiled successfully`,但 page-data / dev runtime 受殘留 chunk `194.js``@swc/helpers``server-development/0.pack.gz` 缺檔影響。正式 build 與頁面驗證改由 Gitea CD / production smoke 判定
- 本地驗證JSON parse 通過Gitea workflow / runner health、automation inventory、automation backlog 目標 pytest `23 passed`Python py_compile 通過zh-TW / en i18n key 差異 `0`web typecheck 通過;Next production build 通過;`source-control-owner-response-guard.py``security-mirror-progress-guard.py``git diff --check` 通過;本地 API readback 回 `gitea_workflow_runner_health_v1`、current `P1-002`、next `P1-003`、workflows `9`
- 本機 Web build / browser smoke本機磁碟曾只剩 `124MiB`,導致 `.next` cache / chunk 半寫入;已清 build cache 並重新 build。以 standalone server 驗證 `/zh-TW/governance?tab=automation-inventory` desktop `1440x1200` 與 mobile `390x1200` smoke 通過,四個 agents API 皆 `200``Gitea 工作流程 / Runner 健康合約``P1-002``P1-003``9``8``不可誤讀合約` 可見;`horizontalOverflow=false`、overflowing elements `0`、禁止操作按鈕 `0`;截圖:`/tmp/awoooi-p1-002-gitea-health-local-desktop.png``/tmp/awoooi-p1-002-gitea-health-local-mobile.png`
**下一步:**
1. 推 Gitea main等待 code-review / CD 乾淨環境驗證,再補 production API readback 與 desktop / mobile smoke。