Versions in this module Expand all Collapse all v0 v0.3.1 Oct 29, 2026 v0.3.0 Oct 29, 2026 Changes in this version + const FixtureRendered v0.2.1 Oct 28, 2026 v0.2.0 Oct 28, 2026 v0.1.0 Oct 28, 2026 Changes in this version + const FixtureEvent + const FixtureExpected + const FixtureRails + const FixtureWorkItem + const KindCancel + const KindDebounce + const KindDispatch + const KindEffect + const KindLink + const KindNotify + const KindSet + const KindUnsupported + const RailActiveRun + const RailBudget + const RailEngine + const RailKillSwitch + const RailRunCap + const SectionDecision + const SectionEvaluation + const SectionRule + const SectionState + const VerdictAllowed + const VerdictDeferred + const VerdictSuppressed + const VerdictUnsupported + func Allowed() v1alpha1.RailVerdict + func CouldFire(c *catalog.Catalog, ev v1alpha1.Event, wi WorkItemView) bool + func Deferred(rail, reason string) v1alpha1.RailVerdict + func Golden(ev Evaluation) ([]byte, error) + func ReadsItem(c *catalog.Catalog, ev v1alpha1.Event, wi WorkItemView) bool + func Suppressed(rail, reason string) v1alpha1.RailVerdict + type ActionIntent struct + Cancel *Cancel + Debounce *Debounce + Dispatch *Dispatch + Effect *Effect + Link *Link + Notify *Notify + Set *Set + Unsupported *Unsupported + func (a ActionIntent) Kind() string + func (a ActionIntent) String() string + type Cancel struct + TaskSpec string + type Change struct + Details []string + From string + Op ChangeOp + Section string + Subject string + To string + func DiffGolden(old, cur GoldenEvaluation) []Change + func (c Change) Lines() []string + type ChangeOp string + const ChangeAdded + const ChangeChanged + const ChangeRemoved + const ChangeReordered + type Clock interface + Now func() time.Time + type ClockFunc func() time.Time + func (f ClockFunc) Now() time.Time + type Debounce struct + Key string + Then []ActionIntent + Until time.Time + type Decision struct + Action ActionIntent + Inputs map[string]any + Rail v1alpha1.RailVerdict + Rule string + RuleSet string + type DeployView struct + ContainsMerge bool + SHA string + State string + URL string + type Dispatch struct + Context []string + Harness *v1alpha1.HarnessRequest + Inputs map[string]any + Queue string + Requires *v1alpha1.Requires + Target *v1alpha1.Target + TaskSpec string + type Effect struct + Args map[string]any + Op v1alpha1.EffectOp + Target string + type Engine struct + Clock Clock + func (e *Engine) Evaluate(ctx context.Context, c *catalog.Catalog, ev v1alpha1.Event, wi WorkItemView, ...) (Evaluation, error) + type Evaluation struct + Decisions []Decision + Event string + Matches []Match + StateAfter map[string]any + WorkItem string + func (e Evaluation) Records(at time.Time) []v1alpha1.Decision + type FakeRails struct + Trips []RailTrip + func (f FakeRails) Check(a ActionIntent) v1alpha1.RailVerdict + type Fixture struct + Event v1alpha1.Event + Expected []byte + Name string + Rails *FakeRails + WorkItem WorkItemView + func LoadFixtures(fsys fs.FS) ([]Fixture, error) + func ReadFixture(fsys fs.FS, dir string) (Fixture, error) + func (f Fixture) Evaluate(ctx context.Context, c *catalog.Catalog) (Evaluation, error) + func (f Fixture) RailsOrAllow() Rails + type GoldenDecision struct + Inputs []string + type GoldenEvaluation struct + Decisions []GoldenDecision + Event string + Matches []GoldenMatch + StateAfter map[string]any + WorkItem string + func ParseGolden(b []byte) (GoldenEvaluation, error) + func ToGolden(ev Evaluation) GoldenEvaluation + func (g GoldenEvaluation) Marshal() ([]byte, error) + type GoldenMatch struct + Inputs []string + type Link struct + Ref v1alpha1.ObjectRef + type Match struct + Action string + Error string + FiredVia string + Inputs map[string]any + Priority int + Result MatchResult + Rule string + RuleSet string + func (m Match) Fired() bool + type MatchResult string + const ActionError + const Duplicate + const Matched + const NotMatched + const SuppressedByFinal + const WhereError + type Notify struct + Template string + To []v1alpha1.Destination + type PRApproval struct + Commit string + Identity string + type PRAuthor struct + IsFactory bool + type PRChecks struct + Settled bool + State string + type PRView struct + ApprovedBy []PRApproval + Author PRAuthor + Checks PRChecks + Draft bool + Head string + Labels []string + Provider string + Ref string + UnresolvedThreads int + type RailTrip struct + Action string + Key string + Queue string + Rail string + Reason string + TaskSpec string + type Rails interface + Check func(a ActionIntent) v1alpha1.RailVerdict + var AllowAll Rails = allowAll{} + type RunHarness struct + Model string + Name string + type RunSummary struct + Agent string + Harness *RunHarness + ID string + Inputs map[string]any + Outcome string + Result map[string]any + Spec string + Status string + type Set struct + Key string + Value any + type Unsupported struct + Action string + Reason string + RequestApproval *v1alpha1.ApprovalSpec + type WorkItemView struct + Counters map[string]int + Deploy *DeployView + ID string + Links []v1alpha1.Link + PR *PRView + PRs []PRView + Reporter *v1alpha1.Actor + RunsBySpec map[string][]RunSummary + State map[string]any