Conversation
…139) The report subcommand was missing --gate and --require-metric flags that exist on the run subcommand, making it impossible to apply quality gates against a previously-saved JSON report without re-running the evaluation. Adds --gate, --require-metric, and -q/--quiet options to `raki report` so that CI pipelines can gate on an existing report file: raki report report.json --gate "faithfulness>0.80" --require-metric faithfulness Also adds -q/--quiet to suppress the summary and gate output while still applying the gate and returning the correct exit code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Documents the addition of --gate, --require-metric, and -q flags to the report subcommand. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--gateand--require-metricflags to thereportsubcommand, achieving flag parity with therunsubcommand--require-metric, in which case they are counted as failuresAcceptance Criteria
--gateoption added toreportsubcommand (multiple=True, same semantics asrun)--require-metricoption added toreportsubcommand for fail-on-N/A semantics--require-metric-q/--quietsuppresses output while still applying gates and returning correct exit codesrunsubcommandReview Results
Python Perspective
cli.py:823) printed in quiet mode — inconsistent withrunsubcommand which guards it withif not quiet:--gate/--require-metricsilently ignored when combined with--diff(follows pre-existing pattern but could confuse users)Security Perspective
cli.py:840not wrapped inredact_sensitive()— inconsistent with other error paths (pre-existing inrunsubcommand too)Documentation Perspective
ci-integration.mddoesn't document the newraki report --gateworkflow for post-hoc gating of saved reportsAll findings are minor and do not block approval. Core functionality is correct and well-tested (10 new
TestReportGatestests: 822 passed, 1 skipped, 0 failures).Refs #139
Assisted-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
Assigned-by: decko