RKB_AUTO_CONFIRM lets CI answer needs_user questions, read only from the process environment
Context#
rkb confirm refuses to run without a person at a terminal, so CI could not answer needs_user questions such as rkb install.
Decision#
RKB_AUTO_CONFIRM is a comma-separated list of option names. It is read only from the process environment, never from kb.toml or config.toml, so a checked-in file cannot grant it. The check sits in the single needs_user choke point in crates/rkb/src/writes.rs, so every command that asks gets it. rkb takes the first listed name that is one of the question's options. If none match, it still returns needs_user. rkb confirm <id> --choice X skips the TTY check only when X is listed, and otherwise returns needs_terminal. The skill example uses install alone.
Why#
A general mechanism at one choke point serves every command, instead of a flag per command. Environment-only keeps a repository file from granting itself approval. continue also lifts the burst write limit, so nobody should set it by reflex.
Rejected options#
A --yes flag per command: CI would need each command changed. Reading the list from a config file: a checked-in file could grant it.
Also found by searching
- rkb confirm refuses without a terminal, CI stuck on needs_user from rkb install
- how do I answer rkb needs_user questions in a non-interactive CI job
- can I set auto confirm in kb.toml or config.toml for rkb
- RKB_AUTO_CONFIRM environment variable comma separated option names
- rkb install in CI returns needs_user, rkb confirm refuses: needs_terminal
- CI job stuck on rkb confirm needs a person at a terminal
- how do I let CI answer rkb needs_user questions automatically?
- RKB_AUTO_CONFIRM=install env var, can kb.toml grant approval?