loopworkflow

package
v0.175.0-rc.254 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package loopworkflow is a scratch GitHub and Git origin that exercises a real beekeeper binary across the loop, parser and merge boundary: the integration tests drive every scenario, and a recovery controller's probe drives one on an idle desk. Nothing here touches a real desk, account or network.

Index

Constants

View Source
const CanaryTimeout = 90 * time.Second

CanaryTimeout bounds a staged canary run so hung commands fail closed.

View Source
const (
	// ProbeTimeout bounds one probe: a candidate's and its control's fit a
	// controller's minute between evaluations.
	ProbeTimeout = 25 * time.Second
)

Variables

View Source
var ErrInconclusive = errors.New("probe inconclusive")

ErrInconclusive marks a probe that says nothing about the candidate: the fixture could not be built here (no git, a full disk). A failed candidate is every other error.

Functions

func CleanupSandboxRun

func CleanupSandboxRun(ctx context.Context, ghBin, repo, allowOrg, runID string) error

CleanupSandboxRun idempotently closes open pull requests and deletes branches owned by runID in the allowlisted sandbox repository using paginated queries, leaving prefix-colliding runs and copied markers untouched.

func Probe

func Probe(parentCtx context.Context, binary, server, scratch string) error

Probe drives the candidate at binary through a reviewed pull request of a scratch origin: real loop passes, parser, merge validation and gate, with a fixture GitHub only. server is the executable that plays that GitHub, a binary that calls Serve first; the candidate's own bytes never judge themselves. It needs no backlog, account or network, and leaves nothing behind in scratch. Nil means the merge is proven in the origin.

func Serve

func Serve() (int, bool)

Serve runs this process as the fixture's GitHub CLI, Git wrapper or Claude CLI and returns its exit code. Only a process started by that name inside a fixture is one.

func StageCanary

func StageCanary(parentCtx context.Context, cfg CanaryConfig) (update.CanaryEvidence, error)

StageCanary runs a signed release candidate in an isolated staging environment through worker start, PR park, independent exact-head review, and coordinator merge, returning CanaryEvidence bound to the candidate binary's digest. Any failure, timeout, missing permission, cleanup error, or unobserved merge returns a non-success evidence record and an error.

Types

type CanaryConfig

type CanaryConfig struct {
	Candidate string
	Bundle    string
	Server    string
	Scratch   string
	Recorded  bool
	Repo      string
	AllowOrg  string
	Project   int
	Run       string
	Scenario  string
	Siblings  []string
}

CanaryConfig configures a staged release-candidate canary run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL