tester

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT 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 tester holds the tester stage's verdict contract and the sandbox its acceptance commands run in: the agent allow-listed environment minus model credentials, GitHub tokens and proxy settings, inside a network namespace when the host can create one.

Index

Constants

View Source
const Contract = `` /* 584-byte string literal not displayed */

Contract is appended to every tester prompt, so an old or customized tester.md still yields a parseable verdict.

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, dir, name string, args ...string) (cmd *exec.Cmd, networkIsolated bool)

Command builds a scenario command in dir with the sandbox environment. When the host can create a network namespace the command runs inside one, making "no network" a property of the process rather than of the environment; networkIsolated reports which happened. A false result is information, not a failure: the caller records it so a scenario whose failure mode depends on egress is read as inconclusive, never as a pass.

func Env

func Env() []string

Env returns the environment for one tester scenario run.

Types

type Verdict

type Verdict struct {
	Verdict   string // PASS, FAIL or INCONCLUSIVE
	HeadSHA   string
	BaseSHA   string
	Scenarios string
	Evidence  string
}

Verdict is the parsed report tail.

func ParseVerdict

func ParseVerdict(output string) (v Verdict, found bool)

ParseVerdict reads the verdict block; the last one wins.

Jump to

Keyboard shortcuts

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