defaults:
  runner: runtime
  mode: router_rag
  input:
    rag_session_id: "7d11da21-faa0-4cea-aede-aeabe069164c"

cases:
  - id: plba-rag-open-runtime-manager-file
    query: "Открой файл src/app_runtime/core/runtime.py"
    expected:
      router:
        intent: CODE_QA
        sub_intent: OPEN_FILE
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        path_scope_contains: ["src/app_runtime/core/runtime.py"]
        layers_include: ["C0_SOURCE_CHUNKS"]

  - id: plba-rag-open-http-control-channel-file
    query: "Покажи файл src/app_runtime/control/http_channel.py"
    expected:
      router:
        intent: CODE_QA
        sub_intent: OPEN_FILE
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        path_scope_contains: ["src/app_runtime/control/http_channel.py"]
        layers_include: ["C0_SOURCE_CHUNKS"]

  - id: plba-rag-explain-runtime-manager
    query: "Объясни как работает класс RuntimeManager"
    expected:
      router:
        intent: CODE_QA
        sub_intent: EXPLAIN
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["RuntimeManager"]
        layers_include: ["C1_SYMBOL_CATALOG", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-explain-http-control-channel
    query: "Объясни класс HttpControlChannel"
    expected:
      router:
        intent: CODE_QA
        sub_intent: EXPLAIN
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["HttpControlChannel"]
        layers_include: ["C1_SYMBOL_CATALOG", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-explain-trace-service
    query: "Как работает TraceService?"
    expected:
      router:
        intent: CODE_QA
        sub_intent: EXPLAIN
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["TraceService"]
        layers_include: ["C1_SYMBOL_CATALOG", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-find-tests-runtime-manager
    query: "Где тесты для RuntimeManager?"
    expected:
      router:
        intent: CODE_QA
        sub_intent: FIND_TESTS
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["RuntimeManager"]
        layers_include: ["C1_SYMBOL_CATALOG", "C2_DEPENDENCY_GRAPH", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-find-tests-http-control-channel
    query: "Найди тесты для HttpControlChannel"
    expected:
      router:
        intent: CODE_QA
        sub_intent: FIND_TESTS
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["HttpControlChannel"]
        layers_include: ["C1_SYMBOL_CATALOG", "C2_DEPENDENCY_GRAPH", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-find-entrypoints
    query: "Найди точки входа в коде"
    expected:
      router:
        intent: CODE_QA
        sub_intent: FIND_ENTRYPOINTS
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        layers_include: ["C3_ENTRYPOINTS", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-explain-create-runtime
    query: "Объясни функцию create_runtime"
    expected:
      router:
        intent: CODE_QA
        sub_intent: EXPLAIN
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["create_runtime"]
        layers_include: ["C1_SYMBOL_CATALOG", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-explain-control-plane-service
    query: "Объясни класс ControlPlaneService"
    expected:
      router:
        intent: CODE_QA
        sub_intent: EXPLAIN
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["ControlPlaneService"]
        layers_include: ["C1_SYMBOL_CATALOG", "C0_SOURCE_CHUNKS"]

  - id: plba-rag-explain-workflow-engine
    query: "Объясни класс WorkflowEngine"
    expected:
      router:
        intent: CODE_QA
        sub_intent: EXPLAIN
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["WorkflowEngine"]
        layers_include: ["C1_SYMBOL_CATALOG", "C0_SOURCE_CHUNKS"]
