Resources: apply, get and decisions
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.
| Command | What it does |
|---|---|
robotelos apply -f FILE | Creates 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 ID | Withdraws 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.
| Kind | Fields | Effect |
|---|---|---|
Agent | metadata.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. |
AgentRelease | metadata.agent, optional spec.preview: true | Freezes 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. |
AgentRollout | metadata.agent, metadata.environment, optional metadata.generation, spec.version, optional spec.strategy and spec.paused | Makes 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). |
Evaluation | spec.agent, version, environment, name, passed | Records evidence a promotion can require. |
Environment | metadata.name, spec.enabled and/or spec.promotion | Turns 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:
| Command | Reads |
|---|---|
get agents, get agent NAME | Agents |
get draft NAME | The agent’s editable draft |
get releases NAME | The agent’s releases: number, status, digest |
get release NAME/N | One release: its status and digest, and the compiled artifact (the exact content that runs) |
get environments | Environments |
get rollout AGENT/ENV, get rollouts AGENT | The desired state and status in one environment, or in all of them |
get revisions AGENT/ENV | Every generation of a rollout, newest first |
get promotion ID, get promotions AGENT | Promotions |
get audit [AGENT] | The audit trail of the account, or of one agent (needs audit.read): who decided what, kept long. |
get fleets | The 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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.