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
24
src/repo_registry/acceptance/agentic.py
Normal file
24
src/repo_registry/acceptance/agentic.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Protocol
|
||||
|
||||
from repo_registry.acceptance.gates import QualityGateOutcome
|
||||
from repo_registry.core.models import CandidateGraph, Repository
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AgenticReviewRequest:
|
||||
repository: Repository
|
||||
candidate_graph: CandidateGraph
|
||||
criteria_version: str
|
||||
quality_gate_outcomes: list[QualityGateOutcome]
|
||||
context: str
|
||||
|
||||
|
||||
class AgenticReviewer(Protocol):
|
||||
reviewer_id: str
|
||||
policy_version: str
|
||||
|
||||
def review(self, request: AgenticReviewRequest) -> None:
|
||||
"""Review a candidate graph and record decisions through the caller."""
|
||||
Loading…
Add table
Add a link
Reference in a new issue