Skip to content

test: add 100 CNY fixed-anchor recharge regression - #808

Closed
LIghtJUNction wants to merge 60 commits into
wip/rust-core-go-extensionsfrom
test/topup-cny100-fixed-anchor-20261012
Closed

LIghtJUNction wants to merge 60 commits into
wip/rust-core-go-extensionsfrom
test/topup-cny100-fixed-anchor-20261012

Conversation

@LIghtJUNction

@LIghtJUNction LIghtJUNction commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

开发主线交接(2026-10-12)

开发默认主线现为 wip/rust-core-go-extensions;旧单体 main 与 traditional 冻结于 3948a0a1ee1cefdd016a7aa45a11851545bb4b85。分支交接不是发布、部署或验收通过。原问题、源码基线、测试与未完成项保留;旧单体路径仅作历史证据,后续先在微服务源码重新确认并按职责移植,不回灌旧数据库/权限/资金实现。

主线/S11 跟踪:#895。Extore 商品同步:#894,未验收,禁止部署,尤其禁止合并/推送 Extore main。

本 PR 原目标为旧单体 main,现转向微服务主线。只修改审查目标,尚未完成移植或验收,不可直接合并;须解决跨架构差异/冲突并完成本地验证,保留其他任务的改动。

LMM API Pull Request

变更说明 / Summary

已有的 100 CNY 冻结入账测试使用 3500000/USD 的测试锚点,没有覆盖迁移后的固定 500000/USD 充值链路。本 PR 只新增回归测试,不修改定价、回调或生产配置。

以四项点数基准均为 500000、FX=6.714466 验证六个矩阵:USD/CNY 全局显示模式 × 无优惠的 100 CNY、带现有档位优惠配置的 100 CNY、配置 100 USD 档位。手输 100 CNY 对应 7,446,608 点、实付 100.00 CNY;配置键 100 对应 50,000,000 点,命中九折后实付 604.30 CNY,二者不会混淆。

测试调用 v2 报价入口和本地 Epay checkout,验证签名后篡改回调正文及正确签名但金额错误均被拒绝;改变后续 FX/倍率后仍按订单冻结额度入账,重复回调不会再次加点。另覆盖 Pancake/LDC 报价的币种隔离,以及 TOKENS 模式拒绝小数原始点数档位。

范围仅为内存 SQLite、合成 Epay 签名回调、本地 SDK 表单构造及 Pancake/LDC 报价;不代表浏览器、PostgreSQL 并发、真实支付商 checkout 或生产支付验收。

与上游的关系 / Upstream relationship

  • LMM API 独有变更 / LMM API-specific change
  • 上游尚未合并的修复或功能 / Change not yet merged upstream
  • 同步或移植上游变更 / Upstream sync or backport
  • 不适用(文档、CI、仓库维护等)/ Not applicable

上游参考 / Upstream reference: N/A;覆盖本仓库固定点数锚点与 v2 充值协议。

关联 Issue / Related issue

N/A

变更类型 / Type of change

  • Bug 修复 / Bug fix
  • 新功能 / Feature
  • 重构或性能优化 / Refactor or performance
  • 前端或交互 / Frontend or UX
  • 部署、CI 或构建 / Deployment, CI, or build
  • 文档或仓库维护 / Documentation or maintenance — test-only regression coverage

验证 / Verification

测试源码为签名提交 b7696424dde0a956aaf42ba40e680c94908ae491,父提交 b494724ed3240d52a5fcd9d9e5792e33a8a52ce4。新增文件 SHA256:56654ebbad09232f49180521039d87af7dd153a28e98fa569e76f781bfd5ce38,检查前后及提交内容一致。

在 apps/api-go 执行,环境仅保留 PATH/HOME,并设置 GOTOOLCHAIN=local GOPROXY=off GOSUMDB=off GOMAXPROCS=2 GOFLAGS=-p=2,没有数据库 DSN;本地 Go 为 go1.27.1-X:nodwarf5 linux/amd64。

go test ./controller -run '^TestFixedAnchorCNY' -count=1 -v
PASS — six matrix cases and retained-catalog guard

go test ./controller -count=1
PASS

go vet ./controller
PASS

从仓库根目录执行 gofmt -l apps/api-go/controller/topup_cny_fixed_anchor_test.go 与提交前的 git diff --cached --check,均无输出、退出 0。另经独立静态审查,检查了金额断言、回调路径与 fixture 全局状态恢复。

仅测试文件变更,因此未重复完整 Web 构建或仓库全量检查;未运行真实支付、生产数据库或部署验收,也未触发发布流程。

截图或日志 / Screenshots or logs

N/A;无 UI、响应格式或运行时行为变更。上述结果来自本地合成 fixture。

提交检查 / Checklist

  • 我已搜索本仓库的 Issues 和 PRs,确认没有重复工作。
  • 此 PR 只包含与当前目标相关的改动,未混入格式化或其他无关变更。
  • 我已说明该变更对当前产品流程或兼容行为的影响,并保留必要的来源、版权和许可证信息。
  • 我已检查兼容性;本 PR 不修改生产行为或协议。
  • 我已补充相关测试,并在上方记录实际验证结果和范围。
  • 文档、示例配置和多语言文案不受本次 test-only 变更影响。
  • 代码和日志不包含真实凭据、生产 DSN 或生产支付数据;仅使用显式合成 fixture key。

LIghtJUNction and others added 30 commits October 10, 2026 22:25
Related to #711, RT14 partial work at 2f41649. Covers protocol structure only, not model injection resistance or executor authorization. Local selected-file baseline run reproduces 14 failing subcases. No remote CI.
…p ci]

Related to #711, RT14 partial work. Reuse the existing protocol validator for small contexts as well. Preserve valid conversations and existing compaction behavior. Selected-file offline regressions pass; full executor, confirmation, database and local-model testing remain unverified.
…ence [skip ci]

Pin source review to main@2f4164978cf27f6e0e605b0589fbe631aef2c441.
Add a loopback-only component runner, real Markdown observation entry,
URL-classification checks and runner-input tests. Keep private probes out.

Actual local evidence: URL classification 16 passed on the pinned function
excerpt; runner input validation 3 passed; TSX syntax transpilation passed.
Chromium localhost preflight was blocked by administrator policy (exit 2).
All four authenticated persisted-content paths remain NOT_RUN.

No production code changes or vulnerability-fix claim. No workflow dispatch,
release, deployment or merge. Refs #711.
Preserve manual deployment and exact Sigstore identity. Parse checksums and
archives only after verification, bind the exact published asset tuple and
resolved tag revision, and reject noncanonical checksums or duplicate members.

Add 14 offline tests executing actual workflow gate bodies with synthetic
artifacts and explicit GitHub/cosign doubles. These are not real signature,
PostgreSQL, systemd or production qualification.

Related #751. Native format1 to format2 migration in #757 remains unresolved.
* chore: export isolated refactor source for offline local validation

* chore: prepare public Go dependencies for offline local checks

* chore: export test tools for isolated local deployment verification

* chore: stage hash-bound locally tested refactor payload (1/3)

* chore: stage hash-bound locally tested refactor payload (2/3)

* chore: stage hash-bound locally tested refactor payload (3/3)

* chore: publish exact locally validated deployment refactor on isolated branch

* chore: normalize temporary gzip transport header without changing tested bytes

* refactor(deploy): remove embedded Go operator and ship separate signed deployment tool

Move deployment implementation/tests out of API linkage; bind separate backend and tool hashes across scripts, releases, packages and retained recovery. Local Go tests, race/vet, all-package compile, real executable smoke and Python regression checks completed. No release or production deployment. Remove all temporary transport workflows and payloads.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ed-ancestry-20261011

chore(release): record scoped OpenRouter hotfix source ancestry
…alect (#795)

Remove the startup-only commonGroupCol dependency from the public market and
routing visibility query. Add isolated SQLite regression coverage for empty
or stale legacy column metadata, bound group values, and availability filters.

Local evidence: gofmt and whitespace checks passed; SQL-only SQLite probe
passed. Go/GORM and application tests were not run: the local environment has
Go 1.23.2, no Bun/dependency cache, and no working network checkout. This is a
partial prerequisite fix, not the requested full public-relay lifecycle/UI
implementation. Keep the PR draft pending full local verification.
…tcut-20261011

feat(web): add API Keys shortcut to profile dropdown
…ty-20261011

fix: rebuild scoped security fixes on current main
…e-20261011

fix(tool-market): guide setup prerequisites and next actions
…y-interaction

fix(web): 修复系统设置首次进入时目录误打开的初始化问题
…on-20261011

chore(web): stabilize generated route ordering
…ition

test(wallet): add RT-11 opt-in money composition scenarios (unverified)
…dance-ancestry-20261011

chore(release): qualify scoped tool market guidance source
…e-identity-20261012

fix(deploy): verify split tool holders with signed engine identity
…l-identity-20261012

fix(deploy): qualify per-start checker as the signed deployment engine
Copilot AI balanced review requested due to automatic review settings October 11, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-11T18:48:17.001709Z b769642 PR opened
ℹ️ 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.

@LIghtJUNction
LIghtJUNction changed the base branch from main to wip/rust-core-go-extensions October 12, 2026 11:02
@LIghtJUNction
LIghtJUNction marked this pull request as draft October 12, 2026 11:02
@LIghtJUNction

Copy link
Copy Markdown
Member Author

根据开发主线交接策略,旧单体 main / traditional 已冻结,相关财务/计费/测试/工具逻辑已由 wip/rust-core-go-extensions 对应微服务组件承接。关闭旧单体历史 PR,避免堆积。

@LIghtJUNction
LIghtJUNction deleted the test/topup-cny100-fixed-anchor-20261012 branch November 5, 2026 07:31
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