Documentation
¶
Index ¶
- func Answer(args []string, stdout, stderr io.Writer) int
- func Ask(args []string, stdout, stderr io.Writer) int
- func CheckBloat(args []string, stdout, stderr io.Writer) int
- func EpicPlanValidate(args []string, stdout, stderr io.Writer) int
- func GraphBuild(args []string, stdout, stderr io.Writer) int
- func GraphCheckBoundary(args []string, stdout, stderr io.Writer) int
- func GraphDeps(args []string, stdout, stderr io.Writer) int
- func GraphStatus(args []string, stdout, stderr io.Writer) int
- func GraphUpdate(args []string, stdout, stderr io.Writer) int
- func GraphWhoImports(args []string, stdout, stderr io.Writer) int
- func Init(args []string, stdout, stderr io.Writer) int
- func IssueList(gh github.Client, cfg *config.Config, out io.Writer) error
- func IssueListCmd(args []string, stdout, stderr io.Writer) int
- func IssueSync(gh github.Client, cfg *config.Config, ticketDir string) error
- func IssueSyncCmd(args []string, stdout, stderr io.Writer) int
- func LogEmit(args []string, stdout, stderr io.Writer) int
- func ModelsList(args []string, stdout, stderr io.Writer) int
- func ModelsProbe(args []string, stdout, stderr io.Writer) int
- func NewRunner(src RunnerSource) (agentrunner.Adapter, error)
- func ObserverDispatch(args []string, stdout, stderr io.Writer) int
- func PolicyCheck(args []string, stdout, stderr io.Writer) int
- func SetStep(args []string, stdout, stderr io.Writer) int
- func TicketAdvance(args []string, stdout, stderr io.Writer) int
- func TicketClose(args []string, stdout, stderr io.Writer) int
- func TicketNew(args []string, stdout, stderr io.Writer) int
- func TicketPRDescription(args []string, stdout, stderr io.Writer) int
- func TicketResume(args []string, stdout, stderr io.Writer) int
- func TicketReview(args []string, stdout, stderr io.Writer) int
- func TicketValidate(args []string, stdout, stderr io.Writer) int
- func TicketVerify(args []string, stdout, stderr io.Writer) int
- func Tickets(args []string, stdout, stderr io.Writer) int
- func WikiRebuild(args []string, stdout, stderr io.Writer) int
- func WikiSearch(args []string, stdout, stderr io.Writer) int
- type RunnerSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpicPlanValidate ¶ added in v0.1.0
EpicPlanValidate checks a plan file the way the orchestrator checks any plan entering the system — branch targets against the run's ref, then the full structural rules — so the planning agent can iterate against the same gate its draft will be re-checked by. No model is involved.
func Init ¶
Init requires an explicit --backend flag; there is no silent default (spec: Distribution & Ownership). A future interactive prompt path belongs to the terminal-attached CLI wrapper, not this testable core.
func IssueList ¶ added in v0.1.0
IssueList prints open issues carrying the configured trigger label.
This never writes to GitHub: it only calls the read-only ListIssuesSince endpoint. cfg.GitHub.Write is not consulted here — no command in this file calls a GitHub write endpoint yet. Write exists so golem init (standalone use) and the shem's ensureRepoReady (orchestrator-managed repos) agree on which side is allowed to become a GitHub writer once a write-capable command is added; see internal/shem/worker/executor.go's setGitHubWrite.
func IssueListCmd ¶ added in v0.1.0
IssueListCmd is the `golem issue list` command.
func IssueSync ¶ added in v0.1.0
IssueSync pulls the linked issue's current title and body onto the ticket: the ticket description is overwritten with github.Issue.TicketDescription() (GitHub is the source of truth) and issue_url is refreshed. All other state.json fields are preserved because this loads and saves through ticket.State rather than editing raw JSON.
This never writes to GitHub: it only calls the read-only GetIssue endpoint. See IssueList's doc comment for why cfg.GitHub.Write is not consulted here.
func IssueSyncCmd ¶ added in v0.1.0
IssueSyncCmd is the `golem issue sync` command.
func ModelsList ¶ added in v0.1.0
ModelsList prints a backend's tiers, models and per-stage default models.
func ModelsProbe ¶ added in v0.1.0
ModelsProbe checks each catalog model against the vendor CLI and prints the verified backend block.
func NewRunner ¶
func NewRunner(src RunnerSource) (agentrunner.Adapter, error)
NewRunner builds the adapter from --backend-config, else --backend, else .golem/config.yaml.
func PolicyCheck ¶ added in v0.1.0
PolicyCheck is a vendor hook endpoint. A malformed event or policy blocks.
func TicketPRDescription ¶ added in v0.1.0
TicketPRDescription writes a pull request body for a ticket to stdout.
A separate command rather than something the orchestrator does, because the orchestrator has no checkout: the description is written from the branch's own diff and the ticket's log, both of which exist only on the shem. The shem runs this after a successful push and hands the result back with the branch-pushed report.
Failure is not fatal to the caller by design — the shem falls back to the minimal body so the pull request still opens. A missing description is an inconvenience; a missing pull request is lost work.
func TicketValidate ¶ added in v0.1.0
TicketValidate runs the spec-adherence role over a finished stage artifact and reports whether the ticket may advance.
This is what replaces the human approval that used to sit after brainstorm and after plan. The only human gate is now intake: a person reads the description and starts the ticket. Everything after that advances on the shem's own check, so that check has to be a real one — the exit code is the gate.
The verdict channel is the ticket log, not this command's stdout. The role emits BLOCKER entries through `golem log emit` exactly as the observers do, and any BLOCKER raised during this run fails the stage. Reusing the established channel means the reasons land where a human reviewing the ticket already looks, instead of in a bespoke verdict file.
Exit codes: 0 = advance, 1 = could not run, 2 = validation failed.
func TicketVerify ¶ added in v0.1.0
TicketVerify runs the gate (plus the ticket's acceptance commands) as the worker's self-verification and logs the result. It never replaces the review gate. Exit codes: 0 passed, 1 could not run, 2 a check failed.