testfixtures

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package testfixtures exposes the shared, data-driven evidence matrix used by session-classification acceptance tests. It contains no classification policy; tool categories are checked by consumers through lipapi.

Index

Constants

View Source
const (
	ClassificationUnknown     = "unknown"
	ClassificationCodingAgent = "coding_agent"

	IdentityHighConfidence              = "high_confidence"
	IdentityAmbiguous                   = "ambiguous"
	IdentityUnsupportedByUserAgentAlone = "unsupported_by_user_agent_alone"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EvidenceFixture

type EvidenceFixture struct {
	ID                       string         `json:"id"`
	Harness                  string         `json:"harness,omitempty"`
	IdentityField            string         `json:"identityField,omitempty"`
	IdentityValue            string         `json:"identityValue,omitempty"`
	ToolEvidence             []ToolEvidence `json:"toolEvidence,omitempty"`
	ProjectMarkers           []string       `json:"projectMarkers,omitempty"`
	WeakSignals              []string       `json:"weakSignals,omitempty"`
	WeakPrompt               string         `json:"weakPrompt,omitempty"`
	ModelName                string         `json:"modelName,omitempty"`
	IgnoredUserAgentPrefixes []string       `json:"ignoredUserAgentPrefixes,omitempty"`
	PriorClassification      string         `json:"priorClassification,omitempty"`
	ExpectedClassification   string         `json:"expectedClassification"`
	ExpectedEvidenceCodes    []string       `json:"expectedEvidenceCodes"`
	SourceRefs               []string       `json:"sourceRefs"`
	Reason                   string         `json:"reason"`
}

type HarnessIdentity

type HarnessIdentity struct {
	Harness       string   `json:"harness"`
	Status        string   `json:"status"`
	IdentityField string   `json:"identityField"`
	Examples      []string `json:"examples"`
	SourceRefs    []string `json:"sourceRefs"`
	Reason        string   `json:"reason"`
}

type Matrix

type Matrix struct {
	SchemaVersion          int               `json:"schemaVersion"`
	Sources                []Source          `json:"sources"`
	HarnessIdentitySupport []HarnessIdentity `json:"harnessIdentitySupport"`
	Fixtures               []EvidenceFixture `json:"fixtures"`
}

Matrix freezes the evidence and identity support table for later acceptance tests without embedding a second classifier in this package.

func Load

func Load() (Matrix, error)

Load decodes the embedded matrix so tests in other packages can consume the same artifact independent of their working directory.

type Source

type Source struct {
	ID          string `json:"id"`
	Reference   string `json:"reference"`
	Description string `json:"description"`
}

type ToolEvidence

type ToolEvidence struct {
	Name             string `json:"name"`
	ExpectedCategory string `json:"expectedCategory"`
	Description      string `json:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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