Harden strategy SoT: fail-closed funds gate, shared open pipeline, LIVE switch guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-30 01:06:32 +08:00
parent 4c537e7520
commit 200702d066
14 changed files with 471 additions and 139 deletions
+17
View File
@@ -5,6 +5,23 @@
---
## 2026-07-30 — 策略 SoT 加固:资金门 fail-closed / 统一开仓管道
### 变更
1. 资金门 fail-closed`None`/异常拒绝开仓);选约后用选中腿 ask。
2. 等待选约只预览兑 USDC、不落库定仓;落库仅在选约成功后。
3. 自动/手动开仓共用 `open_pipeline.size_and_gate`;兑汇冷却不可 force 绕过。
4. 持仓禁止改出场/名义/以损参数;热切 LIVE 强制 pause + 非默认 AUTH_SECRET。
5. 划转刷新余额缓存;HTTP 备份下载剥离 `.env`
6. 基线:无交易所人工开平、运行中无人工手动平仓。
### 审计
`docs/审计说明-2026-07-30-策略SoT与资金门.md`(三轮)。
---
## 2026-07-30 — 自动兑 USDC:不等待选约,USDC 不够即兑
### 变更