Skip to content

feat: include guardrail config in evaluation results - #27

Merged
liamcervante merged 1 commit into
mainfrom
feat/guardrail-result-config-fields
Apr 2, 2026
Merged

feat: include guardrail config in evaluation results#27
liamcervante merged 1 commit into
mainfrom
feat/guardrail-result-config-fields

Conversation

@liamcervante

Copy link
Copy Markdown
Contributor

Summary

  • Adds Scope, IncreaseThreshold, IncreasePercentThreshold, TotalThreshold, and Message fields to GuardrailResult
  • These are populated from the guardrail config during Evaluate(), so downstream consumers (e.g. the vcs comment renderer) can produce dashboard-matching trigger descriptions without a separate config lookup
  • Nil thresholds are preserved (not coerced to zero) so callers can distinguish "not configured" from "threshold is zero"

Add scope, threshold, and message fields to GuardrailResult so the
comment renderer can produce dashboard-matching trigger descriptions
without needing to look up the guardrail configuration separately.
@liamcervante
liamcervante merged commit dff306b into main Apr 2, 2026
2 checks passed
@liamcervante
liamcervante deleted the feat/guardrail-result-config-fields branch April 2, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants