{"modulePath":"github.com/opencloudtech/CloudRING","version":"v0.1.0-c02.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package roadmapprogram\n\nPackage roadmapprogram validates the canonical CloudRING delivery roadmap.\n\n## Functions\n\n```go\nfunc ValidateDir(root string) error\n```\nValidateDir validates the roadmap rooted at root.\n\n```go\nfunc ValidateDirWithOptions(root string, options ValidationOptions) error\n```\nValidateDirWithOptions validates a roadmap using explicit resolver and clock inputs suitable for a CI or goal-verifier trust boundary.\n\n## Types\n\n```go\ntype EvidenceResolver interface {\n\tResolve(locator string) (ResolvedEvidence, error)\n}\n```\nEvidenceResolver 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.\n\n```go\ntype Goal struct {\n\tID                string   `yaml:\"id\"`\n\tFile              string   `yaml:\"file\"`\n\tDependsOn         []string `yaml:\"dependsOn\"`\n\tRequirementIDs    []string `yaml:\"requirementIds\"`\n\tStatus            Status   `yaml:\"status\"`\n\tReleaseTrack      string   `yaml:\"releaseTrack\"`\n\tLiveDeployment    string   `yaml:\"liveDeployment\"`\n\tDeploymentTargets []string `yaml:\"deploymentTargets\"`\n}\n```\nGoal is one deliverable node in the roadmap dependency graph.\n\n```go\ntype ResolvedEvidence struct {\n\tPayload []byte\n\tTrusted bool\n}\n```\nResolvedEvidence 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.\n\n```go\ntype Roadmap struct {\n\tAPIVersion string `yaml:\"apiVersion\"`\n\tKind       string `yaml:\"kind\"`\n\tMetadata   struct {\n\t\tName string `yaml:\"name\"`\n\t} `yaml:\"metadata\"`\n\tSpec Spec `yaml:\"spec\"`\n}\n```\nRoadmap is the roadmap.yaml delivery-program contract.\n\n```go\nfunc Load(root string) (*Roadmap, error)\n```\nLoad reads roadmap.yaml below root and validates the complete roadmap tree.\n\n```go\nfunc LoadWithOptions(root string, options ValidationOptions) (*Roadmap, error)\n```\nLoadWithOptions 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.\n\n```go\nfunc Parse(data []byte) (*Roadmap, error)\n```\nParse strictly decodes exactly one roadmap document. Unknown fields, duplicate mapping keys, aliases and trailing documents fail closed.\n\n```go\nfunc (r *Roadmap) CanTransition(goalID string, target Status) error\n```\nCanTransition 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.\n\n```go\nfunc (r *Roadmap) Validate(root string) error\n```\nValidate checks a parsed roadmap against files below root.\n\n```go\nfunc (r *Roadmap) ValidateWithOptions(root string, options ValidationOptions) error\n```\nValidateWithOptions validates a parsed roadmap with explicit evidence inputs.\n\n```go\ntype Spec struct {\n\tExecutionContract        string   `yaml:\"executionContract\"`\n\tTargetArchitecture       string   `yaml:\"targetArchitecture\"`\n\tCurrentState             string   `yaml:\"currentState\"`\n\tIssueMap                 string   `yaml:\"issueMap\"`\n\tLegacyWorkMap            string   `yaml:\"legacyWorkMap\"`\n\tHubPrerequisites         string   `yaml:\"hubPrerequisites\"`\n\tMeasurementContract      string   `yaml:\"measurementContract\"`\n\tMeasurementProfiles      string   `yaml:\"measurementProfiles\"`\n\tDeliverySlices           string   `yaml:\"deliverySlices\"`\n\tEvidencePolicy           string   `yaml:\"evidencePolicy\"`\n\tVerificationMatrix       string   `yaml:\"verificationMatrix\"`\n\tStateSchema              string   `yaml:\"stateSchema\"`\n\tEvidenceSchema           string   `yaml:\"evidenceSchema\"`\n\tDefaultDeploymentTargets []string `yaml:\"defaultDeploymentTargets\"`\n\tDeliveryOrder            []Goal   `yaml:\"deliveryOrder\"`\n\tInvariant                []string `yaml:\"invariant\"`\n}\n```\nSpec describes the delivery graph and its repository-wide invariants.\n\n```go\ntype Status string\n```\nStatus is the declared delivery state of a goal.\n\n```go\nconst (\n\tAPIVersionDeliveryRoadmap = \"roadmap.cloudring.org/v1alpha1\"\n\tKindDeliveryRoadmap       = \"DeliveryRoadmap\"\n\n\tStatusNotStarted Status = \"not_started\"\n\tStatusInProgress Status = \"in_progress\"\n\tStatusBlocked    Status = \"blocked\"\n\tStatusDelivered  Status = \"delivered\"\n)\n```\n\n```go\ntype ValidationOptions struct {\n\tEvidenceResolver EvidenceResolver\n\tCurrentTime      time.Time\n\t// FreshnessCeilings is required per goal whenever a resolver is used for\n\t// proof. A verifier may choose a stricter duration, but never more than the\n\t// program-wide safety ceiling.\n\tFreshnessCeilings map[string]time.Duration\n}\n```\nValidationOptions are explicit inputs for evidence-bearing validation. CurrentTime may be fixed by CI; a zero value uses the current UTC time.\n\n","path":"github.com/opencloudtech/CloudRING/internal/roadmapprogram","name":"roadmapprogram","synopsis":"Package roadmapprogram validates the canonical CloudRING delivery roadmap.","isRedistributable":true}
