Documentation
¶
Overview ¶
Package optimisation computes reviewable proposals from explicitly supplied evidence. It cannot read source, call a model, publish or dispatch a workflow.
Index ¶
Constants ¶
View Source
const MaxCheckoutSourceBytes = 32 << 10
Variables ¶
View Source
var ErrUnsupported = errors.New("checkout preview needs pinned regular workflow source, matching successful timing evidence, reviewed history needs and source/edit policy")
Functions ¶
Types ¶
type HistoryReview ¶
HistoryReview explicitly covers repository tooling and downstream consumers. Source scanning alone cannot discover every need for tags or commit history.
type Preview ¶
type Preview struct {
Version string
Kind string
State string
HeadSHA string
SourceSHA256 string
AfterSHA256 string
EvidenceID string
RunID string
Attempt int
JobIndex int
StepIndex int
Line int
CheckoutMS int64
Edit prrepair.Edit
File prrepair.File
Verification string
Explanation string
}
func PreviewCheckout ¶
type Timing ¶
type Timing struct {
EvidenceID string
HeadSHA string
SourceSHA256 string
RunID string
Attempt int
JobIndex int
StepIndex int
Outcome string
CheckoutMS *int64
}
Timing is caller-supplied, not independently attested by this package. A future collector must bind the exact run, attempt and step before admitting it.
Click to show internal directories.
Click to hide internal directories.