← Back to Pull requests

fix: address review findings on release PR #411 #414

Closed
unknown closed this pull request without merging on Oct 23, 2026 03:11 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 02:21 UTC
Author

Fixes CodeRabbit's four findings on the release PR #411. The release branch is dev, so these land here first and #411 picks them up.

| Finding | Fix |
|---|---|
| deploy-dev.yml / deploy-prod.yml: an unresolvable push base read as "no infra changes" | Verify BEFORE_SHA with git cat-file -e; when it's gone (force-push), set infra_changed=true and run infra first rather than fail the deploy. git diff is also taken out of the grep pipeline so a git error fails the step. |
| deploy.yml: verification job checkout persists credentials | persist-credentials: false |
| TF_VAR_auth_dev_bypass from vars.AUTH_DEV_BYPASS could differ from the false the code deploy writes and fail the settings check | Pinned to 'false' in deploy-infra.yml (where the variable actually lives); README updated. Both environments already have the variable at false. |
| buy-price.ts rounds subtotals to cents, wrong for 3- and 0-decimal currencies | Round to the currency's own minor unit from Intl.NumberFormat's fraction digits (KWD 1000, JPY 1), cached per currency; test for 1.001 + 1.001 KWD = 2.002 and whole-yen JPY. |

Verification


  • Web unit tests: 677 pass (the one earlier failure was a stale packages/shared build in my worktree, gone after npm run build:shared); buy-price.test.ts 7/7; web tsc --noEmit clean; eslint clean on the changed files.

  • actionlint on the four workflows: only two pre-existing SC2129 style notes in blocks I didn't touch.

  • Not run: the workflows themselves. The next push to dev exercises the dev detection; the force-push branch only runs when a push base is missing.
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    Currency subtotals now use the correct precision for each currency, including three decimal places for KWD and whole units for JPY.
    Infrastructure deployments are less likely to be skipped when a prior commit is unavailable, and errors while checking changed files are now reported instead of being treated as no changes.
    Deployment settings now consistently use the configured development authentication bypass value.

    Documentation
    Clarified that infrastructure deployments always disable the development authentication bypass.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 309 lines (+231 / -78) across 3 files Reviewer: mattmck Review duration: 50m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 309 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #414"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.4% · Safe to merge
    17.4%