Documentation
¶
Overview ¶
Package roadmapprogram validates the canonical CloudRING delivery roadmap.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDir ¶
ValidateDir validates the roadmap rooted at root.
func ValidateDirWithOptions ¶
func ValidateDirWithOptions(root string, options ValidationOptions) error
ValidateDirWithOptions validates a roadmap using explicit resolver and clock inputs suitable for a CI or goal-verifier trust boundary.
Types ¶
type EvidenceResolver ¶
type EvidenceResolver interface {
Resolve(locator string) (ResolvedEvidence, error)
}
EvidenceResolver supplies already-authorized evidence bytes for one exact locator. The roadmap validator itself performs no network or process access. Implementations must keep authorization and transport policy outside this package.
type Goal ¶
type Goal struct {
ID string `yaml:"id"`
File string `yaml:"file"`
DependsOn []string `yaml:"dependsOn"`
RequirementIDs []string `yaml:"requirementIds"`
Status Status `yaml:"status"`
ReleaseTrack string `yaml:"releaseTrack"`
LiveDeployment string `yaml:"liveDeployment"`
DeploymentTargets []string `yaml:"deploymentTargets"`
}
Goal is one deliverable node in the roadmap dependency graph.
type ResolvedEvidence ¶
ResolvedEvidence is the bounded descriptor or evidence record returned by an EvidenceResolver. Release references must therefore resolve to a small, content-addressed descriptor, not stream a release binary through validation. Trusted is required only for attestation objects; it lets the resolver report that its caller-defined trust policy accepted the exact resolved bytes.
type Roadmap ¶
type Roadmap struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata struct {
Name string `yaml:"name"`
} `yaml:"metadata"`
Spec Spec `yaml:"spec"`
}
Roadmap is the roadmap.yaml delivery-program contract.
func LoadWithOptions ¶
func LoadWithOptions(root string, options ValidationOptions) (*Roadmap, error)
LoadWithOptions reads and validates a roadmap with an explicitly bounded evidence resolver. A nil resolver is the safe default: any state that cites evidence fails closed because the referenced bytes cannot be inspected.
func Parse ¶
Parse strictly decodes exactly one roadmap document. Unknown fields, duplicate mapping keys, aliases and trailing documents fail closed.
func (*Roadmap) CanTransition ¶
CanTransition verifies the state machine and qualification dependencies. Starting independent work is not acceptance; only delivered requires every prerequisite to be delivered. ValidateWithOptions still requires full proof.
func (*Roadmap) ValidateWithOptions ¶
func (r *Roadmap) ValidateWithOptions(root string, options ValidationOptions) error
ValidateWithOptions validates a parsed roadmap with explicit evidence inputs.
type Spec ¶
type Spec struct {
ExecutionContract string `yaml:"executionContract"`
TargetArchitecture string `yaml:"targetArchitecture"`
CurrentState string `yaml:"currentState"`
IssueMap string `yaml:"issueMap"`
LegacyWorkMap string `yaml:"legacyWorkMap"`
HubPrerequisites string `yaml:"hubPrerequisites"`
MeasurementContract string `yaml:"measurementContract"`
MeasurementProfiles string `yaml:"measurementProfiles"`
DeliverySlices string `yaml:"deliverySlices"`
EvidencePolicy string `yaml:"evidencePolicy"`
VerificationMatrix string `yaml:"verificationMatrix"`
StateSchema string `yaml:"stateSchema"`
EvidenceSchema string `yaml:"evidenceSchema"`
DefaultDeploymentTargets []string `yaml:"defaultDeploymentTargets"`
DeliveryOrder []Goal `yaml:"deliveryOrder"`
Invariant []string `yaml:"invariant"`
}
Spec describes the delivery graph and its repository-wide invariants.
type ValidationOptions ¶
type ValidationOptions struct {
EvidenceResolver EvidenceResolver
CurrentTime time.Time
// FreshnessCeilings is required per goal whenever a resolver is used for
// proof. A verifier may choose a stricter duration, but never more than the
// program-wide safety ceiling.
FreshnessCeilings map[string]time.Duration
}
ValidationOptions are explicit inputs for evidence-bearing validation. CurrentTime may be fixed by CI; a zero value uses the current UTC time.