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

cases:
  - id: plba-fullchain-open-file-runtime
    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"]
      llm:
        non_empty: true

  - id: plba-fullchain-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"]
      llm:
        non_empty: true

  - id: plba-fullchain-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"]
      llm:
        non_empty: true

  - id: plba-fullchain-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"]
      llm:
        non_empty: true

  - id: plba-fullchain-trace-flow-runtime-manager
    query: "Покажи поток выполнения RuntimeManager"
    expected:
      router:
        intent: CODE_QA
        sub_intent: TRACE_FLOW
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        symbol_candidates_contain: ["RuntimeManager"]
        layers_include: ["C2_DEPENDENCY_GRAPH", "C3_ENTRYPOINTS"]
      llm:
        non_empty: true

  - id: plba-fullchain-architecture-control-plane
    query: "Какие компоненты участвуют в RuntimeManager?"
    expected:
      router:
        intent: CODE_QA
        sub_intent: ARCHITECTURE
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        layers_include: ["C4_SEMANTIC_ROLES", "C2_DEPENDENCY_GRAPH", "C3_ENTRYPOINTS"]
      llm:
        non_empty: true

  - id: plba-fullchain-explain-local-runtime-manager
    query: "Почему в файле src/app_runtime/core/runtime.py класс RuntimeManager устроен так?"
    expected:
      router:
        intent: CODE_QA
        sub_intent: EXPLAIN_LOCAL
        graph_id: CodeQAGraph
        conversation_mode: START
      retrieval:
        non_empty: true
        path_scope_contains: ["src/app_runtime/core/runtime.py"]
        symbol_candidates_contain: ["RuntimeManager"]
        layers_include: ["C1_SYMBOL_CATALOG", "C0_SOURCE_CHUNKS", "C2_DEPENDENCY_GRAPH"]
      llm:
        non_empty: true
