Documentation
¶
Index ¶
Constants ¶
View Source
const ManifestVersion = "context-manifest/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lane ¶
type Lane string
const ( LaneRequiredInput Lane = "required_input" LaneOptionalExistingOutput Lane = "optional_existing_output" LaneProspectiveOutput Lane = "prospective_output" // RequiredInputSchemaMismatch records the stage-2 contract gap explicitly: // task rows have no required-input field. Callers must pass that lane // separately; task.Files is write scope and is never treated as input. RequiredInputSchemaMismatch = "stage-2 tasks have no required-input field; pass required inputs explicitly" )
type Manifest ¶
type Manifest struct {
Version string `json:"version"`
Root string `json:"root"`
Change string `json:"change"`
Task string `json:"task"`
Role string `json:"role"`
StateRevision uint64 `json:"stateRevision"`
ApprovalHash string `json:"approvalHash"`
Frontier []string `json:"frontier"`
FrontierHash string `json:"frontierHash"`
Items []ManifestItem `json:"items"`
Omissions []Omission `json:"omissions"`
RequiredBytes int `json:"requiredBytes"`
OptionalBytes int `json:"optionalBytes"`
Authority Authority `json:"authority"`
ManifestHash string `json:"manifestHash"`
}
func BuildManifest ¶
type ManifestError ¶
func (*ManifestError) Error ¶
func (e *ManifestError) Error() string
type ManifestItem ¶
type ResolveError ¶
func (*ResolveError) Error ¶
func (e *ResolveError) Error() string
type ResolvedSource ¶
type ResolvedSource struct {
Path string
Lane Lane
Selector string
Location plan.Location
Digest string
Content []byte
}
func ResolveContextLanes ¶
func ResolveContextLanes(root string, requiredInputs, declaredOutputs []SourceRef) ([]ResolvedSource, error)
ResolveContextLanes resolves explicit required read inputs and declared write outputs. It returns no partial result on any refusal.
Click to show internal directories.
Click to hide internal directories.