feat(awooop): bridge legacy mcp audit into gateway timeline
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
CD Pipeline / tests (push) Successful in 1m4s
CD Pipeline / build-and-deploy (push) Successful in 3m22s
CD Pipeline / post-deploy-checks (push) Successful in 1m14s

This commit is contained in:
Your Name
2026-05-12 23:44:19 +08:00
parent 96a8cf3ad5
commit 94d006eac8
5 changed files with 286 additions and 2 deletions

View File

@@ -1866,6 +1866,25 @@ Phase 6 完成後
---
### 2026-05-12 晚 (台北) — T2 MCP Gateway mandatory audit — legacy MCP bridge 第一段
**範圍**
- `record_mcp_call()` 保留 legacy `mcp_audit_log` 寫入,同步橋接一筆 `awooop_mcp_gateway_audit`
- bridge row 的 `gate_result` 明確標示 `schema_version=legacy_mcp_bridge_v1``policy_enforced=false``not_used_reason=legacy direct provider path; bridge audit only`,避免把 legacy direct call 誤認為已完成五閘門治理。
- 真正走 `McpGateway` 的 provider 呼叫標記 `gateway_path=awooop_mcp_gateway`,避免重複 bridge。
- bridge `trace_id` 優先使用 `incident_id`,讓 truth-chain 可用 incident id 回查 legacy MCP 成敗。
**已驗證**
- 本地 `py_compile` / `ruff F,E9` 通過。
- MCP gateway / audit 聚焦測試 7 passed。
- PreDecision / PostExecution / Callback / Approval MCP audit 相鄰流程測試 90 passed。
**仍未宣稱完成**
- T2 API image 尚需部署後 production rollback smoke。
- 這只是 legacy bridge不是把所有呼叫強制改經 AwoooP GatewayT2 後續仍要把新 MCP caller 收斂到 first-class Gateway path。
---
### 2026-04-20 晚 (台北) — C1-C4 全流程串接 — Playbook 鏈路保護commit de2d34d
**觸發**:統帥全景盤查 AI 自動化節點後,發現 Playbook 自動修復鏈路有 3 個結構性斷點。