ГЛОБАЛЬНЫЙ РЕФАКТОРИНГ АРХИТЕКТУРЫ - Рефакторинг этапов 2.26 вынос runtime-блок living chat из assistantService в отдельный adapter
This commit is contained in:
@@ -895,7 +895,34 @@ Validation:
|
||||
- `assistantMcpRuntimeBridge.test.ts`
|
||||
- `assistantAddressFollowupContext.test.ts`
|
||||
|
||||
Status: **In progress (Phase 2.1 + 2.2 + 2.3 + 2.4 + 2.5 + 2.6 + 2.7 + 2.8 + 2.9 + 2.10 + 2.11 + 2.12 + 2.13 + 2.14 + 2.15 + 2.16 + 2.17 + 2.18 + 2.19 + 2.20 + 2.21 + 2.22 + 2.23 + 2.24 + 2.25 completed)**
|
||||
Implemented in current pass (Phase 2.26):
|
||||
1. Extracted living-chat finalization/response tail from `assistantService` into dedicated runtime adapter:
|
||||
- `assistantLivingChatTurnFinalizeRuntimeAdapter.ts`
|
||||
- introduced:
|
||||
- `finalizeAssistantLivingChatTurn(...)`
|
||||
2. Centralized living-chat finalization runtime sequence (behavior-preserving):
|
||||
- assistant item creation for chat lane;
|
||||
- structured `assistant_message_chat` processed-event payload build;
|
||||
- turn commit/persist/log via shared commit runtime adapter;
|
||||
- API success response assembly from committed conversation state.
|
||||
3. Rewired `assistantService` `tryHandleLivingChat(...)` finalize path to consume adapter output (behavior-preserving).
|
||||
4. Added focused unit tests:
|
||||
- `assistantLivingChatTurnFinalizeRuntimeAdapter.test.ts`
|
||||
|
||||
Validation:
|
||||
1. `npm run build` passed.
|
||||
2. Targeted living/address/deep finalize pack passed:
|
||||
- `assistantLivingChatTurnFinalizeRuntimeAdapter.test.ts`
|
||||
- `assistantAddressTurnFinalizeRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnFinalizeRuntimeAdapter.test.ts`
|
||||
- `assistantLivingChatMode.test.ts`
|
||||
- `assistantLivingRouter.test.ts`
|
||||
3. Additional safety regressions passed:
|
||||
- `assistantWave10SettlementCorrectiveRegression.test.ts`
|
||||
- `assistantMcpRuntimeBridge.test.ts`
|
||||
- `assistantAddressFollowupContext.test.ts`
|
||||
|
||||
Status: **In progress (Phase 2.1 + 2.2 + 2.3 + 2.4 + 2.5 + 2.6 + 2.7 + 2.8 + 2.9 + 2.10 + 2.11 + 2.12 + 2.13 + 2.14 + 2.15 + 2.16 + 2.17 + 2.18 + 2.19 + 2.20 + 2.21 + 2.22 + 2.23 + 2.24 + 2.25 + 2.26 completed)**
|
||||
|
||||
## Stage 3 (P2): Hybrid Semantic Layer (LLM + Deterministic Guards)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user