Versions in this module Expand all Collapse all v0 v0.10.0 Nov 18, 2026 Changes in this version + const FieldEvidence + const FieldNote + const FieldUntil + const MarkApproved + const MarkCancelled + const MarkComplete + const MarkException + const MarkExecuted + const MarkReported + const MarkRequested + const MarkVerified + const MaxBytes + const MaxException + const MaxStages + const MaxTransitions + const NotVerifiable + const NotVerified + const RefuseApproval + const RefuseBlocked + const RefuseField + const RefuseNotVerified + const RefuseRole + const RefuseStage + const RefuseUnknown + const RefuseUntil + const RoleAdmin + const RoleAnalyst + const SubjectCertificate + const SubjectEndpoint + const SubjectFinding + const SubjectReadiness + const SubjectSystem + const Verified + const Waiting + func Baseline(marker string) bool + func Finished(marker string) bool + func IsBuiltIn(id string) bool + type Actor struct + Name string + Person bool + Role string + type Refusal struct + Code string + Message string + func (r *Refusal) Error() string + type Request struct + Evidence string + Note string + Transition string + Until *time.Time + type Stage struct + ID string + Label string + Marker string + Terminal bool + type State struct + Approvers []string + CreatedBy string + Stage string + Unfinished []int64 + type Template struct + ID string + Purpose string + Stages []Stage + Subjects []string + Target int + Title string + Transitions []Transition + Version int + func BuiltIn() []*Template + func BuiltInByID(id string) (*Template, bool) + func Parse(b []byte) (*Template, error) + func (t *Template) Applies(subject string) bool + func (t *Template) Check(st State, req Request, act Actor, now time.Time, verify func() Verification) (Transition, Stage, *Verification, error) + func (t *Template) From(stage string) []Transition + func (t *Template) Initial() Stage + func (t *Template) Stage(id string) (Stage, bool) + func (t *Template) Transition(id string) (Transition, bool) + func (t *Template) Validate() error + func (t *Template) Verifies() bool + type Transition struct + Approval bool + From []string + ID string + Label string + Require []string + Role string + To string + Verify bool + type Verification struct + At time.Time + CheckedAt *time.Time + Detail string + Evidence []string + Since *time.Time + Status string