Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultProfile Profile = "default" Error Severity = "error" Warning Severity = "warning" Proposal Artifact = "proposal" Deltas Artifact = "deltas" Design Artifact = "design" Tasks Artifact = "tasks" State Artifact = "state" PlanningToApproved TransitionID = "planning_to_approved" )
View Source
const CoreRegistryVersion = "core-v2"
CoreRegistryVersion changes whenever the gate inventory changes, so any approval bound to an older inventory is stale rather than silently reused.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Gate GateID
Severity Severity
Location plan.Location
Problem string
Repair string
}
func Production ¶
func Production(snapshot Snapshot, required []evidence.RequiredCheck) []Finding
Production evaluates the production-only planning rules over the canonical planning projection. It is additive by construction: it never runs, replaces, or suppresses a core gate, and the caller keeps evaluating the core registry exactly as the default profile does. It is pure: no filesystem, clock, network, or LLM access.
type GateID ¶
type GateID string
const ( ProposalGate GateID = "proposal" DeltaGate GateID = "deltas" DesignGate GateID = "design" TaskGate GateID = "tasks" TraceGate GateID = "trace" VerificationGate GateID = "verification" ApprovalPrerequisiteGate GateID = "approval_prerequisite" LifecycleGate GateID = "lifecycle" RegistryGate GateID = "gate_registry" )
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func PlanningRegistry ¶
type Snapshot ¶
type Snapshot struct {
Plan plan.Change
Lifecycle string
StateRevision uint64
Transition TransitionID
RegistryVersion string
PolicyDigest string
}
Snapshot contains values assembled before gate evaluation. It deliberately exposes no filesystem, clock, mutation, network, or LLM capability.
type Transition ¶
type Transition struct {
ID TransitionID
GateIDs []GateID
}
type TransitionID ¶
type TransitionID string
Click to show internal directories.
Click to hide internal directories.