fix: auto-project mainland detect sync

This commit is contained in:
Your Name
2026-04-19 02:59:10 +08:00
parent 4dcbf8ecb3
commit 66f55d880a
5 changed files with 206 additions and 42 deletions

View File

@@ -1,6 +1,6 @@
# IMPLEMENTATION_STATUS
更新时间2026-04-19 02:51 CST
更新时间2026-04-19 02:57 CST
## 当前真实状态
@@ -13,12 +13,13 @@
本轮最重要的新事实:
- 中央“逐条事件接收与落库”能力已经补齐
- mainland `sync_agent` 自动产 `detect_result_projection` 的缺口也已经补齐
- 当前真正剩余阻塞变成:
- 大陆节点还没把这版代码跑起来并把逐条事件推到中央
- 大陆节点还没把这版代码跑起来并重启 `sync_agent`
## 本轮结论收口
本轮没有发散做新模块,而是完成了 `J1` 的最小实现:
本轮没有发散做新模块,而是完成了 `J1`第二轮最小实现:
### 1. `detect_result_projection` 已扩展为可带逐条事件
@@ -46,25 +47,35 @@
- `import_source_job_code`
- `import_fingerprint`
### 3. 真实端到端仍待大陆节点拉新验证
### 3. `sync_agent` 已会自动产出 `detect_result_projection`
本轮新增:
- `app.sync_agent` 每个 tick 会基于当前 `active_job`
- 自动调用 `append_detect_result_projection_if_changed`
这意味着:
- mainland 只要拉到这版代码并重启 `domaincheck-sync-agent`
- 就会自动开始补推 `detect_result_projection`
- 不再依赖额外访问 mainland 检测页面
### 4. 真实端到端仍待 mainland 拉新并重启 `sync_agent`
当前中央实际可见:
- `overseas-control-01`
- `domain_started`
- `domain_completed`
- `mainland-controller-01` / `mainland-worker-01` 心跳正常
- `runtime_ingest.updated_at`
- 已刷新到 `2026-04-19 02:55:36`
- `detect_result_ingest.updated_at`
- 仍停在 `2026-04-17 16:57:32`
- `detect_run_events`
- 仍无 mainland `domain_*`
当前中央仍不可见
说明
- `mainland-controller-01`
- `domain_*`
- `mainland-worker-01`
-`domain_*`
说明中央代码已补,但真实输入流还没跑到新版本:
- 中央还没收到带 `recent_domain_events` 的 mainland 投影
- 所以真实库里还没有新的 mainland `domain_*`
- mainland 同步链活着
- 但 अभी还没有跑到会自动产新格式投影的这版 `sync_agent`
## 当前已闭合的问题
@@ -75,17 +86,19 @@
- Detect 主统计口径不一致
- Runtime / Queue / Detect 主摘要不统一
- “中央如何接并落大陆逐条事件”的代码缺口
- “mainland 必须人工访问检测页面才会产生 detect_result_projection”的自动触发缺口
## 当前剩余问题
当前唯一剩余问题:
- 大陆节点尚未完成“拉新代码并继续推投影”的最后验证
- mainland 节点尚未完成“拉新代码并重启 `domaincheck-sync-agent`”的最后验证
换句话说:
- 当前不是“中央不会接”
- 而是“大陆还没把新格式投影推上来
- 也不是“代码还没写
- 而是 mainland 还没跑到会自动产新格式投影的这一版
## 当前是否可以继续跑检测测试
@@ -93,7 +106,7 @@
- 可以继续跑检测测试
- 主统计和节点参与已经足够可信
- 逐条账本是否完整,取决于大陆节点是否已经拉到这版代码
- 逐条账本是否完整,取决于 mainland 是否已经拉到这版代码并重启 `domaincheck-sync-agent`
## 当前是否建议直接上线
@@ -107,7 +120,9 @@
- 如果目标是:
- 中央账本逐条反映大陆每个域名的终态
那现在只差最后一个落地验证动作
那现在只差最后一个落地验证动作
- mainland 拉新
- 重启 `domaincheck-sync-agent`
## 当前优先级判断
@@ -125,7 +140,7 @@
## 完成下一轮后的预期
如果下一轮完成大陆拉新并验证贯通:
如果下一轮完成 mainland 拉新、重启 `sync_agent` 并验证贯通:
- item 级统一才会真正可落地
- 后续 `detect_job_items` 回写会变成纯工程实现问题