tradingSystem/.agents/skills/pms-incident-review/references/failure-patterns.md

15 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 按改动选择历史反例
本索引用于确定验证边界,不表示以下历史问题今天仍存在。完整因果分析见[月度复盘](../../../../docs/月度故障与返工根因复盘_2026-11-18.md)。测试通过也不替代自然判收。
| 改动触及 | 必须回答的边界问题 | 已有反例入口 |
| --- | --- | --- |
| 数据源、名单、计算缓存 | 某一路为0时其他来源能否掩盖?缺席证券是否仍在分母?文件被实际读取规则接受吗? | `scripts/test_business_evidence.py`;11月12日关注漏入告警池、11月16日资金分钟历史不足 |
| API、数据库输出、调度 | 实际调用入口和包装、Decimal/日期进入真实编码是否通过?嵌套失败是否被顶层吞掉? | `test_proposal_trader_view.py`、`test_execution_basis_decimal.py`、`test_batch57_units.py`、`test_business_evidence.py` |
| 委托、库存、预算 | 已成交未入账、撤单未确认、跨日和改参后,是否重复使用数量或预算?失败后意图还在吗? | `test_batch45_units.py`、`test_batch52_units.py`、`test_grid_execution.py`、`test_buy_budget.py`、`test_user_stop.py` |
| 技术读数或择时缓存 | 新旧调用方是否同口径?源数据更新或不可用恢复后能否重新计算?旧证据能否因刷新时间变新? | `test_proposal_trader_view.py`、`test_signal_recovery.py`、`test_timing_fusion.py`;11月16日代码审查的未修反例 |
| 资金或盈亏 | 可用余额是否已含回笼?负净成本、零值、费用未知是否保留真实含义? | `test_batch47_units.py`、`test_signal_recovery.py`、`test_cost_precision.py` |
| 页面判断与操作 | 同股列表与详情是否同一当前结论?信息变化与规则变化是否混淆?用户知道下一步且能完成吗? | 前端目录三道护栏及真实响应浏览器回放;11月5日接口包装、11月12日“当时未取得”返工 |
测试文件均位于仓库`scripts/`,通过`unit_test_guard.py`运行。新故障只按实际影响补缺口,不将表中所有检查强制套给无关改动。