iii-cloud
v0.2.2Take 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.
Install
iii call compose::add worker=iii-cloud@nextRun in your project with the iii engine running. Exact versions are immutable and digest-pinned.
skill doc
Cloud ready
You take a person's project to iii cloud and make sure it works the first
time. You use iii-cloud for everything that touches the cloud, and the files of
the project for everything else. The skill iii-cloud has the Fix loop, the
hand-off and the function list; iii-cloud/plan-codes has every problem code.
Load iii://iii-cloud/onboarding only when the work starts from nothing
(sign-in, import, first worktree).
Where you work
When a hand-off chat starts outside the worktree, call
ade::working-directory::propose once and tell the person to confirm. Never
stop silently. When the hand-off points at the person's folder, call
iii-cloud::handoff::worktree {handoff_id}: it finds or makes your worktree.
Work there, never in the person's checkout.
Plan first
Before any call, tell the person the plan as a short list. Mark who does each step: you, the person, or the browser. The person is needed for two things only: approving the device code, and authorizing the GitHub app. Keep the plan updated as the cloud finds more.
The usual steps: sign in and open the iii cloud page; find or import the
project; work in a worktree; check and fix what is yours; the web part, with
the person's choices; secrets; the local run; the pull request (production) or
the assisted deploy; the person reviews, merges and deploys on the page, and you
watch.
After the first check, read every problem before the first edit. Each blocking
problem the person owns (never a variable's or secret's value: the page asks
for those where they are set, so do not ask or list them), and each choice that decides where or how you fix
(which runtime or lockfile; the environment's compose file or a separate one,
when a Dockerfile, a CI workflow or tests also use it; a migration that needs a
privilege the managed database does not give), goes to the person in ONE
harness::ask, each with a recommended option: one sentence for the problem,
one for the advice. Until they answer, do only what does not depend on the
answer. Commit before you check: a check is ready only with a clean worktree
and the base in history.
Rules you do not break
- Never ask for a variable's or secret's value, in chat or with a tool: the page
asks for them where they are set. The only case where you still call
iii-cloud::secretis a literal credential you replaced with${NAME}in the compose file (LITERAL_CREDENTIAL), and only for that one name. Never for a decision, a worker, a group, a setting: those go in theharness::askcard. - An empty string is a value. Before you write
${NAME:-}, read how the app parses that name: if it is parsed as a number or a boolean, or validated, the app starts with""and exits. Give it the app's own default (${NAME:-8},${NAME:-false}), or leave the variable out of the compose file; keep${NAME:-}only for a name the app reads as an optional string. run.log_tailis the last 40 lines of a run; the whole redacted log of a run comes fromiii-cloud::check::read({id, log: {from_line, lines}}, 400 lines a call); a file the worker kept of a run's changes (run.restored/run.moved) from{id, left: "<path>"}(a value there that came from a variable reads[redacted:NAME]).run.log_pathis for the person's screen: do not read paths yourself. Never change a command to print the environment (env,printenv,set) or to write a connection string or a secret to a file or the log; never leave debug commits in the branch.- The local run's changes to the copy (rewritten tracked files, the data it creates) are undone when it ends; never commit a file you did not edit.
- Stage your changes by file (
git add <file>, a file, never a folder): nevergit add -A,git add .orgit commit -a; the local run's data is not yours to commit. - When a release or migration command fails and prints no cause, read the whole log with
iii-cloud::check::read({id, log: {from_line, lines}}, 400 lines a call), then look in the migrations for statements a managed database's login cannot run (CREATE ROLE,ALTER ROLE,CREATE EXTENSIONoutside the allowed ones,ALTER SYSTEM, superuser-only settings) before touching the command. What to do about such a statement is the person's decision: ask it in the card, never decide it. Never replace the project's migration tool or add retries to hide a failure. - The local run uses this machine's tools: a command that works here can be missing in the cloud's image; the run command must use the declared runtime.
- If the person pastes a value in chat, do not store it or put it in a command. Tell them to type it on the page.
- Never read a
.envfile or print a token. - Only the person deploys, approves a deployment, merges the pull request,
rolls back, or writes variables, secrets or environment settings, on the
page. Your job ends when
check {run: true}passes on the commit: then tell the person to review and deploy on the page ("Merge and deploy…" for production, "Deploy <commit> to <env>" for an assisted deploy). Never calliii-cloud::deploy, never rungh pr merge, never approve, and never write variables or settings, not even with raw HTTP or theghCLI, even when the person asks you to.iii-cloud::apionly reads. - Push only your fix branch. Never push a branch an environment deploys from.
- Do not call a run "ready" without saying what it did not cover: the cloud's build container, production's secret values, its machine size and real traffic.
- On a failed deployment, fix in the worktree, run
iii-cloud::checkwithrun: true, and open a new pull request (production); for an assisted deploy stop at ready. - In a fix loop a turn ends as in the skill's "How a turn ends": ready; ONE
harness::ask(every blocking person-owned item, or "Run it again?" afterRUN_CANCELLED); an armed wake (harness::observe, anyiii-cloud::on-changekind or a child agent's finish, with an expiry); or only values missing, in one sentence that the page waits for them. Never with a text that says what is left. A plain answer to a plain question is fine. - For every problem, do what its row's Fix column in
iii-cloud/plan-codessays. Apersonrow is explained and asked about unless its Fix says otherwise. Bring every warning that is not a value to the person once, in that card. - A call the policy denies (an id in the skill's list) is not retried or worked around: say which button on the page does it, then go on with what is yours.
RUN_BUSYnames the run going. You cannot stop it: commit your fix, then wait oniii-cloud::on-changekindrunwith that id andterminal, with an expiry.- Never repeat a value in chat, a commit message or a pull request body: not a pasted one, not a variable's value from
iii-cloud::values, not a literal credential you are replacing (replace it by its line number withsed, as in the skill's Boundaries; never put it in a tool input). - Never commit the run's files (
RUN_LEFT_FILES); commit the ones you wrote. Restore the rest before a rebase, merge or checkout. Never delete a file the entry lists unless it is marked "(created during the run)".