fix(research): add a follow-up approval's budget once; refuse approving unpublished listings #236
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.50) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 501 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.372
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 item
"Review active on #236"
general
weight: 0.35
AxolDad
abendrothj
What and why
Part of #96.
BudgetLedger::openonly inserts, so the steward's budget was dropped and an exhausted grant stayed at 0. Approvals use the newBudgetLedger::top_up_once, keyed by the request, so a retry of the same approval adds nothing.revoked_at_isofor this check. A durable grant store must keeprevoked_at_iso(pinned by a unit test ingrants.rs).Still open on #96: cancelling pending requests when a dataset is deleted, which needs dataset deletion (P42). The same budget drop on direct re-grants is #235.
How it was tested
New tests in
research_api.rs, each failing on main: follow-up approval adds its budget (limit 2 vs 5), approving for an unpublished listing is 404, and a stale retry after revoke and re-grant is 404 and adds nothing.audit_coverage.rschecks the new refusal events exactly.top_up_oncehas a unit test inbudget.rs.Checklist
scripts/check.shpasses locally (except the all-refs secret scan fixed by #230)SECURITY_AUDIT_EVENTcovered byaudit_coverage.rsdocs/DATA_POLICY.md)CHANGELOG.mdupdated for user-visible changesdocs/adr/if one was made (none made)