pinecallDocs
Reference / Exit codes

Exit codes

What each exit code of the CLI means.

0 it did what it says
1 the thing measured did not hold: a golden broke, a check failed, a judge answered broken, a drift fell past the threshold, the run itself broke (its reason printed with the report)
2 this command could not run, and measured nothing: no key, a flag that is not a flag, a name nothing answers to, an input refused, any refusal of the gateway — 400, 401, 403, 404, 409, 422, 429, 503, in its own words — the network down, a verb that moved (pipeline set is agent set now)
130 stopped: Ctrl-C (or SIGTERM) on a verb, which is not a failure

A read the gateway was only too busy for is not a refusal yet: a 503 that says when to come back (Retry-After, a database with no connection free for a moment) is asked again, four times in all, and a log a verb follows (simulate and test their calls and runs, supervise a live call) is opened again the same way. Only then is it the 503 above. A 503 that names no time, and every refusal of a write, is the answer at once.

Every refusal is two lines on stderr: what happened, pinecall: …, in the CLI's own words, and under it the next step, → …, when there is one — a sentence that names a command after its colon is cut there. A line typed wrong names the verb typed, what was typed and the --help that says what it takes; a word that is one of the verb's flags typed without its dashes gets the flag:

Terminal
$ pinecall lexicon list
pinecall: lexicon takes no argument, and "list" was typed
  → pinecall lexicon --help says what it takes
$ pinecall agent clear language
pinecall: agent clear takes no argument, and "language" was typed
  → pinecall agent clear --language
$ pinecall deploi
pinecall: no verb "deploi" (did you mean deploy?)
  → pinecall --help lists them

A refusal of the gateway is the gateway's sentence alone, with no status in front of it; the status is named only when the answer carried no sentence (a proxy's page: the gateway answered 502: …). An agent of the project the gateway has never met — agent, judges, sessions, cases and the rest before the first pinecall start — is said as what it is: <agent> is not on Pinecall yet, nothing has held it, and → pinecall start holds it from this terminal, pinecall deploy runs it on Pinecall. A path in a refusal is written as you would type it from where you are (agents/clinica-norte/docs), never whole.

On a terminal an answer is coloured and stands apart. Every verb's lines are read for what they are and painted in one place: what the answer is about in Pinecall's violet (dental-front-desk · sandbox), a table's header bold and each row's name cyan, a record's labels cyan, a standing that is a cell of its own in its colour (ready and live green, stopped and sandbox yellow, production magenta, failed red), a date and what only separates dimmed, ✓ green and ✗ red, a next step's → cyan over dimmed words, a refusal's pinecall: red. A transcript tells its speakers apart: the agent's › violet, the caller's ‹ cyan, a tool asked in yellow and its answer dimmed; what the agent marked **so** is drawn bold, its marks gone. The help is painted the same way. An empty line comes before the answer's first line and after its last, and before its next steps. A pipe, a file or NO_COLOR gets the words alone, with no colour and no empty lines added: what a script reads never changes with the terminal.

start and prompt run the agent's own process: when it leaves on its own they end with its exit code, whatever it is — 2 when the gateway refused what the class declares.

A call nobody judged is not a pass: simulate --judge exits 2 for it, with the reason, because "nobody looked at this" must never open a gate. A step in CI fails on either 1 or 2; 1 says the agent is what failed, 2 says the check never ran.