Skip to content

docs(skill): rail0 admin is not for the agent — the operator commands are refused in agent mode (CLI 1.11.0) - #8

Merged
pviti merged 1 commit into
mainfrom
docs/admin-not-for-agents
Nov 26, 2026
Merged

pviti merged 1 commit into
mainfrom
docs/admin-not-for-agents

Conversation

@pviti

@pviti pviti commented Nov 26, 2026

Copy link
Copy Markdown
Member

What

One rule added to the skill: an agent does not use rail0 admin.

rail0 admin is the CLI's operator side (diagnostics, reads across every account, switching accounts and wallets off, onboarding, the operator role), new in CLI 1.11.0. Agent mode refuses every one of those commands (unavailable_in_agent_mode, exit 2) before anything is sent, and never carries an operator's write-mode token, so an operator's write through any other command answers write_mode_required (exit 4).

The skill now says so where it already lists what is not the agent's (keys add, keys generate, the session token), and tells the agent what to do instead: name the command the task needs and leave it to the person, without looking for a way around the refusal.

  • skills/rail0-payments/SKILL.md: the rule, with the two answers the CLI gives.
  • skills/rail0-payments/references/commands.md: rail0 admin added to what agent mode refuses.

Not in this PR

No eval added. The rule describes CLI 1.11.0, which is not released yet (commercelayer/rail0-cli#215): merging this before that release is harmless, the sentence says "from CLI 1.11.0".

Targets main: this repository has no milestone/next.

The operator commands (CLI 1.11.0) are refused in agent mode, and agent mode
never carries an operator's write-mode token. The skill says so beside the
other things that are not the agent's (keys, the session token), and what to
do instead: name the command the task needs and leave it to the person.
@pviti
pviti marked this pull request as ready for review November 26, 2026 15:54
@pviti
pviti merged commit 7007b4f into main Nov 26, 2026
1 check passed
@pviti
pviti deleted the docs/admin-not-for-agents branch November 26, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant