R154 Do not generate or read Grok’s debug log
Do not generate a debug log with grok --debug --debug-file <file>, and do not read or search an existing one.
Reason
This log holds full tokens in plain text (as tested on 2026-09-02). rule 291 keeps an agent from putting a credential into its own output; here the tool has written the credential into a file for the agent, and reading the file, even grepping one field of it, brings the whole matching line, token included, into the context.
Verification
This covers only the files that --debug-file writes; Grok’s usual logs are not among them.
Violated when an agent generates a Grok debug log with --debug-file, or reads or searches such a file.