R154 Do not generate or read Grok’s debug log

On by default

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.

Provisions of the constitution it cites

Relations

Parent
R152 Grok
Requires
none
Conflicts with
none

Metadata

ID
154
Revision
3
Kind
rule
Status
trial
Slug
no-grok-debug-log
Default level
user
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh