Skip to content

codex: monthly audit fixes for issue #482 - #483

Draft
quantcrossrepoautomation[bot] wants to merge 1 commit into
ai-history-sg-claim-dedup-20260915from
codex/monthly-review-issue-482-20260915105055
Draft

quantcrossrepoautomation[bot] wants to merge 1 commit into
ai-history-sg-claim-dedup-20260915from
codex/monthly-review-issue-482-20260915105055

Conversation

@quantcrossrepoautomation

Copy link
Copy Markdown

Triggered by monthly review issue #482: #482

Changed Files

  • application/rebalance_service.py
  • tests/test_rebalance_service.py

Codex Result

修复摘要

仅修改 application/rebalance_service.pytests/test_rebalance_service.py

修复在已成功 claim 的 durable live command 上补充重复证据收敛:只有 marker/prior-report 读取成功、至少一项明确匹配、且当前周期未产生订单时,才以 expected_previous_state=CLAIMED 写入 CANCELLED。读取失败或事件写入返回 None 时保持 CLAIMED,继续 fail-closed。

新增离线历史回归覆盖:

  • 2026-09-10 signal → 2026-09-11 effective,marker 缺失但 prior report 明确存在,验证一次 claim、零订单、最终 CANCELLED
  • prior-report 读取失败,验证实际读取、无 close event、状态保持 CLAIMED、零订单。

未执行本地测试;按约定由 AIAuditBridge 应用补丁并运行 pinned bounded test。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

human-review-required Requires human review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants