iter47 issue-873 device-endpoint-direct-runtime-dispatch: typed facade + 删 callback auto-create + registration admission#876
Conversation
…typed facade,删 callback auto-create + registration admission 按 issue #873 Phase 9 r1 consensus(meta-judge: delete framing): 1. DeviceEventEndpoints: 删 IActorRuntime/IActorDispatchPort 注入,改用 typed command facade(IDeviceCallbackCommandService/IDeviceRegistrationCommandService) 2. DeviceCommandFacades.cs(新): typed facade + target resolver + envelope factory + receipt factory + DefaultCommandDispatchService(参考 ChannelRegistrationCommandFacade pattern) 3. 删 callback-time household auto-create: callback 要求 DeviceRegistrationGAgent admission 先行;未注册 → return error 不 auto-create 4. DeviceRegistrationGAgent 作为第一权威 actor(admission) 5. HouseholdEntity 作为 callback target 复用(不引入新 actor type) 6. register/delete 一并 lift 到 facade pattern(scope_extend) 7. device_registration.proto 适配 typed events 8. 测试: DeviceCommandFacadeTests +DeviceCommandFacadeTestSupport / DeviceEventEndpointsTests 更新 / DeviceRegistrationGAgentTests / RegistrationQueryPortTests / ServiceCollectionExtensionsTests Note: 完整 slnx test 有 pre-existing scripting/GAgentService 失败(不在本 PR scope);本 PR 仅含 Device 改动,本地 ChannelRuntime.Tests 811/811 pass。 不引入新 device callback actor type。 Closes #873 ⟦AI:AUTO-LOOP⟧
🤖 Phase 8 Reviewer —
|
Phase 8 Reviewer -
|
🤖 Phase 8 Reviewer —
|
📊 codex 进展 review-pr876-architect-r1 (⏳ 进行中; 已跑 10 min)
|
📊 codex 进展 review-pr876-quality-r1 (⏳ 进行中; 已跑 10 min)
|
📊 codex 进展 review-pr876-tests-r1 (⏳ 进行中; 已跑 10 min)
|
…e-endpoint-direct-runtime-dispatch
…e-endpoint-direct-runtime-dispatch
Phase 8 Reviewer -
|
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## auto-refact-dev #876 +/- ##
================================================
Coverage 82.83% 82.83%
================================================
Files 998 998
Lines 63092 63092
Branches 8161 8161
================================================
Hits 52261 52261
Misses 7304 7304
Partials 3527 3527
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
摘要
iter47 issue-873 cluster-001-device-endpoint-direct-runtime-dispatch(high,top-layering + command-skeleton + runtime-dispatch-separation + default-resource-semantics)。
household-{scopeId}actor,手动构造 EventEnvelope,直接 dispatch。API 层承担业务编排,资源 ownership 不明,callback 缺失时 silent auto-create。DeviceRegistrationGAgent(第一权威 actor),未注册 → return error 不 auto-create。HouseholdEntity 作为 callback target 复用(无新 actor)。Phase 9 共识来源
META_JUDGE_DONE:consensus:delete:delete callback-time household auto-create; require device registration admission and route all device commands through a typed facade/command skeleton改动范围
14 files (+629/-95):
本地验证:
dotnet build aevatar.slnx --nologo✅ · architecture_guards.sh ✅ · ChannelRuntime.Tests 811/811 ✅(本 PR scope)。Note:slnx 全量 test 有 pre-existing scripting/GAgentService 失败不在本 PR scope。Closes #873
📢 cc 原作者: @eanzhao @loning
🤖 Auto-loop / codex-refactor-loop iter47
⟦AI:AUTO-LOOP⟧