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
- Variables
- func CandidateProbe(ctx context.Context, binary, server, scratch string) error
- func CleanupSandboxRun(ctx context.Context, ghBin, repo, allowOrg, runID string) error
- func Probe(parentCtx context.Context, binary, server, scratch string) error
- func Serve() (int, bool)
- func ServeProbe() (int, bool)
- func StageCanary(parentCtx context.Context, cfg CanaryConfig) (update.CanaryEvidence, error)
- type CanaryConfig
Constants ¶
const CanaryTimeout = 90 * time.Second
CanaryTimeout bounds a staged canary run so hung commands fail closed.
const ( // ProbeTimeout bounds one probe: a candidate's and its control's fit a // controller's minute between evaluations. ProbeTimeout = 25 * time.Second )
Variables ¶
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 CandidateProbe ¶
CandidateProbe asks the candidate to run its own fixture and probe code. A retained binary used as the control keeps its own legacy probe entrypoint.
func CleanupSandboxRun ¶
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 ¶
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. Candidate-owned probes use the same binary for both roles. It needs no backlog, account or network, and leaves nothing behind in scratch. Nil means the merge is proven in the origin.
func Serve ¶
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 ServeProbe ¶
ServeProbe is handled before CLI startup, so plugin sync and live desk state cannot run. The probe constructs an isolated configuration and proves a merge. Its scratch directory is generated locally, never supplied by CLI input.
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.