verifier

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package verifier runs structural quality checks on a model response and decides whether to retry, accept, or defer. (SmallCode's quality monitor, minus the coding-agent rollback bits.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verdict

type Verdict struct {
	OK     bool
	Retry  bool   // worth one corrective re-prompt
	Reason string // populated when !OK
	// Terminal marks a failure that a LARGER tier cannot fix either, so the
	// pipeline should defer to Opus immediately instead of escalating. Truncation
	// is the case: every local tier shares the same context window, so climbing
	// to the slow 26B-A4B just burns compute before deferring anyway.
	Terminal bool
}

Verdict is the outcome of a quality check.

func Check

func Check(content string, truncated bool, parseErr error) Verdict

Check inspects raw content, whether it was truncated, and any parse error.

Jump to

Keyboard shortcuts

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