← Back to Pull requests

Align onBinChange callback naming and docs #2859

Open
unknown opened this pull request with 102 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 24, 2026 12:12 UTC
Author

Summary [Required]


<!-- Provide a concise description (2-4 sentences) of what changes this PR implements and why -->

This PR aligns iOS CardCallbacks.onBinChange with the "Bin Change Callback" alignment doc. It has following changes:

  • Rename the closure parameter from bin to binValue.

  • Document the firing behavior: once per digit up to 6, then silent until the card number is valid, then once with an 8-digit BIN, and "" when the field is cleared.

  • Update MIGRATION.md, the CheckoutCallbacks docs and the demo example.
  • Ticket [Optional]


    <ticket>
    COSDK-
    </ticket>

    Checklist [Required]


    <!-- Mark completed items with an [x] -->
  • Tested changes locally

  • Added/updated unit tests

  • Verified against acceptance criteria

  • Aligned public API changes with other platforms (if applicable)
  • Diff: 102 lines (+76 / -26) across 1 files Reviewer: github-actions[bot] Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.31) × (1 − Review Confidence (0.27)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.31 · 102 lines diff across 1 files
    0.31
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 39% · Reviewer familiarity: 35%
    27%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.277
    Real PR Conversation Timeline
    1 comments
    "Review active on #2859"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 27.1% 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: 30.7% (LOW) · Higher = larger blast radius
    30.7%
    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: 27.1% · Lower = rushed or shallow review
    27.1%
    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: 22.4% · Safe to merge
    22.4%