Plain language

People read what agents write when a ticket needs them. Stuckbot refuses that text when a person without a technical background could not follow it, so the wording is fixed where it is written instead of being patched up on the page.

The rules are one file, plain-language-1.json. The API and Bob's own tools read the same file. An org admin can turn the check off under Policy, Plain English (plain_language, on by default).

What is checked, and when

CallText that must be plain
Escalate a ticket to a personThe reason, every choice label and detail, and the ticket's title, human_summary and human_steps. The ticket must have a human_summary.
Ask for approvalThe six explanation fields below, plus the ticket's title, human_summary and human_steps.
Update the package of a ticket that has asked a personTitle, human_summary and human_steps.
Comment as an agent while the ticket waits for a personThe comment.

A refused call answers 422 not_plain. details.problems names each field and what to change. Nothing is saved, so fix the wording and send it again. What people type is never checked: not on the dashboard, and not when the ticket creator passes on a person's answer from its linked chat with POST /tickets/{id}/replies, because those are the person's own words.

The wording rules

  • Use everyday words. Developer words such as landed, commit, merge, deploy, rollback, revert, pipeline, container, worker, gate, branch, endpoint and config are refused.
  • When a technical word is truly needed, explain it in brackets right after it: "the AI gate (the small program that checks every request sent to AI companies)". Once explained, the word may be used again in the same request.
  • No file paths, file names, code names with underscores, command options, backticks, code ids or network addresses. Web links, email addresses and ticket numbers are fine.
  • Keep each sentence under 30 words.
  • Stay within the length limits in the contract, for example 80 characters for a title and 600 for a question.

Exact commands, paths, ids and logs still belong on the ticket, in the technical fields: scope.commands, scope.resources, evidence, stuck_reason, attempts and context. The ticket page keeps them under Technical details.

Approval requests answer five questions

Question for the personFieldRule
What does the agent want to do?actionOne short line, at most 120 characters.
Why?summary, risk_if_waitingThe problem it solves, and what happens if the person says no or waits.
What could go wrong?risk_if_done, risk_tierThe worst realistic outcome in plain words. risk_tier is required: low (minor), medium (moderate), high (serious) or critical.
Can it be undone?rollback_planStarts with Yes, No, Partly. Then how, and what is lost for good.
What does the agent recommend?recommendationStarts with Approve, Reject, Investigate. Then one short reason.

The explanation cannot hide the action

The person approves scope.commands and scope.resources, not the explanation. Stuckbot reads those itself and shows the person what they appear to do, whatever the agent wrote. It first drops quotes, backslashes, ${IFS} separators and $'...' escapes, so r''m reads as rm. Sending output into a file with > is shown as writing over that file, unless the file is in /tmp. A command that builds or hides what it runs ($(...) other than reading a file with $(cat /path), backticks, a pipe into a shell, eval, base64 -d, <<< or <(...)) is shown as one that may contain hidden or generated commands, with the exact commands open. This is a reading of the text, not of what the command will really do. It refuses a request when:

  • the commands or targets delete or erase something and the explanation never says so, or the undo answer is a plain Yes;
  • the commands or targets change security or access settings and the explanation never says so;
  • the commands or targets stop, restart or power off something and the explanation never says so;
  • the commands or targets spend money or change billing and the explanation never says so;
  • the commands or targets change a live database and the explanation never says so;
  • the commands or targets send or publish something outside and the explanation never says so;
  • the commands or targets write over a file and the explanation never says so;
  • the risk is rated low for a request that may do any of these, or for a request in the category data, security, money, production, legal.

Rewording a waiting request never changes what it allows: the commands, targets, number of runs and time limit stay as asked, and the ticket page keeps the agent's original wording under Technical details.

Steps for the person

When the person has to open a page or run something themselves, put it in the package's human_steps, not in a sentence. Each step has a text, and may have a url with a label (shown as a button that opens in a new tab), a command with where to run it (shown in a code block with a Copy button), and a warning when it deletes something or cannot be undone.

"human_steps": [
  {"text": "Sign in to GitHub so the agent can read the settings.", "url": "https://github.com/login", "label": "Open GitHub sign-in"},
  {"text": "Then start the Linux side of your PC again.", "command": "wsl -d rocky-gis -- true", "where": "PowerShell on your PC"}
]