ARCH: подключить MCP discovery к runtime meta

This commit is contained in:
2026-04-20 11:54:04 +03:00
parent de4e064885
commit f0d7e81ec0
4 changed files with 171 additions and 4 deletions
@@ -921,6 +921,30 @@ Validation:
- `npm test -- assistantMcpDiscoveryDebugAttachment.test.ts assistantDebugPayloadAssembler.test.ts assistantAddressLaneResponseRuntimeAdapter.test.ts assistantMcpDiscoveryRuntimeEntryPoint.test.ts` passed 13/13;
- `npm run build` passed.
## Progress Update - 2026-04-20 MCP Discovery Runtime Meta Hook
The eleventh implementation slice of Big Block 5 wires the discovery entry point into real orchestration runtime meta:
- `assistantAddressOrchestrationRuntimeAdapter.ts`
- `assistantAddressOrchestrationRuntimeAdapter.test.ts`
This is the first live hook from the address orchestration runtime into MCP discovery.
It still does not change the user-facing answer.
Runtime behavior:
- builds MCP discovery input from raw user message, effective address message, `orchestrationContract.assistant_turn_meaning`, and the predecompose contract;
- stores the result under `addressRuntimeMeta.mcpDiscoveryRuntimeEntryPoint`;
- keeps `hot_runtime_wired=false`;
- keeps route/living-mode decisions unchanged;
- records `mcpDiscoveryRuntimeEntryPointError` instead of breaking address orchestration if discovery fails.
Validation:
- `npm test -- assistantMcpDiscoveryRuntimeEntryPoint.test.ts assistantMcpDiscoveryTurnInputAdapter.test.ts assistantMcpDiscoveryPolicy.test.ts assistantMcpCatalogIndex.test.ts assistantMcpDiscoveryPlanner.test.ts assistantMcpDiscoveryRuntimeAdapter.test.ts assistantMcpDiscoveryPilotExecutor.test.ts assistantMcpDiscoveryAnswerAdapter.test.ts assistantMcpDiscoveryRuntimeBridge.test.ts assistantMcpDiscoveryDebugAttachment.test.ts assistantAddressOrchestrationRuntimeAdapter.test.ts assistantAddressLaneResponseRuntimeAdapter.test.ts assistantDebugPayloadAssembler.test.ts` passed 61/61;
- `npm run build` passed.
## Execution Rule
Do not implement this plan as: