{"modulePath":"github.com/amberpixels/f10/cli","version":"v0.71.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stack\n\nPackage stack is how a task branch stands on its base: the branch index, the After: base, base code checks, the catchup engine and verify runs.\n\n## Constants\n\n```go\nconst (\n\tFoundLanded  = string(branchmeta.Landed)\n\tFoundAfter   = string(branchmeta.AfterBranch)\n\tFoundGone    = string(branchmeta.AfterBranch) + \" gone\"\n\tFoundDefault = \"default branch\"\n)\n```\nWhat a base was found through, in the step's words.\n\n```go\nconst (\n\tCodeYes  = \"yes\"\n\tCodeNone = \"none\"\n)\n```\nThe code row's values.\n\n```go\nconst (\n\tMethodMerge  = \"merge\"\n\tMethodRebase = \"rebase\"\n\tMethodOnto   = \"onto\"\n\tMethodNone   = \"none\"\n\tMethodSkip   = \"skip\"\n)\n```\nMethods besides merge and rebase: none has nothing to bring in, skip is a guard with nothing to do.\n\n```go\nconst (\n\t// DivergeFail refuses: a local landing would fold one side's commits into the other.\n\tDivergeFail tipPolicy = iota\n)\n```\n\n```go\nconst SlugMax = 40\n```\nSlugMax is where a slug is cut: long enough to carry a title's meaning, short enough for a tab label and a worktree path.\n\n## Variables\n\n```go\nvar (\n\tVerifyLimit     = 30 * time.Minute\n\tVerifyWaitDelay = 5 * time.Second\n)\n```\nVerifyLimit bounds one verify command the drive runs itself, and VerifyWaitDelay how long its output is read once it was killed.\n\n```go\nvar ErrBaseNotPushed = errors.New(\"its base is not on origin yet\")\n```\nErrBaseNotPushed is a push held back because the base the catchup brought in is not on origin yet: the push would carry its commits into the PR.\n\n```go\nvar ErrOpUnread = errors.New(\"could not tell whether a merge or rebase is in progress\")\n```\nErrOpUnread is a read of a worktree that could not tell whether a merge or rebase is in progress there.\n\n```go\nvar PolicyLocal = BranchPolicy{\"refs/heads/\"}\n```\nPolicyLocal never tracks origin's copy, as a landed pickup must not\n\n```go\nvar PolicyLocalOrOrigin = BranchPolicy{\"refs/heads/\", \"refs/remotes/origin/\"}\n```\n\n## Functions\n\n```go\nfunc BaseHasCode(ctx context.Context, main, branch, def string) bool\n```\nBaseHasCode reports a non-merge commit on a base task's branch past the default branch, its own recorded base and its creation commit: a merge is a catchup's, never code. The drive and ship's guard both decide by it, on local refs, so a branch never pushed counts.\n\n```go\nfunc BodyAfter(ctx context.Context, tr Tracker, main string, task ref.Ref, body string) (string, string, error)\n```\nBodyAfter is the base the body's After: line gives start when no flag names one. A base with a branch is the dependency, a finished one is in the default branch already; anything else is refused before anything is made.\n\n```go\nfunc BranchDiff(ctx context.Context, dir, main string) (string, []string, error)\n```\nBranchDiff is VerifyDiff for the checkout at dir, main the main checkout.\n\n```go\nfunc BranchName(\n\tctx context.Context,\n\td *trackerdriver.Driver,\n\ttask ref.Ref,\n\tsuffix string,\n\ttitle func(context.Context) (string, error),\n) (string, string, error)\n```\nBranchName is the task's branch name and, when no slug came, the note saying why.\n\n```go\nfunc BranchUnsettled(ctx context.Context, main, dir, branch string) string\n```\nBranchUnsettled says why a catchup did not bring branch up to date, or \"\". Read from git, since catchup clears the mark only once verify is green.\n\n```go\nfunc BundleAfter(ctx context.Context, tr Tracker, task ref.Ref, body string) (string, error)\n```\nBundleAfter is the After: line a task answers to: its body's, or for a bundle the one base its members name outside the bundle. A line naming another member orders work inside the branch; two bases cannot both be it.\n\n```go\nfunc CatchupConflict(ctx context.Context, main, dir, branch string, key branchmeta.Key) (string, string, error)\n```\nCatchupConflict is the fingerprint of the conflict branch meets with a mark's target now, and the files it conflicts on.\n\n```go\nfunc CatchupRecord(\n\tctx context.Context, main, dir, branch string, key branchmeta.Key, now time.Time, fetched *FetchOnce,\n) (*drivestore.Catchup, error)\n```\nCatchupRecord notes what the catchup about to go out for a mark starts from. A read git cannot answer fails: a record made up would halt a healthy task, or loop on a doomed one.\n\n```go\nfunc ChangeTrailer(task, change string) string\n```\nChangeTrailer names a later series' lore change, since a squash drops the branch's own trailers and Task: alone leads lore why to the first PR.\n\n```go\nfunc ChildRefs(rows []ChildRow) []ledger.TaskRef\n```\n\n```go\nfunc ClearMarks(ctx context.Context, main, branch string, p CatchupPlan) error\n```\nClearMarks unsets the catchup marks once the base is in and verify is green, and records the base the branch now stands on, as the step does.\n\n```go\nfunc ConflictFingerprint(ctx context.Context, dir, target string) (string, string, error)\n```\nConflictFingerprint is the fingerprint of the conflict the worktree at dir meets merging target, and the files it conflicts on; the drive and the watcher compare these, so both build them here.\n\n```go\nfunc DefaultBranch(ctx context.Context, dir string) string\n```\nDefaultBranch is what origin points HEAD at (\\`origin/main\\`), or \"\" to let git use the current HEAD - the same default worktrunk applies.\n\n```go\nfunc DefaultTargetOf(ctx context.Context, main, def string) (string, string, error)\n```\n\n```go\nfunc DefaultTip(ctx context.Context, dir, def string, policy tipPolicy) (string, string, error)\n```\nDefaultTip is the default branch's tip to work from, and its name (def or origin/\\\u003cdef\u003e). One side missing gives the other; otherwise a side that holds the other wins, and divergence goes by policy.\n\n```go\nfunc FingerprintOf(target string, conflicts []gitx.Conflict) string\n```\nFingerprintOf is ConflictFingerprint's fingerprint for conflicts already read, so a caller that needs them too merges once.\n\n```go\nfunc FinishedTask(info tasksource.TaskInfo, root storage.Root, id string, hasBranch bool) bool\n```\nFinishedTask is the one \"is this task done with\". A branch or a live plan is pending work, whatever the tracker says. Otherwise the tracker's state decides, because a task may ship in several PRs. Only a tracker with no state leaves it to the archived plan.\n\n```go\nfunc ForkPoint(ctx context.Context, dir, head, base string) (string, error)\n```\nForkPoint is where the subject's branch left its base: the newer of the merge bases with the local and origin copies, so neither unpushed commits of the base nor origin moving ahead read as this change.\n\n```go\nfunc HasTaskBranch(ctx context.Context, dir, id string) (bool, error)\n```\nHasTaskBranch reports a branch of the task, linked, local or on origin.\n\n```go\nfunc IntegrateWith(\n\tresolve func(context.Context, CatchupInput) (CatchupPlan, error),\n) func(context.Context, CatchupInput, func(CatchupPlan) []string) (CatchupPlan, bool, error)\n```\nIntegrateWith is IntegrateBranch deciding the base with resolve, which a test scripts. A failed fetch decides on the refs at hand, as the step does: an integration needs some base, where originTip needs origin's real tip.\n\n```go\nfunc LinkAfter(body, link string) string\n```\nLinkAfter puts link in place of the value on body's first After: line.\n\n```go\nfunc ListOrNone(paths []string) string\n```\n\n```go\nfunc LocalDefault(ctx context.Context, dir string) (string, error)\n```\nLocalDefault is the default branch as a local name. Without it finish cannot tell a stacked PR from one against main, nor what to pull.\n\n```go\nfunc MarkOn(ctx context.Context, main, branch string) (branchmeta.Key, error)\n```\n\n```go\nfunc NamedRef(ctx context.Context, dir, branch string) (string, string, error)\n```\nNamedRef is the ref --base names, with its commit. Exact refs rather than for-each-ref, since a base is one commit and a literal pattern would also match everything below the name at a slash.\n\n```go\nfunc NewerMergeBase(ctx context.Context, dir, head, base string) (string, error)\n```\nNewerMergeBase is the newer of head's merge bases with base's local and origin copies, \"\" with neither. Two that diverged give origin's, the copy a request is compared against and a guard integrates.\n\n```go\nfunc OpenSubtasks(ctx context.Context, tr Tracker, r ref.Ref) ([]string, error)\n```\nOpenSubtasks is the check start and drive make before a task runs as one of its own.\n\n```go\nfunc OriginBaseHasCode(ctx context.Context, main, branch, def string) bool\n```\nOriginBaseHasCode is BaseHasCode for a base only origin holds: with no reflog there is no creation commit, so the base's own base is read on origin too.\n\n```go\nfunc PRBase(ctx context.Context, warn io.Writer, main, branch string) (string, error)\n```\nPRBase is the branch the subject's request targets or would target. A recorded base found nowhere was finished and deleted, so its code is on the default branch; that is said on warn. PRTargetOf keeps \"found nowhere\" as its own answer, which drive and the watcher wait on.\n\n```go\nfunc PushCatchup(ctx context.Context, dir, branch string, rec *drivestore.Catchup) (string, error)\n```\nPushCatchup is the one push after a clean catchup of a branch origin has: plain when it fast-forwards origin, leased against rec's origin tip after a rewrite, and never carrying a base origin lacks. A rewrite with no live lease is refused as unseen; a push or a refusal spends the lease.\n\n```go\nfunc RawChildrenFor(ctx context.Context, t *target.Target, task ref.Ref) ([]tasksource.RawChild, error)\n```\nRawChildrenFor is the task's subtasks as the tracker holds them; ErrNoParentLink when it has no parent link to read.\n\n```go\nfunc ReadTarget(ctx context.Context, main string, t PRTarget, prBase, local, origin string) (targetState, error)\n```\nReadTarget reads t against the PR's base and the branch's local and origin tips; a prBase of \"\" skips the retarget check.\n\n```go\nfunc RecordTip(ctx context.Context, dir, branch, base string) error\n```\nRecordTip records the base commit branch is built on, so a catchup after the base's history is rewritten replays only branch's own commits. The newer of the local and origin merge-bases wins: a guard integrates origin's copy, which a stale local branch would hide. A base found nowhere keeps the tip recorded before.\n\n```go\nfunc RecordedBase(ctx context.Context, main, branch string) (string, string, error)\n```\nRecordedBase is the f10-after-branch base start recorded on branch, and its sha, origin's copy first; sha is \"\" for a base found nowhere.\n\n```go\nfunc RefSHA(ctx context.Context, dir, r string) string\n```\n\n```go\nfunc RememberRefsFor(ctx context.Context, t *target.Target, refs ...ledger.TaskRef)\n```\nRememberRefsFor records refs as this project's; it never fails its caller.\n\n```go\nfunc RiderRefs(root, id string) []string\n```\nRiderRefs are the patterns of a bundle branch the id rides in, past its lead: \\`\\\u003clead\u003e+\\\u003cid\u003e\\`, \\`\\\u003clead\u003e+\\\u003cid\u003e+\\\u003cmore\u003e\\`, each bare or slugged.\n\n```go\nfunc SetMark(ctx context.Context, dir, main, mark string) (string, string, error)\n```\nSetMark writes the mark a guard printed (\\`\\\u003ckey\u003e \\\u003cvalue\u003e\\`) on the branch dir works on, and returns that branch and the mark as stored. Resolving the catchup again would name no mark: a stopped rebase leaves HEAD on the base, which reads as already in.\n\n```go\nfunc ShipCode(ctx context.Context, main, branch, def string) bool\n```\nShipCode is BaseHasCode for the task's own branch, less the commits a catchup made: its fix for a red verify is not the task's work.\n\n```go\nfunc Slugify(title string) string\n```\nSlugify cuts at the last hyphen at or before SlugMax so no word is split, hard at SlugMax when there is none.\n\n```go\nfunc TaskCheckout(\n\tctx context.Context,\n\tmain string,\n\td *trackerdriver.Driver,\n\ttask ref.Ref,\n\tsuffix string,\n) (string, string, error)\n```\nTaskCheckout is the task's branch and the checkout that has it checked out: both \"\" with no local branch, the path \"\" when checked out nowhere. No title lookup: a slug would cost a host call for nothing.\n\n```go\nfunc TaskRefs(root, id string) []string\n```\nTaskRefs are the patterns a task's branch can sit under a root. for-each-ref extends a bare id to everything below it at a slash, but a \\`\\*\\` stops at a slash, so a slugged bundle needs its own pattern.\n\n```go\nfunc TaskRows(ctx context.Context, t *target.Target, limit int) ([]hostops.Row, error)\n```\n\n```go\nfunc TreeBusy(ctx context.Context, dir string) string\n```\n\n```go\nfunc WorkPast(ctx context.Context, dir, def, tip, head string) ([]gitx.Cherry, error)\n```\nWorkPast is what tip holds past a request's head that origin's default branch def lacks: commits made after the last push, which a merge left behind. A tip at the head or behind it, one that only merged main in, and one recreated at main's tip hold none. Start, finish and the janitor all read a landed branch by it, so they agree on the same branch.\n\n```go\nfunc WorktreeOf(wts []gitx.Worktree, branch string) string\n```\n\n## Types\n\n```go\ntype BranchIndex struct {\n\t// contains filtered or unexported fields\n}\n```\nA BranchIndex answers which branch is a task's, from every branch's record read once. Build one per command and never keep it across a write to the records, since it answers from the read.\n\n```go\nfunc LoadBranchIndex(ctx context.Context, dir string) (*BranchIndex, error)\n```\n\n```go\nfunc (x *BranchIndex) After(ctx context.Context, id string) (string, error)\n```\nAfter is the branch --after names. Nothing or several matching fails before anything is created, since guessing would base the work on the wrong attempt.\n\n```go\nfunc (x *BranchIndex) Any(ctx context.Context, id string) (string, error)\n```\nAny is the first branch of the task, linked, local or origin's (\\`origin/\\\u003cname\u003e\\`), or \"\" for none.\n\n```go\nfunc (x *BranchIndex) Bundle(branch, prefix string) (string, []string)\n```\nBundle is the lead and riders a branch ships: its recorded riders, led by its link else the id its name carries, then the ids its name spells, as a fetched branch carries them.\n\n```go\nfunc (x *BranchIndex) Find(ctx context.Context, want, id, suffix string, roots BranchPolicy) (FoundBranch, error)\n```\nFind is the branch to reuse, or none when the task has none yet. Several is an error, since a suffix exists to say which; a suffix skips the link, naming an attempt by its branch name.\n\n```go\nfunc (x *BranchIndex) Linked(id string) []string\n```\nLinked are the local branches linked to id as lead or rider: a picked-up PR's branch need not carry the id, and a bundle's branch is found by any member.\n\n```go\nfunc (x *BranchIndex) Record(branch string) branchmeta.Record\n```\n\n```go\nfunc (x *BranchIndex) Under(ctx context.Context, root, id, suffix string) ([]string, error)\n```\nUnder lists the task's branches under root, narrowed to a suffix when given. Locally, a miss on the shapes start creates falls back to the id anywhere in the name (\\`feat/ABC-6-slug\\`), as \\`task read\\` reads a branch.\n\n```go\ntype BranchPolicy []string\n```\nA BranchPolicy is where find looks past the link: the roots it searches, in order.\n\n```go\ntype CatchupEngine struct {\n\t// Policy holds the catchup keys; dir, main and ShipStopped are set per task\n\tPolicy CatchupInput\n\n\t// AgentVerifies says why the agent runs verify after a clean integration\n\t// and clears the marks once green, \"\" when the binary runs verify\n\tAgentVerifies string\n\t// Integrate, verify and base are the git and the verify the engine\n\t// runs, replaced by tests that script neither; base reads the base the\n\t// marks name without a fetch\n\tIntegrate func(ctx context.Context, in CatchupInput, message func(CatchupPlan) []string) (CatchupPlan, bool, error)\n\tVerify    func(ctx context.Context, dir, log string) (VerifyRun, error)\n\tBase      func(ctx context.Context, in CatchupInput) (CatchupPlan, error)\n\t// contains filtered or unexported fields\n}\n```\nCatchupEngine is how a branch is caught up from outside its agent.\n\n```go\nfunc NewCatchupEngine(policy CatchupInput, spec VerifySpec, why string, traces bool, main string) *CatchupEngine\n```\nNewCatchupEngine is the real git and verify; why, when not \"\", is the reason spec cannot run and the agent verifies instead.\n\n```go\nfunc (e *CatchupEngine) CleanSteering(base string) string\n```\nCleanSteering is the turn the agent gets after a clean integration when the binary cannot run verify.\n\n```go\nfunc (e *CatchupEngine) ConflictSteering(p CatchupPlan, branch, who string, paths []string) string\n```\nConflictSteering is what a turn settles after git stopped on conflicts.\n\n```go\nfunc (e *CatchupEngine) Input(main, dir string) CatchupInput\n```\nInput is the policy for one worktree.\n\n```go\nfunc (e *CatchupEngine) Left(ctx context.Context, main, dir, branch string, p CatchupPlan) (TreeState, error)\n```\nLeft reads what keeps the branch from being caught up with p (TreeState's left), and when the agent verifies, whether a mark is still set.\n\n```go\nfunc (e *CatchupEngine) Message(tasks []string, change string) func(CatchupPlan) []string\n```\nMessage is a catchup merge's message: git's own subject, then the trailers a catchup commit carries for tasks, change naming its PR series.\n\n```go\nfunc (e *CatchupEngine) VerifyClause() string\n```\nVerifyClause tells a turn under an agent-run verify to verify and clear the marks itself; under the binary's verify it adds nothing.\n\n```go\ntype CatchupInput struct {\n\tDir, Main string\n\tGuard     string // \"\" for a run asked for by name, else the entry it guards\n\n\tCatchup, Stacked               string\n\tCatchupDefault, StackedDefault bool // the value is the default, not declared\n\n\tShipStopped bool\n\n\t// Fetched is the tick's or the watcher pass's fetch, nil outside one\n\tFetched *FetchOnce\n}\n```\n\n```go\nfunc CatchupPolicy(eff *facts.Effective) CatchupInput\n```\nCatchupPolicy is the catchup keys of the effective configuration.\n\n```go\ntype CatchupPlan struct {\n\tBranch, Base, SHA, Found, How, Method, Why, Mark string\n\t// Upstream is the base's old tip that onto rebases from\n\tUpstream string\n\t// Code says whether a recorded base branch has commits of its own: ship\n\t// waits on one with none, by the rule the drive releases dependents on\n\tCode string\n}\n```\n\n```go\nfunc IntegrateBranch(\n\tctx context.Context,\n\tin CatchupInput,\n\tmessage func(CatchupPlan) []string,\n) (CatchupPlan, bool, error)\n```\nIntegrateBranch decides the base and method as f10 pr catchup does and integrates; stopped is a conflict left in progress.\n\n```go\nfunc ResolveCatchup(ctx context.Context, in CatchupInput) (CatchupPlan, error)\n```\n\n```go\nfunc (p *CatchupPlan) Write(w io.Writer) error\n```\n\n```go\ntype ChildRow struct {\n\tID       string   `json:\"id\"`\n\tTitle    string   `json:\"title\"`\n\tURL      string   `json:\"url,omitempty\"`\n\tState    string   `json:\"state,omitempty\"`\n\tLabels   []string `json:\"labels\"`\n\tAfter    string   `json:\"after,omitempty\"`\n\tFinished bool     `json:\"finished\"`\n\tDepth    int      `json:\"depth\"`\n\n\tNumber int    `json:\"-\"`\n\tSuffix string `json:\"-\"` // a launched start's worktree suffix: the checkout read is that one\n\tQueued bool   `json:\"-\"` // a drive's cap holds it back\n\tPhase  string `json:\"-\"` // where its drive's record says it stands, a drivestore.Phase name\n\t// OnChecks: a waiting Phase holds finish on running checks, not on a base\n\tOnChecks bool `json:\"-\"`\n\t// Waits are a join's bases not yet merged, by its drive's record\n\tWaits []string `json:\"-\"`\n\t// WaitsPlan: its batch runs --plan, so Waits owe saved plans, not merges\n\tWaitsPlan bool `json:\"-\"`\n\t// Stated: State comes from the tracker, so an open one outranks a\n\t// ledger finish\n\tStated bool `json:\"-\"`\n}\n```\nA ChildRow is one open subtask. Rows come in tree order: a child whose After: base is a sibling follows that sibling one level deeper.\n\n```go\nfunc ChildTree(rows []ChildRow) []ChildRow\n```\nChildTree orders rows under their After: base, siblings by number, else in the order given. Rows caught in a cycle come out at the top level, so the listing stays readable and drive refuses the cycle itself.\n\n```go\nfunc ShapeChildren(\n\tctx context.Context,\n\ttr Tracker,\n\tmain string,\n\traw []tasksource.RawChild,\n\tkeepClosed bool,\n) ([]ChildRow, error)\n```\n\n```go\ntype FetchOnce struct{ Done bool }\n```\nA FetchOnce fetches origin at most once, a tick's or a watcher pass's: every worktree shares the main checkout's remote refs, so one fetch serves them all. A failed fetch is not kept, so the next caller tries again. A nil one, a caller outside any tick, fetches every time.\n\n```go\nfunc (f *FetchOnce) Fetch(ctx context.Context, dir string) error\n```\n\n```go\ntype FoundBranch struct {\n\tName   string\n\tRemote bool\n}\n```\nA FoundBranch is the branch find settled on, and whether only origin has it, in which case start creates the local branch tracking it.\n\n```go\ntype OriginMovedError struct {\n\tBranch, Path string\n\tUnseen       bool\n\t// contains filtered or unexported fields\n}\n```\nOriginMovedError refuses a force-push that could drop commits pushed to the branch while its catchup ran: origin moved, or, unseen, nothing recorded what origin held when the catchup went out.\n\n```go\nfunc (e OriginMovedError) Error() string\n```\n\n```go\ntype PRTarget struct {\n\tSHA, Name, Value string\n\tKey              branchmeta.Key\n}\n```\nPRTarget is what a task's PR targets and the mark that sends a catchup for it: origin's copy of the f10-after-branch base, else its local copy, else the default branch. sha is \"\" for a base found nowhere.\n\n```go\nfunc PRTargetOf(ctx context.Context, main, branch string) (PRTarget, error)\n```\n\n```go\ntype Tracker struct {\n\tResolve func(ctx context.Context, token string) (ref.Ref, error)\n\tInfo    func(ctx context.Context, task ref.Ref) (tasksource.TaskInfo, error)\n\t// Children is the task's open subtasks; nil, like ErrNoParentLink, is a\n\t// tracker with no parent link\n\tChildren func(ctx context.Context, task ref.Ref) ([]ChildRow, error)\n\t// AllChildren is children with the closed ones kept, for status\n\tAllChildren func(ctx context.Context, task ref.Ref) ([]ChildRow, error)\n\tStorage     storage.Root // where a finished task's plan is archived\n\t// contains filtered or unexported fields\n}\n```\nA Tracker answers the questions start and drive ask of the task source. Funcs rather than a target, so the flows run under test without one.\n\n```go\nfunc TrackerFor(t *target.Target) Tracker\n```\nTrackerFor binds the lookups to this target: the driver's \\`read\\` for the body where the project has one, the host's issue otherwise.\n\n```go\ntype TreeState struct {\n\tOp    gitx.Operation\n\tDirty int\n\t// contains filtered or unexported fields\n}\n```\nA TreeState is what git shows of a worktree a catchup acts on: an operation in progress and the uncommitted paths, and once WithBase ran, whether the branch holds the base and the conflict markers left past it.\n\n```go\nfunc ReadTree(ctx context.Context, dir string) (TreeState, error)\n```\nReadTree reads the operation in progress and the uncommitted paths in dir.\n\n```go\nfunc (t TreeState) BaseLost() bool\n```\nBaseLost reports a branch that no longer holds the base WithBase read.\n\n```go\nfunc (t TreeState) Busy() string\n```\nBusy says what keeps a catchup from starting, \"\" for nothing.\n\n```go\nfunc (t TreeState) Left() string\n```\nLeft says what keeps the branch from being caught up, \"\" for nothing: an operation in progress (a rebase with its place), uncommitted paths, the base not in the branch, a conflict marker, or a mark still set.\n\n```go\nfunc (t TreeState) WithBase(ctx context.Context, branch string, p CatchupPlan) (TreeState, error)\n```\nWithBase is t with whether branch holds p read, and if it does, the conflict markers left in the paths it changes past p.\n\n```go\ntype VerifyRun struct {\n\tFailed, Log string\n}\n```\nA VerifyRun is verify run once: the first command that failed, with its output in log, or \"\" when every command passed.\n\n```go\nfunc RunVerify(ctx context.Context, dir string, cmds []string, log string) (VerifyRun, error)\n```\nRunVerify runs each command in dir in order and stops at the first that fails, writing its output to log.\n\n```go\ntype VerifySpec struct {\n\tList []facts.VerifyDecl\n\tCmds []string\n}\n```\nA VerifySpec is the verify the drive can run without a model: the frontmatter list, scoped to the branch's diff, or a fixed set of commands.\n\n","path":"github.com/amberpixels/f10/cli/internal/stack","name":"stack","synopsis":"Package stack is how a task branch stands on its base: the branch index, the After: base, base code checks, the catchup engine and verify runs.","isRedistributable":true}
