ARCH: добавить answer adapter MCP discovery

This commit is contained in:
2026-04-20 10:05:43 +03:00
parent 4181bb9c9b
commit b4865f36b1
4 changed files with 423 additions and 0 deletions
@@ -788,6 +788,36 @@ Validation:
- `npm test -- assistantMcpDiscoveryPolicy.test.ts assistantMcpCatalogIndex.test.ts assistantMcpDiscoveryPlanner.test.ts assistantMcpDiscoveryRuntimeAdapter.test.ts assistantMcpDiscoveryPilotExecutor.test.ts` passed 25/25;
- `npm run build` passed.
## Progress Update - 2026-04-20 MCP Discovery Answer Adapter
The sixth implementation slice of Big Block 5 added a human-safe answer draft adapter:
- `assistantMcpDiscoveryAnswerAdapter.ts`
- `assistantMcpDiscoveryAnswerAdapter.test.ts`
This adapter is still not wired into the hot assistant runtime.
It converts pilot evidence into an answer draft that can later be consumed by the final answer layer:
- confirmed lines;
- bounded inference lines;
- unknown fact boundaries;
- user-facing limitations;
- next-step guidance;
- `must_not_claim` constraints.
The adapter explicitly blocks internal mechanics from user-facing lines:
- MCP primitive names;
- query text;
- debug/reason mechanics;
- raw runtime/planner/catalog codes.
Validation:
- `npm test -- assistantMcpDiscoveryPolicy.test.ts assistantMcpCatalogIndex.test.ts assistantMcpDiscoveryPlanner.test.ts assistantMcpDiscoveryRuntimeAdapter.test.ts assistantMcpDiscoveryPilotExecutor.test.ts assistantMcpDiscoveryAnswerAdapter.test.ts` passed 29/29;
- `npm run build` passed.
## Execution Rule
Do not implement this plan as: