fix(web): 補齊 P2-403H 治理頁翻譯
This commit is contained in:
@@ -1,3 +1,30 @@
|
||||
## 2026-06-12|P2-403H Governance UI / i18n 顯示修補
|
||||
|
||||
**背景**:P2-403H Post-write Verifier Package API 已在正式站回傳新快照後,治理頁正式 DOM / console 驗證發現兩個顯示層缺口:`postWriteVerifierPackage.verifier_package.owner_agent` 不存在但前端仍嘗試渲染,造成 `redisDryRunGate.agents.undefined`;P2-402 proactive approval gate 新增多個 gate id,但訊息檔尚未補齊,造成 `MISSING_MESSAGE`。
|
||||
|
||||
**完成**:
|
||||
|
||||
- `AiAgentPostWriteVerifierPackageSnapshot` 已對齊正式 API:`verifier_package` 不再宣告不存在的 `owner_agent` / `package_id` / `display_name` / `status`;`verification_targets` 改用 `verifier_check` 與 `failure_escalation`;`failure_lanes` 改用 `trigger`。
|
||||
- Governance automation inventory 的 P2-403H 區塊不再讀不存在的 owner 欄位,verification target 改顯示 verifier check 與 failure escalation。
|
||||
- `redisDryRunValueLabel` 對空值回傳 `未指定`,避免再組出 `agents.undefined`。
|
||||
- `zh-TW.json` / `en.json` 補齊目前 P2-402 主動營運契約實際出現的 approval gate label,避免正式頁 console 出現 `proactiveOperations.approvalGates.*` missing message。
|
||||
|
||||
**本地驗證**:
|
||||
|
||||
- `python3 -m json.tool apps/web/messages/zh-TW.json` / `apps/web/messages/en.json`:通過。
|
||||
- zh-TW / en message mirror:`True`。
|
||||
- P2-402 committed approval gate 覆蓋:`APPROVAL_GATE_MISSING=[]`。
|
||||
- 靜態 grep:`verifier_package.owner_agent`、`target.operator_instruction`、`agents.undefined` 命中 `0`。
|
||||
- `git diff --check`、`security-mirror-progress-guard.py`、`source-control-owner-response-guard.py`、`doc-secrets-sanity-check.py docs .gitea`:通過。
|
||||
- `pnpm --filter @awoooi/web typecheck`:通過。
|
||||
- `NEXT_PUBLIC_API_URL=https://awoooi.wooo.work NEXT_PRIVATE_BUILD_WORKER_COUNT=1 SENTRY_SUPPRESS_GLOBAL_ERROR_HANDLER_FILE_WARNING=1 pnpm --filter @awoooi/web build`:通過;`92/92` static pages,`/zh-TW/governance` First Load JS `397 kB`。
|
||||
|
||||
**正式站驗證**:待 code commit 觸發 Gitea CD 後補。
|
||||
|
||||
**完成度同步**:P2-403H API / contract 仍為 `97%`;本段只修前端顯示與 i18n,不提高 runtime 自動化完成度。
|
||||
|
||||
**邊界**:本段未讀 canonical target、未寫 rollback work item、未發 Telegram、未寫 KM、未更新 PlayBook trust、未寫 timeline learning、未寫 replay score、未啟動 runtime worker、未讀 secret value、未新增任何前端執行按鈕。
|
||||
|
||||
## 2026-06-12|P2-403H Post-write Verifier Package
|
||||
|
||||
**背景**:統帥指出 Telegram / AwoooP 批准後仍沒有真正自動化,也沒有清楚的人工作業選項。P2-403G 已把 runtime write 前的雙重批准、dry-run hash 與 post-write verifier gate 固定下來;本段把批准後應該執行的 verifier package、rollback lane、failure lane 與人工操作選項補成可審查契約,避免 approval resolved 後仍只得到 no-action 結論。
|
||||
|
||||
Reference in New Issue
Block a user