ARCH: добавить dry-run adapter MCP discovery

This commit is contained in:
2026-04-20 09:39:52 +03:00
parent 98988fa635
commit 9d5ae69953
4 changed files with 446 additions and 0 deletions
@@ -733,6 +733,32 @@ Validation:
- `npm test -- assistantMcpDiscoveryPolicy.test.ts assistantMcpCatalogIndex.test.ts assistantMcpDiscoveryPlanner.test.ts` passed 17/17;
- `npm run build` passed.
## Progress Update - 2026-04-20 MCP Discovery Runtime Dry-Run Adapter
The fourth implementation slice of Big Block 5 added a dry-run runtime adapter:
- `assistantMcpDiscoveryRuntimeAdapter.ts`
- `assistantMcpDiscoveryRuntimeAdapter.test.ts`
This adapter still does not execute live MCP calls.
It turns planner output into an execution package that future live wiring can consume safely:
- ordered execution steps;
- primitive purpose and expected fact kinds;
- provided and missing grounding axes;
- evidence floor and stop condition per primitive;
- execution budget;
- mandatory evidence gate inputs;
- user-facing fallback for missing scope or policy blocks.
The contract explicitly records `mcp_execution_performed=false`, so this block cannot accidentally query 1C.
Validation:
- `npm test -- assistantMcpDiscoveryPolicy.test.ts assistantMcpCatalogIndex.test.ts assistantMcpDiscoveryPlanner.test.ts assistantMcpDiscoveryRuntimeAdapter.test.ts` passed 21/21;
- `npm run build` passed.
## Execution Rule
Do not implement this plan as: