Database timeouts, encrypted authenticator secrets, session idle timeout #50
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 322 lines diff across 4 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.346
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #50"
general
weight: 0.35
DansiDanutz
Three findings from the production-readiness review (O7, O8, O9), one commit each.
1. Database timeouts (O9)
statement_timeout30 s andidle_in_transaction_session_timeout60 s, so a query stuck behind a lock or an abandoned transaction can no longer hold locks and a pool slot indefinitely.migrate()lifts the statement timeout for its own connection and restores it before the connection is reused, so a slow migration or the wait for another starter under the advisory lock is not cut short.503 retry_laterinstead of 500.2. Authenticator secrets encrypted at rest (O7)
MFA_ENCRYPTION_KEY(32 random bytes, base64). With it, TOTP secrets are sealed with AES-256-GCM, bound to their owner's id (lib/secretBox.ts).3. Session idle timeout and cross-tab sign-out (O8)
031:sessions.last_seen_at. The API refuses a session unused for 14 days, or 30 minutes for a PreFlop team account. Use is recorded at most once a minute.watchIdleandwatchStorageKeylive in@preflop/client.Behaviour changes to know
Test plan