360 Secure SkillHub
360 安全技能中心

Dawn Proactive Agent v1.5

这是专为A股市场打造的自主ETF交易代理,基于P0-P4架构,核心功能含自反思引擎、状态工作流、审计追踪、4D多维评分及安全护栏。支持每日早盘策略执行、午间检查、收盘复盘及手动交易等场景,通过命令行触发,输出交易决策、结构化日志等,具备自修复与风控能力,曾参与华泰柏瑞杯ETF AI交易赛。

chen6896qqwee
chen6896qqwee
热度 21.34
最近更新 2026-07-06 15:30:01
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:数据处理 / 自动化脚本 / 财务 / 工作流 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dawn-proactive-agent
Metadata
name
dawn-proactive-agent
description
Dawn Agent v1.5 self-evolution proactive architecture. P0-P4 framework for autonomous ETF trading agent with self-reflection, state machine, audit trail, multi-dimension scoring, and safety guardrails.
metadata
{"openclaw":{"requires":{"bins":["python"]},"runtime":"python","permissions":[{"network":["api.zhangle.com","push2.eastmoney.com","quote.eastmoney.com","www.sina.com.cn"]},{"filesystem":["read/write workspace"]},{"exec":["python"]}]}}

Dawn Proactive Agent v1.5

An autonomous, self-evolving ETF trading agent architecture designed for the A-share market.

Architecture Overview

┌─────────────────────────────────────────────────────┐
│              Dawn Proactive Agent v1.5              │
├─────────────────────────────────────────────────────┤
│  P0: dawn_reflect.py    Hermes-inspired reflection  │
│  P1: dawn_state.py      LangGraph state machine     │
│  P2: dawn_audit.py      RagaAI audit trail          │
│  P3: dawn_analysis.py   ai-berkshire 4D scoring     │
│  P4: dawn_guardrails.py OpenAI Agents safety        │
├─────────────────────────────────────────────────────┤
│       Active in: 华泰柏瑞杯ETF AI交易巅峰赛          │
│       Period: 2026/6/11 - 2026/7/20                 │
│       Portfolio: 8 ETFs, ~¥1M AUM                    │
└─────────────────────────────────────────────────────┘

Components

P0 - Self-Reflection Engine (dawn_reflect.py)

Hermes-inspired post-trade reflection. After every portfolio adjustment, automatically extracts lessons learned and loads them into the next decision cycle.

  • Trigger: post-trade callback
  • Output: structured learnings with recall scoring
  • Integrates with .learnings/ structured log system

P1 - State Machine (dawn_state.py)

LangGraph-inspired workflow orchestration with checkpoint/resume.

  • States: IDLE → ANALYZE → DECIDE → EXECUTE → REFLECT → IDLE
  • Checkpoint recovery on timeout/crash
  • Timeout downgrade: auto-fallback to safest state

P2 - Audit Trail (dawn_audit.py)

RagaAI-inspired immutable decision logging.

  • Every decision recorded: timestamp, reasoning, data sources, signals, outcome
  • Queryable by date/strategy/symbol
  • Exports as structured JSON for backtesting

P3 - Multi-Dimension Scoring (dawn_analysis.py)

ai-berkshire-inspired composite scoring for ETF selection.

  • Technical (30%): momentum, trend, volume
  • News Sentiment (25%): real-time financial news analysis
  • Capital Flow (25%): sector money flow tracking
  • Volume-Price (20%): volume-price divergence detection

P4 - Safety Guardrails (dawn_guardrails.py)

OpenAI Agents SDK-inspired transaction safety checks.

  • Blacklist: 科创板(688) and ST stocks blocked
  • Position limits: max 40% single ETF
  • Daily loss limit: max -5% stop-loss
  • Available cash check before execution

Usage

Daily Strategy Run (09:28)

python scripts/dawn_proactive.py --action morning

Post-Market Review (15:05)

python scripts/dawn_proactive.py --action afternoon

Midday Check (11:30)

python scripts/dawn_proactive.py --action midday

Manual Trade

python scripts/dawn_etf_rotator.py --execute

Files

File Purpose
scripts/dawn_proactive.py Main orchestrator
scripts/dawn_etf_rotator.py ETF rotation strategy
scripts/dawn_reflect.py P0: Self-reflection
scripts/dawn_state.py P1: State machine
scripts/dawn_audit.py P2: Audit trail
scripts/dawn_analysis.py P3: 4D scoring
scripts/dawn_guardrails.py P4: Safety guardrails
scripts/dawn_memory_sync.py L1↔L3 memory sync
scripts/dawn_collector.py Market data collection
scripts/dawn_selector.py ETF selection logic
scripts/dawn_monitor.py Real-time monitoring

Results (2026-07-06)

  • Cron jobs: 10 automated tasks running daily
  • Portfolio: 8 ETFs, 38.2%仓位, ¥1,003,751
  • Key wins: 科创板V反守住(+0.69% on 07-03), 全天候自动运行
  • Self-healing: 收盘复盘cron timeout自动修复 (agentTurn→command模式)
  • Delivery: 飞书推送自动修复 (delivery.to user:前缀)

See samples/proactive_demo.md for a full session trace.

Changelog

v1.5 (2026-07-06)

  • P0-P4 framework complete
  • Cron self-healing: timeout 120s→300s, agentTurn→command mode
  • Delivery fix: feishu user: prefix
  • Git cleanup: 380K lines of old archive deleted

v1.0 (2026-06-24)

  • Initial dawn agent framework
  • LM Studio + DeepSeek-R1 local inference
  • Memory sync and knowledge injection