{ "code": "7c60cdc7cc49b818815247dec4f3251a2535f67a", "scope": "155模拟PMS;仅web和worker", "final_verified_at": "2026-11-16T11:59:26.872660+08:00", "candidate": { "code": "7c60cdc7cc49b818815247dec4f3251a2535f67a", "patch_sha256": "06b7316d67f9a2d48db4b23386ff1835a6592fe8ce41e6d590570dd2b3084d38", "targets": { "web": { "base": "pms:remediation-budget-6c5afe2-web", "base_id": "sha256:dc04b401c1640d914d2f8321114c9bd1dbccf3948a152dd7a882ddaafcfd7949", "candidate": "pms:remediation-rules-7c60cdc-web", "image_id": "sha256:e53225e9eb8126d344514e14250af4b26608aa03d254be9e9a5fa412b970c092", "files": { "app/core/action_engine.py": "70057466fa03f8cec0819b0139a509fe8bc35bb328a73c0a475d8a65fb82db2b", "app/core/buy_budget.py": "cd41279044f3014b290f9bb00ddbf0db3580798a3f9c2a3fe8a98c6cc24656a6", "app/core/command_spec.py": "09ca357f73ec630caccd3fcfe740abe88810b36a53eb1f2246f09fa1e084d0dc", "app/core/risk_exit.py": "8ae6ebe1d5c7f77847806d9d8cc65785e7dba6400364991a616413af210ab930", "app/core/rule_gate.py": "bfce46ac973e96fd2a8b34b59d1f8c23904d1b75264ec6aac0c7c0054cff7500", "app/services/buy_budget.py": "8fd2023c4a47ae64647c7591ec6b6a78bf1914b825fc272ccd01fd33266af3d7", "app/services/command_service.py": "9eedb85db6d9aa28576949957aa62481b17bd0e0063388f6d78c3c2a1fe2a6ce", "app/services/executor.py": "5b3c198380c8990ba148036053053b073b7197e6be2f5432db42fa82aaa9f1c2", "app/services/param_store.py": "51eed308b53a5e702cb71bd553560925c361ebf5b8046d501feb083d69e0f50c", "app/services/proposal_service.py": "d557b3e069fd9a67c0f493762f7ce3dcc8183a648dbd264a0208c59ddb89eb9b", "app/services/risk_exit.py": "bb27523efdbc1f98cd985732f5a868995427c906c61c54b0f2badc59f236d84f", "app/services/strategy_advisor.py": "434bbad07847cc3a86501048a808b0dc150c76bcf6cdf038ad11493b90833dcb", "app/services/strategy_runner.py": "560dc9afca5190325b8fd1a75c28fc3b4c19f19e57f7baabdc136b0c40002dd0", "app/web/main.py": "803949fcf7f2e6a88938c64c01e4f33ceb308a020dbba63ec67f1f261926dac2", "app/web/static/index.html": "66be6b3c2c011b360e41a381502817e93bfe1324e2f8f21cdedea9816f4fc598", "scripts/run_tests.py": "e6c431ac2036aedb4adf4529f3ca79a259a1c187bcc2acc7d09b2c3bda22dfa5", "scripts/test_batch3_units.py": "323d9023d680a666508dde41344c0912463f2f26b79216d7124455660e42e65f", "scripts/test_buy_budget.py": "c8c8d6ea52a9b5333fa776ceb8f4109e0b3f4829eb1ac631b94f3afc69f6d7f9", "scripts/test_risk_exit.py": "675789e20faa9e0bc58cc3c557c9b2a3ce9c1830dfa4f4548790421ddeafa25a", "scripts/test_timing_fusion.py": "2dbe99229debe5a783582bdfffb667e37a7c9d58fb1a468a8ae8dc038c5e563b", "scripts/test_trade_correction_strategy.py": "5320cbb7c77b50a329d278114951d7a78f8861e1bca921396d63f3ac58a96d04", "scripts/test_user_stop.py": "62b2d5ff066884170bae7ee80eee33f1ca858050271ea7633e7e179620ae601e" }, "suites": 88, "passed": true }, "worker": { "base": "pms:remediation-budget-6c5afe2-worker", "base_id": "sha256:96bfd729fc83cdebf7a87393795898f893f7c16c4296fc152f15cac6840d42fd", "candidate": "pms:remediation-rules-7c60cdc-worker", "image_id": "sha256:5397eadc2c74b40848d99ed9aeb925a00ff9013a6fc10f6a837d75df16e6bc7e", "files": { "app/core/action_engine.py": "70057466fa03f8cec0819b0139a509fe8bc35bb328a73c0a475d8a65fb82db2b", "app/core/buy_budget.py": "cd41279044f3014b290f9bb00ddbf0db3580798a3f9c2a3fe8a98c6cc24656a6", "app/core/command_spec.py": "09ca357f73ec630caccd3fcfe740abe88810b36a53eb1f2246f09fa1e084d0dc", "app/core/risk_exit.py": "8ae6ebe1d5c7f77847806d9d8cc65785e7dba6400364991a616413af210ab930", "app/core/rule_gate.py": "bfce46ac973e96fd2a8b34b59d1f8c23904d1b75264ec6aac0c7c0054cff7500", "app/services/buy_budget.py": "8fd2023c4a47ae64647c7591ec6b6a78bf1914b825fc272ccd01fd33266af3d7", "app/services/command_service.py": "9eedb85db6d9aa28576949957aa62481b17bd0e0063388f6d78c3c2a1fe2a6ce", "app/services/executor.py": "5b3c198380c8990ba148036053053b073b7197e6be2f5432db42fa82aaa9f1c2", "app/services/param_store.py": "4dcd5098cd76787c63443547a5dabc28f17b7268c2313d6353c939a6dd6a915e", "app/services/proposal_service.py": "d557b3e069fd9a67c0f493762f7ce3dcc8183a648dbd264a0208c59ddb89eb9b", "app/services/risk_exit.py": "bb27523efdbc1f98cd985732f5a868995427c906c61c54b0f2badc59f236d84f", "app/services/strategy_advisor.py": "434bbad07847cc3a86501048a808b0dc150c76bcf6cdf038ad11493b90833dcb", "app/services/strategy_runner.py": "560dc9afca5190325b8fd1a75c28fc3b4c19f19e57f7baabdc136b0c40002dd0", "app/web/main.py": "9025a17547a7589b5763c57e1dcd6c6f4fc4eb76f6b37e35f1a5d4f3c029e0ac", "app/web/static/index.html": "b95f3f97871c1841fa7b9d6804a25df3a5a1d7a24de439e27f2892783ab3cf93", "scripts/run_tests.py": "6fbe821105f2e459a895411355a14278375f21705880a0e6da4b50bd1fb95d82", "scripts/test_batch3_units.py": "323d9023d680a666508dde41344c0912463f2f26b79216d7124455660e42e65f", "scripts/test_buy_budget.py": "c8c8d6ea52a9b5333fa776ceb8f4109e0b3f4829eb1ac631b94f3afc69f6d7f9", "scripts/test_risk_exit.py": "675789e20faa9e0bc58cc3c557c9b2a3ce9c1830dfa4f4548790421ddeafa25a", "scripts/test_timing_fusion.py": "2dbe99229debe5a783582bdfffb667e37a7c9d58fb1a468a8ae8dc038c5e563b", "scripts/test_trade_correction_strategy.py": "5320cbb7c77b50a329d278114951d7a78f8861e1bca921396d63f3ac58a96d04", "scripts/test_user_stop.py": "62b2d5ff066884170bae7ee80eee33f1ca858050271ea7633e7e179620ae601e" }, "suites": 87, "passed": true } }, "completed_at": "2026-11-16T11:54:32.238195+08:00" }, "local_tests": { "source_commit": "7c60cdc7cc49b818815247dec4f3251a2535f67a", "machine": "开发机Python3.12.14", "isolation": "unit_test_guard清除业务环境、临时工作目录、阻断联网", "logs": { "full": { "local_path": "/private/tmp/pms-rules-release-full.log", "sha256": "540267477c7844b743376a7ae7d2fe94b6f23bf25f5aeaed916ee970cc91c4af", "passed": true, "suites": 88, "tests": null }, "budget": { "local_path": "/private/tmp/pms-rules-budget-tests.log", "sha256": "05834b0e7f6ce1f7ec588fbab9d4fa5bb1384bedd0b78562ccebde1a60af8a34", "passed": true, "suites": null, "tests": [ "45" ] }, "timing": { "local_path": "/private/tmp/pms-rules-timing-tests.log", "sha256": "0405c2b2553b81fd5722481ef25ef71247bba1ad735ed56147284cbfa6e1ba12", "passed": true, "suites": null, "tests": [ "19" ] }, "user_stop": { "local_path": "/private/tmp/pms-user-stop-tests.log", "sha256": "8093c82e6c3fa7d2d3cfa02c255939fe0e748c2ebb474b52d31b7f6f5903ac66", "passed": true, "suites": null, "tests": [ "19" ] } } }, "role_differences_preserved": { "web": [ "scripts/run_tests.py" ], "worker": [ "app/services/param_store.py", "app/web/main.py", "app/web/static/index.html", "scripts/run_tests.py" ] }, "deployment": { "deployed_at": "2026-11-16T11:57:10.363659+08:00", "targets": [ "pms-web", "pms-worker" ], "drained": { "active": 0, "reserved": 0, "scheduled": 0, "active_queues": 0 }, "images": { "web": "pms:remediation-rules-7c60cdc-web", "worker": "pms:remediation-rules-7c60cdc-worker" } }, "configuration_backup": "/home/factor/project/tradingSystem/backups/remediation-rules-20261116-7c60cdc", "after_drain_health": { "at": "2026-11-16T11:57:05.251183+08:00", "prefix": "", "scope": "pms-sim-155", "params": { "PMS_DISPATCH_MODE": "ws", "PMS_GLOBAL_BUY_HALT": false, "PMS_GLOBAL_EXEC_HALT": false, "PMS_AUTO_GRID_STEP_PCT": 0.04, "PMS_RISK_EXIT_ENABLED": true, "PMS_TIMING_FUSION_ENABLED": true, "PMS_TIMING_FUSION_START_AT": "2026-11-11T16:17:11.269641+08:00", "PMS_SELF_DECIDE_TRIAL": true }, "ws": { "conn_state": "ONLINE", "last_seq": 1894880, "acked_seq": 1894880, "resync_flag": 0, "heartbeat_at": "2026-11-16 11:57:04", "last_error": "", "stat": { "rx": 252884, "tx": 460933, "trades": 10, "rejects": 0, "reconnects": 2, "dropped": 0, "last_rx_at": "11:57:02", "last_tx_at": "11:57:03", "hs_server_seq": 1738206, "hs_last_seq": 1738206, "snap_positions_at": "11:56:59", "snap_positions_n": 4, "snap_funds_at": "11:56:59", "seq_hwm": 1894880, "peer_skew_ms": 11, "ooo": 0, "pending_gap": 0, "funds_update_at": "10:00:54", "funds_update_n": 10, "position_update_at": "09:47:45", "position_update_n": 6, "last_close": "TimeoutError: timed out during handshake", "peer_skew_min": -128, "peer_skew_max": 2721 } }, "funds": { "seq": 1894879, "received_at": "2026-11-16 11:56:59", "age_sec": 6.1 }, "pending": 0, "orphan": 0, "open_orders": 0, "reconciliation": { "ok": true, "diffs": [], "fixes": [], "errors": [], "severity": "OK", "source": "ws", "note": "策略数量之和核对账户;不猜测差异归属,不自动把差异并入任何策略" }, "cash_difference": 0.0, "valuation_ready": true, "positions": [ { "strategy_book": null, "ts_code": "002979.SZ", "total_qty": 100, "avg_cost": null, "base_qty": 100 }, { "strategy_book": null, "ts_code": "300750.SZ", "total_qty": 100, "avg_cost": "252.880", "base_qty": 100 }, { "strategy_book": null, "ts_code": "601126.SH", "total_qty": 2700, "avg_cost": "31.313", "base_qty": 700 }, { "strategy_book": null, "ts_code": "603259.SH", "total_qty": 100, "avg_cost": "150.580", "base_qty": 100 } ], "files": { "app/core/grid_inventory.py": "e72ef0b16bee924a4fc26ad6e30bc3608096cbc5176044adb27e644c74b335c8", "app/services/strategy_runner.py": "5ae8a87757b17ca03d8a4492cc637017382c1491b0734242c340779b2aa6fd8f", "scripts/test_grid_execution.py": "55ca2b7c298a48f65e940238f8def173f247079f6601f7f68342fd58a80d7888" }, "http_health": 200, "health": { "status": "ok", "version": "0.2.0-dev", "service": "pms-web", "now": "2026-11-16 11:57:05", "trade_day": true, "calendar_degraded": false, "db_ok": true } }, "post_deploy_verify": { "at": "2026-11-16T11:57:47.479160+08:00", "total_containers": 30, "unchanged_other_containers": 28, "targets": [ { "name": "pms-web", "id": "95591a2e14f521a82164b289119ca7125ed621120ec9cb8035e1e233b7b38e69", "image": "sha256:e53225e9eb8126d344514e14250af4b26608aa03d254be9e9a5fa412b970c092", "tag": "pms:remediation-rules-7c60cdc-web", "started": "2026-11-16T03:57:09.760711117Z", "health": "healthy", "files_match_candidate": true }, { "name": "pms-worker", "id": "c7c006f911affe164a99d08f91bbebf5d08887a12b28d672a13521538f3d11d8", "image": "sha256:5397eadc2c74b40848d99ed9aeb925a00ff9013a6fc10f6a837d75df16e6bc7e", "tag": "pms:remediation-rules-7c60cdc-worker", "started": "2026-11-16T03:57:09.759823863Z", "health": null, "files_match_candidate": true } ], "private_configuration_unchanged": true, "worker": { "queues": [ "celery" ], "tasks": [ "pms.command_poll", "pms.daily_report", "pms.daily_settle", "pms.execution_basis_refresh", "pms.execution_cancel_confirm", "pms.intraday_exec", "pms.macro_scan", "pms.monitor_watch_sync", "pms.nav_snapshot", "pms.plan_pull", "pms.premarket", "pms.proposal_scan", "pms.replay_fills", "pms.rotation_tick", "pms.signal_digest", "pms.strategy_attach", "pms.t0_close", "pms.tech_pull" ] } }, "final_health": { "at": "2026-11-16T11:59:26.872660+08:00", "prefix": "", "scope": "pms-sim-155", "params": { "PMS_DISPATCH_MODE": "ws", "PMS_GLOBAL_BUY_HALT": false, "PMS_GLOBAL_EXEC_HALT": false, "PMS_AUTO_GRID_STEP_PCT": 0.04, "PMS_RISK_EXIT_ENABLED": true, "PMS_TIMING_FUSION_ENABLED": true, "PMS_TIMING_FUSION_START_AT": "2026-11-11T16:17:11.269641+08:00", "PMS_SELF_DECIDE_TRIAL": true }, "ws": { "conn_state": "ONLINE", "last_seq": 1894916, "acked_seq": 1894916, "resync_flag": 0, "heartbeat_at": "2026-11-16 11:59:26", "last_error": "", "stat": { "rx": 252920, "tx": 461001, "trades": 10, "rejects": 0, "reconnects": 2, "dropped": 0, "last_rx_at": "11:59:22", "last_tx_at": "11:59:24", "hs_server_seq": 1738206, "hs_last_seq": 1738206, "snap_positions_at": "11:58:59", "snap_positions_n": 4, "snap_funds_at": "11:58:59", "seq_hwm": 1894916, "peer_skew_ms": 10, "ooo": 0, "pending_gap": 0, "funds_update_at": "10:00:54", "funds_update_n": 10, "position_update_at": "09:47:45", "position_update_n": 6, "last_close": "TimeoutError: timed out during handshake", "peer_skew_min": -128, "peer_skew_max": 2721 } }, "funds": { "seq": 1894911, "received_at": "2026-11-16 11:58:59", "age_sec": 27.8 }, "pending": 0, "orphan": 0, "open_orders": 0, "reconciliation": { "ok": true, "diffs": [], "fixes": [], "errors": [], "severity": "OK", "source": "ws", "note": "策略数量之和核对账户;不猜测差异归属,不自动把差异并入任何策略" }, "cash_difference": 0.0, "valuation_ready": true, "positions": [ { "strategy_book": null, "ts_code": "002979.SZ", "total_qty": 100, "avg_cost": null, "base_qty": 100 }, { "strategy_book": null, "ts_code": "300750.SZ", "total_qty": 100, "avg_cost": "252.880", "base_qty": 100 }, { "strategy_book": null, "ts_code": "601126.SH", "total_qty": 2700, "avg_cost": "31.313", "base_qty": 700 }, { "strategy_book": null, "ts_code": "603259.SH", "total_qty": 100, "avg_cost": "150.580", "base_qty": 100 } ], "files": { "app/core/grid_inventory.py": "e72ef0b16bee924a4fc26ad6e30bc3608096cbc5176044adb27e644c74b335c8", "app/services/strategy_runner.py": "560dc9afca5190325b8fd1a75c28fc3b4c19f19e57f7baabdc136b0c40002dd0", "scripts/test_grid_execution.py": "55ca2b7c298a48f65e940238f8def173f247079f6601f7f68342fd58a80d7888" }, "http_health": 200, "health": { "status": "ok", "version": "0.2.0-dev", "service": "pms-web", "now": "2026-11-16 11:59:27", "trade_day": true, "calendar_degraded": false, "db_ok": true } }, "natural_receipts": { "at": "2026-11-16T11:58:27.434724+08:00", "success_counts": { "pms.replay_fills": 1, "pms.execution_basis_refresh": 1, "pms.signal_digest": 1, "pms.rotation_tick": 1, "pms.proposal_scan": 1, "pms.command_poll": 1, "pms.intraday_exec": 1, "pms.execution_cancel_confirm": 1, "pms.monitor_watch_sync": 1 }, "failed_task_names": [], "results": { "pms.replay_fills": { "task_id": "9b888310-995a-46c1-a9a2-68ba812b6d66", "status": "SUCCESS", "result": { "skipped": "not_in_session" } }, "pms.execution_basis_refresh": { "task_id": "084f3081-063a-4963-a0cc-e873f409630c", "status": "SUCCESS", "result": { "skipped": "not_in_session" } }, "pms.intraday_exec": { "task_id": "461a9461-2503-4445-8e03-351ee51ae131", "status": "SUCCESS", "result": { "skipped": "not_in_session" } } } }, "natural_receipts_limit": "午间休市,盘中执行、回放和依据刷新返回not_in_session;仅验证自然调度到达,不是盘中规则或触价成交判收。", "live_rule_check": { "at": "2026-11-16T11:57:53.814557", "scope": "pms-sim-155", "positions": { "002979.SZ": { "total_qty": 100, "exit_buy_blocker": "第一次清仓信号已确认,停止新增买入,等待第二次独立信号", "user_stop_price": null, "strategies": [ { "strategy_id": "STR_20261104_002979SZ_756400", "type": "GRID", "status": "ACTIVE", "params": { "center": 47.18, "lower": 46.035, "upper": 52.823, "step_pct": 0.04, "per_lot": 1600, "max_capital": 76358.11 } } ] }, "300750.SZ": { "total_qty": 100, "exit_buy_blocker": "第一次清仓信号已确认,停止新增买入,等待第二次独立信号", "user_stop_price": null, "strategies": [] }, "601126.SH": { "total_qty": 2700, "exit_buy_blocker": "第一次清仓信号已确认,停止新增买入,等待第二次独立信号", "user_stop_price": null, "strategies": [ { "strategy_id": "STR_20261109_601126SH_188403", "type": "GRID", "status": "ACTIVE", "params": { "center": 31.39, "lower": 30.116, "upper": 32.825, "step_pct": 0.04, "per_lot": 1000, "max_capital": 67730.61 } } ] }, "603259.SH": { "total_qty": 100, "exit_buy_blocker": null, "user_stop_price": null, "strategies": [] } }, "open_budgets": { "INS_20261112_300364SZ_OPEN_001_b8a67bfde6f2": { "ts_code": "300364.SZ", "status": "WAIT_REVIEW", "qty": 600, "budget": { "version": 1, "ts_code": "300364.SZ", "amount": "17226.00", "scale": "1.72260E+6", "target_pct": "0.010", "quantity_limit": 600, "tier": "试探仓", "min_lot_merge": true, "basis": "买入成交金额,不含另记的交易费用", "revision": "4b045986bec9cd911cf87131" } } }, "params": { "PMS_SELF_DECIDE": "full", "PMS_MIN_LOT_MERGE": true, "PMS_PORTFOLIO_CAP": 0.7, "PMS_STOCK_CAP": 0.08, "PMS_RISK_EXIT_ENABLED": true, "PMS_EXEC_MINUTE_MAX_AGE_SEC": 90 } }, "unchanged_facts": { "before_at": "2026-11-16T11:42:20.048411", "after_at": "2026-11-16T11:58:32.367962", "positions_equal": true, "historical_lots_equal": true, "params_equal": true, "codes": [ "002979.SZ", "300364.SZ", "300750.SZ", "601126.SH", "603259.SH" ], "snapshot_sha256": { "pre": "b65162f1e3fff57af26239ac3b0931b3dfaf0576148cd143f2690ef785fbcddd", "post": "d5084f20e37fa72a9b51e6ebdd6b2ce0049e5595549ddee086d1c26539030028" } }, "not_validated_naturally": [ "人工止损触价及T+1实际成交", "试探预算自然最低量拒绝和报价、部分成交续单", "网格实际库存阻断和完整卖出后的同价循环" ] }