Codex commitsdedb1208+b710f3f3(governance enrich + normalize) 把 _alert("governance_self_failure", ...) 的 payload structure 重構成嵌套: {status, impact: {failed_checks, total_checks, errors}, remediation, actionable} (governance_agent.py:604-624,2026-04-29 critic M6 修), 但 3 個 test 還用舊路徑 `payload["total_checks"]` 直讀,KeyError 後 RuntimeError 模擬 cascading 失敗。 修法:3 個 assertion 改為讀正確嵌套路徑: - test_governance_agent.py:601 → payload["impact"]["total_checks"|"failed_checks"] - test_wave8_remaining_blockers.py:223 → 同 - test_wave8_remaining_blockers.py:268 → 同 Tests: 30 passed (test_governance_agent + test_wave8_remaining_blockers 全部) 效果:解開dedb1208/b710f3f3/a38d9112三個 commit 因 governance test fail 被擋在 build-and-deploy 之前的卡點,恢復 CD 鏈通暢。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
11 KiB
11 KiB