defaults:
  component: process_v2_router_plus_retrieval_policy

cases:
  - id: soft-architecture-summary
    query: "Как устроена архитектура приложения?"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent: SUMMARY
      retrieval_plan:
        profile_equals_any: [docs_summary_architecture, docs_summary_generic, general_qa_grounded_summary]

  - id: soft-process-summary
    query: "Опиши процесс отправки уведомлений"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent: SUMMARY
      retrieval_plan:
        profile_equals_any: [docs_summary_logic_flow, docs_summary_generic, general_qa_grounded_summary]

  - id: soft-domain-entity-summary
    query: "Что такое runtime health в документации?"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent: SUMMARY
      retrieval_plan:
        profile_equals_any: [docs_summary_domain_entity, docs_summary_generic, general_qa_grounded_summary]

  - id: soft-runtime-health-document
    query: "Покажи документ про runtime health"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent_equals_any: [SUMMARY, FIND_FILES]
      retrieval_plan:
        profile_equals_any: [file_lookup, docs_summary_domain_entity, docs_summary_generic, general_qa_grounded_summary]

  - id: soft-api-send-noisy
    query: "Нужен краткий док-саммари по api /send"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: SUMMARY
      retrieval_plan:
        profile: docs_summary_api_endpoint

  - id: soft-general-risks-architecture
    query: "Какие риски у такого подхода в архитектуре?"
    expected:
      route:
        routing_domain_equals_any: [GENERAL, DOCS]
        intent_equals_any: [GENERAL_QA, DOC_EXPLAIN]
        subintent: SUMMARY
      retrieval_plan:
        profile_equals_any: [general_qa_grounded_summary, docs_summary_architecture, docs_summary_generic]

  - id: soft-general-polling-webhook
    query: "Сравни polling и webhook в контексте сервиса"
    expected:
      route:
        routing_domain_equals_any: [GENERAL, DOCS]
        intent_equals_any: [GENERAL_QA, DOC_EXPLAIN]
        subintent: SUMMARY
      retrieval_plan:
        profile_equals_any: [general_qa_grounded_summary, docs_summary_generic]

  - id: soft-conflict-entity-plus-process
    query: "Объясни entity runtime health и runtime loop"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: SUMMARY
      retrieval_plan:
        profile_equals_any: [docs_summary_domain_entity, docs_summary_generic]
        filters:
          prefer_path_prefixes_contains: [docs/domains/]

  - id: soft-alias-handle-health
    query: "Объясни ручку /health"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: SUMMARY
      retrieval_plan:
        profile: docs_summary_api_endpoint

  - id: soft-alias-show-doc-handle-health
    query: "Покажи документ по ручке /health"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent_equals_any: [FIND_FILES, SUMMARY]
      retrieval_plan:
        profile_equals_any: [file_lookup, docs_summary_api_endpoint, general_qa_grounded_summary]

  - id: soft-alias-schema-overview
    query: "Нужен обзор по архитектуре notify app"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent: SUMMARY
      retrieval_plan:
        profile_equals_any: [docs_summary_architecture, docs_summary_generic, general_qa_grounded_summary]

  - id: soft-alias-find-schema-file
    query: "Найди файл со схемой сервиса уведомлений"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent_equals_any: [FIND_FILES, SUMMARY]
      retrieval_plan:
        profile_equals_any: [file_lookup, docs_summary_architecture, docs_summary_generic, general_qa_grounded_summary]

  - id: soft-process-domain-summary
    query: "Объясни overview по billing invoice flow"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: SUMMARY
      route:
        anchors:
          process_domain: present
          process_subdomain: present
      retrieval_plan:
        profile_equals_any: [docs_summary_logic_flow, docs_summary_generic, docs_summary_architecture]

  - id: soft-process-domain-find-files
    query: "Найди файл по billing invoice flow"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: FIND_FILES
      route:
        anchors:
          process_domain: present
          process_subdomain: present
      retrieval_plan:
        profile: file_lookup

  - id: soft-noisy-arch-overview
    query: "arch overview по notify app"
    expected:
      route:
        routing_domain_equals_any: [DOCS, GENERAL]
        intent_equals_any: [DOC_EXPLAIN, GENERAL_QA]
        subintent: SUMMARY
      retrieval_plan:
        profile_equals_any: [docs_summary_architecture, docs_summary_generic, general_qa_grounded_summary]

  - id: soft-noisy-file-send-endpoint
    query: "нужен файл где описан /send endpoint"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: FIND_FILES
      retrieval_plan:
        profile: file_lookup

  - id: soft-bare-file-token-preferences
    query: "health-endpoint.md"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: FIND_FILES
      route:
        anchors:
          file_names_contains: ["health-endpoint.md"]
      retrieval_plan:
        profile: file_lookup

  - id: soft-doc-path-preferences
    query: "docs/api/health-endpoint.md"
    expected:
      router:
        domain: DOCS
        intent: DOC_EXPLAIN
        sub_intent: FIND_FILES
      route:
        anchors:
          file_names_contains: ["docs/api/health-endpoint.md"]
      retrieval_plan:
        profile: file_lookup
