review

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllDispositioned

func AllDispositioned(findings []domain.Finding) bool

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

func EvaluateApproval(findings []domain.Finding) (blocked bool, reason string)

EvaluateApproval implements the approval bar (§11): an initiative may not be approved while any critical/high finding is not resolved (Finding. ResolvesBlocking -- fixed, accepted_risk, or a human's rejected on a reviewer's own judgment call; see its doc comment, ICP re-run defect #2). An Advisory finding never blocks, whatever its severity (review B1's rigor-cap note, and review B2's "about code this change set did not touch").

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

func VagueTarget(target string) bool

VagueTarget reports whether a target is a bare evaluative adjective with no quantified predicate.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL