eval

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 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 eval hosts the deterministic quality-fixture harness: realistic tool-output classes with must-survive facts and minimum savings floors.

This is the always-runnable tier of the evaluation strategy. The dataset-backed tier (LoCoMo / RULER / BFCL accuracy deltas through a live provider) is specified in docs/eval-protocol.md and runs at release time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Report

func Report(results []Result) (string, bool)

Report renders the classic was→is table over run results and returns false if any case violated its contracts.

Types

type Case

type Case struct {
	Name          string   // fixture class
	Model         string   // model id exercising a profile family
	Original      string   // tool output as the agent produced it
	MustKeep      []string // substrings that MUST survive any squeeze
	MinSavingsPct float64  // 0 = squeeze optional; >0 = hard floor
}

Case is one quality fixture.

func StandardCases

func StandardCases() []Case

StandardCases returns the deterministic fixture set: one per common tool- output class, each with facts that must survive and a savings floor.

type Result

type Result struct {
	Case         Case
	Squeezed     bool
	Kept         bool // all MustKeep substrings present after transform
	MissingFacts []string
	OriginalByte int
	SentBytes    int
	SavingsPct   float64
}

Result reports what squoze did to one case.

func Run

func Run(cases []Case) []Result

Run executes cases against a fresh engine and returns per-case reports.

func (Result) String

func (r Result) String() string

Jump to

Keyboard shortcuts

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