planner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package planner constructs immutable offline IntentPlans and resolves only branches that the IntentPlan authorized in advance.

Index

Constants

View Source
const (
	IntentSchema   = "urn:agentapi-doctor:intent-plan:v1alpha1"
	ResolvedSchema = "urn:agentapi-doctor:resolved-run-plan:v1alpha1"
)

Variables

This section is empty.

Functions

func BuildIntent

func BuildIntent(request IntentRequest) (schema.IntentPlan, error)

func DefaultTimes

func DefaultTimes(now func() time.Time) (schema.InstanceID, schema.UTCTime, error)

func Resolve

func Resolve(intent schema.IntentPlan, request ResolutionRequest) (schema.ResolvedRunPlan, error)

Types

type IntentRequest

type IntentRequest struct {
	ID                    schema.InstanceID
	CreatedAt             schema.UTCTime
	Producer              schema.Producer
	ConfigDigest          schema.Digest
	Target                schema.TargetIntent
	Selectors             []schema.ArtifactSelector
	SupportManifestDigest schema.Digest
	Probe                 schema.ProbePolicy
	Scenarios             []ScenarioCandidate
	Budget                schema.BudgetPolicy
	Evidence              schema.EvidencePolicy
	Safety                schema.SafetyPolicy
	Author                string
	ApprovalRequirements  []string
}

type ResolutionRequest

type ResolutionRequest struct {
	ID                schema.InstanceID
	CreatedAt         schema.UTCTime
	Producer          schema.Producer
	Resolver          schema.ArtifactPin
	Observations      []schema.CapabilityObservation
	SupportLockDigest schema.Digest
	Artifacts         []schema.ArtifactPin
	Target            schema.TargetResolution
	Scenarios         []ScenarioCandidate
	Runtime           schema.RuntimePolicy
	Finalizers        []schema.FinalizerPlan
}

type ScenarioCandidate

type ScenarioCandidate struct {
	ID           string
	Capabilities []string
	Driver       schema.ArtifactPin
	DependsOn    []string
}

Jump to

Keyboard shortcuts

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