知微
|
90966c63ca
|
chore: 同步运行版本与git一致
- strategy_lifecycle.py: GATE_9D_ANALYSIS → GATE_12D_ANALYSIS(12维交叉验证)
- system_audit.py: 审计策略评估改用holding_strategies.updated_at
- CHANGELOG.md + analyst-knowledge-log.md 日常更新
|
2026-07-17 23:08:11 +08:00 |
|
知微
|
b4a5020cf5
|
fix: 暴跌告警仅持仓触发 + 状态立即持久化防重复推送
|
2026-07-14 15:33:35 +08:00 |
|
知微
|
2c0d6ff587
|
fix: Gateway看门狗v2 — 新增session健康检查,卡死自动重启
|
2026-07-14 15:00:56 +08:00 |
|
知微
|
c9ae1e143b
|
fix: cron_to_xmpp取最后一个Response节防误判(parts[1]→parts[-1])
|
2026-07-14 12:14:08 +08:00 |
|
知微
|
377bb4d1e4
|
price_monitor: 5min regenerate_all冷却 + 跳过冗余全量重评
|
2026-07-14 11:48:34 +08:00 |
|
知微
|
d972553b6e
|
fix: divergence_detector 改用新浪API直接获取指数数据(原mo_data不支持指数代码)
|
2026-07-14 11:08:07 +08:00 |
|
知微
|
136f3f9fb8
|
sync scripts/mofin_db.py with root + knowledge log
|
2026-07-14 11:01:59 +08:00 |
|
知微
|
59e94d135c
|
fix: 盘中脚本统一使用get_conn()替代raw sqlite3.connect防DB死锁
- mofin_health.py, cron_health_monitor.py, intraday_health_check.py,
self_todo_executor.py: 替换raw sqlite3.connect() → get_conn()
统一使用WAL模式+busy_timeout=30s连接
- mofin_db.py: get_conn()每次新建连接时WAL checkpoint
防止被kill进程残留WAL导致后续全部卡死
- 并发测试验证: 3x price_monitor + 3x mofin_health同时运行
6/6通过,WAL仅32bytes
关联问题: 2026-07-14 SQLite写锁死锁根因诊断
|
2026-07-14 10:56:38 +08:00 |
|
知微
|
3ee3d9ba6c
|
fix: price_monitor添加os.nice(10)降低优先级减少DB竞争
|
2026-07-14 10:47:58 +08:00 |
|
知微
|
93dce81413
|
fix: price_monitor DB写锁死锁根治 + mofin_db.py reassessed_at同步
1. price_monitor.py: 统一BEGIN IMMEDIATE包裹所有DB写操作,
5次重试+指数退避(1→2→4→8→16s),重试耗尽后自动
emergency WAL checkpoint,try/finally确保conn释放
2. 补充进程锁:防止cron每2分钟触发但脚本跑3分钟时的并发
3. mofin_db.py: 同步cron版本的reassessed_at列处理逻辑
|
2026-07-14 10:42:54 +08:00 |
|
知微
|
02d1c93923
|
fix(price_monitor): DB写锁死锁根治 - 统一BEGIN IMMEDIATE + 5次重试指数退避 + emergency WAL checkpoint
- 统一一个BEGIN IMMEDIATE事务包裹所有写操作,替代独立写函数调用
- 5次重试 + 指数退避 (1s,2s,4s,8s,16s),原3次+固定2s
- 重试耗尽后自动 emergency WAL checkpoint(TRUNCATE)释放死锁
- try/except确保连接始终释放,修复conn泄漏
- 三副本同步:profile/scripts + MoFin/scripts + MoFin/root
|
2026-07-14 10:30:15 +08:00 |
|
知微
|
9239ab40c0
|
docs: 更新CHANGELOG + 开发日志记录07/13全部变更
- XMPP Bot非阻塞/本地XMPP/MUC修复
- price_monitor推送冷却持久化
- 深套股规则重构+换股规划swap-plan
- 周月线技术分析增强
- 健康Tab写无读清零
- stale_push_wlin/per_stock_reassess/promote_candidates更新
- static/index.html + mofin_health.json + server.py同步
|
2026-07-13 12:09:25 +08:00 |
|
知微
|
2109289668
|
feat: 换股规划 swap-plan — 深套股可替代性排序+资金释放方案
- print_swap_plan(): 五维评分(亏损程度/仓位/技术趋势/流动性/前景)
- 排序输出,明确标注"当前亏损X%深套"而非"深套持有"
- --need 参数模拟指定资金需求,自动计算卖几只够
- 可独立运行:python strategy_lifecycle.py swap-plan [--need 金额]
|
2026-07-13 12:05:36 +08:00 |
|
知微
|
a6d37c6f30
|
fix: 删除深套股全部硬编码限制——该加就加,一切根据客观判断
- 删除 is_deep_loss 对止损/止盈/买入区/推荐的全部 guard
- 删除 action_note="深套持有" 覆盖
- 删除 position_advice="不补不割" / time_horizon="长期"
- 深套股回归正常分析流程,stock_category="深套"仅作标签
- "深套持有" 改为 "亏损X%深套" 实际状态描述
|
2026-07-13 12:02:06 +08:00 |
|
知微
|
be961c6af6
|
fix: _push_cooldown持久化到文件,避免每2分钟重复推送操作区间通知
|
2026-07-13 11:17:59 +08:00 |
|
知微
|
ab72288296
|
fix: stock_weekly/monthly/watchlist_log加manual readers消除写无读警告
|
2026-07-10 21:12:28 +08:00 |
|
知微
|
e92e4473c8
|
feat: 周线+月线趋势/MA/支撑阻力注入mtf_context
|
2026-07-10 21:07:59 +08:00 |
|
知微
|
ea139b05b0
|
fix: 每日汇总只发一次(16:35)+加sent标记防重复
|
2026-07-10 17:05:29 +08:00 |
|
知微
|
e2f02ad023
|
fix: 资金流采集器正常运行(修import+科创板null处理)
|
2026-07-10 14:06:20 +08:00 |
|
知微
|
ea07d8c8df
|
feat: 买入信号写入时自动推XMPP通知(通过5805桥)
|
2026-07-10 13:58:23 +08:00 |
|
知微
|
49ef74826a
|
fix: 触发重评推送条件收紧(仅买入/加仓/卖出/止盈信号才推)
|
2026-07-10 13:43:39 +08:00 |
|
知微
|
b9ba737248
|
fix: 不构成操作建议不推XMPP+代码降级改报错+LLM失败=None
|
2026-07-10 13:29:32 +08:00 |
|
知微
|
ba70700e4d
|
fix: 代码降级分析也加时间标注+LLM路径日志改为12维
|
2026-07-10 13:23:34 +08:00 |
|
知微
|
98d6189b69
|
feat: 每维数据标注时间窗口(MA日数/资金近5日/消息最近3条/财报最新)
|
2026-07-10 13:17:40 +08:00 |
|
知微
|
005903af83
|
fix: 9维→12维(3横×4纵:大盘/行业/个股×基本面/消息面/技术面/资金面)
|
2026-07-10 12:47:05 +08:00 |
|
知微
|
c79fb53722
|
feat: 盘前全量重评(08:10)+自选退出机制+进出日志
|
2026-07-10 12:20:18 +08:00 |
|
知微
|
8d733ca16a
|
fix: deploy_sync新增mofin_db.py同步(根目录→profile)
|
2026-07-10 11:59:08 +08:00 |
|
知微
|
7f65f0cbd2
|
fix: 九维分析全面升级-资金流+消息面入prompt+交叉综合+capital_flow_collector修mo_data引用
|
2026-07-10 11:45:03 +08:00 |
|
知微
|
c48429b994
|
feat: 单日暴跌>7%实时告警(不依赖zone边界)
|
2026-07-10 11:30:46 +08:00 |
|
知微
|
73df767ac0
|
fix: 买入区用live_prices+统一DB读取+报告前验价
|
2026-07-10 10:26:14 +08:00 |
|
知微
|
dbff6b59f9
|
fix: write_holding_strategy保留full_analysis+reassessed_at防止被清空
|
2026-07-10 09:53:15 +08:00 |
|
知微
|
e461c57028
|
fix: stale_detector零标记漏洞(买入区上沿~+20%未覆盖)
|
2026-07-10 09:43:27 +08:00 |
|
知微
|
9905294496
|
chore: 清理残留mo_data.py+数据文件
|
2026-07-10 01:30:27 +08:00 |
|
知微
|
c4de7d6516
|
docs: 补充今日全量变更文档(扫描/过滤/九维/仓位/冷却/清理)
|
2026-07-10 01:30:11 +08:00 |
|
知微
|
66c3cfecc3
|
fix: 健康监控全绿(小果cron移除+死表清理+补录写入方)
|
2026-07-10 01:02:52 +08:00 |
|
知微
|
b63bfc11f5
|
fix: 仓位输出要求带一句话理由
|
2026-07-10 00:54:57 +08:00 |
|
知微
|
ebc3a15f73
|
fix: 仅买入信号输出仓位+仓位计算公式(RR/大盘/品种)
|
2026-07-10 00:14:52 +08:00 |
|
知微
|
7026959f58
|
fix: 信号-仓位一致性校验(观望/卖出→0%, 关注≤5%)
|
2026-07-10 00:09:38 +08:00 |
|
知微
|
02268405e2
|
fix: 仓位改为百分比数字(轻仓3%/中仓5%/重仓10%)
|
2026-07-09 23:21:26 +08:00 |
|
知微
|
016258bc09
|
feat: 批量LLM九维分析+仓位建议列+Dashboard显示
|
2026-07-09 23:16:47 +08:00 |
|
知微
|
0c6dd82b30
|
fix: price_monitor同股同区间30分钟冷却去重
|
2026-07-09 23:05:00 +08:00 |
|
知微
|
974c4b5d11
|
fix: 交易时段冷却4h→1h
|
2026-07-09 22:58:30 +08:00 |
|
知微
|
67c2502f52
|
feat: 重评冷却期+LLM信号产出+reassessed_at追踪
|
2026-07-09 22:51:26 +08:00 |
|
知微
|
c84fac58a9
|
fix: LLM九维分析超时改为300s+urllib导入修复
|
2026-07-09 22:39:10 +08:00 |
|
知微
|
bd653e300c
|
feat: per_stock_reassess调LLM写九维分析(gateway API)
|
2026-07-09 22:33:50 +08:00 |
|
知微
|
113119f1a6
|
fix: 九维分析全维度覆盖(9/9)+LLM调用通过报告cron实现
|
2026-07-09 22:15:36 +08:00 |
|
知微
|
9e26a3d226
|
fix: 九维分析补行业+消息面(signal_news)
|
2026-07-09 21:57:20 +08:00 |
|
知微
|
552645b307
|
fix: 价格从腾讯API实时拉(盘后可用)+行业从stock_sectors补
|
2026-07-09 21:30:54 +08:00 |
|
知微
|
35e2486e41
|
fix: 基本面直接从腾讯API拉(随时可用)
|
2026-07-09 21:25:08 +08:00 |
|
知微
|
538a6d3bba
|
fix: 九维分析大盘从DB读取+腾讯API兜底
|
2026-07-09 21:08:52 +08:00 |
|
知微
|
92aa8082c9
|
fix: 九维分析从DB拉取大盘+基本面数据
|
2026-07-09 21:03:25 +08:00 |
|
知微
|
e18dbfff6e
|
fix: 九维分析改为结构化叙事格式(①②③...)
|
2026-07-09 20:59:41 +08:00 |
|
知微
|
93dd2f8732
|
fix: 完整九维分析显示链接
|
2026-07-09 20:55:27 +08:00 |
|
知微
|
778b2137f6
|
fix: 完整九维分析存储+显示(可点击查看)
|
2026-07-09 20:52:53 +08:00 |
|
知微
|
14690a64e5
|
fix: 自选按信号优先级排序+策略显示tech_snapshot/sector_context
|
2026-07-09 20:24:43 +08:00 |
|
知微
|
4e3435c372
|
fix: per_stock_reassess NoneType比较bug(x3)
|
2026-07-09 20:17:21 +08:00 |
|
知微
|
823931860f
|
fix: 新入自选生成完整策略文本(买区/损/盈/RR)
|
2026-07-09 19:58:36 +08:00 |
|
知微
|
cc9e9e066e
|
fix: 自选Tab两行布局(策略全显)+新增RR列
|
2026-07-09 19:52:29 +08:00 |
|
知微
|
ffef8cdd29
|
fix: 自选Tab显示策略数据(买入区间/信号/策略)+live_prices涨跌
|
2026-07-09 19:49:07 +08:00 |
|
知微
|
bd744c252c
|
feat: 历史K线(Sina)驱动S2多日确认+10只新候选入自选
|
2026-07-09 19:42:35 +08:00 |
|
知微
|
a83c0ea11e
|
fix: watchlist API改用holding_strategies+市场Tabtrend变量
|
2026-07-09 19:24:45 +08:00 |
|
知微
|
223c708507
|
fix: 市场Tab候选管道JS语法错误
|
2026-07-09 19:21:07 +08:00 |
|
知微
|
057e87f0ab
|
feat: Dashboard市场Tab候选管道+S4资金流(外盘/内盘)+全链路测试通过
|
2026-07-09 19:07:08 +08:00 |
|
知微
|
81e100beb5
|
fix: S4改用腾讯外盘/内盘估算资金流向
|
2026-07-09 18:50:18 +08:00 |
|
知微
|
cd05b1fba6
|
feat: 五级过滤管道+全量A股导入+主力建仓扫描器
|
2026-07-09 18:21:27 +08:00 |
|
知微
|
93e0e0797b
|
opt: 100只/批+150ms间隔,全市场扫描41s→13.6s,频率15→10分
|
2026-07-09 17:57:17 +08:00 |
|
知微
|
5a7db4c4a9
|
feat: 主力建仓扫描器(量价特征)+全量A股5572只导入
|
2026-07-09 17:17:55 +08:00 |
|
知微
|
a36dff2b91
|
feat: 全市场异动扫描(替代小果)+自动提拔入自选
|
2026-07-09 17:09:45 +08:00 |
|
知微
|
3395b7711d
|
feat: 候选股自动推广脚本+盘中cron
|
2026-07-09 16:54:40 +08:00 |
|
知微
|
5279a61164
|
fix: 自选统一到holding_strategies(read_watchlist)+清理watchlist_stocks
|
2026-07-09 16:35:27 +08:00 |
|
知微
|
20f12f9342
|
fix: stale_push_wlin直接从holding_strategies扫描可操作信号
|
2026-07-09 16:17:00 +08:00 |
|
知微
|
a84dcfad42
|
feat: 自愈闭环-发现cron错→自动重跑脚本→成功自修复状态
|
2026-07-09 13:57:06 +08:00 |
|
知微
|
3878404a80
|
fix: cron健康监控发现问题→写TODO供自愈处理
|
2026-07-09 13:53:12 +08:00 |
|
知微
|
87b795f353
|
fix: 止盈区0.0美化显示+健康告警阈值放宽
|
2026-07-09 13:46:17 +08:00 |
|
知微
|
e9ff85c3b0
|
feat: 提示词一致性校验(preflight)+同步机制(deploy_sync)
|
2026-07-09 13:43:30 +08:00 |
|
知微
|
52e70bde26
|
fix: 14个LLM cron prompt添加数据真实性铁律(置顶)+注册到提示词系统
|
2026-07-09 13:38:36 +08:00 |
|
知微
|
f2d80d1948
|
fix: price_monitor重评后不可操作→发说明(不再静默)
|
2026-07-09 11:33:03 +08:00 |
|
知微
|
bfb3309bc2
|
fix: ~/.hermes路径分裂导致price_monitor冷却失效+去重
|
2026-07-09 11:13:45 +08:00 |
|
知微
|
0ad793d187
|
fix: generate_report.py代码层强制前置重评(LLM无法跳过)
|
2026-07-09 11:00:49 +08:00 |
|
知微
|
d2fe7e771f
|
fix: intraday_health_check + system_audit信号堆积监控盲区 — 增加全量未处理查询(非仅xiaoguo)
|
2026-07-09 10:50:50 +08:00 |
|
知微
|
77150c37d0
|
fix: price_monitor买入提醒改为🔔通知(非🛒推荐)+标明已触发重评
|
2026-07-09 10:45:28 +08:00 |
|
知微
|
8b53182e17
|
docs: 信号堆积修复文档 — CHANGELOG + analyst-knowledge-log
|
2026-07-09 10:40:28 +08:00 |
|
知微
|
9a71498b57
|
docs: update analyst-knowledge-log + CHANGELOG for stale_push_wlin refactor
|
2026-07-09 10:36:06 +08:00 |
|
知微
|
4cf8d2b191
|
fix: xiaoguo_signal_consumer信号堆积问题 — 使用SIGNAL_MAX_AGE_HOURS取代date(today)过滤,过期信号自动清理
根因: xiaoguo_signal_consumer仅处理今日信号(date(created_at)=today),
旧信号永远不被消费→33条堆积。SIGNAL_MAX_AGE_HOURS=4定义后未使用。
修复:
1. consumer: date(today) → created_at > -4h 年龄过滤
2. consumer: 无时效内信号时自动标记过期信号为已处理
3. consumer: 移除mo_data.get_price导入(import path冲突),改用腾讯API直连
fallback
4. intraday_health_check: 信号堆积检查也限定4h内,避免过期信号误报
5. system_audit: 同
|
2026-07-09 10:35:34 +08:00 |
|
知微
|
c745f1318a
|
stale_push_wlin: 按Dad确认流程重构推送逻辑
1. 加重评冷却(4小时)— 查holding_strategies.updated_at
2. 修zone_notes早退bug — 有区间说明时不静默退出
3. zone_notes冷却30分→4小时(匹配重评冷却)
4. 标题自适应:有推荐→自选买入提醒 | 仅区间提醒→操作区间提醒
5. 区间说明格式:'进入操作区间,但重评结果:x'
6. 操作建议标题只在有可操作项时显示
7. has_actionable判定改用实际lines内容
|
2026-07-09 10:33:50 +08:00 |
|
知微
|
a147085f1a
|
feat: 推送流程重构—进操作区间→重评→(可操作→推荐|不可操作→说明)
|
2026-07-09 10:26:53 +08:00 |
|
知微
|
96d9071b8f
|
fix: stale_push_wlin去重+清理34只重复watchlist_stocks
|
2026-07-09 10:03:17 +08:00 |
|
知微
|
ea750f2cb3
|
feat: 数据流Tab-28张表全量详细说明(写/读/总结)
|
2026-07-09 08:47:03 +08:00 |
|
知微
|
1e0bf0e00b
|
fix: JS大括号不平衡(重复if导致)
|
2026-07-09 08:38:40 +08:00 |
|
知微
|
50a7be1f59
|
feat: 功能树添加"说明"列(64项描述)
|
2026-07-09 08:32:13 +08:00 |
|
知微
|
9674e7ff1c
|
fix: 全部流程Tab添加profile过滤器,默认只看知微
|
2026-07-09 00:30:18 +08:00 |
|
知微
|
5139d46dc9
|
cleanup: 清理3张死表(stock_daily/weekly/monthly)+补录漏检写入方
|
2026-07-09 00:24:23 +08:00 |
|
知微
|
ccea9fcf09
|
cleanup: 去冗余+归档一次性脚本
- 移除重复的系统健康检查-每日(no_agent版,与LLM版重叠)
- 归档42个一次性脚本(移出MoFin/scripts→archive/scripts):
- fix_*: 历史数据修复(11个)
- migrate_*/rollback_*: 数据迁移(2个)
- 一次性数据修复: bulk/close/data_freshness等(16个)
- check_*/verify_*/diagnose_*: 历史诊断工具(12个)
- test_*: 测试脚本(3个)
- 84个活跃脚本, 0架构违规, 31张healthy数据表
|
2026-07-09 00:19:00 +08:00 |
|
知微
|
bd8f6b5dac
|
chore: 清理临时文件
|
2026-07-08 23:54:16 +08:00 |
|
知微
|
9fef32413b
|
refactor: 统一价格入口 mo_data.get_price() - 22个脚本移除自拉腾讯API
所有价格获取统一走 mo_data.get_price() / get_prices_batch():
- 优先读 live_prices(DB) → 无/过期才调 stock_quote(API) → 自动写回DB
- 22个脚本全部替换:branch_scanner chip_factors divergence_detector
market_screener mo_provider mofin_collect monitor_300308 300308_monitor
multi_timeframe refresh_macro_context stale_detector stale_push_wlin
stock_profile strategy_evaluator strategy_lifecycle strategy_review
strategy-staleness-check technical_analysis xiaoguo_signal_consumer
collect_evaluation_data
|
2026-07-08 23:54:01 +08:00 |
|
知微
|
0e21a3ae83
|
feat: 数据流架构审计-22个脚本自拉API违规标记
|
2026-07-08 23:35:56 +08:00 |
|
知微
|
0f3b555cbd
|
feat: preflight新增DB死锁检测+修复同步遗漏
|
2026-07-08 23:27:26 +08:00 |
|
知微
|
e8fa355485
|
feat: 开盘前钉对钉验证(15项)+deploy_sync+post-commit hook
|
2026-07-08 23:21:39 +08:00 |
|
知微
|
95ddfe1598
|
chore: 添加deploy_sync.sh + post-commit hook自动同步
|
2026-07-08 23:10:06 +08:00 |
|
知微
|
b13259df5f
|
fix: market_screener小果离线降级+2秒快速探测
|
2026-07-08 20:04:32 +08:00 |
|