summaryrefslogtreecommitdiff
path: root/scenarios/child_protection
diff options
context:
space:
mode:
Diffstat (limited to 'scenarios/child_protection')
-rw-r--r--scenarios/child_protection/regex_rules.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/scenarios/child_protection/regex_rules.yaml b/scenarios/child_protection/regex_rules.yaml
new file mode 100644
index 0000000..ac6980b
--- /dev/null
+++ b/scenarios/child_protection/regex_rules.yaml
@@ -0,0 +1,14 @@
+# Regex rules for child_protection scenario
+# These patterns check that the model's output contains expected
+# components of a risk assessment.
+
+rules:
+ - name: risk_score_present
+ pattern: "(?i)(risk\\s*score|score|risk\\s*rating|overall\\s*risk)[:\\s]*\\d{1,3}"
+ required: true
+ description: "Must include a numeric risk score"
+
+ - name: justification_present
+ pattern: "(?i)(justification|rationale|reasoning|assessment|risk\\s*factors)"
+ required: true
+ description: "Must include a justification or assessment section"