lab

package
v0.57.7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 118 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

Index

Constants

View Source
const (
	// ModelsTestModelOllama is ~400 MB from the Ollama registry.
	ModelsTestModelOllama = "qwen2.5:0.5b"
	// ModelsTestModelLemonade is the smallest FastFlowLM (NPU) model of
	// Lemonade's catalog carrying the tool-calling label (3.1 GB); the
	// smaller *-FLM models cannot call tools.
	ModelsTestModelLemonade = "qwen3-4b-FLM"
	// ModelsTestModelLMStudio is an LM Studio hub reference (~2 GB), so the
	// download resolves the variant that fits the host — GGUF on Linux and
	// NVIDIA, MLX on Apple silicon.
	ModelsTestModelLMStudio = "ibm/granite-4-micro"
)

The proof's default model per backend — every one small and tool-calling capable, which a kagent agent turn requires: agents send tool schemas with every request, and a model without them fails each turn with "does not support tools" (smollm2:135m pulls fine and then does exactly that).

View Source
const AnthropicKeyEnv = "ANTHROPIC_API_KEY"

AnthropicKeyEnv is where the lab reads the Anthropic API key from at deploy time. Unlike the lab's throwaway passwords, this is a real credential: it never enters agentlab.yaml or the rendered state/ files — it travels host environment -> Kubernetes Secret only, and the consumers (the kagent ModelConfig, Backstage's ai-chat) reference the Secret.

View Source
const DefaultServingReadyTimeout = 20 * time.Minute

DefaultServingReadyTimeout bounds the serve: the storage-initializer's download of the weights (~1 GiB from the Hugging Face Hub) and the CPU runtime's start (the model loaded, the server answering /health).

View Source
const DefaultVMManagerTestVMTimeout = 6 * time.Minute

DefaultVMManagerTestVMTimeout is the proof's default VM boot budget: the installer boot (~12 s) plus the installed boot to READY=1 (11-15 s) with room for a cold host; vm-manager's own ceilings are 5 m and 4 m.

View Source
const GitHubTokenEnv = "GITHUB_TOKEN" // #nosec G101 -- env var NAME, not a credential

GitHubTokenEnv is where the lab reads a GitHub token from at deploy time (`agentlab up`/`platform`) and before the proofs that resolve skills. Like the Anthropic key (anthropic.go) it is a real credential: it travels host environment -> Kubernetes Secret only and never enters agentlab.yaml, the rendered state/ files, a log line or a process's argv. The same variable lifts the anonymous rate limit of the self-update check (internal/update).

View Source
const KlausGatewayImageDefault = "gsoci.azurecr.io/giantswarm/klaus-gateway:3.5.1"

KlausGatewayImageDefault is the released gateway the proof runs when no image or binary is named: the current release of the Slack-only line (2.0.0 on) that the 4.x meta chart's `components.klaus-gateway` range resolves to.

View Source
const ServingPresetName = servingPresetName

ServingPresetName is the lab preset's name, for the configure summary.

View Source
const SkillsTestReadyTimeout = 10 * time.Minute

SkillsTestReadyTimeout bounds the golden boot by default: the runtime image into Substrate's layer cache, the actor's start, the skill fetch, the snapshot — minutes on a cold lab, and a boot that is being denied egress retries forever, so the wait has to end somewhere.

View Source
const StateDir = "state"

StateDir is where rendered manifests land, for inspection and for kubectl/helm to consume. Gitignored; regenerated on every command.

Variables

This section is empty.

Functions

func A2ATest added in v0.37.0

func A2ATest(cfg *config.Config, email string, opts A2ATestOptions) error

A2ATest is the headless proof described at the top of this file.

func AgentsTest added in v0.14.0

func AgentsTest(cfg *config.Config, email string) error

AgentsTest is the headless proof that agent-manager acts as the signed-in user and writes the Generic chart 1.x contract, through the platform path only (Dex id_token -> muster -> call_tool x_agent-manager_*): get_info reports identity caller on the 1.x chart and the platform Harness; the admin's create -> ready -> turn -> update -> refreshSkills -> delete round trip succeeds with requestedBy set — the HelmRelease written by agent-manager (its field manager, values.toolset the anchor, the skill pinned to a commit) next to the OCIRepository at 1.x, the render an AgentTemplate carrying the Harness label and the display-name and icon-url annotations, Ready on the platform Harness with its skill, the per-agent RemoteMCPServer carrying the toolset header; get_agent_status agrees with status.harnesses[] for ready and for a template no Harness admits; a viewers-group user's create is refused by the kind apiserver as User "oidc:viewer@lab.local" (the view role writes no HelmReleases); and the agent-manager ServiceAccount holds nothing beyond API discovery. Leaves nothing behind.

func ApplyDex

func ApplyDex(cfg *config.Config) error

ApplyDex renders manifests with the input checksum stamped into the pod template, applies them, and waits for the rollout. The checksum covers the rendered manifest AND the served cert, so editing the config or regenerating certs rolls the pod, while an unchanged re-apply is a pure no-op (no throwaway ReplicaSet). Shared by Up and `agentlab reload`.

func BackstageTest

func BackstageTest(cfg *config.Config, emails []string) error

BackstageTest drives the full Backstage <-> Dex sign-in headlessly for each user, reports the identity Backstage resolved, proves the Giant Swarm muster plugin can reach muster with that user's forwarded token, and then drives the Dev Portal's Agent Platform pages on kagent API v2 the way a person does (backstagetest_agents.go): the wizard's create path through agent-manager as the person, the agents list per user, a streamed and a resumed conversation, HITL and Stop, the detail page's edit, skills update and delete.

func BrowserLogin

func BrowserLogin(cfg *config.Config) error

BrowserLogin runs the real OIDC authorization-code flow: opens the browser on Dex's own login screen, catches the callback on a fixed local port (pre-registered in Dex's redirectURIs, so it cannot be random), exchanges the code for tokens and writes kubeconfig.oidc.

This is the flow to show a client — they see the Dex login page and type credentials for a user that exists nowhere but this cluster.

func Down

func Down(cfg *config.Config) error

Down destroys the kind cluster. Certs are kept: the CA is only worth regenerating deliberately (agentlab certs --force), and keeping it means an immediate `agentlab up` reuses the same trust chain.

func GenCerts

func GenCerts(domain string, force bool) error

GenCerts mints the lab CA and the Dex server certificate under certs/. Existing files are kept while they match the configuration and policy; only what must change is re-minted, and `--force` re-mints everything.

The CA carries X.509 name constraints — permitted DNS subtrees for the platform domain, localhost and the Dex in-cluster names, permitted IP range 127.0.0.0/8 — so once `agentlab trust` installs it, a leaked CA key still cannot sign for the web at large. Non-critical for old-verifier compatibility; Go, OpenSSL, Chrome, Firefox and macOS enforce them regardless. The constraints pin the domain, so a platform.domain change re-mints the CA: the trust step must be repeated, and a running cluster's apiserver keeps the replaced CA until the cluster is recreated.

The Dex server cert carries both IP:127.0.0.1 and DNS:localhost in its SAN — the issuer URL uses the *name* (muster rejects issuers whose host parses as a loopback IP; a name that merely resolves to one passes).

func KlausGatewayTest added in v0.39.0

func KlausGatewayTest(cfg *config.Config, email string, opts KlausGatewayTestOptions) error

KlausGatewayTest is the headless Swarmgeist proof: klaus-gateway against the lab's kagent API v2 controller through the edge, driven through its Slack adapter as the signed-in user.

func LogComponents

func LogComponents() []string

LogComponents lists what Logs accepts, for cobra's ValidArgs.

func Login

func Login(cfg *config.Config, email, password string) error

Login performs the headless password-grant login, writes the raw id_token to .token and a token-only kubeconfig to kubeconfig.oidc, and prints the token claims.

func Logs

func Logs(cfg *config.Config, component string) error

Logs tails the given component's logs (`kubectl logs -f` of its pods, through the embedded client against the lab cluster whatever the shell's kubeconfig says) until every stream ends or the user interrupts with Ctrl-C, which ends the command cleanly.

func MinPublishablePort added in v0.17.4

func MinPublishablePort() int

MinPublishablePort is the lowest host port the container engine can publish. Docker's daemon binds as root, so every port is available to it. Rootless podman publishes from the invoking user's network namespace, where the kernel refuses everything below net.ipv4.ip_unprivileged_port_start — the lab's default gateway port 443 among them.

func ModelsGatewayHost added in v0.52.0

func ModelsGatewayHost(cfg *config.Config) string

ModelsGatewayHost is modelsGatewayHost for the configure summary.

func ModelsTest added in v0.11.0

func ModelsTest(cfg *config.Config, email, backendName, model string) error

ModelsTest is the headless end-to-end proof of managed models on ONE of the configured backends, through the platform path only: the model-manager REST API behind the agentgateway route with a lab user's Dex token (and a 401 without one), then list -> pull with observable progress -> the auto-created kagent ModelConfig (native keyless Ollama provider on ollama, OpenAI provider against Lemonade's /api/v1 or LM Studio's /v1, carrying the backend label) Accepted -> a kagent agent turn against it -> the MCP tools through muster -> unload -> the teardown the server supports. Every request names the backend — the one model-manager fronting all servers resolves by it.

On a server that deletes over its API the teardown is a delete (gone from the host, the ModelConfig gone) and the run leaves nothing behind. On lmstudio LM Studio serves no delete, so the run proves the 501 refusal and unwires instead, and says in its closing note that the model stays downloaded — the one proof that leaves something behind, by design.

func ModelsTestModelDefaults added in v0.29.0

func ModelsTestModelDefaults() string

ModelsTestModelDefaults words the per-backend defaults for `--model`'s help text, so the flag cannot drift from the table.

func ModelsTestModelFor added in v0.16.0

func ModelsTestModelFor(backend string) string

ModelsTestModelFor is the default proof model of a backend.

func Open added in v0.32.0

func Open(cfg *config.Config, target string) error

Open hands one lab URL to the OS opener and prints it. Refuses when the target is disabled in agentlab.yaml, when the cluster is not running or when the target does not answer yet — a plain fact beats an error page in the browser — and offers `agentlab trust` first while the lab CA is untrusted.

func OpenBrowser

func OpenBrowser(url string)

OpenBrowser hands a URL (or, on macOS/Linux, any path) to the OS opener. Fire-and-forget: a browser that fails to open is an inconvenience, not an error the flow can act on — every caller prints the URL as well.

func OpenTargets added in v0.32.0

func OpenTargets() []string

OpenTargets lists what Open accepts, for cobra's ValidArgs.

func PlatformDown

func PlatformDown(cfg *config.Config) error

PlatformDown removes the agent platform and the observability releases, leaving Dex and the cluster alone. The order is the chart's: the lab's own mcp-prometheus HelmRelease goes first while helm-controller still runs (a clean uninstall of its release), then the waited uninstall of the platform through the embedded Helm runs the chart's pre-delete hooks — delete the component HelmReleases and wait for their releases to be uninstalled, then delete the FluxInstance and wait for the operator to remove Flux with its CRDs, which takes every remaining HelmRelease object (the agents' too) with it — before Helm removes the operator and the identities. Nothing is left with a finalizer nobody processes, so the namespaces delete promptly. The prometheus-operator CRDs and the four Flux Operator CRDs stay — Helm never removes a chart's crds/, and re-installs are unaffected.

func PlatformTest

func PlatformTest(cfg *config.Config, email string) error

PlatformTest is the headless end-to-end proof: Dex login -> muster (OAuth-protected) -> the Kubernetes MCP -> the kind apiserver.

Uses the Dex password grant with client_id=muster, which yields an id_token with aud=muster. muster accepts it directly because `muster` is listed under oauth.server.trustedAudiences. Claude Code instead does the full browser authorization-code flow; this is the CI-friendly shortcut.

func PlatformUp

func PlatformUp(cfg *config.Config, offers Offers) error

PlatformUp installs the Giant Swarm agent platform into the lab cluster and wires it to the lab Dex.

The platform is the agent-platform meta chart — the same chart every Giant Swarm management cluster runs — in its LAB SHAPE: the chart brings its own Flux engine (components.flux.enabled, the flux-engine subchart: Flux Operator + one FluxInstance with source- and helm-controller), so `helm install` yields a running platform on a cluster with no Flux; and the chart does NOT manage itself (gitops.self.enabled: false). Self-management would have the bundled helm-controller adopt this release and follow the PUBLISHED chart's version range — the lab installs unreleased charts (platform.chartPath) and dev images, which that HelmRelease would replace with the release it finds in the registry. So Helm keeps owning the release: this function is the one writer (an idempotent upgrade-or-install through the embedded Helm, no post-renderer, no --force-conflicts), and the release is the Helm CLI's too — `helm upgrade` from a shell stays the lab's day-2 tool.

func RenderAll

func RenderAll(cfg *config.Config) error

RenderAll renders every manifest into state/ for inspection. The stamped manifest (dex) needs the certs, so they are generated first if missing. The extra models include the statically wired host models when the host servers answer (best effort: the platform run is where a failure counts).

func ResolveChartVersion added in v0.27.0

func ResolveChartVersion(cfg *config.Config) (changed bool, err error)

ResolveChartVersion follows platform.chartBranch: it lists the chart repository's tags, picks the branch's newest dev build and writes it into cfg.Platform.ChartVersion, reporting whether that changed the config (the caller saves). A pinned lab (platform.chartPinned) keeps its recorded version; the stable channel (no chartBranch) is left alone. No build of the branch is a refusal with the two ways out: wait for the branch's publish, or pin a tag by hand.

func ServeFakeSlack added in v0.56.0

func ServeFakeSlack(ctx context.Context, addr string, emails []string) error

ServeFakeSlack serves the fake Slack Web API on addr until ctx ends: `agentlab slack-fake`, what the proof runs in a container on the kind network. emails are the people's `<slack user id>=<e-mail>` pairs users.info answers.

func ServingTest added in v0.52.0

func ServingTest(cfg *config.Config, email string, opts ServingTestOptions) error

ServingTest runs the proof as the user.

func SetDomain

func SetDomain(domain string)

SetDomain registers the platform domain for the loopback dialer.

func SkillsTest added in v0.31.0

func SkillsTest(cfg *config.Config, email string, opts SkillsTestOptions) error

SkillsTest is the headless proof that a Go ADK AgentTemplate with a git skill pinned to a full commit boots under Substrate and uses the skill in a turn as the signed-in user; on a failed golden boot it prints the evidence. The template is written below the agent chart on purpose — a raw AgentTemplate, so a private fixture's credentialRef and the control boot stay possible; the same skill through agent-manager and the chart is agents-test's.

func SystemTrusted

func SystemTrusted() bool

SystemTrusted reports whether the lab CA on disk is in the system trust store — the probe behind the `up` hints and the TUI trust row. Never installs anything.

func Test

func Test(cfg *config.Config) error

Test is the end-to-end RBAC proof: every configured user gets a real token from Dex and a set of `auth can-i` assertions (SelfSubjectAccessReviews as that user, token only) driven purely by the `groups` claim in the id_token.

func ToolsetsTest added in v0.19.0

func ToolsetsTest(cfg *config.Config, email string, opts ToolsetsTestOptions) error

ToolsetsTest is the headless end-to-end proof of declared toolsets against the released components in the lab. See the file comment for what it covers; it prints one PASS line per claim and leaves nothing behind.

func Trust

func Trust(cfg *config.Config) error

Trust installs the lab CA into the system trust store (one sudo prompt) and, when NSS tooling is available, into the Firefox/Chromium NSS profiles. Reversible: `agentlab untrust` removes exactly what this installed.

func Turn added in v0.40.0

func Turn(cfg *config.Config, email, template, prompt string) error

Turn is `agentlab turn`: one conversation with an agent as a lab user, the way the surfaces drive it — the person's Dex id_token on the kagent controller's gRPC route through the edge. With no template it prints the roster the person sees (ListAgentTemplates as that person, or the gRPC status when the controller refuses). With a template and a prompt it creates an AgentInstance on the platform Harness, streams one turn, prints the answer and the terminal task state, and deletes the instance.

func Untrust

func Untrust(cfg *config.Config) error

Untrust removes the lab CA — and any predecessor a re-mint stashed — from the system store and the NSS profiles. certs/ stays on disk, so a later `agentlab trust` reinstalls the same CA. (`agentlab down` never touches the trust stores; this is the only removal path.)

func Up

func Up(cfg *config.Config, offers Offers) error

Up brings up the whole lab: certs, kind cluster, Dex, RBAC, an end-to-end OIDC verification, and then the components the configuration enables — the agent platform (the default; it is what the lab tests) and Backstage.

func VMManagerTest added in v0.43.0

func VMManagerTest(cfg *config.Config, email string, opts VMManagerTestOptions) error

VMManagerTest is the headless proof of the vm-manager wiring: the platform's VM provisioner as a pod of the node, registered with muster by its chart, reached as the signed-in person.

The identity boundary first, against the pod's Service from inside the cluster (a probe pod, the way muster dials it): vm-manager without a token answers 401 — a vm-manager running anonymously (oauth off) would make every forwarded identity meaningless, and the proof fails on it — and with the person's Dex id_token it answers the capability report, validated against the lab Dex through the chart's global.identity wiring. Then through muster: the x_vm-manager_* tools are aggregated with their annotations intact (get_host read-only, delete_vm destructive), get_host, list_images and list_networks answer as the person, and the MCPServer CR carries the agent-platform tool group and reads Connected. Then, unless --skip-vm, the lifecycle through muster: create_vm on the newest image, the states followed with get_vm until ready (the installer boot, the installed boot, READY=1 over vsock), the attestation verdicts read when the image's policy has golden values, the console tailed, and delete_vm leaving nothing behind. A host that is not ready (get_host's `missing`) or has no image skips the lifecycle with the reason.

Types

type A2ATestOptions added in v0.37.0

type A2ATestOptions struct {
	// ReadyTimeout bounds the fixture agent's golden boot.
	ReadyTimeout time.Duration
}

A2ATestOptions are the flags of `agentlab a2a-test`.

type Discovery added in v0.15.0

type Discovery struct {
	Tools         []ToolVersion
	AnthropicKey  bool
	GitHubToken   bool
	ClusterExists bool
	ClusterPorts  map[int]bool
	KindGateway   string
	Servers       []HostServer
	FLM           *FLMServer
	// KVMMissing names the KVM devices this machine lacks (vmmanager.go):
	// empty when the platform's VM provisioner can run as a pod of the node.
	KVMMissing []string
}

Discovery is what `agentlab configure` learns about this machine before it writes agentlab.yaml — on every run, not only the first, so the file follows the host: the one tool `agentlab up` shells out to (the container engine) next to what the binary embeds (kind with the node image it boots, Helm, the Kubernetes client), whether this configuration's kind cluster exists (and which host ports it publishes, so they never count as conflicts), the kind docker network's gateway (the address pods reach the host on), the model servers answering on their default ports with their downloaded models, a standalone FastFlowLM server (report-only), and whether the Anthropic key is in the environment.

func Discover added in v0.15.0

func Discover(cfg *config.Config) *Discovery

Discover probes this machine. Nothing here needs the cluster; every probe is loopback or a local CLI and degrades to "not found".

func (*Discovery) Backends added in v0.15.0

func (d *Discovery) Backends() []string

Backends lists the backends the configuration should carry, in canonical order: the servers that answer AND that pods can reach.

A server pods cannot reach is no use to model-manager, which runs in one. Reachable means on the kind gateway OR on the runtime's host alias, so a runtime in a VM enrolls its servers like a native one.

Unknown reachability still enrolls: Probed is false while there is no node to probe from — a fresh machine, or after `agentlab down`, which leaves the kind network behind but no container to dial from — and a lab that has not booted yet must still be configurable. Only an explicit "no" is left out, and Report says so where it says the rest.

func (*Discovery) KVMReady added in v0.44.0

func (d *Discovery) KVMReady() bool

KVMReady reports whether this machine has the KVM devices the platform's VM provisioner needs as a pod of the node — what platform.vmManager.enabled is refused without.

func (*Discovery) ModelServersHint added in v0.15.0

func (d *Discovery) ModelServersHint() string

ModelServersHint names the servers found for the configure form, and says which of them the answer cannot enrol. Listing a server the form is about to drop reads as a promise the configuration does not keep — the confirm says "Found: X" and X never reaches platform.modelManager.backends.

func (*Discovery) PodHostFor added in v0.42.4

func (d *Discovery) PodHostFor(backend string) string

PodHostFor is the host pods reach a backend's server on, "" when the discovery could not establish one.

func (*Discovery) Preflight added in v0.23.6

func (d *Discovery) Preflight() error

Preflight is the verdict on the tools, taken before `agentlab configure` asks its first question (or, with --defaults, writes anything): an error naming every tool `agentlab up` would fail on — not on PATH — with why and where to get it. So nobody walks through the whole form to be refused at boot time. The container engine is the one tool asked for; everything else the lab runs is in the binary.

func (*Discovery) Report added in v0.15.0

func (d *Discovery) Report(cfg *config.Config) string

Report is the human-readable account of the discovery, printed by `agentlab configure` before it changes anything. The tools line states what answered on PATH and what the binary carries; the verdict on the former is Preflight's.

type FLMServer added in v0.15.0

type FLMServer struct {
	Port   int
	Models int
}

FLMServer is a standalone `flm serve` (FastFlowLM's own OpenAI-compatible server). The lab does not wire it: it has no management API and lists its whole catalog rather than what is downloaded — Lemonade Server is the supported front for FLM.

type HostModel added in v0.15.0

type HostModel struct {
	ID string
	// Tools: the model supports tool calling — what agents need, since they
	// send tool schemas with every turn (a model without it fails each turn
	// with "does not support tools").
	Tools bool
	// Size on disk in bytes (Lemonade reports decimal GB; converted).
	Size int64
}

HostModel is one model a host model server has downloaded.

type HostServer added in v0.15.0

type HostServer struct {
	Backend string // config.ModelManagerBackend*
	// Ident is what the server says it is: its version where it reports one,
	// the API generation for LM Studio, which reports none anywhere.
	Ident string
	Port  int
	// Probed: the reachability question was put to a running node, so PodHost
	// is an answer. False while there was nothing to dial or no node to dial
	// from, and when the probe itself failed, which ReachErr then explains.
	Probed   bool
	ReachErr error
	// PodHost is the host part pods reach this server on: the kind network
	// gateway where that is this machine, else the container runtime's host
	// alias, which resolves only inside the cluster. Empty when Probed and
	// neither answers.
	PodHost   string
	Models    []HostModel
	ModelsErr error
}

HostServer is a model server found on this machine.

type KlausGatewayTestOptions added in v0.39.0

type KlausGatewayTestOptions struct {
	// GatewayImage is the klaus-gateway image run on the host's network
	// (default KlausGatewayImageDefault); GatewayBinary, a local build, takes
	// precedence — the proof of a branch.
	GatewayImage  string
	GatewayBinary string
	// Port is the host port of the gateway's Slack endpoints; the admin
	// endpoints take Port+1, the fake Slack Web API Port+2 when it runs in
	// this process. Default 18090.
	Port int
	// SlackFakeBinary is the static Linux agentlab the fake Slack Web API
	// container runs when the component's pods call it (default: this
	// binary).
	SlackFakeBinary string
	// ModelConfig is the kagent ModelConfig the fixture runs on (default
	// default-model-config, the Anthropic one the lab renders).
	ModelConfig string
	// ReadyTimeout bounds the fixture's golden boot (default 10 min).
	ReadyTimeout time.Duration
	// RunDir holds the stores, the keys and the gateway's log; empty picks
	// a temporary directory removed at the end.
	RunDir string
}

KlausGatewayTestOptions tunes the proof.

type Offers added in v0.32.0

type Offers struct {
	Trust *bool
	Open  *bool
}

Offers pre-answer the questions `up` and `platform` end with (the --trust and --open flags): nil asks on a terminal and stays silent off one, a value is the answer wherever the command runs.

type ServingTestOptions added in v0.52.0

type ServingTestOptions struct {
	// Preset is the published preset to serve (default: the lab's).
	Preset string
	// SkipChat skips the agent turn on the wired ModelConfig.
	SkipChat bool
	// ReadyTimeout bounds the serve (download and start).
	ReadyTimeout time.Duration
}

ServingTestOptions are the proof's knobs.

type SkillsFixture added in v0.33.0

type SkillsFixture struct {
	Repo, Commit, Skill, Question, Expect string
	// CredentialSecret names the Secret (key skillsCredentialKey); "" fetches
	// anonymously. The proof never reads the Secret.
	CredentialSecret string
}

SkillsFixture is the skill the proof boots and asks about: a git repository at a full commit, the skill's directory within it (its last element is the skill's name), the question the turn asks and the answer only the skill's text has — and, for a private repository, the Secret in the kagent namespace whose token key the runtime presents to the repository's host (skills[].source.git.credentialRef). The zero value is the public fixture.

type SkillsTestOptions added in v0.31.0

type SkillsTestOptions struct {
	// ModelConfig is the kagent ModelConfig the throwaway agent runs on
	// (default: default-model-config, the Anthropic one the lab renders).
	ModelConfig string
	// ReadyTimeout bounds the golden boot (default SkillsTestReadyTimeout).
	ReadyTimeout time.Duration
	// Fixture is the skill to boot and ask about; the zero value is the
	// public fixture, a private repository's names its Secret.
	Fixture SkillsFixture
}

SkillsTestOptions tunes the proof.

type ToolVersion added in v0.15.0

type ToolVersion struct {
	Name     string
	Version  string
	Embedded bool
}

ToolVersion is one entry of the report's tools line: the container engine the lab shells out to (Version empty when it is not on PATH or does not answer), or one of the libraries the binary carries — Embedded — whose Version is the one built in (kind's names its node image too).

type ToolsetsTestOptions added in v0.19.0

type ToolsetsTestOptions struct {
	// ModelConfig is the kagent ModelConfig the throwaway agents run on
	// (default: default-model-config, the Anthropic one the lab renders).
	ModelConfig string
	// SkipChat skips the turns that need the model to answer (the runtime
	// path and the chat-only agent); the objects, muster's resolution and
	// the sign-in claim are proven regardless.
	SkipChat bool
	// SkipPortal skips the portal's create path (agent-manager's create_agent
	// through the portal's muster backend as the person); the Tools step's
	// endpoints are proven regardless.
	SkipPortal bool
}

ToolsetsTestOptions tunes the proof.

type VMManagerTestOptions added in v0.43.0

type VMManagerTestOptions struct {
	// SkipVM skips the VM lifecycle: the registration, the identity boundary
	// and the read tools are proven, no VM boots.
	SkipVM bool
	// VMTimeout bounds the boot of the proof's VM (installer boot plus the
	// installed boot to READY=1; about 30 s on a laptop).
	VMTimeout time.Duration
}

VMManagerTestOptions tunes the vm-manager proof.

Jump to

Keyboard shortcuts

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