generated from coulomb/repo-seed
Route auto review requests to agentic review
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from repo_registry.acceptance.agentic import AgenticReviewer, AgenticReviewRequest
|
||||
from repo_registry.acceptance.criteria import (
|
||||
active_quality_criteria_version,
|
||||
criteria_registry_dict,
|
||||
@@ -14,6 +15,8 @@ from repo_registry.acceptance.gates import (
|
||||
|
||||
__all__ = [
|
||||
"active_quality_criteria_version",
|
||||
"AgenticReviewer",
|
||||
"AgenticReviewRequest",
|
||||
"blocking_quality_gate_outcomes",
|
||||
"criteria_registry_dict",
|
||||
"criteria_registry_json",
|
||||
|
||||
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."""
|
||||
Reference in New Issue
Block a user