Skip to content

test(refunds): amount-cap and lane-2 503 tests, public destination loader (nits from #1237/#1238) - #1260

Merged
KaluMuso merged 3 commits into
masterfrom
claude/refund-nits-1796519233
Dec 6, 2026
Merged

KaluMuso merged 3 commits into
masterfrom
claude/refund-nits-1796519233

Conversation

@KaluMuso

@KaluMuso KaluMuso commented Dec 6, 2026

Copy link
Copy Markdown
Owner

Summary

Review nits from #1237 and #1238, now that both have merged:

  • Test that a 95,000 customer-refund payout does not count toward the vendor daily amount cap (a 6,000 request would exceed 100,000 if it did).
  • Test that lane-2 returns fail closed with a retryable 503 (refund.destination_check_unavailable) when the identity lookup is down, with no writes and no refund call.
  • Rename lane-1 _load_customer_refund_destination to the public load_verified_refund_destination, since lane 2 imports it.

Not included: the .order("id") tiebreak for retry-sweeper paging belongs to #1239, which has not merged yet.

Tests

Returns lane-1/lane-2 and KYC caps tests pass (112); ruff, mypy and gitleaks 8.28.0 clean. No behaviour change.


Generated by Claude Code

…nation loader public

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SgAB9Eyg7j2WRP7JBQPV6C
@vercel

vercel Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
convergeo-admin Ready Ready Preview Dec 6, 2026 1:26am UTC
convergeo-customer Ready Ready Preview Dec 6, 2026 1:26am UTC
convergeo-vendor Ready Ready Preview Dec 6, 2026 1:26am UTC

Request Review

@KaluMuso KaluMuso self-assigned this Dec 6, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-06T01:27:02.057808Z
We couldn’t complete this review. Comment @codex review to try again.
f425c19 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@KaluMuso
KaluMuso merged commit e5ba623 into master Dec 6, 2026
28 of 32 checks passed

This branch was successfully deployed

3 active deployments
Preview – convergeo-admin — f425c196 Deployed Dec 6, 2026 by vercel[bot]
Preview – convergeo-vendor — f425c196 Deployed Dec 6, 2026 by vercel[bot]
Preview – convergeo-customer — f425c196 Deployed Dec 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants