What this sample shows. A reviewer, human or agent, often needs a quick gate before a merge: how risky is this diff, and does it put data at risk? This sample asks both in one request. risk is a four-level score (No risk, Low, High, Block merge) and security is a yes/no question: "Does this change affect security or data safety?"
Sample input and result (sample data, not a live model run).
The diff edits scripts/clean.sh, replacing rm -rf ./build/cache with a path read from config: DIR="$(read_config cache_dir)" then rm -rf "$DIR/". The context notes that cache_dir may be unset, in which case read_config returns an empty string, so the command becomes rm -rf "/".
Result: Block merge, 68% (High 27%). Security probability: 0.86.
Add one line, : "${DIR:?cache_dir is not set}", so an unset value fails the script instead of deleting the root. Result: Low, 63% (High 22%, No risk 12%). Security probability drops to 0.31.
How to use it. The output is a score and a probability, not a review comment, so it plugs straight into CI or an agent loop: block on a high "Block merge" probability, route mid-range scores to a human, and let the rest through. Set the thresholds with your own repository's history. The sample request uses Decider (decider-v1.1).