Commit Graph

164 Commits

Author SHA1 Message Date
2569718930@qq.com 6d7f213cd9 修复 lint 警告及测试 monkeypatch 引用 2026-06-16 02:03:47 +08:00
2569718930@qq.com dca4f2d618 架构重构:拆分 core/ops/DBManager,统一 SQLite 锁,DEB 改进,新增注意力模型
- web/core.py 858→236行,拆出 schemas/middleware/auth/diagnostics
- ops_api.py 2876→4个 domain 模块 (users/payments/health/config)
- DBManager Supabase HTTP 调用提取到 SupabaseAdminClient
- 新增 LockedSQLiteConnection 统一多进程读写锁
- 新增 WeatherCacheManager 替代 12 个独立缓存字典
- METAR 缓存迁移至统一缓存管理器
- analysis_service 提取 _build_intraday_meteorology 到独立模块
- DEB 改进:偏差惩罚、分歧回退、自适应 lookback (MAE ↓12.6%)
- 新增 PyTorch 注意力模型 deb_attention.py (数据积累后启用)
- 新增 torch 到 requirements.lock
2026-06-16 02:00:22 +08:00
2569718930@qq.com ed0447f408 Drop stale observation fields during overlay 2026-06-15 23:32:47 +08:00
2569718930@qq.com 3984e12c44 Clear stale Ankara source fields 2026-06-15 23:25:50 +08:00
2569718930@qq.com 5075cf40b8 Fix Ankara stale chart date overlay 2026-06-15 23:12:56 +08:00
2569718930@qq.com fd9d768c6d Fix Ankara MGM observation freshness 2026-06-15 22:47:13 +08:00
2569718930@qq.com 95b55d4ab3 Replace stale runway history on raw backfill 2026-06-15 20:49:37 +08:00
2569718930@qq.com 07e28481e8 Require recent runway history coverage 2026-06-15 20:40:57 +08:00
2569718930@qq.com 383011f9fe Filter runway history by observation time 2026-06-15 20:20:31 +08:00
2569718930@qq.com 7443383720 Avoid raw runway history rebuild on hot path 2026-06-15 20:08:13 +08:00
2569718930@qq.com 9e91e8576c Avoid repeated runway history copies 2026-06-15 19:58:04 +08:00
2569718930@qq.com 7a9573c214 Build runway history from raw observations 2026-06-15 19:35:17 +08:00
2569718930@qq.com 791b2d115f Backfill runway history from latest AMSC overlay 2026-06-15 19:20:22 +08:00
2569718930@qq.com 56f397bb2e Persist AMSC runway history from collector 2026-06-15 18:59:41 +08:00
2569718930@qq.com 05a36f857b Preserve runway history during chart refresh 2026-06-15 18:47:25 +08:00
2569718930@qq.com 6b9caf8dc2 Stabilize AMSC chart detail overlays 2026-06-15 03:13:08 +08:00
2569718930@qq.com c79e0f36cc Improve scan terminal freshness and AMSC overlay consistency 2026-06-15 01:39:19 +08:00
2569718930@qq.com f98ab4a9fe Prefer AMSC sessionId over stale cookie 2026-06-15 00:57:10 +08:00
2569718930@qq.com 59f19407cb Use latest AMSC runway timestamp for overlays 2026-06-15 00:43:07 +08:00
2569718930@qq.com 8bf7cdd687 Overlay latest AMSC observations in city and Telegram payloads 2026-06-15 00:29:43 +08:00
2569718930@qq.com 3b34ddbf12 Strip Wunderground data from city cache responses 2026-06-14 23:47:25 +08:00
2569718930@qq.com e909f1f4c9 Remove sync city refresh fetch escape hatch 2026-06-14 23:09:31 +08:00
2569718930@qq.com 7fb82c5eba Stop legacy city refreshes from fetching sources 2026-06-14 22:51:15 +08:00
2569718930@qq.com 9cb794655b Emit realtime events from canonical updates 2026-06-14 19:51:34 +08:00
2569718930@qq.com 43aeb6047e Select canonical temperature from raw observations 2026-06-14 19:33:09 +08:00
2569718930@qq.com 00b163a8ec Introduce observation source adapters 2026-06-14 19:20:43 +08:00
2569718930@qq.com ccc8866229 Stop collector from triggering full weather refreshes 2026-06-14 18:44:49 +08:00
2569718930@qq.com 3e1e06d8e1 Queue stale weather refreshes from user paths 2026-06-14 18:21:53 +08:00
2569718930@qq.com e111031119 Decouple live weather reads from source collection 2026-06-14 17:53:24 +08:00
2569718930@qq.com 56f31c0aa2 Add Telegram webhook command entrypoint 2026-06-14 06:32:58 +08:00
2569718930@qq.com e0cbe57071 Add lightweight bot DEB endpoint 2026-06-13 17:57:24 +08:00
2569718930@qq.com 9d120d7215 Restrict observability endpoints to ops admins 2026-06-13 02:35:30 +08:00
2569718930@qq.com be1d93fc09 Reduce detail concurrency for two-core VPS 2026-06-13 02:11:34 +08:00
2569718930@qq.com f0b1b57ae2 Tune production concurrency for small VPS 2026-06-13 01:59:28 +08:00
2569718930@qq.com f115be1fd3 fix chart refresh and bot command surface 2026-06-13 01:34:09 +08:00
2569718930@qq.com 33fbf17c18 support feedback rewards for unbound users 2026-06-12 23:17:34 +08:00
2569718930@qq.com 5fa3fb8999 use lightweight MADIS health probe 2026-06-11 14:29:56 +08:00
2569718930@qq.com 1494db8e09 maximize Cloudflare edge caching 2026-06-10 19:11:58 +08:00
2569718930@qq.com 081bf9cc05 speed up entitlement auth sync 2026-06-10 16:49:18 +08:00
2569718930@qq.com 7e17ab8a1b fix chart detail batch cache fallback 2026-06-10 16:18:59 +08:00
2569718930@qq.com 5a7d302d11 Add chart freshness diagnostics 2026-06-10 15:34:34 +08:00
2569718930@qq.com ba012736c9 Tune city detail batch limits 2026-06-10 14:34:13 +08:00
2569718930@qq.com 24c4c2ebf6 Reduce scan startup pressure 2026-06-09 23:26:53 +08:00
2569718930@qq.com 772f8d85f5 Increase scan terminal build budget 2026-06-09 22:59:17 +08:00
2569718930@qq.com c98ff34c1e Fix Telegram fallback binding group gate 2026-06-09 14:23:34 +08:00
2569718930@qq.com d0c0bf7034 Fix Telegram bot binding fallback 2026-06-09 12:57:37 +08:00
2569718930@qq.com 6c7f3ef67f Use fixed feedback reward amounts 2026-06-08 22:20:35 +08:00
2569718930@qq.com 6273921005 Add ops feedback reward grants 2026-06-08 20:54:20 +08:00
2569718930@qq.com 8f6925108c Reduce polling and batch observation writes 2026-06-08 15:12:41 +08:00
2569718930@qq.com 96dde3b50e Add observation collector health status 2026-06-08 14:39:49 +08:00