Versions in this module Expand all Collapse all v0 v0.3.0 Oct 19, 2026 Changes in this version + const ReviewPathsLabel type Git + Changes func(ctx context.Context, wt string) ([]workspace.Change, error) type RunRecord + Added []string + Deleted []string v0.2.0 Oct 8, 2026 Changes in this version + const AdhocHost + func AdhocTracker(s store.Store) tracker.Tracker + func ShadowQuery(q string, since time.Time) string + func VerifyGitHubSignature(secret, header string, body []byte) error + type ActionRecord struct + Action string + Commit string + Detail string + OK bool + PR int + type Checker interface + Check func(ctx context.Context) error + type Connection struct + Detail string + Host string + Kind string + Name string + OK bool + Provider string + type DecisionRecord struct + Decision decide.Decision + Input decide.Input + Policy PolicyRef + type Engine struct + BuildImage func(ctx context.Context, worktree string, cfg policy.Ynh) (string, error) + ConfigRepo string + DetectYnh func(ctx context.Context) runner.Detection + Executor func(name string) (executor.Executor, error) + Forge forge.Forge + ForgeHost string + Forges map[string]ForgeInstance + Getenv func(string) string + Git Git + Heartbeat time.Duration + HostAutoApprove string + HostCapabilities func(ctx context.Context) (string, error) + ImageCapabilities func(ctx context.Context, image string) (string, error) + ImageHarness func(ctx context.Context, image, harness string) (runner.Harness, error) + InstallHarness func(ctx context.Context, src runner.HarnessSource, ynhHome string) (runner.Installed, error) + Interactive bool + Lanes []string + LeaseTTL time.Duration + Log *slog.Logger + Memory memory.Memory + MemoryLevel string + MemoryNamespace func(repo string) string + NewForge func(name string, cfg map[string]any) (ForgeInstance, error) + NewID func() string + NewTracker func(name string, cfg map[string]any) (string, tracker.Tracker, error) + Now func() time.Time + Owner string + Poll decide.Poll + ProgressEvery time.Duration + Repos []string + RunTimeout time.Duration + Spool *spool.Spool + SpoolCollector bool + Store store.Store + Telemetry *telemetry.T + Trackers map[string]tracker.Tracker + WorkDir string + func (e *Engine) CloseTrackers() + func (e *Engine) Connections(ctx context.Context) ([]Connection, error) + func (e *Engine) Enrolled(ctx context.Context) ([]string, error) + func (e *Engine) Factory(ctx context.Context) (*FactoryPolicy, error) + func (e *Engine) FlushMemory(ctx context.Context) + func (e *Engine) Handle(ctx context.Context, key string, ev event.Event) (err error) + func (e *Engine) HandleGitHubEvent(ctx context.Context, name string, body []byte) (Touched, error) + func (e *Engine) HostYnh(ctx context.Context) runner.Detection + func (e *Engine) ItemRepo(it item.Item) string + func (e *Engine) Items(ctx context.Context) ([]item.Item, error) + func (e *Engine) LaneID(rp *RepoPolicy, lane policy.Lane) string + func (e *Engine) LaneRuns(ctx context.Context, repo string) ([]LaneRun, error) + func (e *Engine) LaneState(ctx context.Context, repo, lane string) (LaneState, string, error) + func (e *Engine) MemoryQueued(ctx context.Context) (int, time.Time, error) + func (e *Engine) MirrorDelivery(ctx context.Context, name, id, subject, result string) + func (e *Engine) MirrorIntake(parent context.Context, ev event.Event, itemKey, result string) context.Context + func (e *Engine) Policy(ctx context.Context, repo string) (*RepoPolicy, error) + func (e *Engine) PolicyWithLayer(ctx context.Context, repo string, own []byte) (*RepoPolicy, error) + func (e *Engine) RequiredChecks(ctx context.Context) ([]RequiredReport, error) + func (e *Engine) ResetPolicies() + func (e *Engine) RunDue(ctx context.Context) (int, error) + func (e *Engine) SetPaused(ctx context.Context, repo, lane string, paused bool, reason, by string) error + func (e *Engine) Settled(ctx context.Context) (bool, error) + func (e *Engine) ShadowRun(ctx context.Context, req ShadowRequest) (shadow.Run, error) + func (e *Engine) Start(ctx context.Context, req StartRequest) (item.Item, error) + func (e *Engine) Stats(ctx context.Context) ([]Stats, error) + func (e *Engine) Sweep(ctx context.Context) error + func (e *Engine) SweepRepos(ctx context.Context, repos []string) error + func (e *Engine) Ticket(ctx context.Context, ref tracker.Ref) (facts.Ticket, tracker.Text, error) + func (e *Engine) TrackerHost(ctx context.Context, name string) (string, error) + type FactoryPolicy struct + Dir string + File *policy.Factory + Lanes []byte + Repo string + SHA string + type ForgeInstance struct + Forge forge.Forge + Git Git + Host string + Tracker tracker.Tracker + type Git interface + Changed func(ctx context.Context, wt string) ([]string, error) + Checkout func(ctx context.Context, mirror, ref, dir string) (string, error) + Commit func(ctx context.Context, wt, message string) (string, error) + Head func(ctx context.Context, wt string) (string, error) + Mirror func(ctx context.Context, repo string) (string, error) + Push func(ctx context.Context, wt, repo, branch string) error + PushFastForward func(ctx context.Context, wt, repo, branch string) error + RemoteHas func(ctx context.Context, mirror, branch string) bool + RemoteSHA func(ctx context.Context, mirror, branch string) (string, error) + RemoveCheckout func(dir string) error + type LaneRun struct + Detected bool + Effort string + Executor string + Harness string + Image string + Kind string + Lane string + Model string + On bool + Pin *policy.Pin + Problem string + Read *runner.Harness + Resolved string + Resolves string + Runner string + Where string + type LaneState struct + At time.Time + By string + Lane string + Paused bool + Reason string + Repo string + type ModelStats struct + CacheRead int + Converged int + CostUSD float64 + Effort string + Merged int + Model string + Proposed int + Rejected int + Runs int + Tokens int + Turns int + type PolicyRef struct + Config string + ConfigSHA string + Dir string + Hash string + Ref string + Repo string + SHA string + type RefusedError struct + Reason string + func (r *RefusedError) Error() string + type Replayed struct + EntryID string + Event string + Policy string + Recorded decide.Decision + Replayed decide.Decision + Same bool + func Replay(entries []store.LogEntry, override *policy.File) ([]Replayed, error) + type RepoPolicy struct + Base string + Config *FactoryPolicy + Dir string + File *policy.File + Own []byte + Repo string + SHA string + Shadowed []string + type RequiredReport struct + Branch string + Checks []string + Detail string + Known bool + Repo string + Workflows *int + type RunRecord struct + Argv []string + Base string + Changed []string + Denied []string + Detail string + Duration string + Executor string + Exit int + HarnessPin string + HarnessPinURL string + Model string + Outcome string + RunID string + Runner string + RunnerDetected bool + RunnerFeatures []string + StepDir string + type ShadowGit interface + Diff func(ctx context.Context, wt, base string) (string, error) + FirstParent func(ctx context.Context, mirror, sha string) (string, error) + RangeDiff func(ctx context.Context, mirror, from, to string) (string, error) + type ShadowRequest struct + Lane string + Limit int + Repos []string + Since time.Duration + Tickets []tracker.Ref + type StartRequest struct + Detach bool + Labels []string + Lane string + Prompt string + Ref tracker.Ref + Repo string + type Stats struct + Lane string + Merged int + Models []ModelStats + Paused bool + Proposed int + Reason string + Rejected int + Repo string + Signatures map[string]int + States map[string]int + Yield float64 + type Touched struct + Host string + Issues []int + PRs []int + Repo string + func ParseGitHubEvent(name string, body []byte) (Touched, error) v0.1.0 Oct 5, 2026