Skip to content

Report syntax errors in rules file - #11686

Merged
etraut-openai merged 5 commits into
mainfrom
etraut/rules_syntax_error
Feb 13, 2026
Merged

etraut-openai merged 5 commits into
mainfrom
etraut/rules_syntax_error

Conversation

@etraut-openai

Copy link
Copy Markdown
Contributor

Currently, if there are syntax errors detected in the starlark rules file, the entire policy is silently ignored by the CLI. The app server correctly emits a message that can be displayed in a GUI.

This PR changes the CLI (both the TUI and non-interactive exec) to fail when the rules file can't be parsed. It then prints out an error message and exits with a non-zero exit code. This is consistent with the handling of errors in the config file.

This addresses #11603

Currently, if there are syntax errors detected in the starlark rules file, the entire policy is silently ignored by the CLI. The app server correctly emits a message that can be displayed in a GUI.

This PR changes the CLI (both the TUI and non-interactive exec) to fail when the rules file can't be parsed. It then prints out an error message and exits with a non-zero exit code. This is consistent with the handling of errors in the config file.

This addresses #11603
@dylan-hurd-oai
dylan-hurd-oai self-requested a review February 13, 2026 18:09
@etraut-openai
etraut-openai merged commit b98c810 into main Feb 13, 2026
35 of 39 checks passed
@etraut-openai
etraut-openai deleted the etraut/rules_syntax_error branch February 13, 2026 18:33
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants