← 归档索引 · 2026-10-26 23:32 · 信号纵向跟踪+反馈闭环-23:15(原23:30并入·2合1)
# Cron Job: 信号纵向跟踪+反馈闭环-23:15(原23:30并入·2合1)

**Job ID:** c85cc7fd1251
**Run Time:** 2026-10-26 23:32:08
**Schedule:** 15 23 * * 1-5

**Prompt Characters:** 7699
## Prompt

[IMPORTANT: The user has invoked the "script-output-integrity" skill, indicating they want you to follow its instructions. The full skill content is loaded below.]

---
name: script-output-integrity
description: 消费预跑脚本注入的数据时加载。先判数据真假再分析,识别假成功/降级/空段并标注完整度。
version: 1.0.0
author: Hermes Agent
license: MIT
category: fugui
tags: [data-integrity, silent-failure, consumer-side, cron]
metadata:
  hermes:
    tags: [data-integrity, silent-failure, consumer-side, cron]
    related_skills: [silent-failure-defense, pan-gan-signals]
---

# 消费脚本输出 —— 先判真假,再分析

> 面向**读**注入数据的人(分析 cron),不是**写**脚本的人。
> 建造侧(怎么写不产生假成功)看 `silent-failure-defense`。

## When to Use

```
□ prompt / 上下文里出现「预跑脚本输出」「Script Output」「以下数据由预跑脚本采集」
□ 要用脚本采集的数据做判断、写报告
□ 某段数据看起来"有内容"但可疑(一行字样、空段、括号里的说明)
```

## 铁律:数据段先过完整性,再进入分析

**禁止把「缺失/降级」当作「正常数据」分析。** 缺失要标注,不要脑补。

### 识别清单(按严重度)

| 形态 | 真实含义 | 动作 |
|---|---|---|
| `xxx.sh: timeout` | **该段根本没跑**(不是"超时所以没数据")。典型是 `timeout N cd` 类缺陷 | 该段判为【零数据】,禁用其做主力判断 |
| `failed to run command '...'` | 内建命令被 timeout 包住 → 整段从未执行 | 同上 |
| `Traceback` / `ModuleNotFoundError` | 该段完全不可用 | 同上 |
| `❌<名> 失败(rc=N)` | 该段采集失败(已诚实上报) | 标注缺失,相关结论降级 |
| `(xxx不可用)` / `[超时]` / `数据采集失败` | 降级标记,段落内容为空 | 标注缺失 |
| `[SILENT]` | 无内容(合法语义:无异常/无新增) | 不要当数据,也不要当错误 |
| 空段 / 只有标题 | 采集为空 | 标注缺失 |
| 接口**无报错返回空 DataFrame** | 路由瞬时降级(非"今天无数据") | 重试一次再定性;仍空 → 判缺失 |

> 实测(2026-09-28 12:05):`data_hub.get_realtime_quotes(8 codes)` 一次返回 0 行**且不抛异常**,同一批码 30 秒后重跑全部正常 → 是瞬时静默降级。
> 判据:**空/无异常 ≠ 无数据;先重试,再定性**。消费侧把"空"当"没有"会导致整段结论凭空消失。

### 必须做的三件事

```
1. 报告开头标注完整度:「数据完整度: N/M 段可用」,缺失段逐条列名
2. 缺失段对应的结论 → 标注「基于间接推理 / 置信度降级」,不得伪装成实测
3. 禁止:用缺失段当论据;用"数据暂缺"当结论;脑补缺失段的内容
```

### 反面案例(实测,2026-09-11)

```
## Script Output
【午间扫描 | 2026-09-11 12:00】
midday_scan.sh: timeout        ← 整块市场数据就是这一行假的
【心法扫描 | 2026-09-11 12:00】
════ Phase 0: 板块主力方向 ════
```

该报告被连续数周当成正常午间分析发出,AI 拿着这行假消息当市场数据做判断。
**根因:消费侧没有"先判真假"这一步。**

### 一句话判据

**看到数据段,先问「这段是真的吗」,再问「这段说明什么」。**
顺序反了,后面全废。

The user has provided the following instruction alongside the skill invocation: [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.]

## Output from job 'f06f0ff60f0c'
The following is the most recent output from a preceding cron job. Use it as context for your analysis.

```
# Cron Job: 进化简报-每日22:55(回测结果→明日校准)

**Job ID:** f06f0ff60f0c
**Run Time:** 2026-10-26 22:55:34
**Mode:** no_agent (script)

---

📈 进化简报 2026-10-26(窗口14天)
  回测率: 100.0%(508/508 条近期判断已回测)
  累计: 落账2269 已决1715 待决0
  总命中: 51.9% [48~56%] n=511 (上期 16.4%) | 平均超额 -0.12pp
  ── 分方向 ──
    回避     n=263 命中 50.6% [45~57%] 超额-0.3pp
    看空     n= 95 命中 52.6% [43~62%] 超额-0.1pp
    看多     n= 73 命中 52.1% [41~63%] 超额+0.4pp
    中性     n= 68 命中 57.4% [46~68%] 超额-0.5pp
    观察     n= 10 命中 50.0% [24~76%] 超额+4.0pp
  ── 来源可信度(n≥10 才列)──
    - 四维扫描                           n=287 53.0%
    - 节点转折+ftshare扫描-21:45           n= 33 54.5%
    ✗ 量价训练-每日提醒                      n= 30 33.3%
    ✗ 盘中-1130午盘                      n= 26 42.3%
    - 龙头融合+确认链-21:40                 n= 26 57.7%
    ✓ 盘中-1500收盘                      n= 17 64.7%
    ✗ 晚间统一扫描-21:30                   n= 13 23.1%
    ✓ 盘中-1030主线                      n= 12 66.7%
  ⚪ 未排期部件(2026-10-17 裁决: jobs.json 里 0 个 cron,不计入停摆;恢复=先排期再移回 LOOP_PARTS):
     · 超额制全量重算
     · 经验学习闭环
     · 每日判断练习仪(老板10-05指定)
  用法: 下判断前先看本简报 —— 上面✅的来源可以更信,✗的来源要打折;🔴停摆部件是系统盲区。
```

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

```
=== 信号纵向跟踪 ===
验证/回填: 143条
更新261条
信号总数: 191 | 已完整验证(T+20齐): 51 | 跟踪中(未到T+20): 140

          类型   数量    T+5命中    T+5均值
----------------------------------------
    breakout    9  1/9=11%    -5.2%
      launch   86 17/72=24%    -7.0%
  pre_launch   96 24/80=30%    -3.4%

最近信号:
  2026-10-23 康龙化成(300759.SZ) T5=- -
  2026-10-22 君实生物(688180.SH) T5=- -
  2026-10-22 普冉股份(688766.SH) T5=- -
  2026-10-22 赢时胜(300377.SZ) T5=- -
  2026-10-22 博创科技(300548.SZ) T5=- -
  2026-10-22 新易盛(300502.SZ) T5=- -
  2026-10-22 长飞光纤(601869.SH) T5=- -
  2026-10-22 中际旭创(300308.SZ) T5=- -
信号纵向跟踪报告
============================================================
总计: 731只 | 命中(T+5>2%): 142只 命中率19% | 平均T+5=-2.9%

来源                     数量    命中率    平均T+5   平均T+20
--------------------------------------------------
  low_launch          435    19%    -3.8%   -15.7%
  dragon_preselect    273    19%    -1.8%   -12.6%
  pre_launch           19    32%    +1.1%    -5.2%
  launch                3    33%    -0.7%    -4.0%
  breakout              1     0%    -4.0%   -11.7%

板块                 数量    命中率    平均T+5
----------------------------------------
  半导体             202    20%    -5.6%
  汽车配件             42    14%    -2.7%
  电气设备             39     8%    -5.5%
  通信设备             35    20%    -2.0%
  生物制药             31    16%    -4.0%
  中成药              27    22%    -0.2%
  塑料               24    21%    -1.5%
  未知               23    30%    +0.6%
  化工原料             23     9%    -4.7%
  机械基件             23    30%    -2.1%

趋势: 最近7天命中率31% vs 之前18% ↑提升
=== 参数反馈 ===
{
  "pre_launch": {
    "hit_rate": 31.6,
    "count": 19,
    "avg_t5": 1.09
  },
  "launch": {
    "hit_rate": 33.3,
    "count": 3,
    "avg_t5": -0.7
  },
  "breakout": {
    "hit_rate": 0.0,
    "count": 1,
    "avg_t5": -4.04
  },
  "dragon_preselect": {
    "hit_rate": 19.4,
    "count": 273,
    "avg_t5": -1.81
  },
  "low_launch": {
    "hit_rate": 18.9,
    "count": 435,
    "avg_t5": -3.8
  }
}

📊 信号反馈日报(原23:30 并入本段)
记录3个新信号 | 验证/回填143条历史信号
──────────────────────────────
  pre_launch_5日: 24/80 = 30%
  pre_launch_10日: 19/65 = 29%
  pre_launch_20日: 10/35 = 29%
  launch_5日: 17/72 = 24%
  launch_10日: 6/48 = 12%
  launch_20日: 0/10 = 0%
  breakout_5日: 1/9 = 11%
  breakout_10日: 0/9 = 0%
  breakout_20日: 0/6 = 0%
```

信号纵向跟踪:1) signal_feedback.db 渐进验证(缺T+20的行持续回填,未到T+20不提前落标);2) 更新 signal_track.json 所有信号的 T+1/T+3/T+5/T+10/T+20 快照;3) 输出 signal_feedback.db 类型命中率报告(阈值统一2%);4) 有已完成信号时输出各来源/板块命中率与参数反馈(low_launch/dragon_preselect 来源,数据齐了自然出现,无数据不硬凑)。

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

**Response Characters:** 1206
## Response

📊 **信号纵向跟踪日报 2026-10-26**

**数据完整度: 6/6 段可用**(验证回填/类型命中/最近信号/来源板块/参数反馈/反馈日报全有真实内容,无timeout/空段/降级标记)。关键数字已直查 signal_track.json(1012条) 与 signal_feedback.db(194条) 交叉核验一致。

**① 双源负期望维持(样本加码到708只,结论不变)**
low_launch(435只) 命中19%/均值-3.80%,dragon_preselect(273只) 命中19%/-1.81%;合计 n=708、命中19%、平均T+5 **-3.03%**。比10-23的643只再扩65只,系统性负期望进一步证实 → 继续停止跟单该两源新信号。

**② ⚠️"近7天命中31%↑"是单日批次假象,不是修复**
我直查 entry_date:那65只"近7天"样本**全部来自10-19单日**(唯一值=2026-10-19),自由度≈1,且反弹beta未剥离。与10-23判断(id 2935)同款病灶,证据不成立。

**③ pre_launch 降级:命中率稳定掩盖赔率结构坏**
小样本(n=19) +1.09% 的"唯一正期望"只在小样本成立;大样本 signal_feedback.db(n=96) 命中率跨期稳定(30%/29%/29%)但**均值全负**(T+5 -3.36% / T+10 -6.55% / T+20 -11.5%)——赢小输大,降为≤5日短窗参考。

**④ launch/breakout 持有期越长越亏**
launch(n=89):T+5 24%/-6.98% → T+10 12%/-14.69% → T+20 **0%命中**/-13.82%;breakout(n=9) T+20 均值**-27.61%**。今日新落3条launch(长飞光纤/生益科技/沪电股份,PCB光通信链)→ **不作买入依据**。

**判断落账 3条(judgments.db jid 3024-3026,已回读验证)**
- 3024 回避|双源新信号|证伪:两源合计滚动窗口T+5命中≥45%且均值≥0%连续5日
- 3025 中性|pre_launch源|证伪:大样本n≥96平均T+5与T+10转正
- 3026 回避|launch/breakout诊断信号|证伪:两类滚动样本T+5命中≥45%且均值≥0%

**一句话**:信号系统三大来源(双源/pre_launch/launch+breakout)**全部负期望**;今日3条新launch不跟,唯一"好转"数字(31%↑)经查是单日批次+beta,不构成修复证据。

(IMA归档 信号纵向跟踪-每日2315_20261026_完整版 已成功,rc=0 且错误日志今日无条目)