Documentation
¶
Index ¶
- Variables
- func CheckMaterialInventory(root string, artifact Material) error
- func DefaultArchive() (string, error)
- func Digest(p string) (string, error)
- func Inventory(root string, empty bool) (tool.Object, error)
- func Keys(m tool.Object) []string
- func Local(name string) bool
- func Phases(plan tool.Object) [][2]string
- func Read(p string) (tool.Object, error)
- func RecordingAgentType(plan, manifest, rawManifest tool.Object) (string, error)
- func Regular(root, name string) (string, error)
- func Resolved(p string) (string, error)
- func ScanCaptureCredentials(root string) (string, error)
- func ScanCaptureCredentialsWithEnvironment(root string, env map[string]string) (string, error)
- func SelectionProvenance(plan, manifest tool.Object) (string, error)
- func ValidateOfficialCapture(artifact Material) error
- func ValidateOfficialRecord(root string, artifact Material) error
- func ValidateVerificationSource(material Material, inventory tool.Object) error
- func VerifyAdoptedFiles(root string) (tool.Object, error)
- func VerifyFile(root, path, digest string) error
- func VerifyMaterials(root string, requireComplete bool) error
- func VerifySourcePhase(root string, requireComplete bool) error
- func Within(p, root string) bool
- func Write(p string, value any) error
- func WriteSourceManifest(root string, outcome tool.Result) error
- type Corpus
- func (c *Corpus) Adopt(source, replay, reviewPath string) (target string, err error)
- func (c *Corpus) AdoptWithIndexReplacement(source, replay, reviewPath string, replace func(string, string) error) (target string, err error)
- func (c *Corpus) Catalog() (tool.Object, error)
- func (c *Corpus) LoadIndex() (tool.Object, error)
- func (c *Corpus) Normalize() error
- func (c *Corpus) Qualification(source, replay string, manual bool) (tool.Object, error)
- func (c *Corpus) ValidateAdmission(source, replay string, review tool.Object) (tool.Object, error)
- func (c *Corpus) VerifyAdopted(entry tool.Object) (string, error)
- type Material
- type MaterialInspection
- type OfficialOrigin
- type Validation
- func (v *Validation) Check(ok bool, message string)
- func (v *Validation) Digest(root, name string) string
- func (v *Validation) Hashes(root string, hashes tool.Object)
- func (v *Validation) Inventory(root string, empty bool) tool.Object
- func (v *Validation) Read(root, name string) tool.Object
- func (v *Validation) Replay(source, replay string, plan tool.Object, mode string)
- func (v *Validation) ReplayEvidence(replay string, plan tool.Object) tool.Object
- func (v *Validation) Required(source string, plan tool.Object) tool.Object
- func (v *Validation) Summary(root, mode string, plan tool.Object) tool.Object
Constants ¶
This section is empty.
Variables ¶
var SourceEvidence = []string{"plan.json", "manifest.json", "report.json", "result.json", "summary.json"}
Functions ¶
func CheckMaterialInventory ¶
func DefaultArchive ¶
func RecordingAgentType ¶
RecordingAgentType reconciles every saved agent identity before fixture import.
func ScanCaptureCredentials ¶
The scan describes this capture only. It never sanitizes or rewrites evidence.
func ScanCaptureCredentialsWithEnvironment ¶
ScanCaptureCredentialsWithEnvironment is for prepared actions whose selected environment is already represented by a descriptor and must not be copied into material as a private native.env file.
func ValidateOfficialCapture ¶
ValidateOfficialCapture checks portable, sealed capture ownership. It does not read the originating fixture or imply that the parent's business passed.
func ValidateOfficialRecord ¶
ValidateOfficialRecord is the downstream qualification seam. Capture ownership alone is insufficient: verify/admission must require the exact successful run, business report, supervised connections and unchanged material hashes.
func ValidateVerificationSource ¶
Legacy material keeps its original evidence contract. New public recordings seal capture provenance before the parent business report exists.
func VerifyAdoptedFiles ¶
VerifyAdoptedFiles validates the reduced immutable view. External mock may reuse its saved-history hashes without claiming official/publication eligibility.
func VerifyFile ¶
func VerifyMaterials ¶
Check source bytes, not runtime identities: current drivers, SDK versions and peer binaries remain freely selectable. Shared/synthetic materials need no recording manifest. Existing manifests, when present, must remain truthful.
func VerifySourcePhase ¶
Types ¶
type Corpus ¶
type Corpus struct {
Index, Scenarios, Archive string
}
Corpus policy belongs to the Go tool, not to an SDK driver. Paths are explicit so the compiled binary can operate outside its source checkout.
func (*Corpus) AdoptWithIndexReplacement ¶
func (*Corpus) Qualification ¶
func (*Corpus) ValidateAdmission ¶
type Material ¶
type Material struct {
OfficialOrigin *OfficialOrigin `json:"officialOrigin,omitempty"`
Files map[string]string `json:"files,omitempty"`
ID string `json:"id"`
Kind string `json:"kind"`
Action string `json:"action"`
Provenance string `json:"provenance"`
Path string `json:"path"`
PlanSHA256 string `json:"planSHA256"`
ManifestSHA256 string `json:"manifestSHA256"`
RecordingSHA256 string `json:"recordingSHA256"`
Connections []string `json:"connections"`
CreatedAt string `json:"createdAt"`
}
func ReadMaterial ¶
ReadMaterial describes an imported payload. Its caller assigns fixture-local identity and checks any builtin snapshot against the builtin contract.
type MaterialInspection ¶
type MaterialInspection struct {
Plan tool.Object
Manifest tool.Object
Provenance string
HistoryFiles map[string]string
}
func InspectMaterial ¶
func InspectMaterial(artifact Material) (*MaterialInspection, error)
type OfficialOrigin ¶
type OfficialOrigin struct {
RunID string `json:"runId"`
FixtureID string `json:"fixtureId"`
CaseID string `json:"caseId"`
AgentType string `json:"agentType"`
RecordSourceSHA256 string `json:"recordSourceSHA256"`
SourceSHA256 string `json:"sourceSHA256"`
DriverSHA256 string `json:"driverSHA256"`
Connections []string `json:"connections"`
}
OfficialOrigin identifies capture ownership, not a business pass. It is sealed into the material before publication; the later run result is separate evidence.
func (*OfficialOrigin) UnmarshalJSON ¶
func (o *OfficialOrigin) UnmarshalJSON(data []byte) error
UnmarshalJSON keeps immutable repository evidence readable after the tool-owned identity moved from sessionId to fixtureId. MarshalJSON remains the default struct encoding and therefore never writes the old field.
type Validation ¶
type Validation struct{ Err error }
Validation keeps the first error. Subsequent reads/checks cannot turn a missing or malformed artifact into a successful qualification.
func (*Validation) Check ¶
func (v *Validation) Check(ok bool, message string)
func (*Validation) Digest ¶
func (v *Validation) Digest(root, name string) string
func (*Validation) Replay ¶
func (v *Validation) Replay(source, replay string, plan tool.Object, mode string)