You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: document and stabilize exit codes and error.code values #634
We almost always exit 1. JSON errors use ad hoc error.code strings (transport_error, confirmation_required, input_validation_failed, command_blocked) with no catalog.
For agents this is the difference between retry with --yes and give up.
Publish a table (help topic in feat: add help topics for formatting, environment, and exit codes #630): 0 success, 1 generic, then reserve 2 usage, 3 validation, 4 auth/config, 5 network. Implementing the split can follow the table. Do not silently change codes on existing scripts without a changelog note.
Freeze error.code strings in AGENTS.md. Add codes for auth_required, config_invalid, not_found if we do not already emit them.
elastic status --json should be the probe agents run after auth_required / transport_error.
Acceptance: help topic lists codes. --json errors on a missing config use a documented code. One test per code.
Activity