Versions in this module Expand all Collapse all v0 v0.2.1 Nov 14, 2026 v0.2.0 Nov 13, 2026 Changes in this version + const Implementation + const Version + func BuiltinAdapters(role string) map[string]Adapter + func LoadAdapters(path string) (map[string]Adapter, error) + type Account struct + Host string + ID int64 + type ActionInput struct + Agent string + Attempt int + Claim string + Cycle string + Intent string + Kind string + Occurrence string + Payload string + Plan string + Receipt *Receipt + Round int + type ActionOutput struct + Agent string + Claim string + Complete bool + Cycle string + Deferred bool + Invoke bool + Items []IntentRef + Prompt string + Ready bool + Receipt *Receipt + Recheck bool + Repair bool + Report string + Round int + Settled bool + State string + TaskInput map[string]any + type Adapter struct + Cacheable bool + Controls []string + HeadSensitive bool + History bool + Identity string + Kind string + Options []string + Procedure [][]Pass + Reads []string + Resources []string + Version string + Writes []string + type AudienceReport struct + Audience string + Evidence []string + Fingerprint string + Suitable bool + type Authorization struct + Instruction string + RequestID string + Source string + func (a Authorization) Validate() error + type CICheck struct + Attempt int + Conclusion string + ID string + Name string + Status string + URL string + type CIClassification struct + Attempt int + CheckID string + Issue string + Job string + JobID string + Kind string + Rule string + RunID string + Signature string + Test string + Workflow string + type CIExecution struct + Generation int64 + Run string + type CIObservation struct + Checks []CICheck + Evidence string + Execution *CIExecution + Head string + Logs map[string]string + Verified []CIProof + func (c CIObservation) Success() bool + type CIProof struct + Attempt int + CheckID string + Classifications []CIClassification + Evidence []string + Exempt bool + Head string + JobID string + RunID string + type CIReport struct + Checks []string + Classifications []CIClassification + Evidence []string + Exceptions []Finding + Head string + Repair bool + RepairReason string + RerunReason string + Status string + type CIRerunVerifier interface + VerifyRerun func(context.Context, Intent) error + type CIVerifier interface + VerifyCI func(context.Context, Identity, string, []CIClassification, ...) (CIProof, error) + type Candidate struct + Finding Finding + Original string + type Check struct + Evidence []string + ID string + Reason string + Status string + type ChecklistItem struct + ID string + Text string + type Cleanup struct + BoundaryReasons []string + Commits map[string]string + FinalHead string + FinalTree string + Outcome string + Receipt string + RecoveryRef string + ReviewedHead string + Validation []string + type CommitPolicyHandoff struct + Configuration any + Context string + Prompt *string + Providers []string + type Configuration struct + CheckedPaths []string + Options map[string]any + Provenance map[string]string + Sources []string + type DispatchDiagnostic struct + At string + ExitStatus *int + HTTPStatus *int + Phase string + ResponseHash string + ResponseLength int + type DispatchExecution struct + Action workflows.ActionContext + CreatedAt string + Dispatched string + Intent Intent + func (execution *DispatchExecution) UnmarshalJSON(data []byte) error + type DispatchResponse struct + Intent Intent + Response map[string]any + func (r *DispatchResponse) UnmarshalJSON(data []byte) error + type FeedbackSource struct + ID string + Kind string + ThreadID string + URL string + type FileChange struct + After string + Before string + Path string + type Finding struct + Acceptance *Authorization + Disposition string + ID string + Reason string + Sources []string + Text string + type GitHub struct + Root string + func (g *GitHub) Capture(ctx context.Context, id Identity) (PREvidence, error) + func (g *GitHub) Execute(ctx context.Context, i Intent) (Receipt, error) + func (g *GitHub) InspectReply(ctx context.Context, i Intent, receipt Receipt) (ReplyObservation, error) + func (g *GitHub) InspectReviewRequest(ctx context.Context, i Intent) (ReviewRequestObservation, error) + func (g *GitHub) MergeReady(ctx context.Context, id Identity, head string) (MergeProof, error) + func (g *GitHub) ObserveCI(ctx context.Context, id Identity, head string) (CIObservation, error) + func (g *GitHub) PullRequestNumbers(ctx context.Context, id Identity) ([]string, error) + func (g *GitHub) Reconcile(ctx context.Context, i Intent) (string, Receipt, error) + func (g *GitHub) VerifyCI(ctx context.Context, id Identity, head string, classes []CIClassification, ...) (CIProof, error) + func (g *GitHub) VerifyRerun(ctx context.Context, i Intent) error + type Identity struct + Host string + Name string + Number int + Owner string + Repository string + URL string + func ParseIdentity(raw string) (Identity, error) + type Intent struct + ActorID int64 + AudienceClaim string + Authorization Authorization + Before map[string]any + Branch string + CreatedAt string + CreatedHead string + Discussion string + Head string + HeadRepository string + ID string + Kind string + Lease string + PR Identity + Payload map[string]any + Replaces *ReplyReplacement + Run string + Source *FeedbackSource + Sources []string + Target string + func (i Intent) Fingerprint() string + type IntentRef struct + ID string + type Invocation struct + Agent map[string]any + Instructions string + Options map[string]any + Required *bool + Skill string + func (i Invocation) IsRequired() bool + type Ledger struct + Root string + func OpenLedger(root string) (*Ledger, error) + func (l *Ledger) Active(ctx context.Context, pr string) (string, error) + func (l *Ledger) Admission(ctx context.Context, run, plan, fingerprint, requested string) (string, error) + func (l *Ledger) Close() error + func (l *Ledger) Continue(ctx context.Context, run string, a Authorization, cycles int) (int, error) + func (l *Ledger) Deadline(ctx context.Context, run, head string, now time.Time, timeout time.Duration) (time.Time, error) + func (l *Ledger) Execution(ctx context.Context, run, request, plan, engine string) error + func (l *Ledger) Extend(ctx context.Context, run, head string, extension time.Duration, maximum int) (time.Time, bool, error) + func (l *Ledger) Intent(ctx context.Context, run, id string) (Intent, error) + func (l *Ledger) LatestExecution(ctx context.Context, run string) (string, string, error) + func (l *Ledger) Plan(ctx context.Context, id string) (Plan, error) + func (l *Ledger) PrepareIntent(ctx context.Context, p Plan, intent Intent, source string) error + func (l *Ledger) Reserve(ctx context.Context, run, kind, scope, operation, reason string) error + func (l *Ledger) SavePlan(ctx context.Context, p Plan) (string, error) + func (l *Ledger) Started(ctx context.Context, run, head string) (time.Time, error) + type Limits struct + CIRepairs int + CIReruns int + Retries int + ReviewCycles int + func (l Limits) Validate() error + type MergeProof struct + Evidence []string + Head string + Satisfied bool + type MergeReadiness interface + MergeReady func(context.Context, Identity, string) (MergeProof, error) + type Occurrence struct + Adapter Adapter + Cacheable bool + Call Resolved + Checklist []ChecklistItem + HeadSensitive bool + History bool + ID string + InheritedInstructions []string + InheritedResources []string + Kind string + MaxChecks int + Pass Pass + PolicyProviders []string + Required bool + Review bool + type PREvidence struct + Comments []map[string]any + Inline []map[string]any + Metadata PRMetadata + Reviews []map[string]any + Threads []map[string]any + Viewer string + ViewerID int64 + func (e *PREvidence) UnmarshalJSON(data []byte) error + type PRMetadata struct + Base PRRef + Body string + Draft bool + Head PRRef + MergeCommit string + MergeableState string + Merged bool + MergedBy struct{ ... } + NodeID string + Number int + State string + Title string + URL string + Updated string + User struct{ ... } + type PRRef struct + Ref string + Repo struct{ ... } + SHA string + type Pass struct + Assignment string + Evidence []string + ID string + Role string + type Plan struct + Adapters map[string]Adapter + Authorizations map[string]Authorization + ConfigPath string + Fingerprint string + Groups map[string][][]string + Identity Identity + Instructions string + LogicalRun string + MaintainOther *Authorization + Occurrences []Occurrence + Omitted []string + Options map[string]any + Ref string + Roles json.RawMessage + Selection Selection + Snapshot Snapshot + Sources map[string]string + Upstream string + Version string + func ReadPlan(path string) (Plan, error) + func (p Plan) Occurrence(id string) (Occurrence, error) + type PreferenceDecision struct + Applicable bool + ID string + Paths []string + Reason string + Sources []string + type PrepareRequest struct + Adapters map[string]Adapter + Authorizations map[string]Authorization + Capabilities func(string) (workflows.ProviderCapabilities, error) + Config clirunner.Config + ConfigPath string + Instructions string + MaintainOther *Authorization + Options map[string]any + PR string + RequestID string + Resume bool + Role string + Run string + Upstream string + func ResumeRequest(p Plan, cfg clirunner.Config) PrepareRequest + type Prepared struct + EngineLimits map[string]int + Inputs map[string]any + LogicalRun string + Omitted []string + Plan string + RequestID string + Roles json.RawMessage + Warnings []string + Workflow string + func Prepare(ctx context.Context, root string, provider Provider, req PrepareRequest) (Prepared, error) + type Provider interface + Capture func(context.Context, Identity) (PREvidence, error) + Execute func(context.Context, Intent) (Receipt, error) + ObserveCI func(context.Context, Identity, string) (CIObservation, error) + Reconcile func(context.Context, Intent) (string, Receipt, error) + type PullRequestInventory interface + PullRequestNumbers func(context.Context, Identity) ([]string, error) + type Receipt struct + Evidence []string + Head string + ID string + Kind string + PR string + Result map[string]any + func (r *Receipt) UnmarshalJSON(data []byte) error + type ReplyDisposition struct + Decision string + Inspection string + Observation string + Reason string + Sources []string + type ReplyInspector interface + InspectReply func(context.Context, Intent, Receipt) (ReplyObservation, error) + type ReplyObligation struct + CommentID string + ID string + Reason string + Required bool + Sources []string + Text string + ThreadID string + type ReplyObservation struct + Intent Intent + Original map[string]any + PR PREvidence + Receipt Receipt + Status string + func (o *ReplyObservation) UnmarshalJSON(b []byte) error + func (o ReplyObservation) Fingerprint() string + type ReplyReplacement struct + Authorization Authorization + Decision string + ID string + Inspection string + Observation string + Reason string + Run string + Sources []string + type ReplyResponse struct + Acceptance *Authorization + ID string + Operation string + Outcome string + Reason string + Sources []string + type Report struct + Audience *AudienceReport + Blockers []string + CI *CIReport + Changes []FileChange + Checklist []Check + Cleanup *Cleanup + CommitMessage string + Complete bool + Deliverables map[string]string + Evidence []string + Findings []Finding + NoReply []Finding + Operations []Intent + PolicyPrompt string + PreferenceDecisions []PreferenceDecision + ReplyDisposition *ReplyDisposition + ReplyObligations []ReplyObligation + Responses []ReplyResponse + ReviewRequestDisposition *ReviewRequestDisposition + Scope *ScopeReport + type Resolved struct + Configuration *Configuration + Invocation Invocation + type ReviewRequestDisposition struct + Decision string + Observation string + Reason string + Sources []string + type ReviewRequestInspector interface + InspectReviewRequest func(context.Context, Intent) (ReviewRequestObservation, error) + type ReviewRequestObservation struct + Dispatch *DispatchResponse + Execution *DispatchExecution + HistoricalFailure *DispatchDiagnostic + Intent Intent + PR PREvidence + ReconciliationErrors []DispatchDiagnostic + Requested map[string]any + Timeline []map[string]any + func (o *ReviewRequestObservation) UnmarshalJSON(b []byte) error + func (o ReviewRequestObservation) Fingerprint() string + type Runtime struct + BeforeCheckpoint func(string, ActionOutput) error + Now func() time.Time + PollInterval time.Duration + Provider Provider + Root string + Store *workflows.SQLiteStore + Workers *workflows.WorkerManager + func (r *Runtime) Register(registry *workflows.ActionRegistry) error + type ScopeReport struct + AddedLines int + Assessment string + Boundaries []SplitBoundary + Enabled bool + EvacuateMode string + Evidence []string + RelatedMode string + Threshold int + type Selection struct + Accounts []Account + Children map[string]map[string][][]Resolved + Config Configuration + Finalizers [][]Resolved + Hooks map[string][][]Resolved + Invocation Invocation + Preferences map[string]any + Settings map[string]any + Tasks [][]Resolved + func (s Selection) Limits() Limits + type Snapshot struct + Author string + Base string + BaseTree string + CompletedEffects []string + Decisions string + Diff string + Discussion string + Draft bool + Evidence string + Head string + HeadBranch string + HeadRepository string + HeadTree string + History string + Identity Identity + ImplementationPreferences string + Instructions string + LocalHead string + LocalTree string + Open bool + Paths []string + RepositoryInstructions map[string]string + ResourceDigests map[string]string + Resources string + ReviewPreferences string + RoleDigests map[string]string + Settings string + Target string + TargetBranch string + TargetTree string + TaskSettings string + Viewer string + func (s Snapshot) Fingerprint(history, head bool) string + type SplitBoundary struct + Base string + Behavior string + Branch string + Evidence []string + Head string + Paths []string + Reason string + RecoveryRef string