iter57 cluster-070: 拆分 VoicePresence lease 与 relay pump#951
Merged
loning merged 1 commit intoMay 24, 2026
Merged
Conversation
删除本地 actor acceptance mirror,带 lease 的 attach 必须等待 dispatch 结果;本地 relay pump 仅保留 transport I/O 与不可变对账 key。 ⟦AI:AUTO-LOOP⟧
Contributor
Author
📊 状态卡片 — reviewer 派出
🤖 controller status banner ⟦AI:AUTO-LOOP⟧ |
Contributor
Author
📊 codex 进展 review-pr951-omnibus-r1 (⏳ 进行中; 已跑 11 min)
|
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## auto-refact-dev #951 +/- ##
===================================================
+ Coverage 82.83% 83.54% +0.70%
===================================================
Files 998 987 -11
Lines 63092 63559 +467
Branches 8161 8214 +53
===================================================
+ Hits 52261 53098 +837
+ Misses 7304 6905 -399
- Partials 3527 3556 +29
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 69 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This was referenced May 24, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
cluster-070 / #948 指出
VoicePresenceModule的本地VoiceTransportLease同时承载 actor acceptance、session/owner/expiry lease 事实和本地 relay 生命周期,导致 actor-owned lease fact 与 process-local mirror 混在一起。方案
IsActorAccepted与相关本地置位/清理逻辑,provider audio 是否能写回 transport 由 actor turn 中的VoicePresenceRuntimeState先验收,再只用不可变 transport key 对账本地 pump。sessionId的同步AttachTransport(...)直接拒绝,正式路径必须走AttachTransportAsync(...)并等待 attach signal dispatch 结果。VoiceTransportRelayPump+VoiceTransportRelayKey,pump 只持 transport I/O、dispatcher、取消源和 relay task;lease fact 继续在 actor state 中维护。/ws/voiceendpoint contract、VoicePresenceSession、现有 typed signals 和 transport reconciliation keys;未新增 core actor/envelope/proto。影响路径
src/Aevatar.Foundation.VoicePresence/Modules/VoicePresenceModule.cstest/Aevatar.Foundation.VoicePresence.Tests/VoicePresenceModuleTests.cstest/Aevatar.Foundation.VoicePresence.Tests/VoiceTransportRelayTests.cs验证
dotnet test test/Aevatar.Foundation.VoicePresence.Tests/Aevatar.Foundation.VoicePresence.Tests.csproj --no-restore --nologobash tools/ci/architecture_guards.sh && bash tools/ci/test_stability_guards.sh && dotnet build aevatar.slnx --nologo⟦AI:AUTO-LOOP⟧