ARCH: сделать catalog drilldown отдельным user-facing metadata шагом
This commit is contained in:
@@ -486,6 +486,42 @@ describe("assistant MCP discovery answer adapter", () => {
|
||||
expect(draft.must_not_claim).toContain("Do not present the inferred next checked lane as already executed data retrieval.");
|
||||
});
|
||||
|
||||
it("uses a distinct human headline for catalog drilldown instead of repeating a generic metadata overview", async () => {
|
||||
const planner = planAssistantMcpDiscovery({
|
||||
metadataSurface: {
|
||||
selected_entity_set: "Catalog",
|
||||
selected_surface_objects: ["Catalog.Counterparties"],
|
||||
downstream_route_family: "catalog_drilldown",
|
||||
route_family_selection_basis: "selected_entity_set",
|
||||
recommended_next_primitive: "drilldown_related_objects",
|
||||
ambiguity_detected: false,
|
||||
ambiguity_entity_sets: []
|
||||
},
|
||||
turnMeaning: {
|
||||
asked_domain_family: "metadata",
|
||||
asked_action_family: "inspect_catalog",
|
||||
unsupported_but_understood_family: "schema_surface"
|
||||
}
|
||||
});
|
||||
const pilot = await executeAssistantMcpDiscoveryPilot(
|
||||
planner,
|
||||
buildMetadataDeps([
|
||||
{
|
||||
FullName: "Catalog.Counterparties",
|
||||
MetaType: "Catalog",
|
||||
attributes: [{ Name: "Description" }]
|
||||
}
|
||||
])
|
||||
);
|
||||
|
||||
const draft = buildAssistantMcpDiscoveryAnswerDraft(pilot);
|
||||
|
||||
expect(draft.answer_mode).toBe("confirmed_with_bounded_inference");
|
||||
expect(draft.headline).toContain("углубиться");
|
||||
expect(draft.headline).toContain("справочников");
|
||||
expect(draft.headline).toContain("catalog drilldown");
|
||||
});
|
||||
|
||||
it("keeps metadata answer honest when schema surface stays ambiguous", async () => {
|
||||
const planner = planAssistantMcpDiscovery({
|
||||
turnMeaning: {
|
||||
|
||||
Reference in New Issue
Block a user