docs(runbooks): pre-deploy amount check uses the pre-migration query #1329
All Vouch review confidence checks passed
Residual risk 0.40 = Change Risk (0.71) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 359 lines diff across 4 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.352
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.071
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1329"
general
weight: 0.35
claude[bot]
Follow-up to #1297 (#1282), found by the coordinator's independent re-review. The pre-deploy check in
docs/runbooks/deploy.mdruns before the release's migrations, but its code block joinedcrove_kernel.currency, which that release creates. The query would therefore fail exactly when an operator runs it. The code block now uses the VND rule that applies before the migration, and the post-migration form (the one the DB test runs) moves to the prose.Docs only;
pnpm docs:checkpasses. The re-review ran both forms on a freshly migrated database: both are valid and return 0 rows.🤖 Generated with Claude Code
---
<!-- dos-pr-summary -->
📌 TL;DR
Updates the deployment runbook to clarify that the pre-migration data integrity check must use a hardcoded VND rule because the
crove_kernel.currencytable does not yet exist. This corrects the SQL query in the documentation to prevent errors during the release process and distinguishes it from the post-migration validation logic.🎯 Type of Change
🔍 Changes Walkthrough
| File | Summary of Changes |
| :--- | :--- |
|
docs/runbooks/deploy.md| 1. Clarified Pre-Migration Context: Added a note explaining thatcrove_kernel.currencyis unavailable before the migration runs, necessitating a hardcoded VND check.<br>2. Updated SQL Query: Modified theBEGIN READ ONLYblock to remove theJOINtocrove_kernel.tenantandcrove_kernel.currency. Replaced the dynamicc.minor_unitscheck with a hardcodedpg_catalog.round(..., 0)(VND has 0 minor units).<br>3. Updated Post-Migration Guidance: Rewrote the subsequent paragraph to explain that the post-migration validation (which uses the dynamic currency join) is what is tested infinance-currency-scale.db.test.ts, rather than implying the pre-migration query should be swapped out manually. |📊 Architectural Flow
<!-- /dos-pr-summary -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Clarified that the pre-deploy journal check uses VND’s zero-decimal rule before migrations.
* Updated the runbook to describe the currency-aware journal query as the post-migration approach, including its use in the finance currency-scale database test.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->