Documentation
¶
Overview ¶
Package runnercfg wires the per-harness agent-runner fleet from controller flags: the image and credential Secret for each harness, which harnesses a deployment enables, and the startup validation that every allowlisted model can actually be run. Both job controllers (investigation, remediation) share it so the flag surface and enablement rules never drift apart.
Index ¶
- func ClaudeProviderConfig(opts *cli.Options) (provider.Config, error)
- func EvolveRunners(opts *cli.Options) (map[string]jobs.Runner, error)
- func RegisterEvolveFlags(f *pflag.FlagSet)
- func RegisterFlags(f *pflag.FlagSet)
- func Resolve(ctx context.Context, opts *cli.Options, cs kubernetes.Interface, ...) ([]string, error)
- func ResolveHarness(canonical string, enabled []string) (harnessID, cliModelID string, err error)
- func Restrict(opts *cli.Options) []string
- func Runners(opts *cli.Options) (map[string]jobs.Runner, error)
- func SplitList(s string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaudeProviderConfig ¶ added in v0.10.0
ClaudeProviderConfig builds and validates the claude provider config from the shared flags.
func EvolveRunners ¶ added in v0.9.3
EvolveRunners builds the evolve-runner fleet from the flags, mirroring Runners: a harness is a candidate only when its evolve image flag is set. The claude evolve runner is brokered like its finding sibling; codex and copilot reuse the shared --<harness>-secret flags, with the credential env var validated against the harness's accepted channels.
func RegisterEvolveFlags ¶ added in v0.9.3
RegisterEvolveFlags adds the evolve-runner fleet flags for the evaluation controller: an evolve-runner image per harness plus the same shared credential Secret flags the finding runners use — one Secret per model vendor in the agents namespace, whichever fleet exercises it.
func RegisterFlags ¶
RegisterFlags adds the per-harness runner flags shared by both job controllers: an image per harness (unset = that runner is not configured), its credential Secret name/key/env, and the harness restrict list. Mutually exclusive with RegisterEvolveFlags within one binary — both register the shared credential flags.
func Resolve ¶
func Resolve(ctx context.Context, opts *cli.Options, cs kubernetes.Interface, namespace string, runners map[string]jobs.Runner, restrict, allowlist []string, requiredModels ...string) ([]string, error)
Resolve probes the configured runners' credentials, computes the enabled harness set, and validates coverage: the allowlist must be fully runnable, every requiredModel (the investigate/remediate defaults, canonical ids) must resolve to an enabled harness, and a brokered claude runner's model map must cover every claude-resolving model — a foundry gap is a startup error here, not a mid-run failure. It also probes the broker's readiness, non-fatally: the broker Deployment may simply not be up yet, and a deployment-ordering deadlock would be worse than a warning. Returns the sorted enabled harness ids.
func ResolveHarness ¶
ResolveHarness resolves a canonical model id to its harness and CLI model-id given the enabled set, erroring when the model is unknown or unrunnable.
func Runners ¶
Runners builds the configured runner fleet from the flags. A harness is a candidate runner only when its image flag is set. The claude runner is always brokered — its model traffic goes through the egress credential broker and no credential enters the pod; codex/copilot keep the Secret channel, whose env var is validated against the harness's accepted credential channels so a typo'd --codex-secret-env fails at startup rather than in the pod.
Types ¶
This section is empty.