ГЛОБАЛЬНЫЙ РЕФАКТОРИНГ АРХИТЕКТУРЫ - Рефакторинг этапов 2.25 финализацию address-ветки в отдельный adapter \ Переподключил assistantService на новый adapter (без смены поведения)
This commit is contained in:
@@ -826,7 +826,76 @@ 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 completed)**
|
||||
Implemented in current pass (Phase 2.24):
|
||||
1. Extracted deep-lane finalization/response tail from `assistantService` into dedicated runtime adapter:
|
||||
- `assistantDeepTurnFinalizeRuntimeAdapter.ts`
|
||||
- introduced:
|
||||
- `finalizeAssistantDeepTurn(...)`
|
||||
2. Centralized finalization runtime sequence (behavior-preserving):
|
||||
- assistant turn commit + processed-event logging;
|
||||
- deep-turn API success response assembly from committed conversation state.
|
||||
3. Rewired `assistantService` deep-lane to consume finalization adapter output (behavior-preserving).
|
||||
4. Added focused unit tests:
|
||||
- `assistantDeepTurnFinalizeRuntimeAdapter.test.ts`
|
||||
|
||||
Validation:
|
||||
1. `npm run build` passed.
|
||||
2. Targeted Stage 2 assembler/adapter pack passed:
|
||||
- `assistantOrchestrationContracts.test.ts`
|
||||
- `assistantOrchestrationRuntimeAdapter.test.ts`
|
||||
- `assistantAnswerPackageBuilder.test.ts`
|
||||
- `assistantCoverageGrounding.test.ts`
|
||||
- `assistantQueryPlanning.test.ts`
|
||||
- `assistantEvidenceBundleAssembler.test.ts`
|
||||
- `assistantDebugPayloadAssembler.test.ts`
|
||||
- `assistantMessageLogAssembler.test.ts`
|
||||
- `assistantContractsBundleAssembler.test.ts`
|
||||
- `assistantDeepResponseAssembler.test.ts`
|
||||
- `assistantDeepTurnPackaging.test.ts`
|
||||
- `assistantDeepTurnInputBuilder.test.ts`
|
||||
- `assistantInvestigationStateRuntimeAdapter.test.ts`
|
||||
- `assistantTurnCommitRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnPrePackagingContext.test.ts`
|
||||
- `assistantDeepTurnResponseBuilder.test.ts`
|
||||
- `assistantDeepTurnCompositionRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnGuardRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnRetrievalRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnPlanRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnContextRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnGroundingRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnPackagingRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnFinalizeRuntimeAdapter.test.ts`
|
||||
3. Additional safety regressions passed:
|
||||
- `assistantWave10SettlementCorrectiveRegression.test.ts`
|
||||
- `assistantMcpRuntimeBridge.test.ts`
|
||||
- `assistantAddressFollowupContext.test.ts`
|
||||
|
||||
Implemented in current pass (Phase 2.25):
|
||||
1. Extracted address-lane finalization/response tail from `assistantService` into dedicated runtime adapter:
|
||||
- `assistantAddressTurnFinalizeRuntimeAdapter.ts`
|
||||
- introduced:
|
||||
- `finalizeAssistantAddressTurn(...)`
|
||||
2. Centralized address finalization runtime sequence (behavior-preserving):
|
||||
- assistant item creation for address lane;
|
||||
- structured `assistant_message_address` processed-event payload build;
|
||||
- turn commit/persist/log via shared commit runtime adapter;
|
||||
- API success response assembly from committed conversation state.
|
||||
3. Rewired `assistantService` address-lane finalize path to consume adapter output (behavior-preserving).
|
||||
4. Added focused unit tests:
|
||||
- `assistantAddressTurnFinalizeRuntimeAdapter.test.ts`
|
||||
|
||||
Validation:
|
||||
1. `npm run build` passed.
|
||||
2. Targeted Stage 2 adapter/finalization pack passed:
|
||||
- `assistantAddressTurnFinalizeRuntimeAdapter.test.ts`
|
||||
- `assistantDeepTurnFinalizeRuntimeAdapter.test.ts`
|
||||
- `assistantTurnCommitRuntimeAdapter.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 completed)**
|
||||
|
||||
## Stage 3 (P2): Hybrid Semantic Layer (LLM + Deterministic Guards)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user