verifier

package
v0.209.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 1 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 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: the binding constraint is the OUTPUT BUDGET, which every tier
	// shares for a given task, so climbing to the slow 26B-A4B just burns compute
	// before deferring anyway. (Updated 2026-08-03: the old wording said every tier
	// shares one context window. That is no longer true — the seats are served at
	// different -c values, and the workhorse now has the LARGEST. Escalating on
	// truncation would move to a SMALLER window, so Terminal is more right than
	// before, for a different reason.)
	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