Skip to content

fix(runtime): keep candidate feedback topology stable - #6

Merged
kachofugetsu09 merged 1 commit into
mainfrom
fix/candidate-topology-identity-20260822
Aug 22, 2026
Merged

fix(runtime): keep candidate feedback topology stable#6
kachofugetsu09 merged 1 commit into
mainfrom
fix/candidate-topology-identity-20260822

Conversation

@kachofugetsu09

Copy link
Copy Markdown
Member

结论

让 candidate 与 formal Root 声明同一个 committed-turn listener,同时 candidate 继续不启动持久 worker、不读取正式 Session、也不写正式 plugin-data。

根因

候选行为验证成功后,Core 会用正式 runtime 重建同一个 generation 并校验 snapshot identity。此前 listener 仅在 formal Root 注册,使任何插件候选晋升都会被正确地判为拓扑漂移。

验证

  • python -m pytest -q tests: 30 passed
  • node --test tests/test_mobile_panel.mjs: 5 passed
  • pyright --level error ...: 0 errors
  • 回归测试现在实际执行 publish_prepared,并断言 candidate/formal topology identity 相同、candidate 事件不产生数据库写入。

@kachofugetsu09
kachofugetsu09 merged commit e65badd into main Aug 22, 2026
2 checks passed
@kachofugetsu09
kachofugetsu09 deleted the fix/candidate-topology-identity-20260822 branch August 22, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant