feat(erpact): alert when the copy's backup stops succeeding #1549
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 210 lines diff across 2 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.320
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1549"
general
weight: 0.35
claude[bot]
Why
The ERPact copy is getting its first backup: CronJob
erpact-backupin git.mctl.ai/erpact/mctl-apps#1, which uploads daily to R2 bucketerpact-backups. Its credential landed in #1546. The job refuses to upload a truncated dump or one missing a site's database, but a failed Job is visible only in its own logs. A reviewer of that PR found no alert anywhere in the cluster that would notice a missed day.What
New group
erpact.backupinvm-rules/erpact-alerts.yaml. It uses the same three-way split as the Forgejo backup alerts inbackup-alerts.yaml:ErpactBackupStale: last success is older than 25h.ErpactBackupNeverSucceeded: the CronJob is older than 26h and has never succeeded.last_successful_timeonly exists after a first success, so Stale alone cannot see this case.ErpactBackupMetricAbsent: nokube_cronjob_createdseries for 30m. Without this, a deleted or unscraped CronJob would silence the other two.All three are
warningwithservice: erpact, like the existing erpact availability alerts. The copy is not production.Tests
New cases are appended to
tests/erpact-alerts_test.yaml; the existing availability tests are unchanged:scripts/check-vm-rules.shpasses. Mutation-verified twice: raising the Stale threshold, and turningunlessintoorin NeverSucceeded, each fail the suite.🤖 Generated with Claude Code
https://claude.ai/code/session_013QnVjZsjQyJQs4zDLUcNWP