Files
ai-exchange/TASKS.md
T

7.9 KiB
Raw Blame History

ai-exchange Tasks

In Progress

  • 交易模块交付优先:执行 scripted target-environment rehearsal 并转绿市场验证 gate Files: scripts/run_trading_delivery_rehearsal.py, README.md, RUNBOOK.md, SESSION.md Acceptance: 在目标环境执行一次 run_trading_delivery_rehearsal.py,形成可复用结果;freshness、historical repair gate、quality gate、deploy、health-check、post-deploy observe 全部转绿。 Risks: 如果 rehearsal 脚本只完成本地实现而不在目标环境实跑,P0 仍只是“功能闭环存在”,不是“交付结论已成立”。

Next Up

  • 交易模块交付后续:P2 能力补全(session pivots / 独立 risk_check / 新闻窗 gate / dashboard context-report 扩展 / semi_auto 真实集成) Files: src/services/, src/api/, src/web/, docs/ Acceptance: 在不影响当前目标环境交付 blocker 的前提下,按优先级补齐剩余中后期能力。 Risks: 如果在 P0 结果未转绿前并行扩展 P2,会重新稀释交付主线。

Backlog

  • No additional backlog items beyond the current roadmap.

Blocked

  • No active blockers.

Done

  • 2026-05-04 完成 P1 交易主线功能闭环:为 historical compatibility repair 新增 liquidity reference migration planning/apply path 与 conflict protection;signal evidence 链补齐 sweep_id / displacement_id / liquidity_target_id 并把交易主线默认切到 strict;execution settlement 升级为显式 observation 驱动状态机,新增 settlement_source / fill_state / position_state / close_reason;主闭环、backtest、signal scripts 与 dashboard 新增 bias_tf / setup_tf / trigger_tf 多 timeframe 入口及 by_timeframe 统计展示;已通过 focused tests、全量单测、offline checks 与 JS syntax check。
  • 2026-05-04 完成 P0 单一编排入口与决策闭环:新增 scripts/run_trading_delivery_rehearsal.py,把 checklist drift check、historical repair dry-run/optional safe apply、database readiness/auto-backfill/guarded pipeline、deploy/health-check、post-deploy observe 串成一个脚本化 rehearsal;默认把高风险 sweep_event pool_id 引用迁移决策固化为 explicit defer,并补充 focused tests,避免 P0 继续停留在“靠聊天记忆手动拼流程”的状态。
  • 2026-05-04 完成交易模块交付前运行/观测/回滚清单固化:新增 scripts/check_trading_delivery_readiness.py 作为 checklist 单一来源,把 preflight / database gate / deploy / observe / rollback 命令顺序同步到 README.md 与 RUNBOOK.md,扩展 tests/unit/test_trading_delivery_readiness.py、tests/unit/test_documentation_consistency.py 与 offline checks;同时把 run_historical_compatibility_repair.py --apply-safe-repairs 文档语义更新为当前真实实现(signal invalidations、MSS/FVG meta、liquidity safe merges),避免交易交付继续依赖聊天记忆。
  • 2026-05-04 完成交易模块交付优先的 liquidity 历史重复组分类与安全收敛路径:脚本已能把历史 pool 分成 safe_auto_merge_unreferenced_superset、safe_exact_duplicate_with_duplicate_sweeps、needs_sweep_reference_migration、keep_version_history 四类;并已在真实数据库上自动处理 8 组安全合并(1 组未引用超集 + 7 组 exact duplicate 且 duplicate sweep 完全同构),剩余 5 组保留为结构版本历史;已通过 focused tests、全量单测、offline checks 和 local demo readiness。
  • 2026-05-04 完成历史数据修复与兼容迁移:新增历史兼容修复核心模块与 scripts/run_historical_compatibility_repair.py,默认 dry-run 扫描旧 invalidations 文案、MSS/FVG 粗元数据与 liquidity duplicate group,并支持对 signal invalidations、MSS/FVG meta 与 liquidity safe merges 执行受控 safe repairs;补充 focused tests、README/RUNBOOK 入口说明,并通过单测、offline checks 和 local demo readiness。
  • 2026-05-04 完成 FVG 候选优先级规则再收敛:signal 层不再被 repository 的隐式 SQL 偏好控制,而是显式使用“先取最近候选,再优先与当前 MSS displacement 精确匹配,其次同方向,最后回退到最新 FVG”的规则;已通过 focused FVG/signal tests、全量单测、offline checks 和 local demo readiness。
  • 2026-05-04 完成自动 Training case generator 预研:新增只读离线原型 src/services/training/case_generator.py 与 scripts/run_training_case_generator.py,输入 trading-derived seed package,输出公开可消费的 Training case 草案 package;新增 fixture、focused tests、README/RUNBOOK 入口说明;已通过单测、offline checks 和 local demo readiness。
  • 2026-05-04 完成 Training case quality scorer / selector:在现有公开只读 quality 对象上新增稳定的 quality filter/sort 能力,支持 quality_rank、min_quality_score、sort_by 的服务/API 选择器入口,且默认行为不变;已通过单测、offline checks 和 local demo readiness。
  • 2026-05-04 完成 Training M40 维护优先下的上游 case quality 提升:新增公开只读 quality 信号对象,覆盖 Training case list/detail/export 和 dashboard 展示;质量信号由公开字段衍生,不泄漏私有解题信息;已通过单测、offline checks 和 local demo readiness。
  • 2026-05-04 完成 Backtest by_symbol 质量拆分:repository 直接联表拿 instruments.symbol,backtest outcome meta 写入 signal_symbol,summary 新增 by_symbol,dashboard backtest 卡片新增 symbol 摘要入口;已通过单测、offline checks 和 local demo readiness。
  • 2026-05-04 完成 Execution / Backtest / Report 生命周期与指标口径统一:新增共享 backtest lifecycle contract,execution audit / settlement / dashboard item / post-trade review 与 backtest summary 统一使用 missed、invalidated_before_entry、tp1_reached、tp2_closed、stopped_out 等 canonical 状态;已通过单测、offline checks 和 local demo readiness。
  • 2026-05-03 完成 dashboard richer state UX 与 invalidations 状态码统一:signals 表格直接展示和筛选 structure_state / mss_status_reason / fvg_status_reason / warning,/signals API 输出新增 invalidations_normalized 与 signal_context,并对旧的人类可读 invalidations 做兼容归一化;已通过单测、offline checks 和 local demo readiness。
  • 2026-05-03 Propagated richer structure_state / MSS / FVG reason fields into report and API consumers, normalized /signals output, enriched report payloads, and revalidated with unit tests, offline checks, and local demo readiness.
  • 2026-05-03 Converged MSS accepted/rejected/invalidated semantics into explicit state metadata, persisted the latest MSS state for downstream consumers, exposed richer MSS/FVG reasons in signal metadata, and revalidated with unit tests, offline checks, and local demo readiness.
  • 2026-05-03 Fixed the run_dev.py exit bug by turning it into the persistent local API/dashboard dev entrypoint, updated docs, and revalidated with unit tests, offline checks, and local demo readiness.
  • 2026-05-03 Implemented liquidity equal highs/lows merge-dedupe idempotency in the persistence path, stabilized exact dedupe keys, and normalized duplicate downstream displacement context selection in MSS/FVG with focused tests.
  • 2026-05-03 Hardened the replay-backed no-lookahead backtest mode, aligned replay swing-count expectations with existing outside-bar swing semantics, and revalidated with unit discovery, offline checks, and local demo readiness.
  • 2026-05-03 Cleaned the docs root, deleted duplicate docs, archived obsolete/history docs, moved workflow helpers into docs/workflow, and wrote docs/AI_ICT_当前开发方案_v2.md.
  • 2026-05-03 Ignored local .hermes/ state and geckodriver.log; kept uv.lock visible for version control.
  • 2026-05-02 Added Codex multi-project workflow files for independent continuation.