feat(agents): route high risk through controlled automation
Some checks failed
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Failing after 1m8s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-26 18:52:19 +08:00
parent 717f0edd33
commit e0a86b6254
65 changed files with 733 additions and 516 deletions

View File

@@ -50,7 +50,7 @@ def build_reference_candidate_result(
"proposed_action": action,
"action_plan": _action_plan(action),
"risk_level": risk_level,
"requires_human_approval": risk_level in {"medium", "high", "critical"},
"requires_human_approval": risk_level == "critical",
"blocked_by_policy": False,
"fallback_used": False,
"trace_complete": True,