diff --git a/DEVLOG.md b/DEVLOG.md index ab9a4e6..21b68a7 100644 --- a/DEVLOG.md +++ b/DEVLOG.md @@ -2538,3 +2538,14 @@ QMT仍有序号缺口,16:23确认1441965、最高1442003、暂存32条。16:24 QMT11:53:36至11:54:04短暂中断,自动重连恢复,外部原因未核实;当前确认1484434推进到1484463,无序号缺口、新reject、待处理或待归属成交,resync=false,资金快照5秒内。主观量化四方2700股;今日买2700、卖100均有实际成交并按委托入账,账户数量及现金对账差异0、活动子委托0。QMT费用字段为null且未扣费,费用验收仍保留,未补造费用。 明日快照等待10月29日收盘源数据,当前最新数据10月28日;既有监控继续自动补算。镜像、运行参数、暂停、数据库及服务均未改,不访问188。自然冻结与无信号流程已有真机证据,完整微盘入退场仍未判收。文档与证据断言、链接及差异检查通过,无业务代码变更,不重复全量回归。详见docs/微盘轮动每日复核_2026-10-29.md及docs/evidence/micro50_daily_20261029.json,阶段接续已更新。保留本地已有114行DEVLOG、10行复盘台账及其他研究修改;当前研究分支未见远程同名分支,本次记录仅本地提交,不推送其他研究历史。 + + +## 2026-10-29 历史风控提醒修复与质地排名核验 + +用户指出check_qmt_connection长期出现在风控提醒,并要求检查排名规则切换后的选股计划。155只读定位到日志295:10月27日15:52旧故障,17:06日志296已有修复对账通过。页面未按日期过滤操作日志、只显示时分,并将所有BLOCKED泛称合规拦截。修复仅涉及index.html:当前消息按服务端北京日期过滤,历史保留完整日期,补连接检查中文名称,通用失败显示未完成。没有删除或改写日志,今日失败操作实际为0。 + +主观量化排序运行态为桥quality、PMS upstream、空传导白名单。14:32真实消费记录219在同一不可变版本、同一参数及持仓上下文内存回放,7只顺序完全一致;最新15:05版本名单相同,强/弱/无传导各2/2/3。上游前300只、默认同主题5只仍生效:现行7只候选;扩范围并保留主题限额为7候选加7关注;完整561只取消主题限额的对照为8候选加16关注。汇川技术研究第49、质地中、判为候选,却因模组主题前五只占满被裁;额外16只关注均质地差。仅作范围对照,没有调整参数或生成测试委托。当前人工确认的威胜信息为池首位,并纠正早先复核文档对688100.SH的简称误写。 + +代码提交b96ce9f,155单独应用补丁为06570ad;web于16:43发布pms:alerts-b96ce9f,其余交易服务保持原容器。开发机和155候选镜像全量隔离断网回归及三道页面护栏通过;Chrome 1440/390宽度、当日与历史日志、跨日及未知日期、美国浏览器时区下北京日期验证通过,实际部署HTML摘要一致并重放通过,零控制台错误、零外部或写请求。不是交易员真实登录判收。 + +部署前Git身份缺失在业务动作前中止,随后用单次命令提交身份处理;一次发布校验把环境变量顺序误判为变更,web自动回退,核实键值一致并改成映射比较后重发。16:43:46核验参数、暂停、资金、持仓未变;QMT确认1484807推进到1484864,无新增重连或拒绝、无待入账及归属待核,resync=false,资金快照11.4秒,数量和现金对账差异0。未访问188。详情及长期证据见docs/风控历史提醒修复与选股排名核验_2026-10-29.md,阶段接续已更新。保留原有114行DEVLOG、10行复盘台账及研究文件。 diff --git a/docs/evidence/pms_alert_selection_20261029.json b/docs/evidence/pms_alert_selection_20261029.json new file mode 100644 index 0000000..0d36abb --- /dev/null +++ b/docs/evidence/pms_alert_selection_20261029.json @@ -0,0 +1,1157 @@ +{ + "scope": "155 simulated PMS read-only selection audit; local UI change", + "collected_at": "2026-10-29T16:28:14.595378", + "channel": { + "conn_state": "ONLINE", + "last_seq": 1484616, + "acked_seq": 1484616, + "resync_required": false, + "inbox_pending": 0, + "orphan_held": 0 + }, + "historical_fault": { + "id": 295, + "at": "2026-10-27 15:52:27", + "op": "check_qmt_connection", + "by_user": "system", + "ts_code": null, + "result": "BLOCKED", + "reason": "182握手、心跳及空仓资金对账通过;约30秒一个验签拒绝未实时送达导致序号缺口,重连补齐后复发,保持交易暂停与resync", + "params_json": "{\"endpoint\": \"ws://192.168.18.182:9443/pms\", \"last_seq\": 1441576, \"pending_gap\": 25, \"position_count\": 0}", + "ref": "qmt-return-182-20261027" + }, + "recovery": { + "id": 296, + "at": "2026-10-27 17:06:20", + "op": "qmt_postfix_reconcile", + "by_user": "user_authorized", + "result": "OK", + "reason": "QMT修复后连续十分钟无新缺口或拒绝;新快照空仓200万元且对账一致,解除本次清账暂停" + }, + "effective_params": { + "PMS_CANDIDATE_SOURCE": "plan_api", + "PMS_PLAN_RANK_BY_UPSTREAM": true, + "PMS_PLAN_RANK_BY_QUALITY": true, + "PMS_PLAN_TIERS": "", + "PMS_PLAN_TOP_N": 50, + "PMS_PLAN_TOP": 300, + "PMS_PLAN_OBS_TOP": 100, + "PMS_PLAN_INCLUDE_OBSERVE": false, + "PMS_PLAN_EXCLUDE_ST": true, + "PMS_PLAN_MIN_SCORE": 0.0, + "PMS_PLAN_MIN_SOURCES": 0, + "PMS_PLAN_MIN_UPSIDE": 0.0, + "PMS_PLAN_THEME_CAP_LOCAL": 0, + "PMS_PLAN_API_BASE": "http://192.168.16.155:8300", + "PMS_PLAN_API_PATH": "/plan", + "PMS_PLAN_THEME_CAP": 0 + }, + "current_plan": { + "date": "2026-10-28", + "decision_id": "2026-10-28_d23da76b58177d2dc4dc08e178692a5330164b518bc99908071ba4e7d8e56595", + "generated_at": "2026-10-29T07:05:15+00:00", + "rank_axis": "quality", + "rank_rule": "质地带(好3中2无评析1差0)降序 → 带内被指向优先 → 组内分 → 原始分 → 代码", + "requested": { + "top": 300, + "obs_top": 100, + "theme_cap": null + }, + "counts": { + "main": 561, + "observe": 652, + "gate_covered": 3826 + }, + "returned": { + "main": 300, + "observe": 100 + }, + "top10": [ + { + "ts_code": "300750.SZ", + "name": "宁德时代", + "rank": 1, + "research_rank": 1, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 241.04, + "tier": "强传导", + "verdict": "仅展示", + "theme": "储能" + }, + { + "ts_code": "601126.SH", + "name": "四方股份", + "rank": 2, + "research_rank": 2, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 220.86, + "tier": "弱传导", + "verdict": "候选", + "theme": "电网设备" + }, + { + "ts_code": "300274.SZ", + "name": "阳光电源", + "rank": 3, + "research_rank": 3, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 240.85, + "tier": "强传导", + "verdict": "仅展示", + "theme": "储能" + }, + { + "ts_code": "688100.SH", + "name": "威胜信息", + "rank": 4, + "research_rank": 4, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 240.43, + "tier": "强传导", + "verdict": "候选", + "theme": "模组" + }, + { + "ts_code": "300627.SZ", + "name": "华测导航", + "rank": 5, + "research_rank": 5, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 240.27, + "tier": "强传导", + "verdict": "仅展示", + "theme": "模组" + }, + { + "ts_code": "002518.SZ", + "name": "科士达", + "rank": 6, + "research_rank": 6, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 240.08, + "tier": "强传导", + "verdict": "仅展示", + "theme": "储能" + }, + { + "ts_code": "300693.SZ", + "name": "盛弘股份", + "rank": 7, + "research_rank": 7, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 240.01, + "tier": "强传导", + "verdict": "仅展示", + "theme": "储能" + }, + { + "ts_code": "002979.SZ", + "name": "雷赛智能", + "rank": 8, + "research_rank": 8, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 218.13, + "tier": "弱传导", + "verdict": "仅展示", + "theme": "灵巧手" + }, + { + "ts_code": "002050.SZ", + "name": "三花智控", + "rank": 9, + "research_rank": 9, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 197.08, + "tier": "无传导", + "verdict": "仅展示", + "theme": "减速器" + }, + { + "ts_code": "688111.SH", + "name": "金山办公", + "rank": 10, + "research_rank": 10, + "selection_rank": null, + "quality_band": 3, + "pointed": false, + "score": 202.87, + "tier": "无传导", + "verdict": "仅展示", + "theme": null + } + ] + }, + "current_selection": { + "rank_mode": "upstream", + "dropped": { + "held": 1, + "black": 0, + "tier": 0, + "score": 0, + "sources": 0, + "upside": 0, + "st": 0, + "theme": 0, + "dup": 0, + "capped": 0, + "display": 292 + }, + "items": [ + { + "ts_code": "688100.SH", + "name": "威胜信息", + "rank": 4, + "research_rank": 4, + "selection_rank": 1, + "quality_band": 3, + "pointed": true, + "score": 240.43, + "tier": "强传导", + "verdict": "候选", + "theme": "模组" + }, + { + "ts_code": "688072.SH", + "name": "拓荆科技", + "rank": 35, + "research_rank": 35, + "selection_rank": 2, + "quality_band": 2, + "pointed": true, + "score": 220.72, + "tier": "弱传导", + "verdict": "候选", + "theme": "半导体设备" + }, + { + "ts_code": "688802.SH", + "name": "沐曦股份", + "rank": 37, + "research_rank": 37, + "selection_rank": 3, + "quality_band": 2, + "pointed": true, + "score": 200.6, + "tier": "无传导", + "verdict": "候选", + "theme": "集成电路设计" + }, + { + "ts_code": "688700.SH", + "name": "东威科技", + "rank": 39, + "research_rank": 39, + "selection_rank": 4, + "quality_band": 2, + "pointed": true, + "score": 200.37, + "tier": "无传导", + "verdict": "候选", + "theme": "铜箔" + }, + { + "ts_code": "603606.SH", + "name": "东方电缆", + "rank": 40, + "research_rank": 40, + "selection_rank": 5, + "quality_band": 2, + "pointed": true, + "score": 220.29, + "tier": "弱传导", + "verdict": "候选", + "theme": "电网设备" + }, + { + "ts_code": "605598.SH", + "name": "上海港湾", + "rank": 42, + "research_rank": 42, + "selection_rank": 6, + "quality_band": 2, + "pointed": true, + "score": 200.03, + "tier": "无传导", + "verdict": "候选", + "theme": "储能" + }, + { + "ts_code": "603019.SH", + "name": "中科曙光", + "rank": 46, + "research_rank": 47, + "selection_rank": 7, + "quality_band": 2, + "pointed": true, + "score": 239.37, + "tier": "强传导", + "verdict": "候选", + "theme": "AI服务器" + } + ] + }, + "recorded_replay": { + "row_id": 219, + "decision_id": "2026-10-28_9cb17f6007eeef3e409275d86ad4f144a64ad8048479082b0e6a75894d87a469", + "recorded_order": [ + "688100.SH", + "688072.SH", + "688802.SH", + "688700.SH", + "603606.SH", + "605598.SH", + "603019.SH" + ], + "replayed_order": [ + "688100.SH", + "688072.SH", + "688802.SH", + "688700.SH", + "603606.SH", + "605598.SH", + "603019.SH" + ], + "match": true + }, + "expanded_with_theme5": { + "returned": { + "main": 522, + "observe": 645 + }, + "dropped": { + "held": 1, + "black": 0, + "tier": 0, + "score": 0, + "sources": 0, + "upside": 0, + "st": 0, + "theme": 0, + "dup": 0, + "capped": 0, + "display": 507 + }, + "items": [ + { + "ts_code": "688100.SH", + "name": "威胜信息", + "rank": 4, + "research_rank": 4, + "selection_rank": 1, + "quality_band": 3, + "pointed": true, + "score": 240.43, + "tier": "强传导", + "verdict": "候选", + "theme": "模组" + }, + { + "ts_code": "688072.SH", + "name": "拓荆科技", + "rank": 35, + "research_rank": 35, + "selection_rank": 2, + "quality_band": 2, + "pointed": true, + "score": 220.72, + "tier": "弱传导", + "verdict": "候选", + "theme": "半导体设备" + }, + { + "ts_code": "688802.SH", + "name": "沐曦股份", + "rank": 37, + "research_rank": 37, + "selection_rank": 3, + "quality_band": 2, + "pointed": true, + "score": 200.6, + "tier": "无传导", + "verdict": "候选", + "theme": "集成电路设计" + }, + { + "ts_code": "688700.SH", + "name": "东威科技", + "rank": 39, + "research_rank": 39, + "selection_rank": 4, + "quality_band": 2, + "pointed": true, + "score": 200.37, + "tier": "无传导", + "verdict": "候选", + "theme": "铜箔" + }, + { + "ts_code": "603606.SH", + "name": "东方电缆", + "rank": 40, + "research_rank": 40, + "selection_rank": 5, + "quality_band": 2, + "pointed": true, + "score": 220.29, + "tier": "弱传导", + "verdict": "候选", + "theme": "电网设备" + }, + { + "ts_code": "605598.SH", + "name": "上海港湾", + "rank": 42, + "research_rank": 42, + "selection_rank": 6, + "quality_band": 2, + "pointed": true, + "score": 200.03, + "tier": "无传导", + "verdict": "候选", + "theme": "储能" + }, + { + "ts_code": "603019.SH", + "name": "中科曙光", + "rank": 46, + "research_rank": 47, + "selection_rank": 7, + "quality_band": 2, + "pointed": true, + "score": 239.37, + "tier": "强传导", + "verdict": "候选", + "theme": "AI服务器" + }, + { + "ts_code": "688498.SH", + "name": "源杰科技", + "rank": 316, + "research_rank": 319, + "selection_rank": 8, + "quality_band": 0, + "pointed": true, + "score": 221.27, + "tier": "弱传导", + "verdict": "关注", + "theme": "集成电路设计" + }, + { + "ts_code": "301511.SZ", + "name": "德福科技", + "rank": 320, + "research_rank": 323, + "selection_rank": 9, + "quality_band": 0, + "pointed": true, + "score": 220.62, + "tier": "弱传导", + "verdict": "关注", + "theme": "铜箔" + }, + { + "ts_code": "000977.SZ", + "name": "浪潮信息", + "rank": 322, + "research_rank": 327, + "selection_rank": 10, + "quality_band": 0, + "pointed": true, + "score": 240.6, + "tier": "强传导", + "verdict": "关注", + "theme": "AI服务器" + }, + { + "ts_code": "603296.SH", + "name": "华勤技术", + "rank": 332, + "research_rank": 347, + "selection_rank": 11, + "quality_band": 0, + "pointed": true, + "score": 240.16, + "tier": "强传导", + "verdict": "关注", + "theme": "AI服务器" + }, + { + "ts_code": "000938.SZ", + "name": "紫光股份", + "rank": 333, + "research_rank": 348, + "selection_rank": 12, + "quality_band": 0, + "pointed": true, + "score": 240.15, + "tier": "强传导", + "verdict": "关注", + "theme": "AI服务器" + }, + { + "ts_code": "002600.SZ", + "name": "领益智造", + "rank": 337, + "research_rank": 357, + "selection_rank": 13, + "quality_band": 0, + "pointed": true, + "score": 199.79, + "tier": "无传导", + "verdict": "关注", + "theme": "灵巧手" + }, + { + "ts_code": "002896.SZ", + "name": "中大力德", + "rank": 339, + "research_rank": 369, + "selection_rank": 14, + "quality_band": 0, + "pointed": true, + "score": 197.35, + "tier": "无传导", + "verdict": "关注", + "theme": "减速器" + } + ] + }, + "expanded_without_theme_limit": { + "returned": { + "main": 561, + "observe": 652 + }, + "dropped": { + "held": 1, + "black": 0, + "tier": 0, + "score": 0, + "sources": 0, + "upside": 0, + "st": 0, + "theme": 0, + "dup": 0, + "capped": 0, + "display": 536 + }, + "items": [ + { + "ts_code": "688100.SH", + "name": "威胜信息", + "rank": 4, + "research_rank": 4, + "selection_rank": 1, + "quality_band": 3, + "pointed": true, + "score": 240.43, + "tier": "强传导", + "verdict": "候选", + "theme": "模组" + }, + { + "ts_code": "688072.SH", + "name": "拓荆科技", + "rank": 35, + "research_rank": 35, + "selection_rank": 2, + "quality_band": 2, + "pointed": true, + "score": 220.72, + "tier": "弱传导", + "verdict": "候选", + "theme": "半导体设备" + }, + { + "ts_code": "688802.SH", + "name": "沐曦股份", + "rank": 37, + "research_rank": 37, + "selection_rank": 3, + "quality_band": 2, + "pointed": true, + "score": 200.6, + "tier": "无传导", + "verdict": "候选", + "theme": "集成电路设计" + }, + { + "ts_code": "688700.SH", + "name": "东威科技", + "rank": 39, + "research_rank": 39, + "selection_rank": 4, + "quality_band": 2, + "pointed": true, + "score": 200.37, + "tier": "无传导", + "verdict": "候选", + "theme": "铜箔" + }, + { + "ts_code": "603606.SH", + "name": "东方电缆", + "rank": 40, + "research_rank": 40, + "selection_rank": 5, + "quality_band": 2, + "pointed": true, + "score": 220.29, + "tier": "弱传导", + "verdict": "候选", + "theme": "电网设备" + }, + { + "ts_code": "605598.SH", + "name": "上海港湾", + "rank": 42, + "research_rank": 42, + "selection_rank": 6, + "quality_band": 2, + "pointed": true, + "score": 200.03, + "tier": "无传导", + "verdict": "候选", + "theme": "储能" + }, + { + "ts_code": "603019.SH", + "name": "中科曙光", + "rank": 47, + "research_rank": 47, + "selection_rank": 7, + "quality_band": 2, + "pointed": true, + "score": 239.37, + "tier": "强传导", + "verdict": "候选", + "theme": "AI服务器" + }, + { + "ts_code": "300124.SZ", + "name": "汇川技术", + "rank": 49, + "research_rank": 49, + "selection_rank": 8, + "quality_band": 2, + "pointed": true, + "score": 197.56, + "tier": "无传导", + "verdict": "候选", + "theme": "模组" + }, + { + "ts_code": "688498.SH", + "name": "源杰科技", + "rank": 319, + "research_rank": 319, + "selection_rank": 9, + "quality_band": 0, + "pointed": true, + "score": 221.27, + "tier": "弱传导", + "verdict": "关注", + "theme": "集成电路设计" + }, + { + "ts_code": "301511.SZ", + "name": "德福科技", + "rank": 323, + "research_rank": 323, + "selection_rank": 10, + "quality_band": 0, + "pointed": true, + "score": 220.62, + "tier": "弱传导", + "verdict": "关注", + "theme": "铜箔" + }, + { + "ts_code": "000977.SZ", + "name": "浪潮信息", + "rank": 327, + "research_rank": 327, + "selection_rank": 11, + "quality_band": 0, + "pointed": true, + "score": 240.6, + "tier": "强传导", + "verdict": "关注", + "theme": "AI服务器" + }, + { + "ts_code": "688629.SH", + "name": "华丰科技", + "rank": 330, + "research_rank": 330, + "selection_rank": 12, + "quality_band": 0, + "pointed": true, + "score": 200.56, + "tier": "无传导", + "verdict": "关注", + "theme": "模组" + }, + { + "ts_code": "002706.SZ", + "name": "良信股份", + "rank": 341, + "research_rank": 341, + "selection_rank": 13, + "quality_band": 0, + "pointed": true, + "score": 220.37, + "tier": "弱传导", + "verdict": "关注", + "theme": "电网设备" + }, + { + "ts_code": "301308.SZ", + "name": "江波龙", + "rank": 343, + "research_rank": 343, + "selection_rank": 14, + "quality_band": 0, + "pointed": true, + "score": 200.29, + "tier": "无传导", + "verdict": "关注", + "theme": "模组" + }, + { + "ts_code": "603296.SH", + "name": "华勤技术", + "rank": 347, + "research_rank": 347, + "selection_rank": 15, + "quality_band": 0, + "pointed": true, + "score": 240.16, + "tier": "强传导", + "verdict": "关注", + "theme": "AI服务器" + }, + { + "ts_code": "000938.SZ", + "name": "紫光股份", + "rank": 348, + "research_rank": 348, + "selection_rank": 16, + "quality_band": 0, + "pointed": true, + "score": 240.15, + "tier": "强传导", + "verdict": "关注", + "theme": "AI服务器" + }, + { + "ts_code": "002594.SZ", + "name": "比亚迪", + "rank": 352, + "research_rank": 352, + "selection_rank": 17, + "quality_band": 0, + "pointed": true, + "score": 239.95, + "tier": "强传导", + "verdict": "关注", + "theme": "储能" + }, + { + "ts_code": "001289.SZ", + "name": "龙源电力", + "rank": 355, + "research_rank": 355, + "selection_rank": 18, + "quality_band": 0, + "pointed": true, + "score": 239.84, + "tier": "强传导", + "verdict": "关注", + "theme": "储能" + }, + { + "ts_code": "002600.SZ", + "name": "领益智造", + "rank": 357, + "research_rank": 357, + "selection_rank": 19, + "quality_band": 0, + "pointed": true, + "score": 199.79, + "tier": "无传导", + "verdict": "关注", + "theme": "灵巧手" + }, + { + "ts_code": "002179.SZ", + "name": "中航光电", + "rank": 358, + "research_rank": 358, + "selection_rank": 20, + "quality_band": 0, + "pointed": true, + "score": 239.73, + "tier": "强传导", + "verdict": "关注", + "theme": "模组" + }, + { + "ts_code": "002025.SZ", + "name": "航天电器", + "rank": 361, + "research_rank": 361, + "selection_rank": 21, + "quality_band": 0, + "pointed": true, + "score": 199.17, + "tier": "无传导", + "verdict": "关注", + "theme": "模组" + }, + { + "ts_code": "601138.SH", + "name": "工业富联", + "rank": 362, + "research_rank": 362, + "selection_rank": 22, + "quality_band": 0, + "pointed": true, + "score": 239.0, + "tier": "强传导", + "verdict": "关注", + "theme": "AI服务器" + }, + { + "ts_code": "002896.SZ", + "name": "中大力德", + "rank": 369, + "research_rank": 369, + "selection_rank": 23, + "quality_band": 0, + "pointed": true, + "score": 197.35, + "tier": "无传导", + "verdict": "关注", + "theme": "减速器" + }, + { + "ts_code": "600580.SH", + "name": "卧龙电驱", + "rank": 372, + "research_rank": 372, + "selection_rank": 24, + "quality_band": 0, + "pointed": true, + "score": 196.88, + "tier": "无传导", + "verdict": "关注", + "theme": "模组" + } + ] + }, + "theme_group_modular_top6": [ + { + "ts_code": "688100.SH", + "name": "威胜信息", + "rank": 4, + "research_rank": 4, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 240.43, + "tier": "强传导", + "verdict": "候选", + "theme": "模组" + }, + { + "ts_code": "300627.SZ", + "name": "华测导航", + "rank": 5, + "research_rank": 5, + "selection_rank": null, + "quality_band": 3, + "pointed": true, + "score": 240.27, + "tier": "强传导", + "verdict": "仅展示", + "theme": "模组" + }, + { + "ts_code": "300638.SZ", + "name": "广和通", + "rank": 45, + "research_rank": 45, + "selection_rank": null, + "quality_band": 2, + "pointed": true, + "score": 239.65, + "tier": "强传导", + "verdict": "仅展示", + "theme": "模组" + }, + { + "ts_code": "688018.SH", + "name": "乐鑫科技", + "rank": 46, + "research_rank": 46, + "selection_rank": null, + "quality_band": 2, + "pointed": true, + "score": 199.5, + "tier": "无传导", + "verdict": "仅展示", + "theme": "模组" + }, + { + "ts_code": "300433.SZ", + "name": "蓝思科技", + "rank": 48, + "research_rank": 48, + "selection_rank": null, + "quality_band": 2, + "pointed": true, + "score": 198.51, + "tier": "无传导", + "verdict": "仅展示", + "theme": "模组" + }, + { + "ts_code": "300124.SZ", + "name": "汇川技术", + "rank": 49, + "research_rank": 49, + "selection_rank": null, + "quality_band": 2, + "pointed": true, + "score": 197.56, + "tier": "无传导", + "verdict": "候选", + "theme": "模组" + } + ], + "today_instructions": [ + { + "instruction_id": "INS_20261029_688100SH_OPEN_001_2d3808de0edd", + "origin_type": "proposal", + "origin_id": "PRP_20261029_688100SH_OPEN", + "ts_code": "688100.SH", + "action": "OPEN", + "status": "DISPATCHED", + "qty": 800, + "created_at": "2026-10-29 14:18:13" + }, + { + "instruction_id": "STR20261029105701_601126SH_g", + "origin_type": "strategy", + "origin_id": "STR_20261029_601126SH_238000", + "ts_code": "601126.SH", + "action": "TRIM", + "status": "CONFIRMED", + "qty": 100, + "created_at": "2026-10-29 10:57:01" + }, + { + "instruction_id": "STR20261029094901_601126SH_g", + "origin_type": "strategy", + "origin_id": "STR_20261029_601126SH_238000", + "ts_code": "601126.SH", + "action": "ADD", + "status": "CONFIRMED", + "qty": 2700, + "created_at": "2026-10-29 09:49:02" + } + ], + "checks": { + "quality_band_order": true, + "research_rank_order": true, + "same_revision_in_range_comparisons": true, + "historical_consumption_reproduced": true + }, + "execution_params_changed": false, + "deployment": { + "at_beijing": "2026-10-29 16:43:19", + "health": { + "status": "ok", + "version": "0.2.0-dev", + "service": "pms-web", + "now": "2026-10-29 16:43:19", + "trade_day": true, + "calendar_degraded": false, + "db_ok": true + }, + "image": "pms:alerts-b96ce9f", + "source_commit": "b96ce9f", + "server_commit": "06570ad", + "page_sha256": "5193c5317447c863cd1a75824641bb1d27326b764c7d95347bed5570171d7382", + "only_web_recreated": true, + "web_environment_unchanged": true, + "services": { + "pms-web": { + "image": "pms:alerts-b96ce9f", + "started": "2026-10-29T08:43:15.091076428Z" + }, + "pms-worker": { + "image": "pms:micro50-9e14f92", + "started": "2026-10-28T04:48:27.538798424Z" + }, + "pms-beat": { + "image": "pms:micro30-f1424f3", + "started": "2026-10-28T04:48:27.998315799Z" + }, + "pms-ws": { + "image": "pms:micro30-f1424f3", + "started": "2026-10-28T01:28:07.176534887Z" + } + } + }, + "browser_replay": { + "actualLogReplay": true, + "historyRetainedWithDate": true, + "todayFailureVisible": true, + "beijingDateUsed": true, + "midnightAndUnknownDatePass": true, + "viewports": [ + 1440, + 390 + ], + "errors": [], + "writes": [], + "external": [] + }, + "offline_regression": { + "developer": "ALL SUITES PASS", + "candidate_on_155": "ALL SUITES PASS", + "page_guards": 3 + }, + "runtime_checks": [ + { + "at": "2026-10-29T16:40:08.173851", + "params": { + "PMS_ROTATION_MODE": "auto", + "PMS_ROTATION_CONTROL": "run", + "PMS_ROTATION_RULE_VERSION": "micro50-v2-20261028", + "PMS_GLOBAL_EXEC_HALT": false, + "PMS_GLOBAL_BUY_HALT": false, + "PMS_QMT_WS_URL": "ws://192.168.18.182:9443/pms", + "PMS_QMT_WS_ENABLED": true, + "PMS_DISPATCH_MODE": "ws", + "PMS_RECON_SOURCE": "ws_only", + "PMS_QMT_QUERY_INTERVAL_SEC": 30, + "PMS_EXEC_QMT_PRICE_MONITOR": true + }, + "cash": { + "source": "ws", + "cash_avail": 1923441.0, + "total_asset": 1999581.0, + "account_market_value": 76140.0, + "frozen_cash": 0.0, + "age_sec": 1.3, + "why": "" + }, + "positions": { + "original": [ + { + "ts_code": "601126.SH", + "status": "HOLDING", + "total_qty": 2700, + "book_id": "original" + } + ], + "micro30": [] + }, + "last_seq": 1484807, + "acked_seq": 1484807, + "resync_required": false, + "inbox_pending": 0, + "orphan_held": 0, + "rejects": 0, + "reconnects": 3, + "reconciliation": { + "ok": true, + "diffs": [], + "fixes": [], + "errors": [], + "severity": "OK", + "source": "ws", + "note": "策略数量之和核对账户;不猜测差异归属,不自动把差异并入任何策略" + }, + "cash_difference": 0.0 + }, + { + "at": "2026-10-29T16:43:46.881409", + "params": { + "PMS_ROTATION_MODE": "auto", + "PMS_ROTATION_CONTROL": "run", + "PMS_ROTATION_RULE_VERSION": "micro50-v2-20261028", + "PMS_GLOBAL_EXEC_HALT": false, + "PMS_GLOBAL_BUY_HALT": false, + "PMS_QMT_WS_URL": "ws://192.168.18.182:9443/pms", + "PMS_QMT_WS_ENABLED": true, + "PMS_DISPATCH_MODE": "ws", + "PMS_RECON_SOURCE": "ws_only", + "PMS_QMT_QUERY_INTERVAL_SEC": 30, + "PMS_EXEC_QMT_PRICE_MONITOR": true + }, + "cash": { + "source": "ws", + "cash_avail": 1923441.0, + "total_asset": 1999581.0, + "account_market_value": 76140.0, + "frozen_cash": 0.0, + "age_sec": 11.4, + "why": "" + }, + "positions": { + "original": [ + { + "ts_code": "601126.SH", + "status": "HOLDING", + "total_qty": 2700, + "book_id": "original" + } + ], + "micro30": [] + }, + "last_seq": 1484864, + "acked_seq": 1484864, + "resync_required": false, + "inbox_pending": 0, + "orphan_held": 0, + "rejects": 0, + "reconnects": 3, + "reconciliation": { + "ok": true, + "diffs": [], + "fixes": [], + "errors": [], + "severity": "OK", + "source": "ws", + "note": "策略数量之和核对账户;不猜测差异归属,不自动把差异并入任何策略" + }, + "cash_difference": 0.0 + } + ], + "release_notes": [ + "Git identity absent before initial patch application; used command-scoped deployment identity without global changes.", + "Environment list-order comparison caused one web rollback; all key/value pairs matched; deployment rechecked by mapping.", + "Only web recreated; trading worker, beat and ws process IDs unchanged." + ] +} diff --git a/docs/微盘轮动每日复核_2026-10-29.md b/docs/微盘轮动每日复核_2026-10-29.md index 7fcb250..99308a3 100644 --- a/docs/微盘轮动每日复核_2026-10-29.md +++ b/docs/微盘轮动每日复核_2026-10-29.md @@ -27,7 +27,7 @@ QMT当前连续确认、资金及持仓对账正常。午间曾短暂断线, | 回报 | 自10月28日16:12:22之后无reject;待处理和待归属成交均0,resync=false | | 资金 | 可用1,923,441元,冻结0,市值76,140元,总资产1,999,581元;最后快照年龄5秒 | | 账本 | 主观量化四方股份2700股,微盘空仓;策略合计数量与QMT一致,现金差异0 | -| 在途 | 活动子委托0;盛弘及诺泰生物父计划仍未完成,不能将父计划状态当作在途子委托 | +| 在途 | 活动子委托0;盛弘及威胜信息父计划仍未完成,不能将父计划状态当作在途子委托 | 日志显示11:53:36发生一次无关闭帧的连接中断,随后两次握手超时;11:54:04自动握手成功,中断约28秒。累计重连计数为3。序号1480170后接1480171的hello_ack,没有缺口;恢复后资金、持仓快照重新到达。没有验签拒绝或被其他连接替换的证据。仅凭PMS日志不能判断是QMT重启还是网络中断,外部根因未核实,本次没有主动断连或重连。 @@ -35,7 +35,7 @@ QMT当前连续确认、资金及持仓对账正常。午间曾短暂断线, 两条新成交的QMT费用字段均为null,资金快照也未扣除费用,当前策略费用显示0。佣金万二、最低5元的配置存在,不等于实际费用回报已验收;当前净值0.9997905应理解为按现有QMT回报记账的结果。本次没有补造费用或改动现金。 -盛弘父计划仍为600股,累计子单37条EXPIRED、1条ABORTED,成交0;其中含昨日与今日的到期重试。诺泰生物父计划800股,4条子单均EXPIRED、成交0。重试量不能累计为实际买入量,本次未补单、追价或强行结束父计划。 +盛弘父计划仍为600股,累计子单37条EXPIRED、1条ABORTED,成交0;其中含昨日与今日的到期重试。威胜信息688100.SH父计划800股,4条子单均EXPIRED、成交0。重试量不能累计为实际买入量,本次未补单、追价或强行结束父计划。证券简称在后续选股核验时按源计划纠正,委托代码和数量未变。 ## 收盘数据与服务 diff --git a/docs/微盘轮动阶段接续_2026-10-28.md b/docs/微盘轮动阶段接续_2026-10-28.md index b121abc..bb19c75 100644 --- a/docs/微盘轮动阶段接续_2026-10-28.md +++ b/docs/微盘轮动阶段接续_2026-10-28.md @@ -1,6 +1,8 @@ # 微盘轮动阶段接续与实验意见 -整理日期:2026年10月28日,北京时间。本文件是本阶段的简明接续入口。以下运行状态来自最后一次真机核验,即10月28日12:49:37,并非整理时重新检查。后续先读AGENTS.md及本文件,再按需查看原始证据。 +整理日期:2026年10月28日,北京时间。本文件是本阶段的简明接续入口。未标明后续更新的读数来自10月28日12:49:37发布核验;最新状态以顶部更新为准。后续先读AGENTS.md及本文件,再按需查看原始证据。 + +> 10月29日16:43页面维护更新:历史操作日志不再冒充当日风控,web已定向更新为pms:alerts-b96ce9f,其余容器保持原进程。源页面提交b96ce9f,155单独应用补丁形成06570ad。参数、暂停及持仓未变,QMT连续确认和对账正常。选股质地排名及真实消费顺序已核对,仍保留前300只和上游同主题5只的既有范围;没有更改候选规则。详见[风控与排名核验](风控历史提醒修复与选股排名核验_2026-10-29.md)。 > 10月29日16:18复核更新:50股快照已在08:50:12自然冻结,PMS于08:51取用,数据为10月28日,历史分位9.39%,无入场信号、微盘空仓。09:30持仓行情缺失曾阻断,09:31自动恢复。QMT午间中断约28秒后恢复,当前连续确认及数量、现金对账正常,无新验签拒绝;主观量化四方2700股,活动子委托0。10月30日快照仍待当日收盘数据。实际成交费用回报为null,费用尚未判收。镜像、参数及暂停均未改。最新证据见[10月29日每日复核](微盘轮动每日复核_2026-10-29.md),[10月28日记录](微盘轮动每日复核_2026-10-28.md)及下文发布时点读数保留作历史。 @@ -31,7 +33,8 @@ | 服务 | 最后核实的镜像 | | --- | --- | -| pms-web、pms-worker | `pms:micro50-9e14f92` | +| pms-web(10月29日16:43更新) | `pms:alerts-b96ce9f` | +| pms-worker | `pms:micro50-9e14f92` | | 独立微盘监控 | `bionic-micro30:3e2a584` | | pms-beat、pms-ws | `pms:micro30-f1424f3` | diff --git a/docs/风控历史提醒修复与选股排名核验_2026-10-29.md b/docs/风控历史提醒修复与选股排名核验_2026-10-29.md new file mode 100644 index 0000000..fdaf42c --- /dev/null +++ b/docs/风控历史提醒修复与选股排名核验_2026-10-29.md @@ -0,0 +1,71 @@ +# 风控历史提醒修复与选股排名核验 + +核验和发布范围为155模拟PMS,北京时间2026年10月29日16:28至16:43。未访问188,未改选股、仓位、轮换或交易参数,未删除操作日志。 + +## 结论 + +“其他操作(check_qmt_connection)被合规检查挡下”来自10月27日的历史故障记录,并非今天持续触发的新拦截。页面修复已部署,只重建web,交易worker、beat及唯一pms-ws保持原进程。 + +主观量化选股已按公司质地优先排序,PMS沿用上游研究名次,强传导白名单为空。真实消费顺序可以从同一历史版本完整复现。仍保留上游前300只、同主题5只的范围限制,因此当前并不是“不受范围限制的全榜候选池”;汇川技术受到主题限额影响。 + +## 历史提醒的原因和修复 + +操作日志295的时间为10月27日15:52:27,记录当时182连接后出现验签拒绝和序号缺口,状态BLOCKED。日志296于当日17:06:20记录QMT修复后连续十分钟核验通过、完成对账并解除维护暂停,状态OK。 + +页面原先把最近80条操作日志中所有非OK记录都放入当前消息栏,没有按日期筛选;只显示时分,且把任何BLOCKED都解释为合规拦截。check_qmt_connection又没有中文名称,于是历史诊断记录长期表现为当前交易风控问题。 + +本次修改:当前消息栏仅显示服务端北京时间当日的失败操作,日期未知时不把历史记录视为今天;完整操作日志保留历史并显示年月日时分;连接检查、复查和修复后对账增加中文名称;通用失败状态改为“未完成”,具体原因继续展示。日志没有删除或改写,不通过改成OK消除历史故障。实时QMT状态继续由通道监控展示。 + +## 选股规则和真实消费 + +桥的运行值为PLAN_RANK_AXIS=quality、CARD_SORT_BY_QUALITY=true、POOL_SOURCE=rank。PMS_PLAN_RANK_BY_UPSTREAM=true、PMS_PLAN_TIERS为空,实际消费rank_mode=upstream。虽然PMS_PLAN_RANK_BY_QUALITY仍为true,上游quality轴生效时不会再套本地立场分桶。 + +排序次序是质地好、中、无评析、差;同一质地带内再比较被指向、组内分、原始分和代码。它不是按原始score或一个新增综合分降序。例如四方股份原始分220.86仍排在原始分240.85的阳光电源之前。全量主榜的质地带和研究名次均保持正确次序。 + +最新已发布计划的数据日为10月28日,修订生成时间为10月29日15:05:15,北京时间。当前PMS取主榜300只、观察档100只;自主建仓不启用观察档,候选池上限为50。这里的50是主观量化候选上限,与微盘50股名单是两套独立配置,不代表必须买满50只。 + +当前300只主榜剔除292只“仅展示”和1只已持有的四方股份,留下7只;档位过滤、分数过滤、本地主题过滤均为0。 + +| PMS顺序 | 股票 | 上游研究名次 | 质地 | 传导档位 | 上游判决 | +| --- | --- | ---: | --- | --- | --- | +| 1 | 威胜信息688100.SH | 4 | 好 | 强传导 | 候选 | +| 2 | 拓荆科技688072.SH | 35 | 中 | 弱传导 | 候选 | +| 3 | 沐曦股份688802.SH | 37 | 中 | 无传导 | 候选 | +| 4 | 东威科技688700.SH | 39 | 中 | 无传导 | 候选 | +| 5 | 东方电缆603606.SH | 40 | 中 | 弱传导 | 候选 | +| 6 | 上海港湾605598.SH | 42 | 中 | 无传导 | 候选 | +| 7 | 中科曙光603019.SH | 47 | 中 | 强传导 | 候选 | + +14:32:01真实消费记录219引用的历史决策版本尾码为9cb17f60。使用该不可变版本及记录内的持仓、黑名单、筛选参数,只在内存调用筛选逻辑,7只的完整顺序与留痕完全一致。15:05最新修订的尾码为d23da76b,当前复核名单和顺序也相同,不能把对最新版本的复算冒充对旧消费的回放。 + +14:18人工确认生成的威胜信息800股建仓计划位于该候选池首位。四方股份今日的加仓和减仓来自已有交易方案,不是重复选入新仓。候选排序通过不表示全部候选应立即成交,研判、人工确认、资金和执行条件仍各自生效。 + +## 尚存的范围限制 + +PMS_PLAN_THEME_CAP_LOCAL=0,代表PMS不再追加本地主题限额;PMS_PLAN_THEME_CAP=0的既有语义却是“不传上游参数”,上游因此使用默认theme_cap=5。这两项不能混为“所有主题限制都关闭”。该范围在10月26日切换记录中已明确保留。 + +对同一最新不可变版本进行只读对照,不改实际参数: + +| 取数范围 | 返回主榜 | 剔除已持有和仅展示后 | 其中候选 | 其中关注 | +| --- | ---: | ---: | ---: | ---: | +| 现行前300只,同主题5只 | 300 | 7 | 7 | 0 | +| 扩至1000只,仍同主题5只 | 522 | 14 | 7 | 7 | +| 扩至1000只,同主题限额999 | 561 | 24 | 8 | 16 | + +汇川技术300124.SZ在完整榜研究名次49、质地中、判决候选,主题为“模组”。同主题前五只是威胜信息、华测导航、广和通、乐鑫科技、蓝思科技,主题裁剪先于PMS的“仅展示”剔除,因此即使其中有仅展示股票,汇川也不会补入。取消上游主题限额的只读对照多出这一只候选。 + +扩展范围额外带来的16只关注票均为质地差,必须走人工判断,不能当作新增自动买入清单。本次检查确认排名链路正确,同时保留范围取舍供用户决定;没有为了凑候选数量调整参数,也没有从这次运行核对推断策略收益有效。 + +## 发布和验证 + +开发机代码提交b96ce9f,仅修改index.html。155以现有pms:micro50-9e14f92为基镜像覆盖该已提交页面,构建pms:alerts-b96ce9f。服务器部署分支codex/pms-alert-ranking-20261029通过该单独补丁形成06570ad,未引入开发机其他研究提交;服务器原有scripts/deploy.sh修改和私有文件保留。 + +开发机及155候选镜像均完成全量配置隔离、断网回归,结果ALL SUITES PASS,包含页面三道护栏。开发机Chrome在1440和390宽度重放真实只读日志,并用仅在本地浏览器存在的场景验证当日失败可见、跨日消失、服务端日期未知不显示旧记录、浏览器处于美国时区仍按服务端北京日期过滤。控制台错误、外部请求、写请求均为0。实际部署HTML重新取回,摘要与提交页面一致,并按同样方式复验。这是浏览器复现,不称为交易员真实登录验收。 + +发布过程先遇到服务器没有Git提交身份,在业务容器变化前中止,随后使用单次命令的Codex deployment提交身份应用补丁,未改全局Git配置。首次web更新后,发布脚本误把环境变量列表顺序差异视为配置变更而自动回退;核实所有环境变量键值完全相同,修正发布校验为映射比较后重新部署。16:43:19最终健康检查通过。仅web经历重建和回退,worker、beat、ws容器ID及启动时间不变,QMT未被主动断连。 + +16:40:08至16:43:46前后核对:运行参数、两项暂停、资金和持仓未变,连续确认1484807推进至1484864,接收、确认和最高已收一致,无新增拒绝或重连,待处理和待归属成交0,resync=false。最后资金快照年龄11.4秒,数量与现金对账差异0。 + +回退备份位于155的`/home/factor/project/tradingSystem/backups/alerts-b96ce9f/`,权限受控。回退仅需恢复先前web镜像及相应页面,不回退账本、参数或表结构。发布材料及测试日志在`/home/factor/pms_releases/alerts-b96ce9f/`,开发机采样在`/tmp/pms-review-20261029/`。 + +长期证据见[脱敏核验摘要](evidence/pms_alert_selection_20261029.json)。同时纠正当日早先复核文档中688100.SH的证券简称为威胜信息,股票代码、委托数量和状态未变。