ГЛОБАЛЬНЫЙ РЕФАКТОРИНГ АРХИТЕКТУРЫ - Рефакторинг этапов 2.28 - вынос retry-orchestration адресного лейна (контекстный прогон, primary, retry сырого вопроса, fallback limited) в отдельный адаптер.
This commit is contained in:
@@ -946,7 +946,57 @@ Validation:
|
||||
- `assistantAddressFollowupContext.test.ts`
|
||||
- `assistantWave10SettlementCorrectiveRegression.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 + 2.27 completed)**
|
||||
Implemented in current pass (Phase 2.28):
|
||||
1. Extracted address-lane retry orchestration branch from `assistantService` into dedicated runtime adapter:
|
||||
- `assistantAddressLaneRuntimeAdapter.ts`
|
||||
- introduced:
|
||||
- `runAssistantAddressLaneRuntime(...)`
|
||||
2. Centralized address retry/runtime branch sequence (behavior-preserving):
|
||||
- contextual-first execution when followup context is preferred;
|
||||
- primary execution without followup context;
|
||||
- optional contextual fallback when context exists but is not preferred;
|
||||
- retry with raw user message for retryable limited results;
|
||||
- deterministic fallback to pending limited result when retry does not improve outcome.
|
||||
3. Rewired `assistantService` address lane execution path to consume retry adapter output and preserve existing address finalization contract.
|
||||
4. Added focused unit tests:
|
||||
- `assistantAddressLaneRuntimeAdapter.test.ts`
|
||||
|
||||
Validation:
|
||||
1. `npm run build` passed.
|
||||
2. Targeted living/address followup pack passed:
|
||||
- `assistantAddressLaneRuntimeAdapter.test.ts`
|
||||
- `assistantAddressFollowupContext.test.ts`
|
||||
- `assistantLivingChatMode.test.ts`
|
||||
- `assistantLivingRouter.test.ts`
|
||||
- `assistantWave10SettlementCorrectiveRegression.test.ts`
|
||||
|
||||
Implemented in current pass (Phase 2.29):
|
||||
1. Extracted address orchestration bootstrap block from `assistantService` into dedicated runtime adapter:
|
||||
- `assistantAddressOrchestrationRuntimeAdapter.ts`
|
||||
- introduced:
|
||||
- `buildAssistantAddressOrchestrationRuntime(...)`
|
||||
2. Centralized address orchestration bootstrap sequence (behavior-preserving):
|
||||
- LLM predecompose stage or deterministic fallback contract when feature is disabled;
|
||||
- effective address input message resolution;
|
||||
- followup carryover context resolution;
|
||||
- orchestration/tool-gate decision resolution;
|
||||
- dialog continuation contract projection into runtime meta;
|
||||
- living mode decision projection for chat fallback.
|
||||
3. Rewired `assistantService` address pre-lane bootstrap path to consume orchestration runtime adapter output.
|
||||
4. Added focused unit tests:
|
||||
- `assistantAddressOrchestrationRuntimeAdapter.test.ts`
|
||||
|
||||
Validation:
|
||||
1. `npm run build` passed.
|
||||
2. Targeted living/address followup pack passed:
|
||||
- `assistantAddressOrchestrationRuntimeAdapter.test.ts`
|
||||
- `assistantAddressLaneRuntimeAdapter.test.ts`
|
||||
- `assistantAddressFollowupContext.test.ts`
|
||||
- `assistantLivingChatMode.test.ts`
|
||||
- `assistantLivingRouter.test.ts`
|
||||
- `assistantWave10SettlementCorrectiveRegression.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 + 2.27 + 2.28 + 2.29 completed)**
|
||||
|
||||
## Stage 3 (P2): Hybrid Semantic Layer (LLM + Deterministic Guards)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user