feat(api): run the scenarios check when validating an event model or project #389
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 151 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.301
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #389"
general
weight: 0.35
yordis
ValidateEventModel and ValidateProject now run the scenarios check on the slices each model lists, and report
scenariosin coverage. Before, only a write to the slice ran this check, so a lane edit could break a stored scenario and validate still returned a clean result.Example. If the
reviewlane dropsreview.submitted -> review.approved, a scenario that emitsreview.approvedafterreview.submittednow reportsSCENARIO_TRANSITION_VIOLATIONon validate. A scenario reference into a namespace the caller cannot read is reported asREF_OUTSIDE_VISIBLE_SCOPE, not as dangling.The check is the existing one that the merge consequence delta already runs. One predicate (
runs_scenarios) says which slice kinds it covers, and the snapshot indexes are built once per model. About 160 of the 318 added lines are tests.Open questions for review.
DANGLING_REFand asSCENARIO_DANGLING_REF, as the consequence delta already does. Is that acceptable.modelandstrategic, so a bundle can report complete while validate reportsSCENARIO_*findings. Should it sealscenariostoo.