Documentation
¶
Overview ¶
Package review implements the review engine: deterministic PRD checks, the approval bar, and conversion of adversarial-review output into structured Findings (§11, §13–§16).
Index ¶
- func AllDispositioned(findings []domain.Finding) bool
- func DeterministicChecks(initiativeID string, reqs []domain.Requirement) []domain.Finding
- func EvaluateApproval(findings []domain.Finding) (blocked bool, reason string)
- func ParseFindings(reviewRunID, targetType, targetID string, obj map[string]any) ([]domain.Finding, error)
- func VagueTarget(target string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDispositioned ¶
AllDispositioned reports whether every finding has a disposition (§11, §16).
func DeterministicChecks ¶
func DeterministicChecks(initiativeID string, reqs []domain.Requirement) []domain.Finding
DeterministicChecks runs the cheap, deterministic PRD checks (§11, §16): (1) no empty acceptance criteria, (2) no vague-only criteria, (3) unique REQ codes. These run before the adversarial reviewer.
func EvaluateApproval ¶
EvaluateApproval implements the approval bar (§11): an initiative may not be approved while any critical/high finding is not dispositioned as fixed or (human) accepted_risk.
func ParseFindings ¶
func ParseFindings(reviewRunID, targetType, targetID string, obj map[string]any) ([]domain.Finding, error)
ParseFindings converts a validated adversarial-review object into Findings.
func VagueTarget ¶
VagueTarget reports whether a target is a bare evaluative adjective with no quantified predicate.
Types ¶
This section is empty.