Skip to content

做什么(One-liner)

Canvas LLM-in-the-loop 策略生成:regime + symbols → Fin-R1 生成 Python 配对交易代码 + 解释 → 可选 Python 仿真。Tier 5 attestation 轨道(非 Tier 4 数值 tolerance)。

怎么用

macro_factor_v1 (regime=expansion) → casa_strategy_v1 (SPY+TLT)
                                      → strategy_code (momentum pair trade)
                                      → [run-sandbox Docker 执行]
                                      → risk_management_v1

核心公式

见 frontmatter。流程:generate-strategy LLM → extract Python code → optional dual-agent-simulate → 组合返回。

假设与适用场景

假设:Fin-R1 / cloud LLM 可用 + 代码块 extract 成功 + Python sim 尾已 golden。

适用:宏观 regime 驱动的配对策略自动生成、scenario 分析、LLM-finance demo。

不适用:实盘、HFT、byte-deterministic 监管 demo。

已知局限

详见 frontmatter。6 点:LLM non-determinism / prompt drift / mock fallback / 独立 Python sim / LLM 延迟 / sandbox 独立。

参考文献

  • SUFE-AIFLM-Lab/Fin-R1 — 本地 LLM
  • Pangura Internal Prompt Library (2026-03) — prompt templates

Golden Test

Tier 5 attestation 轨道。Python 尾(simulate_dual_agent)由 tests/golden/fixtures/tier4/casa_dual_agent/ 覆盖。LLM 部分需:prompt_cid + model pin + ≥3 attestation(Phase B 框架搭好后)。

Changelog

  • 1.0.0 (2026-04-21) — 首次 Active(Tier 5 attestation 轨道)

Verifiable intelligence for the decisions that demand scrutiny.