Skip to content

fix(payments): validate mint size and wallet cursors - #141

Open
tee8z wants to merge 1 commit into
feat/stablecoin-receivefrom
fix/stablecoin-validation
Open

tee8z wants to merge 1 commit into
feat/stablecoin-receivefrom
fix/stablecoin-validation

Conversation

@tee8z

@tee8z tee8z commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Reject malformed wallet cursors and Solana deployment mints before returning incomplete listings or presenting a payment QR.

Stack position: second layer, based on #140 (feat/stablecoin-receive). The lower PR remains at 996 changed lines; this layer adds 92 changed lines.

Single-org wallets list --all now uses the strict wallet page validation shared by picker and all-org reads. A regression rejects a numeric cursor on a later page. Solana mint validation decodes Base58 and requires exactly 32 bytes. Wrong-size, invalid-alphabet, overflow, and leading-zero cases have regressions. No Base58 crate existed in Cargo.lock; the decoder is bounded to 44 characters and 32 output bytes.

Validation

Signed/DCO pushed head: 46131f9d7899d06c32373036ae5dc6b3a3682421. GitHub verifies its SSH signature.

  • Full gate passes: fmt, strict all-target Clippy, machete, 232 unit tests, 167 process tests, and 48-operation contract/docs coverage.
  • CRAP passes: highest 19.11 (wait_for_payment), zero violations, 929 measured functions, 232 unmeasured, 98.01% line coverage. Artifacts: target/crap/crap.md and target/crap/crap.json.
  • Source diff reviewed against feat/stablecoin-receive with the repository's style and PR-review guidance.
  • Fresh slice A quality (Codex) and security (Claude) both failed to start on the pushed head: exit 2, FileNotFoundError. Runtime startup failures are not approval. Executables are now present; see accepted second-model review below.
  • Ready for review under owner authorization. Staging quote succeeded; receive failed on backend configuration. See feat(payments): add quoted stablecoin receive support #140 for actual outputs.

Try it on staging

Setup: Try a pull request on staging

voltage wallets list --account me --org ORG_ID --env ENV_ID --all

Find ORG_ID and ENV_ID with voltage organizations list --account me and voltage environments list --account me --org ORG_ID. Expect a complete wallet list for valid cursor metadata. Malformed cursor metadata must exit nonzero with Invalid wallet pagination metadata; the offline later-page regression covers this failure without changing staging.

For the full stablecoin flow, use #140's staging recipe from this head with 5.00 USD and the confirmed Sepolia deployment. The staging house account is available. Execution completed partially: quote succeeded, receive failed with stablecoin receives are not configured; no address issued. No new help or docs command examples are introduced by this validation layer.

GitHub identity used: tee8z.

Accepted second-model review

tee8z (Paseo) second-model full-diff review of #141 against #140 at 46131f9d7899d06c32373036ae5dc6b3a3682421: PASS, no blocking findings. Verified exact Base58 decoding size, carry overflow rejection, leading-zero rules, and the later-page cursor regression. Optional doc nit deferred. Owner accepted this review and the passing gate for readiness. Fresh Codex/Claude attempts previously exited 2 with FileNotFoundError; these are not approvals. Both executables are now on PATH under /opt/buzz-runtimes/node_modules/.bin; earlier successful reviews establish the runtimes worked earlier, but their earlier executable paths and the cause of the gap are unverified.

Staging evidence: #140. No source changes after the reviewed commit.

Signed-off-by: tee8z <tee8z@protonmail.com>
@tee8z
tee8z added this pull request to stack #142 November 20, 2026 23:52
@tee8z tee8z self-assigned this Nov 20, 2026
@tee8z
tee8z marked this pull request as ready for review November 20, 2026 23:55
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.

1 participant