Help us shape the future of Go! Take the 2026 Go Developer Survey

historical

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package historical loads the byte-fixed synthetic compatibility corpus. It supplies test input only; it never invokes an artifact producer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attempt

type Attempt struct {
	SessionID            string `json:"session_id,omitempty"`
	RunID                string `json:"run_id,omitempty"`
	ReviewID             string `json:"review_id,omitempty"`
	AttemptID            string `json:"attempt_id"`
	Role                 string `json:"role,omitempty"`
	Provider             string `json:"provider,omitempty"`
	PromptManifestPath   string `json:"prompt_manifest_path,omitempty"`
	PromptManifestSHA256 string `json:"prompt_manifest_sha256,omitempty"`
	StdinPath            string `json:"stdin_path,omitempty"`
	StdinSHA256          string `json:"stdin_sha256,omitempty"`
	CompleteStdinSHA256  string `json:"complete_stdin_sha256,omitempty"`
	TemplateID           string `json:"template_id,omitempty"`
	TemplateVersion      string `json:"template_version,omitempty"`
	TemplateSHA256       string `json:"template_sha256,omitempty"`
	Reason               string `json:"reason"`
}

Attempt records a baseline committed-attempt result and its frozen inputs.

type AttemptSelector

type AttemptSelector struct {
	Role      string `json:"role"`
	Provider  string `json:"provider"`
	AttemptID string `json:"attempt_id"`
	Reason    string `json:"reason"`
}

AttemptSelector records an exact role/provider selection or its refusal.

type Case

type Case struct {
	ID               string            `json:"id"`
	Family           string            `json:"family"`
	SessionID        string            `json:"session_id"`
	RunID            string            `json:"run_id"`
	ReviewID         string            `json:"review_id"`
	Formats          []string          `json:"formats"`
	Bindings         []string          `json:"bindings"`
	Controls         []string          `json:"controls"`
	Expected         Expected          `json:"expected"`
	Files            []File            `json:"files"`
	Attempts         []Attempt         `json:"attempts,omitempty"`
	AttemptSelectors []AttemptSelector `json:"attempt_selectors,omitempty"`
	// contains filtered or unexported fields
}

Case is one complete logical store, including its required ancestors.

func (Case) Artifacts

func (c Case) Artifacts() map[string][]byte

Artifacts returns owned copies of the fixed stored bytes.

func (Case) Materialize

func (c Case) Materialize(root string) error

Materialize installs only frozen fixture members beneath a caller-owned root.

type Corpus

type Corpus struct {
	Version      int    `json:"version"`
	SourceCommit string `json:"source_commit"`
	Cases        []Case `json:"cases"`
}

Corpus is a test-only inventory; its format is not a public Mulgae contract.

func Load

func Load() (Corpus, error)

Load reads the checked-in corpus without generating or rewriting any bytes.

func LoadFrom

func LoadFrom(directory string) (Corpus, error)

LoadFrom also permits checksum tests against an isolated corpus copy.

type Expected

type Expected struct {
	NativeReadReason    string `json:"native_read_reason"`
	NativeRuntimeReason string `json:"native_runtime_reason"`
	ExportSHA256        string `json:"export_sha256"`
	ArchiveSHA256       string `json:"archive_sha256"`
	ReadReason          string `json:"read_reason"`
	RuntimeReason       string `json:"runtime_reason"`
	RecoveryReason      string `json:"recovery_reason"`
	Publication         string `json:"publication"`
	Content             string `json:"content"`
	Coverage            string `json:"coverage"`
	CI                  string `json:"ci"`
	Exit                int    `json:"exit"`
	Findings            int    `json:"findings"`
	Report              string `json:"report"`
	Cleanup             string `json:"cleanup"`
}

Expected records the preserved operation result, not a new acceptance policy.

type File

type File struct {
	Path       string `json:"path"`
	Data       string `json:"data"`
	SHA256     string `json:"sha256"`
	ByteLength int    `json:"byte_length"`
}

File binds a logical store path to immutable ordinary testdata bytes.

Jump to

Keyboard shortcuts

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