Rebuild ICT doctrine rule kernel
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# AI_ICT Doctrine Kernel 市场语言规则内核 D1 2026-05-21 v1
|
||||
|
||||
## 1. 本阶段结论
|
||||
|
||||
D1 已开始把《ICT交易全书》第 1-6 章从“表面形态识别”重建为可检查的市场语言规则内核。
|
||||
|
||||
当前系统中的 `sweep / MSS / FVG / retrace` 只能作为 evidence component。除非候选同时映射到完整 Doctrine setup playbook,并具备 `Range / Draw / Location / Context / Time / Invalidation / IRL-ERL` 链路,否则一律标记为 `research_only`,不得进入 Trader Cockpit 的 `Review Now`。
|
||||
|
||||
## 2. D1 Rule Registry
|
||||
|
||||
第一版规则注册表由 `src/services/ict_mainline/doctrine.py` 提供,当前包含:
|
||||
|
||||
| Stage | Rule | 缺失时原因 |
|
||||
| --- | --- | --- |
|
||||
| Range | 必须定义 Dealing Range、key high / key low、equilibrium | `doctrine_missing_range` |
|
||||
| Draw | 必须定义主 Draw、方向、目标流动性 | `doctrine_missing_draw` |
|
||||
| Location | 必须定义 premium / discount / OTE 或等价位置优势 | `doctrine_missing_location` |
|
||||
| Context | 必须定义 context、framework、reference point、setup type | `doctrine_missing_context_reference` |
|
||||
| Path / Time | 必须定义可用 session、路径、序列有效性 | `doctrine_missing_time_path` |
|
||||
| Invalidation | 必须定义失效条件、止损或失效价位 | `doctrine_missing_invalidation` |
|
||||
| IRL / ERL | 必须定义分层目标、管理和退出架构 | `doctrine_missing_exit_architecture` |
|
||||
|
||||
额外硬门槛:候选必须带有 `setup_playbook_id` / `doctrine_setup_id` / `playbook_id` 之一,否则首先返回 `missing_doctrine_setup_playbook`。
|
||||
|
||||
## 3. 接入点
|
||||
|
||||
- `GET /trading/doctrine-rules`:返回当前 D1 Doctrine Rule Matrix。
|
||||
- Strategy Backtest:每条 backtest summary 增加 `doctrine_research_status`,整体 surface 增加 `doctrine_rule_gap_summary`。
|
||||
- Trader Cockpit / Operator Workspace:候选 watchlist 增加 `doctrine_research_status`、`research_only`、`research_only_reason`,并把 Doctrine 缺失项加入 Review Now 阻断条件。
|
||||
- Trader Readout:当 focus 为 research-only 时,首屏语言改成“研究材料 / 不能交易 / 等完整 playbook 映射”。
|
||||
|
||||
## 4. 不变边界
|
||||
|
||||
- 不开启下单。
|
||||
- 不改变 `execution_allowed`、`decision_support_ready`、`real_live_ready`。
|
||||
- 不改变 risk governor、trust bucket、operator confirmation protocol。
|
||||
- 不伪造 R2 paper ticket / paper execution / operator feedback 样本。
|
||||
|
||||
## 5. 下一步
|
||||
|
||||
D2 应该把 Trading Plan 与 Backtest Cohort 也改成 Doctrine setup playbook 驱动:
|
||||
|
||||
1. 为真实 playbook 定义最小字段 schema。
|
||||
2. 把 Strategy Backtest 的 cohort key 从旧 `model_code` 迁移到 `setup_playbook_id + doctrine rule completeness`。
|
||||
3. Trader Cockpit 只允许“playbook 完整 + 历史质量门通过 + 计划激活”的候选进入 `Review Now`。
|
||||
Reference in New Issue
Block a user