review

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 5 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

View Source
const OutcomeCategory = "outcome"

OutcomeCategory is the Finding.Category of every outcome-chain finding.

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 OutcomeChecks added in v0.7.0

func OutcomeChecks(initiativeID string, reqs []domain.Requirement, objectives []domain.Objective, metrics []domain.OutcomeMetric) []domain.Finding

OutcomeChecks are the deterministic outcome-chain checks on a PRD:

  • with at least one active objective, every active requirement must serve one (high, targeted at -- and so citing -- the requirement): work with no stated outcome is exactly what verification cannot catch, since it can pass every test and still not matter;
  • every active objective must have at least one live metric (high, targeted at the objective): an objective nobody can measure is a promise nobody can check;
  • a PRD that defines no active objective at all gets one medium finding, not a block per requirement. It is a gap a human should see, and a PRD written before objectives existed (or by a model that ignored the field) must not wedge in review over it.

They run with the other deterministic checks, before the adversarial reviewer, so -- like a missing acceptance criterion -- they gate approval at every rigor and the reviser is told about them by label (D1, D2, ...). objectives and metrics are the LIVE (non-superseded) ones; requirements carry ObjectiveIDs from the store.

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