ARCH: добавить входной адаптер MCP discovery
This commit is contained in:
+23
@@ -844,6 +844,29 @@ Validation:
|
||||
- `npm test -- assistantMcpDiscoveryPolicy.test.ts assistantMcpCatalogIndex.test.ts assistantMcpDiscoveryPlanner.test.ts assistantMcpDiscoveryRuntimeAdapter.test.ts assistantMcpDiscoveryPilotExecutor.test.ts assistantMcpDiscoveryAnswerAdapter.test.ts assistantMcpDiscoveryRuntimeBridge.test.ts` passed 33/33;
|
||||
- `npm run build` passed.
|
||||
|
||||
## Progress Update - 2026-04-20 MCP Discovery Turn Input Adapter
|
||||
|
||||
The eighth implementation slice of Big Block 5 added the adapter between current-turn meaning/predecompose contracts and MCP discovery input:
|
||||
|
||||
- `assistantMcpDiscoveryTurnInputAdapter.ts`
|
||||
- `assistantMcpDiscoveryTurnInputAdapter.test.ts`
|
||||
|
||||
This adapter still does not wire discovery into the hot answer path.
|
||||
|
||||
It solves the next runtime integration seam:
|
||||
|
||||
- maps `assistant_turn_meaning_v1` into `AssistantMcpDiscoveryTurnMeaningRef`;
|
||||
- extracts counterparty, organization, and date scope from predecompose contracts;
|
||||
- bootstraps lifecycle/activity-duration questions from raw user wording;
|
||||
- treats unsupported-but-understood meaning as discovery-eligible instead of stale-replay fallback;
|
||||
- avoids serializing structured entity candidates as `[object Object]`;
|
||||
- keeps supported exact routes out of MCP discovery.
|
||||
|
||||
Validation:
|
||||
|
||||
- `npm test -- assistantMcpDiscoveryTurnInputAdapter.test.ts assistantMcpDiscoveryPolicy.test.ts assistantMcpCatalogIndex.test.ts assistantMcpDiscoveryPlanner.test.ts assistantMcpDiscoveryRuntimeAdapter.test.ts assistantMcpDiscoveryPilotExecutor.test.ts assistantMcpDiscoveryAnswerAdapter.test.ts assistantMcpDiscoveryRuntimeBridge.test.ts` passed 37/37;
|
||||
- `npm run build` passed.
|
||||
|
||||
## Execution Rule
|
||||
|
||||
Do not implement this plan as:
|
||||
|
||||
Reference in New Issue
Block a user