fix(governance): 收斂前端 redaction 語彙
All checks were successful
CD Pipeline / tests (push) Successful in 1m28s
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / build-and-deploy (push) Successful in 4m22s
CD Pipeline / post-deploy-checks (push) Successful in 1m54s

This commit is contained in:
Your Name
2026-06-11 21:27:32 +08:00
parent 12fe97ab68
commit a5934edb72
6 changed files with 41 additions and 18 deletions

View File

@@ -220,10 +220,10 @@ def _require_frontend_redaction_contract(payload: dict[str, Any], label: str) ->
forbidden = set(contract.get("forbidden_frontend_content") or [])
required_forbidden = {
"內部對話內容",
"Codex / 使用者訊息逐字稿",
"提示詞 / 思考鏈",
"工作階段識別碼 / 瀏覽器脈絡",
"未核准內部內容",
"未脫敏操作紀錄",
"未核准決策細節",
"工作階段脈絡",
"機密 / 權杖 / 授權標頭",
}
if not required_forbidden.issubset(forbidden):