← 归档索引 · 2026-10-14 15:37 · 量价训练-每日提醒
# Cron Job: 量价训练-每日提醒 (FAILED)

**Job ID:** ea96f4ceec38
**Run Time:** 2026-10-14 15:37:38
**Schedule:** 30 15 * * 1-5

## Prompt

[IMPORTANT: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. SILENT: If there is genuinely nothing new to report, respond with exactly "[SILENT]" (nothing else) to suppress delivery. [SILENT] is a literal ASCII control token — never translate or rephrase it, whatever language the rest of your answer uses. Never combine [SILENT] with content — either report your findings normally, or say [SILENT] and nothing more. FAILURE: If a delegated child fails and this cron run must be recorded as failed, put [CRON_FAILURE] on the first line by itself, then explain the child failure on following lines. RECURSION: This is a run of an EXISTING scheduled job — execute the task now. NEVER create or update a cron job because of recurring or future-schedule language in the task prompt below; treat phrasing like "each Monday" or "every day at 9" as context for this run, not as a request to schedule another job.]

## Script Output
The following data was collected by a pre-run script. Use it as context for your analysis.

```
Collected 4 indices, 41 stocks → /tmp/daily_market_data.json

📊 因果基因
- 数据源: data_hub(指数/个股日线+资金流) → /tmp/daily_market_data.json + /tmp/three_heart_data.json 共享缓存
- 分析路径: 交易日门 → 采集当日三心法/大盘字段 → 写共享缓存 → 分发到各消费目录
- 判断: 缓存文件落盘且非空=ready;非交易日/采集失败=告警不写半截缓存
report_data_collector: data ready for agent
```

每日量价训练提醒:
1. 运行 `cd /home/ubuntu/stock_workspace && python3 vol_price_trainer.py --save` 对投资池内3只票做五问因果链分析
2. 输出今日训练结果(位置/量态/量价/主力/操作/模式)
3. 如果有7天前未验证的判断,运行 `python3 vol_price_trainer.py --verify` 验证
4. 简要汇报:今日训练几只,命中率趋势

注意:这是训练任务,目标是积累数据和提升判断能力,不是做交易推荐。

📊 因果基因(每次输出末尾必带,三要素从脚本真实行为取):
- 数据源: /tmp/daily_market_data.json + /tmp/three_heart_data.json(report_data_collector.sh 采集,带 is_trading_day 门);个股量价取自 data_hub 日线
- 分析路径: vol_price_trainer 五问链 Q1位置→Q2量态→Q3量价匹配→Q4主力意图→Q5操作建议 逐层作答并落库;--verify 用7日后真实走势回填此前判断算命中率
- 判断: 今日训练样本数 + 累计命中率趋势(升/降/持平)+ 未验证条数;数据未就绪或非交易日时明说跳过,不编造训练结果

## 产出规范(四性·应用性;2026-10-12 老板令「所有 cron 要有关联性/逻辑性/应用性」)
1. **判断落账(必做,除非本次无判断)**:凡产出含方向性判断(看多/看空/回避/中性 + 可核对的触发条件),必须落 judgment_ledger:source=量价训练-每日提醒、date、direction、horizon、trigger、falsify(可自动核对,不写「注意风险」这种空话)、judgment、reason([数据源][路径][判断] 三要素齐全,写入端拒收空件)。纯数据播报 → 跳过落账,并在报告里写明「本次无判断落账」。
2. **归档 IMA(强制,写完报告后必做)**:最终报告必须归档到 IMA(与 QQ 投递内容完全一致):
```
cat > /tmp/量价训练-每日提醒_$(date +%Y%m%d).md << 'REPORT_EOF'
[在此粘贴你的完整报告全文,一字不差]
REPORT_EOF
timeout 60 bash ~/.hermes/scripts/upload_stdin_to_ima.sh "量价训练-每日提醒_$(date +%Y%m%d)_完整版" < /tmp/量价训练-每日提醒_$(date +%Y%m%d).md >/dev/null 2>&1
```
归档成功后再输出最终报告(系统自动投递 QQ);归档失败在报告末尾标注「⚠️ 归档失败」。
3. **先数据后判断**:引用上方【数据摘要】的具体数字;数据段标了 [不可用] 就首行声明数据不全,禁止照常下结论。

## Error

```
Traceback (most recent call last):
  File "/home/ubuntu/.hermes/hermes-agent/cron/scheduler.py", line 2624, in run_job
    final_response = _final_response_from_result(result, job_id, job_name, AIAgent)
  File "/home/ubuntu/.hermes/hermes-agent/cron/scheduler.py", line 2104, in _final_response_from_result
    raise RuntimeError(result.get("error") or final_response_text or "agent reported failure")
RuntimeError: HTTP 429: Too Many Requests

```