Documentation
¶
Overview ¶
Package oracle owns the frozen legacy evidence format and its integrity checks.
Index ¶
- Constants
- func ConfigureCommand(cmd *exec.Cmd)
- func CountSymbols(data []byte) (functions int, definedSymbols int, auditFunctions int, err error)
- func Digest(data []byte) string
- func Directory() string
- func Inventory(dir string) (map[string]bool, []string, error)
- func JSON(value any) ([]byte, error)
- func ModelSnapshot(value any) string
- func Publish(dir string, b Bundle, refreeze bool) error
- func ReadJSON(path string, value any) error
- func SelectedSites(dir string, tests []string) (map[string]bool, error)
- func Snapshot(value any) string
- func Unconsumed(b Bundle, prefix string, consumed map[string]bool, selection Selection) ([]string, error)
- func Validate(b Bundle) error
- type AuditedSource
- type BuildEnvironment
- type Bundle
- type ComparisonAudit
- type Provenance
- type Record
- type Replay
- type Selection
- type State
Constants ¶
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func ConfigureCommand ¶
ConfigureCommand cancels all compiler descendants with their command owner.
func CountSymbols ¶
CountSymbols is shared by the live footprint gate and the legacy recorder.
func ModelSnapshot ¶
func Snapshot ¶
Snapshot records structure, not Go formatting. Named model identities are intentionally erased so separately generated and handwritten models compare. Kind tags, lengths, field names and presence survive that normalization.
Types ¶
type AuditedSource ¶
type BuildEnvironment ¶
type BuildEnvironment struct {
GOFLAGS string
GOWORK string
GOENV string
GOOS string
GOARCH string
CGO_ENABLED string
GOEXPERIMENT string
GOTOOLCHAIN string
GOMOD string
GOROOT string
GOVERSION string
GCFlags string
}
BuildEnvironment is the effective `go env -json` snapshot in each module. GOFLAGS is fixed: overlays, alternate modfiles, tags, gcflags and ldflags are not accepted inputs to an oracle freeze. Workspace and persistent GOENV are off.
func (BuildEnvironment) Validate ¶
func (b BuildEnvironment) Validate(dir string) error
type Bundle ¶
type ComparisonAudit ¶
type ComparisonAudit struct {
Files map[string]AuditedSource `json:"files"`
}
ComparisonAudit is the historical capture census. Its PostgreSQL entry points remain the source of backend requirements for replay; source hashes describe the retired checkout and are not regenerated from replacement declarations.
type Provenance ¶
type Record ¶
type Record struct {
Package string `json:"package,omitempty"`
Site string `json:"site"`
Kind string `json:"kind"`
Transcript string `json:"transcript"`
Provenance Provenance `json:"provenance"`
}
type Replay ¶
Replay is owned by one test package; the prefix separates identical test names in different fixture packages. Main enforces consumption after all subtests exit.
func NewReplayAt ¶
NewReplayAt selects an independent frozen bundle, without changing fixture defaults.
type Selection ¶
type Selection struct {
// contains filtered or unexported fields
}
Selection follows Go's slash-separated test regex syntax. Expected records come only from the frozen inventory and flags, never from observed callbacks.
func SelectTests ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
freeze-oracles
command
Command freeze-oracles publishes a reviewed framework legacy capture bundle.
|
Command freeze-oracles publishes a reviewed framework legacy capture bundle. |