mutantserver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mutantserver applies one explicit primary fault to the deterministic reference fixture. Mutation IDs are stable evidence identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	ID() string
	Primary() bool
	Apply(*referenceserver.Exchange) error
}

func Annotation

func Annotation(id, key, value string) (Component, error)

Annotation is a non-fault metadata decorator, allowing composition without weakening the exactly-one-primary invariant.

func Mutation

func Mutation(id ID) (Component, error)

type Entry

type Entry struct {
	ID          ID
	Description string
	Protocols   []referenceserver.Protocol
}

func Catalog

func Catalog() []Entry

type ID

type ID string
const (
	ArgumentsObjectInsteadOfString ID = "arguments-object-instead-of-string"
	MissingOutputIndex             ID = "missing-output-index"
	DuplicateOutputIndex           ID = "duplicate-output-index"
	DroppedStreamingToolCall       ID = "dropped-streaming-tool-call"
	InvalidFinishReason            ID = "invalid-finish-reason"
	MissingTerminalEvent           ID = "missing-terminal-event"
	DuplicateTerminalEvent         ID = "duplicate-terminal-event"
	ToolCallIDChanged              ID = "tool-call-id-changed"
	UnknownEventCrashesClient      ID = "unknown-event-crashes-client"
	UnclosedReasoningBlock         ID = "unclosed-reasoning-block"
	UsageInconsistent              ID = "usage-inconsistent"
	TruncatedUTF8                  ID = "truncated-utf8"
	NullCompletedOutput            ID = "null-completed-output"
)

type Plan

type Plan struct {
	// contains filtered or unexported fields
}

func Compose

func Compose(components ...Component) (*Plan, error)

func New

func New(id ID) (*Plan, error)

func (*Plan) Apply

func (plan *Plan) Apply(exchange *referenceserver.Exchange) error

func (*Plan) ID

func (plan *Plan) ID() string

Jump to

Keyboard shortcuts

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