Versions in this module Expand all Collapse all v0 v0.9.0 May 5, 2026 Changes in this version + const DefaultRunLogRetention + const DefaultStatusLimit + const PolicyDegraded + const PolicyFailClosed + const SourceAuto + const SourceExplicit + const SourceReset + const StatusDegraded + const StatusOK + const ToolBuildOrUpdateGraph + const ToolRunPostprocess + func ValidTool(tool string) bool + type DecisionInput struct + ExplicitPolicy string + Tool string + type Engine struct + func (e *Engine) Resolve(ctx context.Context, store *Store, input DecisionInput) (string, string, error) + type RunRecord struct + CreatedAt time.Time + FailedSteps []string + Policy string + SkippedSteps []string + Source string + Status string + Tool string + type RunSnapshot struct + CreatedAt time.Time + FailedSteps []string + Namespace string + Policy string + SkippedSteps []string + Source string + Status string + Tool string + type StateSnapshot struct + ConsecutiveFailures int + Namespace string + Policy string + Tool string + UpdatedAt time.Time + type StatusOptions struct + Namespace string + RecentLimit int + Tool string + type StatusSummary struct + FailClosed []StateSnapshot + RecentFailures []RunSnapshot + Status string + type Store struct + func NewStore(db *gorm.DB) *Store + func (s *Store) ConsecutiveFailures(ctx context.Context, tool string, limit int) (int, error) + func (s *Store) GetState(ctx context.Context, tool string) (*model.PostprocessPolicyState, error) + func (s *Store) RecordRun(ctx context.Context, record RunRecord) error + func (s *Store) Reset(ctx context.Context, tool string) error + func (s *Store) Status(ctx context.Context, opts StatusOptions) (*StatusSummary, error)