roadmapprogram

package
v0.1.0-c02.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package roadmapprogram validates the canonical CloudRING delivery roadmap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDir

func ValidateDir(root string) error

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

type ResolvedEvidence struct {
	Payload []byte
	Trusted bool
}

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 Load

func Load(root string) (*Roadmap, error)

Load reads roadmap.yaml below root and validates the complete roadmap tree.

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

func Parse(data []byte) (*Roadmap, error)

Parse strictly decodes exactly one roadmap document. Unknown fields, duplicate mapping keys, aliases and trailing documents fail closed.

func (*Roadmap) CanTransition

func (r *Roadmap) CanTransition(goalID string, target Status) error

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) Validate

func (r *Roadmap) Validate(root string) error

Validate checks a parsed roadmap against files below root.

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 Status

type Status string

Status is the declared delivery state of a goal.

const (
	APIVersionDeliveryRoadmap = "roadmap.cloudring.org/v1alpha1"
	KindDeliveryRoadmap       = "DeliveryRoadmap"

	StatusNotStarted Status = "not_started"
	StatusInProgress Status = "in_progress"
	StatusBlocked    Status = "blocked"
	StatusDelivered  Status = "delivered"
)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL