Skip to content
Sign in

iii-cloud

v0.1.0

Take any project to iii cloud from your harness — sign in, check the cloud plan and run the app here the way the cloud runs it, keep secret values out of the agent's context, merge and deploy pinned to the plan you saw, and follow the deploy to Ready.

license: Apache-2.0clouddeployiii-cloudonboardingreadiness

Install

bash
iii call compose::add worker=iii-cloud@0.1.0

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions39

iii-cloud::alerts

Function

What iii cloud says now that needs a look, newest first: a deployment that failed, one waiting for the person's approval, an engine restarting or down, a worker that keeps restarting (a crash loop). They come from each watched environment's own event stream, so deployments started elsewhere count too. Each is {id, environment_id, cloud_project_id, project, environment, kind (failed, needs_action, engine_restarting, engine_down, crashloop), deployment {id, number}, title, detail, at}. It reads only; the page draws them over every screen and the person dismisses them there. Every change also reaches iii-cloud::on-change as kind alerts.

Request
Empty object
Response
  • alertsobject[]required
    • atstringrequired

      When it began (RFC 3339).

    • cloud_project_idstring

      The cloud project's id, to open it when it is not the selected one.

    • deploymentany of
      any of (2)
      Variant 1
      • idstringrequired
      • numberinteger· uint64requiredmin 0

        The project's own count, not the environment's.

      Variant 2
      valuenull
    • detailstringrequired
    • environmentstringrequired
    • environment_idstringrequired
    • idstringrequired

      The event's: `failed:<deployment>`, `needs_action:<deployment>` or `engine:<environment>:<since>`. A dismissed id does not come back.

    • kindone ofrequired
      one of (4)
      Variant 1
      valuestringenum engine_restarting, engine_down
      Variant 2
      valuestringenum failed
      Variant 3
      valuestringenum needs_action
      Variant 4
      valuestringenum crashloop
    • projectstringrequired
    • titlestringrequired

iii-cloud::alerts::dismiss

Function

The page's own: dismiss one alert by id, or all with all: true. A dismissed alert does not come back for the same event. Agents never call it.

Request
  • allboolean
  • idstring
Response
  • dismissedinteger· uint32requiredmin 0

iii-cloud::api

Function

Read any iii cloud route as the person (GET only); temporary credentials are refused. A change is PERSON_ONLY: the person makes it on the page. Every path starts with /teams/{team_id}: an environment is /teams/{team}/environments/{env} (+ /deployments, /deployments/{id}, /health, /machines, /logs, /logs/histogram, /plan, /resources, /domains, /variables, /commits), a project /teams/{team}/projects/{project} (+ /environments, /activity). Filters go in `query`, never `?` in `path`. The ids are in iii-cloud::status (project.team.id, project.environments, recent_projects). Skill iii-cloud, Reading what runs: what each answers.

Request
  • bodyunknown
  • idempotency_keystring
  • if_matchstring
  • methodstringrequiredenum GET, POST, PUT, PATCH, DELETE
  • pathstringrequired

    Relative to `/api/v1`; starts with `/`, no `..`, `//` or scheme.

  • queryunknown
Response
  • bodyunknownrequired
  • statusinteger· uint16requiredmin 0

iii-cloud::api::write

Function

The page's own: change an iii cloud route as the person (POST, PUT, PATCH, DELETE); secret values are refused. Agents never call it.

Request
  • bodyunknown
  • idempotency_keystring
  • if_matchstring
  • methodstringrequiredenum GET, POST, PUT, PATCH, DELETE
  • pathstringrequired

    Relative to `/api/v1`; starts with `/`, no `..`, `//` or scheme.

  • queryunknown
Response
  • bodyunknownrequired
  • statusinteger· uint16requiredmin 0

iii-cloud::check

Function

The cloud plan for a commit plus the fast checks here; with run: true, also the run here. Without manifest it checks the file the work is on: the newest check's of this environment if it named one and the environment's file is unchanged since, else the environment's own. manifest checks another worker-compose*.yaml instead, changing nothing in iii cloud. push: true pushes the workspace's fix branch first, never an environment's branch.

Request
  • commitstring

    Default: the workspace's `HEAD`.

  • forceboolean

    With `run`: run again even when a passed run of the same commit, compose file, engine and run environment exists.

  • from_pageboolean

    The page's own: a check the person started on the page. When the hand-off's agent waits on a wake, it hears what is left for it. Agents never send it.

  • handoff_idstring

    An agent works on its own hand-off: use that one's environment and worktree.

  • manifeststring

    Check another `worker-compose*.yaml` of the repository (from its root) instead of the environment's. Nothing changes in iii cloud: the environment switches to it only when the person deploys this check. Default: the hand-off's file, else the environment's.

  • pushboolean

    Push the workspace's fix branch first (`--force-with-lease`), so the cloud can plan its head. `PUSH_REFUSED` for a branch an environment tracks or that is not an `iii-cloud/` fix branch.

  • runboolean

    Also run the app here the way the cloud runs it.

Response
  • basestringrequired

    The environment branch's head when checked.

  • checked_atstringrequired
  • commitstringrequired
  • commitsobject[]

    The commits of `base..commit`, newest first, at most 50. Empty when the base was not read or the commit is not on this machine.

    • messagestringrequired

      The subject line.

    • shastringrequired
  • duration_msinteger· uint64requiredmin 0
  • environment_idstringrequired
  • handoff_idstring

    The hand-off whose agent asked for it; null for the page's own checks.

  • hereobjectrequired
    • accepts_cloud_blockbooleanrequired
    • iii_versionstring
    • problemsinteger· uint32requiredmin 0
  • idstringrequired
  • manifeststring

    The compose file it was checked with, from the repository root. When it is not the environment's, deploying this check switches the environment to it.

  • planobjectrequired
    • at_leastbooleanrequired

      The plan stops at its first blocking step: more may follow.

    • blockinginteger· uint32requiredmin 0
    • confirmationsobjectrequired
      • overridesobject[]required
        Show 3 nested
        • consoleunknownrequired
        • fileunknownrequired
        • settingstringrequired
      • resourcesobject[]required
        Show 4 nested
        • aliasstringrequired
        • bindingstring
        • kindstringrequired
        • tierstring
    • digeststring
    • errorany of
      any of (2)
      Variant 1
      • codestringrequired
      • fixstring
      • messagestringrequired
      • statusinteger· uint16min 0
      Variant 2
      valuenull
    • fingerprintstring
    • statusstringrequiredenum clean, blocked, not_pushed, commit_not_planned, unavailable
    • summaryany of

      What the plan runs: its workers and machine groups. Null without a plan.

      any of (2)
      Variant 1
      • groupsstring[]required

        The groups' names, in the plan's order.

      • workersinteger· uint32requiredmin 0
      Variant 2
      valuenull
    • warningsinteger· uint32requiredmin 0
    • web_candidatesunknown
  • problemsobject[]required

    Cloud plan first, then the checks here.

    • cloud_codestring
    • codestringrequired
    • detailstring
    • excerptany of
      any of (2)
      Variant 1
      • linesstring[]required
      • start_lineinteger· uint32requiredmin 0
      Variant 2
      valuenull
    • filestring
    • fixstring
    • idstringrequired

      sha1(source, code, file, line), stable across checks.

    • lineinteger· uint32min 0
    • ownerone ofrequired
      one of (2)
      Variant 1
      valuestringenum agent, person
      Variant 2
      valuestringenum none
    • severitystringrequiredenum block, warn, info
    • skippedboolean

      The person skipped its name for now (`values::skip`). `EMPTY_DEFAULT_VARIABLE` then has severity `info`; `SECRET_MISSING` stays `block`.

    • sourcestringrequiredenum cloud_plan, check_here
    • titlestringrequired
    • variablestring

      The variable a value problem is about (`SECRET_MISSING`, `EMPTY_DEFAULT_VARIABLE`, `LOCAL_VARIABLE_UNSET`), as the problem itself knows it.

  • readybooleanrequired
  • reportstringrequired
  • runany of
    any of (2)
    Variant 1
    • check_idstringrequired
    • commitstringrequired
    • enginestringrequired
    • errorany of
      Show 2 nested
      any of (2)
      Variant 1
      • codestringrequired
      • messagestringrequired
      • ownerany of

        Whose the failure is (`run_code_owner`): the agent fixes it, the person must, or the run was cut short. Set whenever the check is stored.

        Show 2 nested
        any of (2)
        Variant 1
        one of (4)
        Variant 1
        valuestringenum replaced
        Variant 2
        valuestringenum agent
        Variant 3
        valuestringenum person
        Variant 4
        valuestringenum interrupted
        Variant 2
        valuenull
      • stagestringrequiredenum install, build, release, compose_up, workers, routes, …
      • withheldboolean

        The worker would not send this failure to the agent now: the person has a blocking problem open (a missing value fails the run too), so it is theirs first.

      Variant 2
      valuenull
    • finished_atstring
    • healthcheckany of
      Show 2 nested
      any of (2)
      Variant 1
      • pathstringrequired
      • statusinteger· uint16min 0
      Variant 2
      valuenull
    • idstringrequired
    • left_redactedboolean

      The copies under this run's `left/` were written with the run's secret values replaced. Absent (an older run): `check::read` refuses its kept files.

    • log_pathstring

      The run's whole redacted log, an absolute path (`log_tail` is only its last 40 lines).

    • log_tailstring[]required
    • movedstring[]

      The untracked files the run created, moved out of the copy into the run's `left/` folder when it ended (at most 500).

    • not_coveredstring[]required
    • restoredstring[]

      The tracked files the run rewrote and the worker put back as committed when it ended (at most 500; their rewritten versions are kept in the run's `left/` folder).

    • reusedboolean

      A passed run of an earlier check answered this one: nothing ran again.

    • routesobjectrequired
      Show 2 nested
      • countinteger· uint32requiredmin 0
      • prefixstring
    • stagesobject[]required
      Show 4 nested
      • detailstring
      • duration_msinteger· uint64min 0
      • namestringrequiredenum install, build, release, compose_up, workers, routes, …
      • statusstringrequiredenum pending, running, passed, failed, skipped
    • started_atstringrequired
    • statusstringrequiredenum running, passed, failed
    • waiting_onany of

      The workers stage has gone a minute with no new worker: who it waits for. The run is still `running`; null otherwise.

      Show 2 nested
      any of (2)
      Variant 1
      • containersstring[]required

        The containers that have not connected.

      • sincestringrequired

        When the wait was noticed (RFC 3339).

      Variant 2
      valuenull
    • workersobjectrequired
      Show 2 nested
      • readyinteger· uint32requiredmin 0
      • totalinteger· uint32requiredmin 0
    Variant 2
    valuenull

iii-cloud::check::get

Function

Read one kept check by id (status.checks lists them, a deploy names its check_id), as it was recorded; nothing runs again.

Request
  • idstringrequired

    A check's id: `status.checks[].id`, a deploy's `check_id`.

Response
  • basestringrequired

    The environment branch's head when checked.

  • checked_atstringrequired
  • commitstringrequired
  • commitsobject[]

    The commits of `base..commit`, newest first, at most 50. Empty when the base was not read or the commit is not on this machine.

    • messagestringrequired

      The subject line.

    • shastringrequired
  • duration_msinteger· uint64requiredmin 0
  • environment_idstringrequired
  • handoff_idstring

    The hand-off whose agent asked for it; null for the page's own checks.

  • hereobjectrequired
    • accepts_cloud_blockbooleanrequired
    • iii_versionstring
    • problemsinteger· uint32requiredmin 0
  • idstringrequired
  • manifeststring

    The compose file it was checked with, from the repository root. When it is not the environment's, deploying this check switches the environment to it.

  • planobjectrequired
    • at_leastbooleanrequired

      The plan stops at its first blocking step: more may follow.

    • blockinginteger· uint32requiredmin 0
    • confirmationsobjectrequired
      • overridesobject[]required
        Show 3 nested
        • consoleunknownrequired
        • fileunknownrequired
        • settingstringrequired
      • resourcesobject[]required
        Show 4 nested
        • aliasstringrequired
        • bindingstring
        • kindstringrequired
        • tierstring
    • digeststring
    • errorany of
      any of (2)
      Variant 1
      • codestringrequired
      • fixstring
      • messagestringrequired
      • statusinteger· uint16min 0
      Variant 2
      valuenull
    • fingerprintstring
    • statusstringrequiredenum clean, blocked, not_pushed, commit_not_planned, unavailable
    • summaryany of

      What the plan runs: its workers and machine groups. Null without a plan.

      any of (2)
      Variant 1
      • groupsstring[]required

        The groups' names, in the plan's order.

      • workersinteger· uint32requiredmin 0
      Variant 2
      valuenull
    • warningsinteger· uint32requiredmin 0
    • web_candidatesunknown
  • problemsobject[]required

    Cloud plan first, then the checks here.

    • cloud_codestring
    • codestringrequired
    • detailstring
    • excerptany of
      any of (2)
      Variant 1
      • linesstring[]required
      • start_lineinteger· uint32requiredmin 0
      Variant 2
      valuenull
    • filestring
    • fixstring
    • idstringrequired

      sha1(source, code, file, line), stable across checks.

    • lineinteger· uint32min 0
    • ownerone ofrequired
      one of (2)
      Variant 1
      valuestringenum agent, person
      Variant 2
      valuestringenum none
    • severitystringrequiredenum block, warn, info
    • skippedboolean

      The person skipped its name for now (`values::skip`). `EMPTY_DEFAULT_VARIABLE` then has severity `info`; `SECRET_MISSING` stays `block`.

    • sourcestringrequiredenum cloud_plan, check_here
    • titlestringrequired
    • variablestring

      The variable a value problem is about (`SECRET_MISSING`, `EMPTY_DEFAULT_VARIABLE`, `LOCAL_VARIABLE_UNSET`), as the problem itself knows it.

  • readybooleanrequired
  • reportstringrequired
  • runany of
    any of (2)
    Variant 1
    • check_idstringrequired
    • commitstringrequired
    • enginestringrequired
    • errorany of
      Show 2 nested
      any of (2)
      Variant 1
      • codestringrequired
      • messagestringrequired
      • ownerany of

        Whose the failure is (`run_code_owner`): the agent fixes it, the person must, or the run was cut short. Set whenever the check is stored.

        Show 2 nested
        any of (2)
        Variant 1
        one of (4)
        Variant 1
        valuestringenum replaced
        Variant 2
        valuestringenum agent
        Variant 3
        valuestringenum person
        Variant 4
        valuestringenum interrupted
        Variant 2
        valuenull
      • stagestringrequiredenum install, build, release, compose_up, workers, routes, …
      • withheldboolean

        The worker would not send this failure to the agent now: the person has a blocking problem open (a missing value fails the run too), so it is theirs first.

      Variant 2
      valuenull
    • finished_atstring
    • healthcheckany of
      Show 2 nested
      any of (2)
      Variant 1
      • pathstringrequired
      • statusinteger· uint16min 0
      Variant 2
      valuenull
    • idstringrequired
    • left_redactedboolean

      The copies under this run's `left/` were written with the run's secret values replaced. Absent (an older run): `check::read` refuses its kept files.

    • log_pathstring

      The run's whole redacted log, an absolute path (`log_tail` is only its last 40 lines).

    • log_tailstring[]required
    • movedstring[]

      The untracked files the run created, moved out of the copy into the run's `left/` folder when it ended (at most 500).

    • not_coveredstring[]required
    • restoredstring[]

      The tracked files the run rewrote and the worker put back as committed when it ended (at most 500; their rewritten versions are kept in the run's `left/` folder).

    • reusedboolean

      A passed run of an earlier check answered this one: nothing ran again.

    • routesobjectrequired
      Show 2 nested
      • countinteger· uint32requiredmin 0
      • prefixstring
    • stagesobject[]required
      Show 4 nested
      • detailstring
      • duration_msinteger· uint64min 0
      • namestringrequiredenum install, build, release, compose_up, workers, routes, …
      • statusstringrequiredenum pending, running, passed, failed, skipped
    • started_atstringrequired
    • statusstringrequiredenum running, passed, failed
    • waiting_onany of

      The workers stage has gone a minute with no new worker: who it waits for. The run is still `running`; null otherwise.

      Show 2 nested
      any of (2)
      Variant 1
      • containersstring[]required

        The containers that have not connected.

      • sincestringrequired

        When the wait was noticed (RFC 3339).

      Variant 2
      valuenull
    • workersobjectrequired
      Show 2 nested
      • readyinteger· uint32requiredmin 0
      • totalinteger· uint32requiredmin 0
    Variant 2
    valuenull

iii-cloud::check::read

Function

Read, for a kept check, a slice of its run's whole redacted log (`log: {from_line, lines}`, at most 400 lines a call, with the line count) and/or a file the run left that the worker kept (`left: <path>`, only a path in the run's `restored` or `moved`, text up to 256 KiB). No path is read from disk by you.

Request
  • idstringrequired

    A check's id.

  • leftstring

    A path listed in the run's `restored` or `moved`: what the run left there, kept in `left/`.

  • logany of

    Lines of the run's log (`run.log_path`'s file), 1-based.

    any of (2)
    Variant 1
    • from_lineinteger· uint32min 0

      The first line (1-based; default 1).

    • linesinteger· uint32min 0

      How many (default and most: 400).

    Variant 2
    valuenull
Response
  • leftany of
    any of (2)
    Variant 1
    • contentstringrequired

      The kept file's text, redacted with the run's secrets.

    • pathstringrequired
    Variant 2
    valuenull
  • logany of
    any of (2)
    Variant 1
    • from_lineinteger· uint32requiredmin 0
    • linesstring[]required
    • total_linesinteger· uint32requiredmin 0

      All the lines the log has now.

    Variant 2
    valuenull

iii-cloud::config::import

Function

The page's own: copy the compose file's local config folder (engine.workers.configuration, fs adapter, from the person's folder) into the selected environment's console config in iii cloud, one entry per container. dry_run previews it and writes nothing; applying needs the dry run's version as expected_version. Secret-looking keys and values are left out, by name. Agents never call it.

Request
  • dry_runbooleanrequired

    Preview only: nothing is written.

  • environment_idstringrequired

    The selected environment, as a guard (`ENVIRONMENT_CHANGED`).

  • expected_versioninteger· int64

    The `version` the dry run returned. Needed to apply.

Response
  • appliedbooleanrequired

    False for a dry run.

  • directorystringrequired

    The config folder, from the repository root (`api/config`).

  • draft_changedbooleanrequired

    iii cloud has unapplied console edits for this environment: applying is refused until they're applied or dropped there.

  • environment_idstringrequired
  • skippedobject[]required

    Files of the folder not copied, and why.

    • filestringrequired
    • reasonone ofrequired
      one of (4)
      Variant 1
      valuestringenum not_a_worker
      Variant 2
      valuestringenum not_a_plain_file
      Variant 3
      valuestringenum too_large
      Variant 4
      valuestringenum unreadable
  • versioninteger· int64required

    The config version the dry run read, or the one the apply made.

  • workersobject[]required
    • fieldsobject[]required

      The fields copied, as dotted keys; lists stay JSON values. `value` is null once applied.

      • keystringrequired
      • valueunknownrequired
    • filestringrequired

      The file, from the repository root.

    • left_outstring[]required

      Secret-looking keys or credential-looking values, by key only.

    • set_elsewherestring[]required

      Keys iii cloud or the compose file set, which the console can't change.

    • workerstringrequired

      The container key iii cloud keeps the config by.

iii-cloud::connect

Function

Sign in with the browser (the person types a code) or with an API key saved in the vault. A key connects with the secret's name alone.

Request
one of (2)
Variant 1
  • methodstringrequiredenum browser
Variant 2
  • environment_idstring

    Only for an older cloud without `GET /keys/self`: the key's environment.

  • methodstringrequiredenum api_key
  • secretstringrequired

    The vault secret that holds the key. Never the key itself.

  • team_idstring

    Only for an older cloud without `GET /keys/self`: the key's team.

Response
  • api_keyany of
    any of (2)
    Variant 1
    • environment_idstringrequired
    • secretstringrequired
    • team_idstringrequired
    Variant 2
    valuenull
  • cloud_urlstringrequired
  • deviceany of
    any of (2)
    Variant 1
    • expires_atstringrequired
    • user_codestringrequired
    • verification_uristringrequired
    Variant 2
    valuenull
  • errorany of
    any of (2)
    Variant 1
    • codestringrequired
    • fixstring
    • messagestringrequired
    • statusinteger· uint16min 0
    Variant 2
    valuenull
  • expires_atstring
  • methodany of
    any of (2)
    Variant 1
    valuestringenum browser, api_key
    Variant 2
    valuenull
  • statusstringrequiredenum signed_out, waiting, connected, expired, error
  • teamsobject[]required
    • idstringrequired
    • namestringrequired
    • rolestringrequired
    • slugstringrequired
  • userany of
    any of (2)
    Variant 1
    • emailstringrequired
    • idstringrequired
    • namestring
    Variant 2
    valuenull

iii-cloud::deploy

Function

The page's own: merge the pull request and deploy, push the checked commit to an environment's own branch and deploy it, or confirm a waiting deployment, pinned to the plan the person saw. A check of another compose file switches the environment to it first. Only the person deploys; agents never call it.

Request
  • check_idstringrequired
  • deployment_idstring

    Confirm this waiting deployment (a merge made directly on GitHub); its plan digest must match the check's.

  • handoff_idstring
  • printeger· uint64min 0

    Merge this pull request first (or resume after its merge).

Response
  • approved_by_workerbooleanrequired
  • check_idstring

    The check this worker deployed (`deploy {check_id}`); null for a deployment made elsewhere.

  • checked_readybooleanrequired
  • commitobjectrequired
    • messagestring
    • shastringrequired
  • console_urlstringrequired
  • created_atstringrequired
  • environment_idstringrequired
  • errorany of
    any of (2)
    Variant 1
    • actionstring
    • codestringrequired
    • hintstringrequired
    • stagestringrequired
    • workerstring
    Variant 2
    valuenull
  • failureany of

    For a failed deploy: what failed, in plain words, with the failing stage's log.

    any of (2)
    Variant 1
    • codestringrequired
    • diagnosisany of

      iii cloud's diagnosis of the failure, when it has a likely cause.

      Show 2 nested
      any of (2)
      Variant 1
      • causestringrequired
      • evidencestring[]required

        What it rests on, one line each (a log line, a file and its lines), redacted.

      • next_stepstringrequired
      Variant 2
      valuenull
    • hintstringrequired
    • log_tailstring[]required

      The last ~40 lines of the failing stage's log, oldest first, redacted.

    • release_commandstring

      The release command from the manifest, for a release failure.

    • silentboolean

      The log shows an exit status but no error text.

    • stagestringrequired
    • titlestringrequired

      Plain, per code: "The release command failed: `pnpm migrate`".

    • workerstring
    Variant 2
    valuenull
  • finished_atstring
  • from_consoleboolean

    This worker did not create it: made in the console (the cloud's `type` is `manual` for both).

  • idstringrequired
  • log_tailstring[]required
  • numberinteger· uint64requiredmin 0
  • outcomestringrequiredenum running, ready, failed, no_route, canceled, replaced
  • printeger· uint64min 0
  • release_rowany of
    any of (2)
    Variant 1
    • duration_msinteger· uint64min 0
    • statusstringrequiredenum pending, running, passed, failed
    Variant 2
    valuenull
  • replaced_bystring

    The deployment that replaced this one, when it is `replaced`.

  • stagesobject[]required
    • detailstring
    • finished_atstring
    • namestringrequired
    • started_atstring
    • statusstringrequired
  • statusstringrequired
  • status_detailstring
  • typestringrequired

iii-cloud::handoff

Function

The page's own: hand work to the agent. Returns a marker for the top of the prompt; the worker finds the agent's session by it and publishes what the agent is doing as status.agent.

Request
  • candidateboolean

    true when sent from the add-project steps: brief the folder being added.

  • check_idstring

    Required for every kind but `import`.

  • deployment_idstring

    For `deploy_fix`: the deployment that failed.

  • kindone ofrequired
    one of (2)
    Variant 1
    valuestringenum ready, deploy_fix, pull_request
    Variant 2
    valuestringenum import
  • textstring

    The plain chat text the page would post. With it, a follow-up goes into the agent's existing chat: the worker sends it itself.

Response
  • asksboolean

    With `reused`: the agent has a real ask of its own open. Nothing was delivered, not even the page's `text` (it would read as the answer): the person answers in the chat.

  • deliveredbooleanrequired

    False: nothing was sent; the page starts a new chat with the marker.

  • idstringrequired
  • markerstringrequired

    A short line the page puts at the top of the prompt; the worker finds the agent's session by it.

  • reusedboolean

    True: an equal hand-off was already open (a double click), and this is it.

  • sentboolean

    With `reused`: the worker sent the open hand-off's agent on (the same "continue" as after a person's check: the newest check's blocking problems of the agent's, and its failed run). False: nothing was sent (it works, asks the person something, or has nothing open). Absent for a new hand-off.

  • session_idstring

    The existing chat the worker sent the hand-off into.

iii-cloud::handoff::brief

Function

Your brief, and only it: where to work, the base, the compose file, the problems (id, code, owner, severity, title, detail, file, line, fix) split into yours and the person's, the deploy failure when there is one, the next step, and run_failure ({stage, code, message, log_tail}) when your hand-off's latest local run failed. handoff_id is the id or the 8 characters of the marker line.

Request
  • handoff_idstringrequired

    The hand-off's id, or the 8 characters of its marker line.

Response
  • agent_problemsobject[]required

    The problems that are the agent's to fix.

    • codestringrequired
    • detailstring
    • filestring
    • fixstring
    • idstringrequired
    • lineinteger· uint32min 0
    • ownerone ofrequired
      one of (2)
      Variant 1
      valuestringenum agent, person
      Variant 2
      valuestringenum none
    • severitystringrequiredenum block, warn, info
    • titlestringrequired
  • baseany of

    The base branch and its sha when the worktree was made: reset to it to start again (`OLD_ATTEMPT_COMMITS`).

    any of (2)
    Variant 1
    • branchstringrequired
    • shastringrequired
    Variant 2
    valuenull
  • check_idstring
  • checkout_pathstring

    The person's own checkout: do not touch it.

  • commitstring
  • deployany of
    any of (2)
    Variant 1
    • codestring
    • diagnosisany of

      iii cloud's diagnosis, read when the hand-off was made (`None`: it had no likely cause).

      Show 2 nested
      any of (2)
      Variant 1
      • causestringrequired
      • evidencestring[]required

        What it rests on, one line each (a log line, a file and its lines), redacted.

      • next_stepstringrequired
      Variant 2
      valuenull
    • hintstring
    • idstringrequired
    • log_tailstring[]required
    • release_commandstring

      The release command from the manifest, when the failure is the release's.

    • silentboolean
    • stagestring
    • titlestring
    • workerstring
    Variant 2
    valuenull
  • handoff_idstringrequired
  • kindone ofrequired
    one of (2)
    Variant 1
    valuestringenum ready, deploy_fix, pull_request
    Variant 2
    valuestringenum import
  • manifeststringrequired

    The compose file checked and deployed, relative to the worktree: the hand-off's, else the environment's.

  • next_stepstringrequired
  • other_compose_filesstring[]required

    Other compose files tracked in the worktree that declare `containers:` (at most 10). They are not checked or deployed.

  • person_problemsobject[]required

    The ones the person decides: bring each with a recommendation.

    • codestringrequired
    • detailstring
    • filestring
    • fixstring
    • idstringrequired
    • lineinteger· uint32min 0
    • ownerone ofrequired
      one of (2)
      Variant 1
      valuestringenum agent, person
      Variant 2
      valuestringenum none
    • severitystringrequiredenum block, warn, info
    • titlestringrequired
  • projectstring

    `<project> · <environment>`.

  • pushes_directlyboolean

    The environment is not production: it gets an assisted deploy, no pull request. Push only your fix branch; the person's deploy on the page sends the checked commit to the environment's own branch.

  • remote_branch_notestring

    One line when an earlier try left the fix branch on origin: the first push replaces it with `--force-with-lease`.

  • repositorystring
  • run_failureany of
    any of (2)
    Variant 1
    • codestringrequired
    • log_tailstring[]required

      The run's last lines, oldest first, redacted.

    • messagestringrequired
    • stagestringrequiredenum install, build, release, compose_up, workers, routes, …
    Variant 2
    valuenull
  • worktreeany of

    Where to work.

    any of (2)
    Variant 1
    • branchstringrequired
    • pathstringrequired
    Variant 2
    valuenull

iii-cloud::handoff::progress

Function

Tell the person which problems you start on: call it before each group of fixes with the problem ids or codes (a code stands for every open problem of it) and a short plain note. Clears itself when those problems leave a newer check or the hand-off ends.

Request
  • handoff_idstring

    The hand-off this progress is for, by its id or the 8 characters of the marker (default: the selected environment's open one).

  • notestring
  • working_onstring[]required

    Problem ids, or codes (a code stands for every open problem of that code).

Response
  • notestring
  • working_onstring[]required

    The problem ids the names resolved to in the newest check.

iii-cloud::handoff::stop

Function

The page's own: stop the agent's running turn for a hand-off, with the harness's own stop. Agents never call it.

Request
  • idstringrequired
Response
  • idstringrequired
  • stoppingbooleanrequired

    The harness accepted the stop of the session's running turn.

iii-cloud::handoff::worktree

Function

Your hand-off's own worktree: {path, branch, base, created, merged_from, conflict}. Work only there, never in the person's folder. A hand-off that points at the person's folder gets one now (from the environment's branch, the person's branch merged in) and works there from then on; the page's selection does not change. handoff_id defaults to the selected environment's open hand-off.

Request
  • handoff_idstring

    The hand-off (default: the selected environment's open one). `id` works too.

Response
  • baseany of

    What the worktree started from: the person's commit it took, else the environment's head.

    any of (2)
    Variant 1
    • branchstringrequired
    • shastringrequired
    Variant 2
    valuenull
  • branchstringrequired

    The fix branch, `iii-cloud/ready-<env>` (or `-2`, ...).

  • conflictstring

    The person's commits conflict with the environment's branch: the worktree is at the base, and this says what to merge.

  • createdbooleanrequired

    This call made the worktree; false: it was there.

  • merged_fromstring

    The person's branch (or the check's `source`) this call merged in on top of the environment's branch; null when nothing came in.

  • pathstringrequired

iii-cloud::logs::follow

Function

The page's own: open the environment's live log tail (iii cloud's logs/tail, as the person). Returns {follow_id}; every line, gap and the end reach iii-cloud::on-log with that follow_id. worker: only that worker's lines. It ends by itself when the stream ends and after 30 minutes. Agents never call it.

Request
  • environment_idstringrequired
  • follow_idstring

    The page's own id for the follow (letters, digits, `-`, `_`; at most 64), so it can listen before the first event. Default: the worker makes one.

  • workerstring

    Only this worker's lines.

Response
  • follow_idstringrequired

iii-cloud::logs::unfollow

Function

The page's own: close a follow of logs::follow. Agents never call it.

Request
  • follow_idstringrequired
Response
  • closedbooleanrequired

    False when no such follow was open (it had ended).

iii-cloud::on-change

Function

Called after each iii-cloud record changes (connection, project, check, run, secret, deploy, alerts); returns the event. Takes no args; observe it with filters on input.kind and input.terminal. Only the iii-cloud worker calls it.

Request
  • idstringrequired

    The record's id (`current` for `connection` and `project`).

  • kindone ofrequired
    one of (2)
    Variant 1
    valuestringenum agent, connection, project, check, run, secret, …
    Variant 2
    valuestringenum alerts
  • recordunknownrequired

    Connection, Project, Check, Run, SecretRequest, Deploy or Alerts.

  • summarystringrequired

    One line, e.g. "deploy 7a1f3b2 failed at workers: OOMKilled".

  • terminalbooleanrequired

    A run or deploy finished, a secret resolved, the connection settled.

Response
  • idstringrequired

    The record's id (`current` for `connection` and `project`).

  • kindone ofrequired
    one of (2)
    Variant 1
    valuestringenum agent, connection, project, check, run, secret, …
    Variant 2
    valuestringenum alerts
  • recordunknownrequired

    Connection, Project, Check, Run, SecretRequest, Deploy or Alerts.

  • summarystringrequired

    One line, e.g. "deploy 7a1f3b2 failed at workers: OOMKilled".

  • terminalbooleanrequired

    A run or deploy finished, a secret resolved, the connection settled.

iii-cloud::on-config-change

Function

Internal: reload iii-cloud configuration when it changes.

Request
Empty object
Response
  • okboolean

iii-cloud::on-log

Function

Called for each event of a followed log tail (logs::follow): type line (with line), gap (with missed) or end (with reason); carries follow_id. Observe it and filter on input.follow_id. Only the iii-cloud worker calls it.

Request
  • environment_idstringrequired
  • follow_idstringrequired
  • lineunknown

    On `line`: the cloud's LogLine.

  • missedinteger· uint64min 0

    On `gap`: how many lines were dropped.

  • reasonstring

    On `end`: `stream_ended`, `time_limit`, `not_connected`, `not_allowed`, `not_found` or `unreachable`.

  • typestringrequiredenum line, gap, end
Response
  • environment_idstringrequired
  • follow_idstringrequired
  • lineunknown

    On `line`: the cloud's LogLine.

  • missedinteger· uint64min 0

    On `gap`: how many lines were dropped.

  • reasonstring

    On `end`: `stream_ended`, `time_limit`, `not_connected`, `not_allowed`, `not_found` or `unreachable`.

  • typestringrequiredenum line, gap, end

iii-cloud::on-stream

Function

Called for each event of a followed deployment or machines stream (stream::follow): type event (with the cloud's event) or end (with reason); carries follow_id and kind. Observe it and filter on input.follow_id. Only the iii-cloud worker calls it.

Request
  • environment_idstringrequired
  • eventunknown

    On `event`: the cloud's DeploymentEvent or MachinesEvent, as it came.

  • follow_idstringrequired
  • kindone ofrequired
    one of (2)
    Variant 1
    valuestringenum deployment
    Variant 2
    valuestringenum machines
  • reasonstring

    On `end`: as in `LogEvent`; a deployment's follow also ends with `stream_ended` after its terminal status.

  • typeall ofrequired

    `event` carries the cloud's event; `end` closes the follow.

    all of (1)
    Variant 1
    valuestringenum event, end
Response
  • environment_idstringrequired
  • eventunknown

    On `event`: the cloud's DeploymentEvent or MachinesEvent, as it came.

  • follow_idstringrequired
  • kindone ofrequired
    one of (2)
    Variant 1
    valuestringenum deployment
    Variant 2
    valuestringenum machines
  • reasonstring

    On `end`: as in `LogEvent`; a deployment's follow also ends with `stream_ended` after its terminal status.

  • typeall ofrequired

    `event` carries the cloud's event; `end` closes the follow.

    all of (1)
    Variant 1
    valuestringenum event, end

iii-cloud::override::choose

Function

The page's own: keep the person's choice for a console override of the newest check (file: the file's value wins at deploy; console: keep the console's, which takes a change to the file). A changed console or file value drops it. Agents never call it.

Request
  • choiceone ofrequired

    Which value of a console override the person keeps.

    one of (2)
    Variant 1
    valuestringenum file
    Variant 2
    valuestringenum console
  • environment_idstringrequired

    The selected environment, as a guard (`ENVIRONMENT_CHANGED`).

  • settingstringrequired

    The override's setting (`web`), as the newest check lists it.

Response
  • environment_idstringrequired
  • override_choicesobjectrequired

iii-cloud::problem::skip

Function

The page's own: skip a cloud warning for now in the selected environment (`skip: false` undoes it); only LOCAL_CONFIG_NOT_SET. The next check shows it skipped, as info. Agents never call it.

Request
  • codestringrequired
  • environment_idstringrequired

    The selected environment, as a guard (`ENVIRONMENT_CHANGED`).

  • skipbooleanrequired

    `false` undoes the skip.

Response
  • codesstring[]required
  • environment_idstringrequired

iii-cloud::project::create

Function

The page's own: import the repository as a new cloud project with its first environment, on the person's explicit choice, then select it (while another project is selected, it becomes status.candidate instead). Agents never call it.

Request
  • environment_namestringrequired

    Lowercase letters, digits and hyphens, at most 30.

  • manifeststringrequired

    One of the repository's choosable compose files, relative to its root.

  • pathstringrequired

    A local folder inside the repository.

  • productionboolean

    The first environment is production (default true).

  • team_idstringrequired
Response
  • cloud_projectsobject[]required
    • created_atstring
    • environmentsobject[]required
      • branchstringrequired
      • headstring

        Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
    • idstringrequired
    • last_deployment_atstring
    • namestringrequired
    • slugstring
    • teamobjectrequired
      • idstringrequired
      • namestringrequired
  • environment_idstring
  • projectall ofrequired

    The project as selected after `project::use`; while another project with a workspace is selected, the new one as `Status.candidate`, not selected.

    all of (1)
    Variant 1
    • checkoutobjectrequired
      Show 6 nested
      • aheadinteger· uint32requiredmin 0
      • branchstring
      • branchesobject[]

        Local branches and origin's, newest commit first, at most 30; a local branch hides its origin twin. Read on refresh, from the refs as they are.

        Show 6 nested
        • aheadinteger· uint32min 0

          Commits the selected environment's branch (`origin/<branch>`) does not have; null when that branch is not on origin.

        • committed_atstringrequired
        • is_env_branchbooleanrequired

          The selected environment deploys this branch.

        • namestringrequired

          `main`, or `origin/feature-x` for a branch only on origin.

        • remotebooleanrequired
        • shastringrequired
      • changed_filesstring[]required
      • headstringrequired
      • not_servedobject[]

        The checkout's commits the selected environment does not serve (`<served>..HEAD`, newest first, at most 50), read on refresh. Null when nothing is served yet or the served commit could not be fetched.

        Show 2 nested
        • messagestringrequired

          The subject line.

        • shastringrequired
    • cloud_projectany of
      Show 2 nested
      any of (2)
      Variant 1
      • created_atstring

        When the project was made (for choosing between several).

      • idstringrequired
      • last_deployment_atstring

        Its newest deployment, when more than one project uses the repository.

      • namestringrequired
      • slugstring

        The console's `$project` URL segment (`endpoint_slug`).

      Variant 2
      valuenull
    • cloud_projectsobject[]

      Every cloud project that uses this repository, across the person's teams, with its environments. The chosen one is `cloud_project`; `project::use {cloud_project_id}` picks another.

      Show 7 nested
      • created_atstring
      • environmentsobject[]required
        Show 6 nested
        • branchstringrequired
        • headstring

          Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

        • idstringrequired
        • manifeststring
        • namestringrequired
        • productionbooleanrequired
      • idstringrequired
      • last_deployment_atstring
      • namestringrequired
      • slugstring
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • default_branchstring

      The repository's default branch.

    • environmentany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
      • urlstring
      Variant 2
      valuenull
    • environmentsobject[]required
      Show 4 nested
      • branchstringrequired
      • idstringrequired
      • namestringrequired
      • productionbooleanrequired
    • fell_back_fromstring

      Only in `project::use`'s answer: the `environment_id` asked for, which the cloud project no longer lists, so its default environment was taken.

    • github_accessboolean
    • importableany of
      Show 2 nested
      any of (2)
      Variant 1
      • manifestsobject[]required
        Show 6 nested
        • choosablebooleanrequired
        • has_cloud_blockboolean

          The file on this machine has a `cloud:` section.

        • issuestring
        • pathstringrequired
        • suggested_environmentstring
        • workersinteger· uint32min 0

          Its containers, as the file on this machine says (else as iii cloud lists them); null when neither knows.

      • repository_idinteger· int64required
      • team_idstringrequired
      Variant 2
      valuenull
    • other_cloud_projectsobject[]

      Live projects of the person's teams that deploy another repository.

      Show 4 nested
      • idstringrequired
      • namestringrequired
      • repositorystringrequired
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • pathstringrequired
    • repositorystringrequired

      `owner/name`.

    • teamany of
      Show 2 nested
      any of (2)
      Variant 1
      • idstringrequired
      • namestringrequired
      • slugstringrequired
      Variant 2
      valuenull
    • teamsobject[]required
      Show 3 nested
      • idstringrequired
      • namestringrequired
      • slugstringrequired
    • workspaceany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • from_headstring

        The last commit the worktree took from the person's checkout (`from: checkout`): commits after it are the agent's. Null for a worktree made from the environment's branch.

      • modestringrequiredenum worktree, checkout
      • pathstringrequired
      • sourcestring

        The branch `use {from: checkout, source}` took; null: the checkout's HEAD.

      • source_shastring

        The commit `source` (else the checkout's HEAD) pointed at when the worktree was prepared: "moved since" compares the source's tip with it.

      Variant 2
      valuenull
  • project_idstring

iii-cloud::project::create_environment

Function

The page's own: make a new environment in a cloud project (branch, compose file and copy_from default sensibly), on the person's explicit choice, then select it (an environment of status.candidate's project is not selected). Agents never call it.

Request
  • branchstring

    Default: the repository's default branch.

  • cloud_project_idstringrequired
  • copy_fromstring

    Default: the project's production environment, so secrets and settings carry over.

  • manifeststring

    Default: the selected environment's compose file.

  • namestringrequired
  • productionboolean
  • start_emptyboolean

    Copy nothing: no `copy_from` default. Not with `copy_from`.

Response
  • cloud_projectsobject[]required
    • created_atstring
    • environmentsobject[]required
      • branchstringrequired
      • headstring

        Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
    • idstringrequired
    • last_deployment_atstring
    • namestringrequired
    • slugstring
    • teamobjectrequired
      • idstringrequired
      • namestringrequired
  • environment_idstring
  • projectall ofrequired

    The project as selected after `project::use`; while another project with a workspace is selected, the new one as `Status.candidate`, not selected.

    all of (1)
    Variant 1
    • checkoutobjectrequired
      Show 6 nested
      • aheadinteger· uint32requiredmin 0
      • branchstring
      • branchesobject[]

        Local branches and origin's, newest commit first, at most 30; a local branch hides its origin twin. Read on refresh, from the refs as they are.

        Show 6 nested
        • aheadinteger· uint32min 0

          Commits the selected environment's branch (`origin/<branch>`) does not have; null when that branch is not on origin.

        • committed_atstringrequired
        • is_env_branchbooleanrequired

          The selected environment deploys this branch.

        • namestringrequired

          `main`, or `origin/feature-x` for a branch only on origin.

        • remotebooleanrequired
        • shastringrequired
      • changed_filesstring[]required
      • headstringrequired
      • not_servedobject[]

        The checkout's commits the selected environment does not serve (`<served>..HEAD`, newest first, at most 50), read on refresh. Null when nothing is served yet or the served commit could not be fetched.

        Show 2 nested
        • messagestringrequired

          The subject line.

        • shastringrequired
    • cloud_projectany of
      Show 2 nested
      any of (2)
      Variant 1
      • created_atstring

        When the project was made (for choosing between several).

      • idstringrequired
      • last_deployment_atstring

        Its newest deployment, when more than one project uses the repository.

      • namestringrequired
      • slugstring

        The console's `$project` URL segment (`endpoint_slug`).

      Variant 2
      valuenull
    • cloud_projectsobject[]

      Every cloud project that uses this repository, across the person's teams, with its environments. The chosen one is `cloud_project`; `project::use {cloud_project_id}` picks another.

      Show 7 nested
      • created_atstring
      • environmentsobject[]required
        Show 6 nested
        • branchstringrequired
        • headstring

          Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

        • idstringrequired
        • manifeststring
        • namestringrequired
        • productionbooleanrequired
      • idstringrequired
      • last_deployment_atstring
      • namestringrequired
      • slugstring
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • default_branchstring

      The repository's default branch.

    • environmentany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
      • urlstring
      Variant 2
      valuenull
    • environmentsobject[]required
      Show 4 nested
      • branchstringrequired
      • idstringrequired
      • namestringrequired
      • productionbooleanrequired
    • fell_back_fromstring

      Only in `project::use`'s answer: the `environment_id` asked for, which the cloud project no longer lists, so its default environment was taken.

    • github_accessboolean
    • importableany of
      Show 2 nested
      any of (2)
      Variant 1
      • manifestsobject[]required
        Show 6 nested
        • choosablebooleanrequired
        • has_cloud_blockboolean

          The file on this machine has a `cloud:` section.

        • issuestring
        • pathstringrequired
        • suggested_environmentstring
        • workersinteger· uint32min 0

          Its containers, as the file on this machine says (else as iii cloud lists them); null when neither knows.

      • repository_idinteger· int64required
      • team_idstringrequired
      Variant 2
      valuenull
    • other_cloud_projectsobject[]

      Live projects of the person's teams that deploy another repository.

      Show 4 nested
      • idstringrequired
      • namestringrequired
      • repositorystringrequired
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • pathstringrequired
    • repositorystringrequired

      `owner/name`.

    • teamany of
      Show 2 nested
      any of (2)
      Variant 1
      • idstringrequired
      • namestringrequired
      • slugstringrequired
      Variant 2
      valuenull
    • teamsobject[]required
      Show 3 nested
      • idstringrequired
      • namestringrequired
      • slugstringrequired
    • workspaceany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • from_headstring

        The last commit the worktree took from the person's checkout (`from: checkout`): commits after it are the agent's. Null for a worktree made from the environment's branch.

      • modestringrequiredenum worktree, checkout
      • pathstringrequired
      • sourcestring

        The branch `use {from: checkout, source}` took; null: the checkout's HEAD.

      • source_shastring

        The commit `source` (else the checkout's HEAD) pointed at when the worktree was prepared: "moved since" compares the source's tip with it.

      Variant 2
      valuenull
  • project_idstring

iii-cloud::project::resolve

Function

Read the local folder and find its project and environment in iii cloud. While a project with a workspace is selected, the folder is kept as status.candidate, not selected: project::use selects it.

Request
  • cloud_project_idstring

    Several cloud projects use the repository: take this one.

  • pathstringrequired

    A local folder inside the repository.

  • team_idstring

    Look only in this team.

Response
  • checkoutobjectrequired
    • aheadinteger· uint32requiredmin 0
    • branchstring
    • branchesobject[]

      Local branches and origin's, newest commit first, at most 30; a local branch hides its origin twin. Read on refresh, from the refs as they are.

      • aheadinteger· uint32min 0

        Commits the selected environment's branch (`origin/<branch>`) does not have; null when that branch is not on origin.

      • committed_atstringrequired
      • is_env_branchbooleanrequired

        The selected environment deploys this branch.

      • namestringrequired

        `main`, or `origin/feature-x` for a branch only on origin.

      • remotebooleanrequired
      • shastringrequired
    • changed_filesstring[]required
    • headstringrequired
    • not_servedobject[]

      The checkout's commits the selected environment does not serve (`<served>..HEAD`, newest first, at most 50), read on refresh. Null when nothing is served yet or the served commit could not be fetched.

      • messagestringrequired

        The subject line.

      • shastringrequired
  • cloud_projectany of
    any of (2)
    Variant 1
    • created_atstring

      When the project was made (for choosing between several).

    • idstringrequired
    • last_deployment_atstring

      Its newest deployment, when more than one project uses the repository.

    • namestringrequired
    • slugstring

      The console's `$project` URL segment (`endpoint_slug`).

    Variant 2
    valuenull
  • cloud_projectsobject[]

    Every cloud project that uses this repository, across the person's teams, with its environments. The chosen one is `cloud_project`; `project::use {cloud_project_id}` picks another.

    • created_atstring
    • environmentsobject[]required
      • branchstringrequired
      • headstring

        Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
    • idstringrequired
    • last_deployment_atstring
    • namestringrequired
    • slugstring
    • teamobjectrequired
      • idstringrequired
      • namestringrequired
  • default_branchstring

    The repository's default branch.

  • environmentany of
    any of (2)
    Variant 1
    • branchstringrequired
    • idstringrequired
    • manifeststring
    • namestringrequired
    • productionbooleanrequired
    • urlstring
    Variant 2
    valuenull
  • environmentsobject[]required
    • branchstringrequired
    • idstringrequired
    • namestringrequired
    • productionbooleanrequired
  • fell_back_fromstring

    Only in `project::use`'s answer: the `environment_id` asked for, which the cloud project no longer lists, so its default environment was taken.

  • github_accessboolean
  • importableany of
    any of (2)
    Variant 1
    • manifestsobject[]required
      Show 6 nested
      • choosablebooleanrequired
      • has_cloud_blockboolean

        The file on this machine has a `cloud:` section.

      • issuestring
      • pathstringrequired
      • suggested_environmentstring
      • workersinteger· uint32min 0

        Its containers, as the file on this machine says (else as iii cloud lists them); null when neither knows.

    • repository_idinteger· int64required
    • team_idstringrequired
    Variant 2
    valuenull
  • other_cloud_projectsobject[]

    Live projects of the person's teams that deploy another repository.

    • idstringrequired
    • namestringrequired
    • repositorystringrequired
    • teamobjectrequired
      • idstringrequired
      • namestringrequired
  • pathstringrequired
  • repositorystringrequired

    `owner/name`.

  • teamany of
    any of (2)
    Variant 1
    • idstringrequired
    • namestringrequired
    • slugstringrequired
    Variant 2
    valuenull
  • teamsobject[]required
    • idstringrequired
    • namestringrequired
    • slugstringrequired
  • workspaceany of
    any of (2)
    Variant 1
    • branchstringrequired
    • from_headstring

      The last commit the worktree took from the person's checkout (`from: checkout`): commits after it are the agent's. Null for a worktree made from the environment's branch.

    • modestringrequiredenum worktree, checkout
    • pathstringrequired
    • sourcestring

      The branch `use {from: checkout, source}` took; null: the checkout's HEAD.

    • source_shastring

      The commit `source` (else the checkout's HEAD) pointed at when the worktree was prepared: "moved since" compares the source's tip with it.

    Variant 2
    valuenull

iii-cloud::project::use

Function

Select the environment and prepare a worktree for you to work in.

Request
  • cloud_project_idstring

    Several cloud projects use the repository: take this one.

  • environment_idstring

    The environment; or only `cloud_project_id`, for that project's default one.

  • fromany of

    Where the worktree's commits come from. `environment` (default): the environment's branch. `checkout`: the person's own HEAD with the environment's head: a fast-forward when one contains the other, else a merge commit made in the worktree (never in the checkout); a conflict leaves the worktree as it was (`MERGE_CONFLICT`, the files in the message). Only commits move: nothing uncommitted is copied. Never for production, which goes through a pull request.

    any of (2)
    Variant 1
    valuestringenum environment, checkout
    Variant 2
    valuenull
  • modeall ofrequired

    `worktree` (recommended) or `checkout`.

    all of (1)
    Variant 1
    valuestringenum worktree, checkout
  • pathstringrequired
  • sourcestring

    With `from: checkout`: take this branch (`main`, `origin/feature-x`, one of `checkout.branches`) instead of the checkout's HEAD, by the same rule.

Response
  • checkoutobjectrequired
    • aheadinteger· uint32requiredmin 0
    • branchstring
    • branchesobject[]

      Local branches and origin's, newest commit first, at most 30; a local branch hides its origin twin. Read on refresh, from the refs as they are.

      • aheadinteger· uint32min 0

        Commits the selected environment's branch (`origin/<branch>`) does not have; null when that branch is not on origin.

      • committed_atstringrequired
      • is_env_branchbooleanrequired

        The selected environment deploys this branch.

      • namestringrequired

        `main`, or `origin/feature-x` for a branch only on origin.

      • remotebooleanrequired
      • shastringrequired
    • changed_filesstring[]required
    • headstringrequired
    • not_servedobject[]

      The checkout's commits the selected environment does not serve (`<served>..HEAD`, newest first, at most 50), read on refresh. Null when nothing is served yet or the served commit could not be fetched.

      • messagestringrequired

        The subject line.

      • shastringrequired
  • cloud_projectany of
    any of (2)
    Variant 1
    • created_atstring

      When the project was made (for choosing between several).

    • idstringrequired
    • last_deployment_atstring

      Its newest deployment, when more than one project uses the repository.

    • namestringrequired
    • slugstring

      The console's `$project` URL segment (`endpoint_slug`).

    Variant 2
    valuenull
  • cloud_projectsobject[]

    Every cloud project that uses this repository, across the person's teams, with its environments. The chosen one is `cloud_project`; `project::use {cloud_project_id}` picks another.

    • created_atstring
    • environmentsobject[]required
      • branchstringrequired
      • headstring

        Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
    • idstringrequired
    • last_deployment_atstring
    • namestringrequired
    • slugstring
    • teamobjectrequired
      • idstringrequired
      • namestringrequired
  • default_branchstring

    The repository's default branch.

  • environmentany of
    any of (2)
    Variant 1
    • branchstringrequired
    • idstringrequired
    • manifeststring
    • namestringrequired
    • productionbooleanrequired
    • urlstring
    Variant 2
    valuenull
  • environmentsobject[]required
    • branchstringrequired
    • idstringrequired
    • namestringrequired
    • productionbooleanrequired
  • fell_back_fromstring

    Only in `project::use`'s answer: the `environment_id` asked for, which the cloud project no longer lists, so its default environment was taken.

  • github_accessboolean
  • importableany of
    any of (2)
    Variant 1
    • manifestsobject[]required
      Show 6 nested
      • choosablebooleanrequired
      • has_cloud_blockboolean

        The file on this machine has a `cloud:` section.

      • issuestring
      • pathstringrequired
      • suggested_environmentstring
      • workersinteger· uint32min 0

        Its containers, as the file on this machine says (else as iii cloud lists them); null when neither knows.

    • repository_idinteger· int64required
    • team_idstringrequired
    Variant 2
    valuenull
  • other_cloud_projectsobject[]

    Live projects of the person's teams that deploy another repository.

    • idstringrequired
    • namestringrequired
    • repositorystringrequired
    • teamobjectrequired
      • idstringrequired
      • namestringrequired
  • pathstringrequired
  • repositorystringrequired

    `owner/name`.

  • teamany of
    any of (2)
    Variant 1
    • idstringrequired
    • namestringrequired
    • slugstringrequired
    Variant 2
    valuenull
  • teamsobject[]required
    • idstringrequired
    • namestringrequired
    • slugstringrequired
  • workspaceany of
    any of (2)
    Variant 1
    • branchstringrequired
    • from_headstring

      The last commit the worktree took from the person's checkout (`from: checkout`): commits after it are the agent's. Null for a worktree made from the environment's branch.

    • modestringrequiredenum worktree, checkout
    • pathstringrequired
    • sourcestring

      The branch `use {from: checkout, source}` took; null: the checkout's HEAD.

    • source_shastring

      The commit `source` (else the checkout's HEAD) pointed at when the worktree was prepared: "moved since" compares the source's tip with it.

    Variant 2
    valuenull

iii-cloud::promote

Function

The page's own: open a pull request from one environment's branch into another's (dev into production) with the person's gh, in their project folder, listing the commits; returns the one already open for that head and base instead of a second. Merging it and the deploy stay the person's. Agents never call it.

Request
  • from_environment_idstringrequired

    The environment whose branch goes into the other (dev).

  • to_environment_idstringrequired

    The environment that takes it (production).

Response
  • basestringrequired

    The `to` environment's branch.

  • createdbooleanrequired

    False when a pull request from `head` into `base` was already open.

  • headstringrequired

    The `from` environment's branch.

  • numberinteger· uint64requiredmin 0
  • titlestringrequired
  • urlstringrequired

iii-cloud::propose

Function

Prepare a rollback, a cancel or a retry of one deployment for the person to confirm. It only reads (GET) and changes nothing in iii cloud: it checks the deployment can take the action, and answers the proposal (action, environment, project, the deployment, what serves now, and for a rollback what comes back and what stays) or an error with a code and a message to repeat to the person (ALREADY_LIVE, NOT_A_ROLLBACK_TARGET, NOT_RUNNING, NOT_RETRYABLE). The chat draws a card from the answer, and the person confirms there, on the page; you never do. Say the confirmation waits on the card, never that it was done.

Request
  • actionstringrequiredenum rollback, cancel, retry

    What `iii-cloud::propose` prepares for the person to confirm.

  • deployment_idstringrequired

    The deployment to roll back to, cancel or retry.

  • environment_idstringrequired

    The environment the deployment belongs to.

Response
  • actionstringrequiredenum rollback, cancel, retry

    What `iii-cloud::propose` prepares for the person to confirm.

  • deploymentobjectrequired
    • finished_atstring

      When the deployment ended, if it did.

    • idstringrequired
    • messagestring
    • numberinteger· uint64requiredmin 0
    • shastringrequired
    • statusstringrequired

      The cloud's status: queued, in_progress, needs_action, ready, failed, replaced or canceled.

  • environmentstringrequired
  • environment_idstringrequired
  • previewany of

    A rollback's preview; null for cancel and retry.

    any of (2)
    Variant 1
    • queuestring
    • returnsstring[]
    • side_effectsstring[]
    • staysstring[]
    Variant 2
    valuenull
  • projectstringrequired
  • servingany of

    What the environment serves now; null when nothing is live.

    any of (2)
    Variant 1
    • finished_atstring

      When the deployment ended, if it did.

    • idstringrequired
    • messagestring
    • numberinteger· uint64requiredmin 0
    • shastringrequired
    • statusstringrequired

      The cloud's status: queued, in_progress, needs_action, ready, failed, replaced or canceled.

    Variant 2
    valuenull

iii-cloud::secret

Function

Ask the person, on the page, for the value of one secret the compose file reads (a name like STRIPE_KEY in ${STRIPE_KEY}), or mark such a name as not needed or their decision. It is not for workers, groups or any choice that is not a variable: a decision goes to the person with harness::ask.

Request
  • descriptionstringrequired

    What the person needs to know to give the value.

  • externalboolean

    The person chose a database outside iii cloud: only then may a database URL be asked for.

  • handoff_idstring
  • modeany of
    any of (2)
    Variant 1
    valuestringenum ask, not_needed, decide
    Variant 2
    valuenull
  • namestringrequired

    `^[A-Z_][A-Z0-9_]*$`, not starting with `III_`.

Response
  • asked_atstringrequired
  • cloudany of
    any of (2)
    Variant 1
    valuestringenum set, skipped, failed
    Variant 2
    valuenull
  • descriptionstringrequired
  • environment_idstringrequired
  • errorany of
    any of (2)
    Variant 1
    • codestringrequired
    • fixstring
    • messagestringrequired
    • statusinteger· uint16min 0
    Variant 2
    valuenull
  • externalboolean

    Asked for a database URL the person chose to keep outside iii cloud.

  • idstringrequired
  • localany of
    any of (2)
    Variant 1
    valuestringenum set, skipped
    Variant 2
    valuenull
  • modestringrequiredenum ask, not_needed, decide
  • namestringrequired
  • resolved_atstring
  • statestringrequiredenum waiting, set, left_empty, noted, failed
  • targetany of

    Where the value goes: the team, worktree and environment the request was asked for, whatever the page has selected when the value is saved.

    any of (2)
    Variant 1
    • envobjectrequired
      Show 6 nested
      • branchstringrequired
      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
      • urlstring
    • team_idstringrequired
    • workspacestringrequired
    Variant 2
    valuenull

iii-cloud::secret::provide

Function

The page's own: the person's secret value goes to iii cloud and the worktree's .env. Agents never call it, and the value never comes back.

Request
  • leave_emptyboolean
  • request_idstringrequired
  • valuestring

    The secret value. Never logged, never returned.

Response
  • asked_atstringrequired
  • cloudany of
    any of (2)
    Variant 1
    valuestringenum set, skipped, failed
    Variant 2
    valuenull
  • descriptionstringrequired
  • environment_idstringrequired
  • errorany of
    any of (2)
    Variant 1
    • codestringrequired
    • fixstring
    • messagestringrequired
    • statusinteger· uint16min 0
    Variant 2
    valuenull
  • externalboolean

    Asked for a database URL the person chose to keep outside iii cloud.

  • idstringrequired
  • localany of
    any of (2)
    Variant 1
    valuestringenum set, skipped
    Variant 2
    valuenull
  • modestringrequiredenum ask, not_needed, decide
  • namestringrequired
  • resolved_atstring
  • statestringrequiredenum waiting, set, left_empty, noted, failed
  • targetany of

    Where the value goes: the team, worktree and environment the request was asked for, whatever the page has selected when the value is saved.

    any of (2)
    Variant 1
    • envobjectrequired
      Show 6 nested
      • branchstringrequired
      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
      • urlstring
    • team_idstringrequired
    • workspacestringrequired
    Variant 2
    valuenull

iii-cloud::status

Function

The stored state: connection, project, latest check, run, secrets, pull request and deploy. refresh re-reads the checkout, the pull request, the variables and the deployments.

Request
  • refreshboolean

    Re-read the checkout, the pull request, the variables and the deployments first.

Response
  • agentany of

    The agent's work on the selected environment's open hand-off.

    any of (2)
    Variant 1
    • currentstring

      The last call's description, plain text, at most 120 characters.

    • handoff_idstringrequired
    • kindany of

      What the hand-off is for, so the page can place its row.

      Show 2 nested
      any of (2)
      Variant 1
      one of (2)
      Variant 1
      valuestringenum ready, deploy_fix, pull_request
      Variant 2
      valuestringenum import
      Variant 2
      valuenull
    • last_activity_atstring
    • notestring

      One plain line from the agent about what it is doing, at most 120 characters.

    • questionstring

      The open question's text, when the agent waits for an answer.

    • question_sourceany of

      Where `question` comes from: a real ask from the agent's session, or text this worker made from the check's open problems. Absent when there is no question.

      Show 2 nested
      any of (2)
      Variant 1
      one of (2)
      Variant 1
      valuestringenum agent
      Variant 2
      valuestringenum check
      Variant 2
      valuenull
    • session_idstring
    • started_atstringrequired
    • stateone ofrequired
      Show 2 nested
      one of (2)
      Variant 1
      valuestringenum starting, working, waiting_for_you, stalled, done, stopped
      Variant 2
      valuestringenum waiting
    • stepsinteger· uint32requiredmin 0

      Function calls the session has made.

    • waiting_forstring

      What the agent waits for when `state` is `waiting` ("the run here to end").

    • working_onstring[]

      Ids of the newest check's problems the agent is working on now (the page shows a spinner on them). Cleared when they leave a newer check or the hand-off ends.

    Variant 2
    valuenull
  • auto_fixbooleanrequired

    The worker's `auto_fix` setting: a person's check hands the agent its problems.

  • candidateany of

    A folder `project::resolve` read while another project is selected: Setup's add-project steps show it. `project::use` selects it and clears this.

    any of (2)
    Variant 1
    • checkoutobjectrequired
      Show 6 nested
      • aheadinteger· uint32requiredmin 0
      • branchstring
      • branchesobject[]

        Local branches and origin's, newest commit first, at most 30; a local branch hides its origin twin. Read on refresh, from the refs as they are.

        Show 6 nested
        • aheadinteger· uint32min 0

          Commits the selected environment's branch (`origin/<branch>`) does not have; null when that branch is not on origin.

        • committed_atstringrequired
        • is_env_branchbooleanrequired

          The selected environment deploys this branch.

        • namestringrequired

          `main`, or `origin/feature-x` for a branch only on origin.

        • remotebooleanrequired
        • shastringrequired
      • changed_filesstring[]required
      • headstringrequired
      • not_servedobject[]

        The checkout's commits the selected environment does not serve (`<served>..HEAD`, newest first, at most 50), read on refresh. Null when nothing is served yet or the served commit could not be fetched.

        Show 2 nested
        • messagestringrequired

          The subject line.

        • shastringrequired
    • cloud_projectany of
      Show 2 nested
      any of (2)
      Variant 1
      • created_atstring

        When the project was made (for choosing between several).

      • idstringrequired
      • last_deployment_atstring

        Its newest deployment, when more than one project uses the repository.

      • namestringrequired
      • slugstring

        The console's `$project` URL segment (`endpoint_slug`).

      Variant 2
      valuenull
    • cloud_projectsobject[]

      Every cloud project that uses this repository, across the person's teams, with its environments. The chosen one is `cloud_project`; `project::use {cloud_project_id}` picks another.

      Show 7 nested
      • created_atstring
      • environmentsobject[]required
        Show 6 nested
        • branchstringrequired
        • headstring

          Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

        • idstringrequired
        • manifeststring
        • namestringrequired
        • productionbooleanrequired
      • idstringrequired
      • last_deployment_atstring
      • namestringrequired
      • slugstring
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • default_branchstring

      The repository's default branch.

    • environmentany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
      • urlstring
      Variant 2
      valuenull
    • environmentsobject[]required
      Show 4 nested
      • branchstringrequired
      • idstringrequired
      • namestringrequired
      • productionbooleanrequired
    • fell_back_fromstring

      Only in `project::use`'s answer: the `environment_id` asked for, which the cloud project no longer lists, so its default environment was taken.

    • github_accessboolean
    • importableany of
      Show 2 nested
      any of (2)
      Variant 1
      • manifestsobject[]required
        Show 6 nested
        • choosablebooleanrequired
        • has_cloud_blockboolean

          The file on this machine has a `cloud:` section.

        • issuestring
        • pathstringrequired
        • suggested_environmentstring
        • workersinteger· uint32min 0

          Its containers, as the file on this machine says (else as iii cloud lists them); null when neither knows.

      • repository_idinteger· int64required
      • team_idstringrequired
      Variant 2
      valuenull
    • other_cloud_projectsobject[]

      Live projects of the person's teams that deploy another repository.

      Show 4 nested
      • idstringrequired
      • namestringrequired
      • repositorystringrequired
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • pathstringrequired
    • repositorystringrequired

      `owner/name`.

    • teamany of
      Show 2 nested
      any of (2)
      Variant 1
      • idstringrequired
      • namestringrequired
      • slugstringrequired
      Variant 2
      valuenull
    • teamsobject[]required
      Show 3 nested
      • idstringrequired
      • namestringrequired
      • slugstringrequired
    • workspaceany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • from_headstring

        The last commit the worktree took from the person's checkout (`from: checkout`): commits after it are the agent's. Null for a worktree made from the environment's branch.

      • modestringrequiredenum worktree, checkout
      • pathstringrequired
      • sourcestring

        The branch `use {from: checkout, source}` took; null: the checkout's HEAD.

      • source_shastring

        The commit `source` (else the checkout's HEAD) pointed at when the worktree was prepared: "moved since" compares the source's tip with it.

      Variant 2
      valuenull
    Variant 2
    valuenull
  • checkany of

    The selected environment's latest check.

    any of (2)
    Variant 1
    • basestringrequired

      The environment branch's head when checked.

    • checked_atstringrequired
    • commitstringrequired
    • commitsobject[]

      The commits of `base..commit`, newest first, at most 50. Empty when the base was not read or the commit is not on this machine.

      Show 2 nested
      • messagestringrequired

        The subject line.

      • shastringrequired
    • duration_msinteger· uint64requiredmin 0
    • environment_idstringrequired
    • handoff_idstring

      The hand-off whose agent asked for it; null for the page's own checks.

    • hereobjectrequired
      Show 3 nested
      • accepts_cloud_blockbooleanrequired
      • iii_versionstring
      • problemsinteger· uint32requiredmin 0
    • idstringrequired
    • manifeststring

      The compose file it was checked with, from the repository root. When it is not the environment's, deploying this check switches the environment to it.

    • planobjectrequired
      Show 10 nested
      • at_leastbooleanrequired

        The plan stops at its first blocking step: more may follow.

      • blockinginteger· uint32requiredmin 0
      • confirmationsobjectrequired
        Show 2 nested
        • overridesobject[]required
          Show 3 nested
          • consoleunknownrequired
          • fileunknownrequired
          • settingstringrequired
        • resourcesobject[]required
          Show 4 nested
          • aliasstringrequired
          • bindingstring
          • kindstringrequired
          • tierstring
      • digeststring
      • errorany of
        Show 2 nested
        any of (2)
        Variant 1
        • codestringrequired
        • fixstring
        • messagestringrequired
        • statusinteger· uint16min 0
        Variant 2
        valuenull
      • fingerprintstring
      • statusstringrequiredenum clean, blocked, not_pushed, commit_not_planned, unavailable
      • summaryany of

        What the plan runs: its workers and machine groups. Null without a plan.

        Show 2 nested
        any of (2)
        Variant 1
        • groupsstring[]required

          The groups' names, in the plan's order.

        • workersinteger· uint32requiredmin 0
        Variant 2
        valuenull
      • warningsinteger· uint32requiredmin 0
      • web_candidatesunknown
    • problemsobject[]required

      Cloud plan first, then the checks here.

      Show 14 nested
      • cloud_codestring
      • codestringrequired
      • detailstring
      • excerptany of
        Show 2 nested
        any of (2)
        Variant 1
        • linesstring[]required
        • start_lineinteger· uint32requiredmin 0
        Variant 2
        valuenull
      • filestring
      • fixstring
      • idstringrequired

        sha1(source, code, file, line), stable across checks.

      • lineinteger· uint32min 0
      • ownerone ofrequired
        Show 2 nested
        one of (2)
        Variant 1
        valuestringenum agent, person
        Variant 2
        valuestringenum none
      • severitystringrequiredenum block, warn, info
      • skippedboolean

        The person skipped its name for now (`values::skip`). `EMPTY_DEFAULT_VARIABLE` then has severity `info`; `SECRET_MISSING` stays `block`.

      • sourcestringrequiredenum cloud_plan, check_here
      • titlestringrequired
      • variablestring

        The variable a value problem is about (`SECRET_MISSING`, `EMPTY_DEFAULT_VARIABLE`, `LOCAL_VARIABLE_UNSET`), as the problem itself knows it.

    • readybooleanrequired
    • reportstringrequired
    • runany of
      Show 2 nested
      any of (2)
      Variant 1
      • check_idstringrequired
      • commitstringrequired
      • enginestringrequired
      • errorany of
        Show 2 nested
        any of (2)
        Variant 1
        • codestringrequired
        • messagestringrequired
        • ownerany of

          Whose the failure is (`run_code_owner`): the agent fixes it, the person must, or the run was cut short. Set whenever the check is stored.

          Show 2 nested
          any of (2)
          Variant 1
          one of (4)
          Variant 1
          valuestringenum replaced
          Variant 2
          valuestringenum agent
          Variant 3
          valuestringenum person
          Variant 4
          valuestringenum interrupted
          Variant 2
          valuenull
        • stagestringrequiredenum install, build, release, compose_up, workers, routes, …
        • withheldboolean

          The worker would not send this failure to the agent now: the person has a blocking problem open (a missing value fails the run too), so it is theirs first.

        Variant 2
        valuenull
      • finished_atstring
      • healthcheckany of
        Show 2 nested
        any of (2)
        Variant 1
        • pathstringrequired
        • statusinteger· uint16min 0
        Variant 2
        valuenull
      • idstringrequired
      • left_redactedboolean

        The copies under this run's `left/` were written with the run's secret values replaced. Absent (an older run): `check::read` refuses its kept files.

      • log_pathstring

        The run's whole redacted log, an absolute path (`log_tail` is only its last 40 lines).

      • log_tailstring[]required
      • movedstring[]

        The untracked files the run created, moved out of the copy into the run's `left/` folder when it ended (at most 500).

      • not_coveredstring[]required
      • restoredstring[]

        The tracked files the run rewrote and the worker put back as committed when it ended (at most 500; their rewritten versions are kept in the run's `left/` folder).

      • reusedboolean

        A passed run of an earlier check answered this one: nothing ran again.

      • routesobjectrequired
        Show 2 nested
        • countinteger· uint32requiredmin 0
        • prefixstring
      • stagesobject[]required
        Show 4 nested
        • detailstring
        • duration_msinteger· uint64min 0
        • namestringrequiredenum install, build, release, compose_up, workers, routes, …
        • statusstringrequiredenum pending, running, passed, failed, skipped
      • started_atstringrequired
      • statusstringrequiredenum running, passed, failed
      • waiting_onany of

        The workers stage has gone a minute with no new worker: who it waits for. The run is still `running`; null otherwise.

        Show 2 nested
        any of (2)
        Variant 1
        • containersstring[]required

          The containers that have not connected.

        • sincestringrequired

          When the wait was noticed (RFC 3339).

        Variant 2
        valuenull
      • workersobjectrequired
        Show 2 nested
        • readyinteger· uint32requiredmin 0
        • totalinteger· uint32requiredmin 0
      Variant 2
      valuenull
    Variant 2
    valuenull
  • checksobject[]

    Every kept check in short, of every environment, newest first (the latest 20, and the ones a merge, hand-off, pull request or deploy points at).

    • checked_atstringrequired
    • commitstringrequired
    • duration_msinteger· uint64requiredmin 0

      The plan and the checks here; a run's time is in its stages.

    • environment_idstringrequired
    • handoff_idstring
    • idstringrequired
    • manifeststring
    • problemsinteger· uint32requiredmin 0

      The problems someone acts on (owner `agent` or `person`).

    • readybooleanrequired
  • compose_filesobject[]

    The worktree's tracked compose files that declare `containers:`, for the page's app file picker. `choosable` is false for a file iii cloud can't plan by its name (`issue`: `NOT_WORKER_COMPOSE`).

    • choosablebooleanrequired
    • has_cloud_blockboolean

      The file on this machine has a `cloud:` section.

    • issuestring
    • pathstringrequired
    • suggested_environmentstring
    • workersinteger· uint32min 0

      Its containers, as the file on this machine says (else as iii cloud lists them); null when neither knows.

  • connectionobjectrequired
    • api_keyany of
      any of (2)
      Variant 1
      • environment_idstringrequired
      • secretstringrequired
      • team_idstringrequired
      Variant 2
      valuenull
    • cloud_urlstringrequired
    • deviceany of
      any of (2)
      Variant 1
      • expires_atstringrequired
      • user_codestringrequired
      • verification_uristringrequired
      Variant 2
      valuenull
    • errorany of
      any of (2)
      Variant 1
      • codestringrequired
      • fixstring
      • messagestringrequired
      • statusinteger· uint16min 0
      Variant 2
      valuenull
    • expires_atstring
    • methodany of
      any of (2)
      Variant 1
      valuestringenum browser, api_key
      Variant 2
      valuenull
    • statusstringrequiredenum signed_out, waiting, connected, expired, error
    • teamsobject[]required
      • idstringrequired
      • namestringrequired
      • rolestringrequired
      • slugstringrequired
    • userany of
      any of (2)
      Variant 1
      • emailstringrequired
      • idstringrequired
      • namestring
      Variant 2
      valuenull
  • deploysobject[]required

    Newest first, at most 20.

    • approved_by_workerbooleanrequired
    • check_idstring

      The check this worker deployed (`deploy {check_id}`); null for a deployment made elsewhere.

    • checked_readybooleanrequired
    • commitobjectrequired
      • messagestring
      • shastringrequired
    • console_urlstringrequired
    • created_atstringrequired
    • environment_idstringrequired
    • errorany of
      any of (2)
      Variant 1
      • actionstring
      • codestringrequired
      • hintstringrequired
      • stagestringrequired
      • workerstring
      Variant 2
      valuenull
    • failureany of

      For a failed deploy: what failed, in plain words, with the failing stage's log.

      any of (2)
      Variant 1
      • codestringrequired
      • diagnosisany of

        iii cloud's diagnosis of the failure, when it has a likely cause.

        Show 2 nested
        any of (2)
        Variant 1
        • causestringrequired
        • evidencestring[]required

          What it rests on, one line each (a log line, a file and its lines), redacted.

        • next_stepstringrequired
        Variant 2
        valuenull
      • hintstringrequired
      • log_tailstring[]required

        The last ~40 lines of the failing stage's log, oldest first, redacted.

      • release_commandstring

        The release command from the manifest, for a release failure.

      • silentboolean

        The log shows an exit status but no error text.

      • stagestringrequired
      • titlestringrequired

        Plain, per code: "The release command failed: `pnpm migrate`".

      • workerstring
      Variant 2
      valuenull
    • finished_atstring
    • from_consoleboolean

      This worker did not create it: made in the console (the cloud's `type` is `manual` for both).

    • idstringrequired
    • log_tailstring[]required
    • numberinteger· uint64requiredmin 0
    • outcomestringrequiredenum running, ready, failed, no_route, canceled, replaced
    • printeger· uint64min 0
    • release_rowany of
      any of (2)
      Variant 1
      • duration_msinteger· uint64min 0
      • statusstringrequiredenum pending, running, passed, failed
      Variant 2
      valuenull
    • replaced_bystring

      The deployment that replaced this one, when it is `replaced`.

    • stagesobject[]required
      • detailstring
      • finished_atstring
      • namestringrequired
      • started_atstring
      • statusstringrequired
    • statusstringrequired
    • status_detailstring
    • typestringrequired
  • handoff_briefany of

    What the agent needs for the open hand-off, in one place.

    any of (2)
    Variant 1
    • agent_problemsobject[]required

      The problems that are the agent's to fix.

      Show 9 nested
      • codestringrequired
      • detailstring
      • filestring
      • fixstring
      • idstringrequired
      • lineinteger· uint32min 0
      • ownerone ofrequired
        Show 2 nested
        one of (2)
        Variant 1
        valuestringenum agent, person
        Variant 2
        valuestringenum none
      • severitystringrequiredenum block, warn, info
      • titlestringrequired
    • baseany of

      The base branch and its sha when the worktree was made: reset to it to start again (`OLD_ATTEMPT_COMMITS`).

      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • shastringrequired
      Variant 2
      valuenull
    • check_idstring
    • checkout_pathstring

      The person's own checkout: do not touch it.

    • commitstring
    • deployany of
      Show 2 nested
      any of (2)
      Variant 1
      • codestring
      • diagnosisany of

        iii cloud's diagnosis, read when the hand-off was made (`None`: it had no likely cause).

        Show 2 nested
        any of (2)
        Variant 1
        • causestringrequired
        • evidencestring[]required

          What it rests on, one line each (a log line, a file and its lines), redacted.

        • next_stepstringrequired
        Variant 2
        valuenull
      • hintstring
      • idstringrequired
      • log_tailstring[]required
      • release_commandstring

        The release command from the manifest, when the failure is the release's.

      • silentboolean
      • stagestring
      • titlestring
      • workerstring
      Variant 2
      valuenull
    • handoff_idstringrequired
    • kindone ofrequired
      Show 2 nested
      one of (2)
      Variant 1
      valuestringenum ready, deploy_fix, pull_request
      Variant 2
      valuestringenum import
    • manifeststringrequired

      The compose file checked and deployed, relative to the worktree: the hand-off's, else the environment's.

    • next_stepstringrequired
    • other_compose_filesstring[]required

      Other compose files tracked in the worktree that declare `containers:` (at most 10). They are not checked or deployed.

    • person_problemsobject[]required

      The ones the person decides: bring each with a recommendation.

      Show 9 nested
      • codestringrequired
      • detailstring
      • filestring
      • fixstring
      • idstringrequired
      • lineinteger· uint32min 0
      • ownerone ofrequired
        Show 2 nested
        one of (2)
        Variant 1
        valuestringenum agent, person
        Variant 2
        valuestringenum none
      • severitystringrequiredenum block, warn, info
      • titlestringrequired
    • projectstring

      `<project> · <environment>`.

    • pushes_directlyboolean

      The environment is not production: it gets an assisted deploy, no pull request. Push only your fix branch; the person's deploy on the page sends the checked commit to the environment's own branch.

    • remote_branch_notestring

      One line when an earlier try left the fix branch on origin: the first push replaces it with `--force-with-lease`.

    • repositorystring
    • worktreeany of

      Where to work.

      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • pathstringrequired
      Variant 2
      valuenull
    Variant 2
    valuenull
  • override_choicesobject

    The person's choice per console override of the selected environment (`override::choose`), by setting: only choices made for the newest check's console and file values.

  • prany of
    any of (2)
    Variant 1
    • basestringrequired
    • bodystringrequired
    • checksstringrequiredenum none, pending, passing, failing
    • headstringrequired
    • head_shastringrequired
    • main_movedbooleanrequired
    • mergeablestring
    • numberinteger· uint64requiredmin 0
    • statestringrequiredenum OPEN, MERGED, CLOSED
    • titlestringrequired
    • urlstringrequired
    Variant 2
    valuenull
  • pr_errorany of
    any of (2)
    Variant 1
    • codestringrequired
    • fixstring
    • messagestringrequired
    • statusinteger· uint16min 0
    Variant 2
    valuenull
  • problemsobject[]

    What is wrong with the selection itself: `PROJECT_DELETED`, `ENVIRONMENT_DELETED`.

    • codestringrequired
    • fixstring
    • messagestringrequired
    • statusinteger· uint16min 0
  • projectany of
    any of (2)
    Variant 1
    • checkoutobjectrequired
      Show 6 nested
      • aheadinteger· uint32requiredmin 0
      • branchstring
      • branchesobject[]

        Local branches and origin's, newest commit first, at most 30; a local branch hides its origin twin. Read on refresh, from the refs as they are.

        Show 6 nested
        • aheadinteger· uint32min 0

          Commits the selected environment's branch (`origin/<branch>`) does not have; null when that branch is not on origin.

        • committed_atstringrequired
        • is_env_branchbooleanrequired

          The selected environment deploys this branch.

        • namestringrequired

          `main`, or `origin/feature-x` for a branch only on origin.

        • remotebooleanrequired
        • shastringrequired
      • changed_filesstring[]required
      • headstringrequired
      • not_servedobject[]

        The checkout's commits the selected environment does not serve (`<served>..HEAD`, newest first, at most 50), read on refresh. Null when nothing is served yet or the served commit could not be fetched.

        Show 2 nested
        • messagestringrequired

          The subject line.

        • shastringrequired
    • cloud_projectany of
      Show 2 nested
      any of (2)
      Variant 1
      • created_atstring

        When the project was made (for choosing between several).

      • idstringrequired
      • last_deployment_atstring

        Its newest deployment, when more than one project uses the repository.

      • namestringrequired
      • slugstring

        The console's `$project` URL segment (`endpoint_slug`).

      Variant 2
      valuenull
    • cloud_projectsobject[]

      Every cloud project that uses this repository, across the person's teams, with its environments. The chosen one is `cloud_project`; `project::use {cloud_project_id}` picks another.

      Show 7 nested
      • created_atstring
      • environmentsobject[]required
        Show 6 nested
        • branchstringrequired
        • headstring

          Its branch's head on origin, read on refresh. Null before the first refresh, or when origin did not answer or has no such branch.

        • idstringrequired
        • manifeststring
        • namestringrequired
        • productionbooleanrequired
      • idstringrequired
      • last_deployment_atstring
      • namestringrequired
      • slugstring
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • default_branchstring

      The repository's default branch.

    • environmentany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • idstringrequired
      • manifeststring
      • namestringrequired
      • productionbooleanrequired
      • urlstring
      Variant 2
      valuenull
    • environmentsobject[]required
      Show 4 nested
      • branchstringrequired
      • idstringrequired
      • namestringrequired
      • productionbooleanrequired
    • fell_back_fromstring

      Only in `project::use`'s answer: the `environment_id` asked for, which the cloud project no longer lists, so its default environment was taken.

    • github_accessboolean
    • importableany of
      Show 2 nested
      any of (2)
      Variant 1
      • manifestsobject[]required
        Show 6 nested
        • choosablebooleanrequired
        • has_cloud_blockboolean

          The file on this machine has a `cloud:` section.

        • issuestring
        • pathstringrequired
        • suggested_environmentstring
        • workersinteger· uint32min 0

          Its containers, as the file on this machine says (else as iii cloud lists them); null when neither knows.

      • repository_idinteger· int64required
      • team_idstringrequired
      Variant 2
      valuenull
    • other_cloud_projectsobject[]

      Live projects of the person's teams that deploy another repository.

      Show 4 nested
      • idstringrequired
      • namestringrequired
      • repositorystringrequired
      • teamobjectrequired
        Show 2 nested
        • idstringrequired
        • namestringrequired
    • pathstringrequired
    • repositorystringrequired

      `owner/name`.

    • teamany of
      Show 2 nested
      any of (2)
      Variant 1
      • idstringrequired
      • namestringrequired
      • slugstringrequired
      Variant 2
      valuenull
    • teamsobject[]required
      Show 3 nested
      • idstringrequired
      • namestringrequired
      • slugstringrequired
    • workspaceany of
      Show 2 nested
      any of (2)
      Variant 1
      • branchstringrequired
      • from_headstring

        The last commit the worktree took from the person's checkout (`from: checkout`): commits after it are the agent's. Null for a worktree made from the environment's branch.

      • modestringrequiredenum worktree, checkout
      • pathstringrequired
      • sourcestring

        The branch `use {from: checkout, source}` took; null: the checkout's HEAD.

      • source_shastring

        The commit `source` (else the checkout's HEAD) pointed at when the worktree was prepared: "moved since" compares the source's tip with it.

      Variant 2
      valuenull
    Variant 2
    valuenull
  • recent_projectsobject[]

    Projects used before, newest first: not the current one, nor a folder that is gone.

    • cloud_project_idstringrequired
    • cloud_project_namestringrequired
    • environment_idstring
    • environment_namestring
    • modestringrequiredenum worktree, checkout
    • pathstringrequired

      The repository's root on this machine.

    • repositorystringrequired

      `owner/name`.

    • team_idstring
    • team_namestring
    • used_atstringrequired
  • refreshed_atstring
  • running_deploysobject[]

    Every deploy still moving, of every project and environment, newest first (`deploys` has the selected environment's only).

    • cloud_project_idstring
    • deployobjectrequired
      • approved_by_workerbooleanrequired
      • check_idstring

        The check this worker deployed (`deploy {check_id}`); null for a deployment made elsewhere.

      • checked_readybooleanrequired
      • commitobjectrequired
        Show 2 nested
        • messagestring
        • shastringrequired
      • console_urlstringrequired
      • created_atstringrequired
      • environment_idstringrequired
      • errorany of
        Show 2 nested
        any of (2)
        Variant 1
        • actionstring
        • codestringrequired
        • hintstringrequired
        • stagestringrequired
        • workerstring
        Variant 2
        valuenull
      • failureany of

        For a failed deploy: what failed, in plain words, with the failing stage's log.

        Show 2 nested
        any of (2)
        Variant 1
        • codestringrequired
        • diagnosisany of

          iii cloud's diagnosis of the failure, when it has a likely cause.

          Show 2 nested
          any of (2)
          Variant 1
          • causestringrequired
          • evidencestring[]required

            What it rests on, one line each (a log line, a file and its lines), redacted.

          • next_stepstringrequired
          Variant 2
          valuenull
        • hintstringrequired
        • log_tailstring[]required

          The last ~40 lines of the failing stage's log, oldest first, redacted.

        • release_commandstring

          The release command from the manifest, for a release failure.

        • silentboolean

          The log shows an exit status but no error text.

        • stagestringrequired
        • titlestringrequired

          Plain, per code: "The release command failed: `pnpm migrate`".

        • workerstring
        Variant 2
        valuenull
      • finished_atstring
      • from_consoleboolean

        This worker did not create it: made in the console (the cloud's `type` is `manual` for both).

      • idstringrequired
      • log_tailstring[]required
      • numberinteger· uint64requiredmin 0
      • outcomestringrequiredenum running, ready, failed, no_route, canceled, replaced
      • printeger· uint64min 0
      • release_rowany of
        Show 2 nested
        any of (2)
        Variant 1
        • duration_msinteger· uint64min 0
        • statusstringrequiredenum pending, running, passed, failed
        Variant 2
        valuenull
      • replaced_bystring

        The deployment that replaced this one, when it is `replaced`.

      • stagesobject[]required
        Show 5 nested
        • detailstring
        • finished_atstring
        • namestringrequired
        • started_atstring
        • statusstringrequired
      • statusstringrequired
      • status_detailstring
      • typestringrequired
    • environment_namestring
    • pathstring

      The local folder it was made from: `project::use {path}` goes back to it.

    • project_namestring
    • repositorystring
  • secretsobject[]required

    Open first, then the latest 20 resolved.

    • asked_atstringrequired
    • cloudany of
      any of (2)
      Variant 1
      valuestringenum set, skipped, failed
      Variant 2
      valuenull
    • descriptionstringrequired
    • environment_idstringrequired
    • errorany of
      any of (2)
      Variant 1
      • codestringrequired
      • fixstring
      • messagestringrequired
      • statusinteger· uint16min 0
      Variant 2
      valuenull
    • externalboolean

      Asked for a database URL the person chose to keep outside iii cloud.

    • idstringrequired
    • localany of
      any of (2)
      Variant 1
      valuestringenum set, skipped
      Variant 2
      valuenull
    • modestringrequiredenum ask, not_needed, decide
    • namestringrequired
    • resolved_atstring
    • statestringrequiredenum waiting, set, left_empty, noted, failed
    • targetany of

      Where the value goes: the team, worktree and environment the request was asked for, whatever the page has selected when the value is saved.

      any of (2)
      Variant 1
      • envobjectrequired
        Show 6 nested
        • branchstringrequired
        • idstringrequired
        • manifeststring
        • namestringrequired
        • productionbooleanrequired
        • urlstring
      • team_idstringrequired
      • workspacestringrequired
      Variant 2
      valuenull
  • skipped_problemsstring[]

    The warning codes the person skipped for now (`problem::skip`) in the selected environment, sorted.

  • skipped_valuesstring[]

    The names the person skipped for now (`values::skip`) in the selected environment, sorted.

  • variablesobject[]required
    • namestringrequired
    • required_bystring[]required
    • statusstringrequired
    • typestringrequired
  • work_filestring

    The compose file the selected environment's work is on when it is not the environment's own (`State::work_file`): the newest check's, unless the environment's file changed since. Null: the environment's file.

  • workerobjectrequired
    • cloud_enginestring
    • iii_versionstring
    • versionstringrequired

iii-cloud::stream::follow

Function

The page's own: open a deployment's events (kind deployment, with deployment_id: stages, log lines, statuses) or the environment's machines stream (kind machines: a snapshot on every change, scaling steps). Returns {follow_id}; every event reaches iii-cloud::on-stream with that follow_id. Ends by itself with the deployment's terminal status, when the stream ends and after 30 minutes. Agents never call it.

Request
  • deployment_idstring

    Required for `deployment`.

  • environment_idstringrequired
  • follow_idstring

    As in `iii-cloud::logs::follow`.

  • kindone ofrequired
    one of (2)
    Variant 1
    valuestringenum deployment
    Variant 2
    valuestringenum machines
Response
  • follow_idstringrequired

iii-cloud::stream::unfollow

Function

The page's own: close a follow of stream::follow. Agents never call it.

Request
  • follow_idstringrequired
Response
  • closedbooleanrequired

    False when no such follow was open (it had ended).

iii-cloud::ui-content

Function

Serve the iii-cloud worker's injected console UI assets (the target of its ade::ui::asset observers; the console calls it through each asset's observer with {path}).

Request
  • pathstringrequired

    The asset path from the observer's args (e.g. `state/page.js`).

Response
  • contentstringrequired

    The asset source, verbatim.

  • content_typestringrequired

    MIME type the console should serve the asset with.

iii-cloud::values

Function

The names the compose file reads (`${NAME}`, `${NAME:-}`, `${NAME:-default}` in containers) for the selected environment: whether each is set in iii cloud, secret or variable, and where its value can come from (a .env file of the person's folder, the environment's address, a copy from another environment). Names, file names and flags only: never a secret's value. manifest: another worker-compose*.yaml; from: checkout reads the person's folder.

Request
  • fromany of

    Default `workspace`.

    any of (2)
    Variant 1
    one of (2)
    Variant 1
    valuestringenum workspace
    Variant 2
    valuestringenum checkout
    Variant 2
    valuenull
  • manifeststring

    A `worker-compose*.yaml` from the repository root. Default: the newest check's file when it is of this environment, else the environment's.

Response
  • cloudone ofrequired
    one of (2)
    Variant 1
    valuestringenum read
    Variant 2
    valuestringenum unreadable
  • environmentstringrequired
  • environment_idstringrequired
  • itemsobject[]required
    • askedany of
      any of (2)
      Variant 1
      • descriptionstringrequired
      • request_idstringrequired
      Variant 2
      valuenull
    • containersstring[]required
    • databasebooleanrequired

      Shaped like a database URL: iii cloud makes the database.

    • defaultstring

      The file's literal default; `""` for `${X:-}`; null for `${X}`.

    • hereall ofrequired

      Whether the run here has a value for it.

      all of (1)
      Variant 1
      one of (4)
      Variant 1
      valuestringenum set
      Variant 2
      valuestringenum from_file
      Variant 3
      valuestringenum unset
      Variant 4
      valuestringenum not_needed
    • here_filestring

      With `here: from_file`: the person's env file it comes from, such as `api/.env.test`.

    • in_cloudstringrequiredenum set, unset, unknown
    • invalid_namestring

      Why iii cloud can't store this name (lower case, say): nothing is preselected and `values::save` refuses the row.

    • lineinteger· uint32min 0
    • namestringrequired
    • needone ofrequired
      one of (3)
      Variant 1
      valuestringenum required
      Variant 2
      valuestringenum optional
      Variant 3
      valuestringenum has_default
    • skippedbooleanrequired

      The person skipped it for now (`values::skip`).

    • suggestionsone of[]required

      In preselect order: the page takes the first with `preselect: true`.

      one of (3)
      Variant 1
      • filestringrequired

        From the repository root, such as `api/.env.test`.

      • localbooleanrequired

        The value points at this machine (`localhost`, `127.0.0.1`, ...).

      • preselectbooleanrequired
      • sourcestringrequiredenum env_file
      Variant 2
      • preselectbooleanrequired
      • sourcestringrequiredenum env_url
      • urlstringrequired
      Variant 3
      • environmentstringrequired
      • environment_idstringrequired
      • preselectbooleanrequired
      • sourcestringrequiredenum copy
    • typeall ofrequired

      Secret unless iii cloud stores it as a variable or it is the environment's address.

      all of (1)
      Variant 1
      valuestringenum secret, variable
    • updated_atstring
    • valuestring

      Only a set variable's value in iii cloud; never a secret's.

  • manifeststringrequired
  • read_fromone ofrequired

    Where `iii-cloud::values` reads the compose file.

    one of (2)
    Variant 1
    valuestringenum workspace
    Variant 2
    valuestringenum checkout
  • saveone ofrequired
    one of (3)
    Variant 1
    valuestringenum ok
    Variant 2
    valuestringenum api_key
    Variant 3
    valuestringenum role

iii-cloud::values::save

Function

The page's own: write the values the person chose to iii cloud, one by one, and the run's .env where the compose file reads `${NAME}`. Agents never call it.

Request
  • environment_idstringrequired

    The selected environment, as a guard (`ENVIRONMENT_CHANGED`).

  • itemsone of[]required
    one of (5)
    Variant 1
    • fromstringrequiredenum typed
    • namestringrequired
    • typestringrequiredenum secret, variable
    • valuestringrequired
    Variant 2
    • filestringrequired
    • fromstringrequiredenum env_file
    • namestringrequired
    • typestringrequiredenum secret, variable
    Variant 3
    • fromstringrequiredenum env_url
    • namestringrequired
    Variant 4
    • fromstringrequiredenum leave_empty
    • namestringrequired
    Variant 5
    • environment_idstringrequired
    • fromstringrequiredenum copy
    • namestringrequired
  • manifeststring
Response
  • environment_idstringrequired
  • resultsobject[]required
    • errorany of
      any of (2)
      Variant 1
      • codestringrequired
      • fixstring
      • messagestringrequired
      • statusinteger· uint16min 0
      Variant 2
      valuenull
    • namestringrequired
    • okbooleanrequired

iii-cloud::values::skip

Function

The page's own: skip names for now in the selected environment (`skip: false` undoes it). A skipped name gets an empty value in the run here and no LOCAL_VARIABLE_UNSET; EMPTY_DEFAULT_VARIABLE turns to info; SECRET_MISSING stays a block. Agents never call it.

Request
  • environment_idstringrequired

    The selected environment, as a guard (`ENVIRONMENT_CHANGED`).

  • namesstring[]required
  • skipbooleanrequired

    `false` undoes the skip.

Response
  • environment_idstringrequired
  • namesstring[]required

iii-cloud::watch

Function

Follow a deploy to Ready and bring back the evidence when it fails.

Request
  • deployment_idstring

    Default: the newest deployment of the selected environment.

  • handoff_idstring
Response
  • approved_by_workerbooleanrequired
  • check_idstring

    The check this worker deployed (`deploy {check_id}`); null for a deployment made elsewhere.

  • checked_readybooleanrequired
  • commitobjectrequired
    • messagestring
    • shastringrequired
  • console_urlstringrequired
  • created_atstringrequired
  • environment_idstringrequired
  • errorany of
    any of (2)
    Variant 1
    • actionstring
    • codestringrequired
    • hintstringrequired
    • stagestringrequired
    • workerstring
    Variant 2
    valuenull
  • failureany of

    For a failed deploy: what failed, in plain words, with the failing stage's log.

    any of (2)
    Variant 1
    • codestringrequired
    • diagnosisany of

      iii cloud's diagnosis of the failure, when it has a likely cause.

      Show 2 nested
      any of (2)
      Variant 1
      • causestringrequired
      • evidencestring[]required

        What it rests on, one line each (a log line, a file and its lines), redacted.

      • next_stepstringrequired
      Variant 2
      valuenull
    • hintstringrequired
    • log_tailstring[]required

      The last ~40 lines of the failing stage's log, oldest first, redacted.

    • release_commandstring

      The release command from the manifest, for a release failure.

    • silentboolean

      The log shows an exit status but no error text.

    • stagestringrequired
    • titlestringrequired

      Plain, per code: "The release command failed: `pnpm migrate`".

    • workerstring
    Variant 2
    valuenull
  • finished_atstring
  • from_consoleboolean

    This worker did not create it: made in the console (the cloud's `type` is `manual` for both).

  • idstringrequired
  • log_tailstring[]required
  • numberinteger· uint64requiredmin 0
  • outcomestringrequiredenum running, ready, failed, no_route, canceled, replaced
  • printeger· uint64min 0
  • release_rowany of
    any of (2)
    Variant 1
    • duration_msinteger· uint64min 0
    • statusstringrequiredenum pending, running, passed, failed
    Variant 2
    valuenull
  • replaced_bystring

    The deployment that replaced this one, when it is `replaced`.

  • stagesobject[]required
    • detailstring
    • finished_atstring
    • namestringrequired
    • started_atstring
    • statusstringrequired
  • statusstringrequired
  • status_detailstring
  • typestringrequired

Search the registry

Find workers, kits and executables, or jump to a page.