Resources: apply, get and decisions

The robotelos commands for desired state: apply, get, approve, reject, cancel, advance and can-i, with every kind apply accepts and every name get reads.

Resources: apply, get, and promotion decisions

Desired state has one way in (apply) and one way out (get). All commands accept --account ID (default: your active account) and -o text|json.

CommandWhat it does
robotelos apply -f FILECreates or updates every resource in the file (several may be separated by ---). Applying the same file twice changes nothing.
robotelos get KIND [NAME]Reads one resource or a list.
robotelos approve promotion ID [--comment T], reject promotion ID [--comment T]Records a decision on a promotion.
robotelos cancel promotion IDWithdraws a promotion.
robotelos advance rollout AGENT/ENV [--generation N]Takes a canary’s next step now, whether or not its pause has run, or makes the candidate the stable version when it is on its last step. See Release a version gradually.
robotelos can-i [PERMISSION]Says yes, or fails with no, whether your role may do something; without a name it lists what your role may do. See Permissions.

Kinds apply accepts. Every document must say apiVersion: robotelos.io/v1; a file with another or no apiVersion in any document is refused before anything is applied.

KindFieldsEffect
Agentmetadata.name, spec.model, prompt, optional spec.strategy (goal_task or react), …Creates the agent or updates its draft. Never publishes. Without spec.strategy, a new agent is goal_task and an existing one keeps its strategy.
AgentReleasemetadata.agent, optional spec.preview: trueFreezes the draft as the next release (the same one again if nothing changed). With preview, builds a test release that runs in dev only and is never promoted.
AgentRolloutmetadata.agent, metadata.environment, optional metadata.generation, spec.version, optional spec.strategy and spec.pausedMakes the version the desired state of dev or stg. With a strategy (canary with steps, or blueGreen with a match) the version is served next to the stable one; see Release a version gradually. For a gated environment such as prod, it records a promotion that waits for approval and changes nothing yet. No spec.version stops serving (maintainer).
Evaluationspec.agent, version, environment, name, passedRecords evidence a promotion can require.
Environmentmetadata.name, spec.enabled and/or spec.promotionTurns the optional stg on or off; sets who must approve promotions into the environment (see Permissions).

spec.strategy means two different things: on an Agent it is a single word, the execution strategy; on an AgentRollout it is an object, how a new version is rolled out.

Names get accepts:

CommandReads
get agents, get agent NAMEAgents
get draft NAMEThe agent’s editable draft
get releases NAMEThe agent’s releases: number, status, digest
get release NAME/NOne release: its status and digest, and the compiled artifact (the exact content that runs)
get environmentsEnvironments
get rollout AGENT/ENV, get rollouts AGENTThe desired state and status in one environment, or in all of them
get revisions AGENT/ENVEvery generation of a rollout, newest first
get promotion ID, get promotions AGENTPromotions
get audit [AGENT]The audit trail of the account, or of one agent (needs audit.read): who decided what, kept long.
get fleetsThe fleets granted to your account: whether each is connected (heard from in the last 30 seconds), when it was last seen, its agent version, your releases by phase and its ready pools (needs deployments.read).
get fleet-events [AGENT]What the fleets reported about your releases, newest first: applied, ready, degraded, the split applied (needs deployments.read). Made by machines and kept for 90 days; it is not the audit trail.

Each kind has one name, singular for one thing and plural for a list. The compiled artifact is part of a release and is shown only when one release is read.

The old deploy, promote, deployment …, eval record, env …, agent … and promotion … commands were removed: each did something an apply or get now does. The REST and gRPC API are unchanged.

Next steps