Route auto review requests to agentic review
This commit is contained in:
parent
9fa1d9e9b5
commit
8f484cd855
15 changed files with 208 additions and 47 deletions
|
|
@ -423,6 +423,8 @@ def _known_regression_patterns(
|
|||
|
||||
|
||||
def _execution_mode(decisions: list[ReviewDecision]) -> str:
|
||||
if any(decision.action.startswith("agentic_review") for decision in decisions):
|
||||
return "agentic-review"
|
||||
if any(decision.action == "trusted_auto_approve_candidate_graph" for decision in decisions):
|
||||
return "trusted-auto-review"
|
||||
if any(decision.action == "llm_extraction_used" for decision in decisions):
|
||||
|
|
@ -439,6 +441,12 @@ def _candidate_source(decisions: list[ReviewDecision]) -> str:
|
|||
|
||||
|
||||
def _acceptance_mode(decisions: list[ReviewDecision]) -> str:
|
||||
agentic_decision = next(
|
||||
(decision for decision in decisions if decision.action.startswith("agentic_review")),
|
||||
None,
|
||||
)
|
||||
if agentic_decision is not None:
|
||||
return agentic_decision.action
|
||||
if any(decision.action == "trusted_auto_approve_candidate_graph" for decision in decisions):
|
||||
return "trusted_auto_approve_candidate_graph"
|
||||
if any(decision.action == "approve_candidate_graph" for decision in decisions):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue