SuperAPI AI 工具集

edge-pipeline-orchestrator

数据与分析

查看项目

更新于 10-16 07:21

技能介绍

用途:把 edge 研究的多个阶段串成一次自动化流水线运行,从工单(tickets)或 OHLCV 数据出发,直到导出策略。适用场景包括:跑完整流水线、从 drafts 阶段恢复未完成任务、对已有策略草稿做带反馈回路的评审与修订、以及不导出的干跑预览。

主要能力:按 CLI 参数加载流水线配置;提供 --from-ohlcv 时先运行 auto_detect 阶段,从原始 OHLCV 生成 tickets;运行 hints 阶段从市场摘要与异常中提取 edge 提示;运行 concepts 阶段综合抽象 edge 概念;运行 drafts 阶段设计策略草稿;随后进入评审—修订反馈回路(最多 2 轮),PASS 与 REJECT 分别累积,REVISE 触发 apply_revisions 并重新评审,超过轮数仍为 REVISE 的降级为 research_probe;最后导出符合条件的草稿(PASS + export_ready_v1 + 可导出的 entry_family),并写出 pipeline_run_manifest.json 记录完整执行轨迹。

使用方式:例如完整流水线 python3 scripts/orchestrate_edge_pipeline.py --tickets-dir path/to/tickets/ --output-dir reports/edge_pipeline/;从 OHLCV 运行加 --from-ohlcv path/to/ohlcv.csv;恢复运行用 --resume-from drafts 加 --drafts-dir;仅评审用 --review-only;干跑加 --dry-run。可选参数包括 --as-of、--strict-export、--max-synthetic-ratio、--overlap-threshold、--no-dedup。也可在 Claude Code 内做 LLM 增强流程,生成 hints YAML 后用 --llm-ideas-file 与 --promote-hints 运行。注意 --llm-ideas-file 与 --promote-hints 仅在完整流水线运行时生效,--resume-from drafts 或 --review-only 会跳过 hints/concepts 阶段而忽略这些参数。产出目录包含 pipeline_run_manifest.json、tickets/、hints/hints.yaml、concepts/edge_concepts.yaml、drafts/.yaml、exportable_tickets/.yaml、reviews_iter_0/*.yaml(必要时 reviews_iter_1)以及 strategies/<candidate_id>/ 下的 strategy.yaml 与 metadata.json。更多细节见 references/pipeline_flow.md 与 references/revision_loop_rules.md。