﻿{
  "schema_version": 1,
  "purpose": "AIが依頼内容に応じて必要な資料を段階的に読むための経路表",
  "entry_point": "../For_AI.md",
  "status": "active",
  "shared_context": "project_context.xml",
  "route_definition_policy": "この routes 配列は質問別の読取対象を定義する唯一の経路表である。For_AI.md は読取順と検証規約だけを持ち、質問別の経路定義を重複して持たない。",
  "routes": [
    {
      "id": "user_guidance",
      "when": "アプリの用途、導入、基本操作、画面構成、困ったときについて質問された場合",
      "read": [
        "core/features_faq.md",
        "core/user_guidance_reference.md",
        "core/use_cases.md",
        "core/ui_concepts.md",
        "core/troubleshooting_quick.md",
        "../README.md",
        "../docs/public/Index.md",
        "../docs/public/How_to_Use.md",
        "../docs/public/How_to_Troubleshoot.md"
      ]
    },
    {
      "id": "installation_and_updates",
      "when": "導入、通常版とLite版の選択、ZIP展開、ショートカット、関連付け、更新、削除について質問された場合",
      "read": [
        "core/user_guidance_reference.md",
        "../README.md",
        "../docs/public/Index.md",
        "../docs/public/How_to_Setup.md"
      ]
    },
    {
      "id": "customization_and_settings",
      "when": "設定、注釈ツール、色、フォント、ノート、ショートカット、ワークスペースのカスタマイズについて質問された場合",
      "read": [
        "core/user_guidance_reference.md",
        "core/ui_concepts.md",
        "core/data_schemas.md",
        "../docs/public/How_to_Setup.md"
      ],
      "verify_source_code_and_tests_for_unlisted_settings": true
    },
    {
      "id": "save_and_recovery_procedures",
      "when": "stage、統合保存、Ctrl+S、バックアップ、復元、保存失敗、未統合の変更について質問された場合",
      "read": [
        "core/user_guidance_reference.md",
        "core/file_formats.md",
        "core/data_schemas.md",
        "../docs/public/How_to_Save_and_Recovery.md",
        "../docs/public/How_to_Troubleshoot.md"
      ],
      "verify_source_code_and_tests": true
    },
    {
      "id": "support_and_feedback",
      "when": "不具合報告、要望、セキュリティ報告、開発者への連絡方法について質問された場合",
      "read": [
        "core/user_guidance_reference.md",
        "core/troubleshooting_quick.md",
        "../docs/public/How_to_Troubleshoot.md",
        "../.github/SECURITY.md"
      ],
      "do_not_assume_contact_channel_availability": true
    },
    {
      "id": "project_overview_and_oss",
      "when": "OSS、このソフトの目的、利用できること、利用資源、ライセンス、第三者コンポーネントについて質問された場合",
      "read": [
        "core/features_faq.md",
        "project_context.xml",
        "../README.md",
        "../LICENSE.md",
        "../LICENSES_INDEX.md",
        "../THIRD_PARTY_NOTICES.md"
      ]
    },
    {
      "id": "design_philosophy",
      "when": "このプロジェクトが解こうとしている課題、PDF・注釈・ノート・数式・ワークスペースの関係、または設計思想について質問された場合",
      "read": [
        "core/use_cases.md",
        "core/ui_concepts.md",
        "project_context.xml",
        "../README.md",
        "../docs/public/How_to_Use.md",
        "../docs/public/What_is_File_Formats.md"
      ],
      "distinguish_design_principles_from_current_implementation": true
    },
    {
      "id": "objective_analysis",
      "when": "安全性、外部通信、保存、復元、Office変換、配布内容について、根拠に基づく分析や検証を求められた場合",
      "read": [
        "core/features_faq.md",
        "core/file_formats.md",
        "project_context.xml"
      ],
      "verify_source_code_and_tests": true
    },
    {
      "id": "sound_behavior",
      "when": "通知音、Windowsの一般警告音、静音性について質問された場合",
      "read": [
        "core/features_faq.md",
        "core/troubleshooting_quick.md",
        "project_context.xml",
        "../docs/public/How_to_Troubleshoot.md"
      ],
      "treat_reported_general_warning_sound_as_unresolved_issue": true
    },
    {
      "id": "file_formats",
      "when": "PDF、.clrop、.clro、Markdown、TeX、テキスト、CSVの扱いについて質問された場合",
      "read": [
        "core/file_formats.md",
        "core/data_schemas.md",
        "../docs/public/What_is_File_Formats.md",
        "../docs/public/How_to_Save_and_Recovery.md"
      ]
    },
    {
      "id": "architecture_and_schemas",
      "when": "Win32 C++ アーキテクチャ、レイヤー構造、データモデル、.clrop スキーマについて質問された場合",
      "read": [
        "core/architecture_layers.md",
        "core/data_schemas.md",
        "core/safety_and_nonnegotiables.md",
        "project_context.xml"
      ]
    },
    {
      "id": "safe_change",
      "when": "コード、保存、注釈、出力、配布物を変更する依頼の場合",
      "read": [
        "core/safety_and_nonnegotiables.md",
        "core/ai_guardrails.md",
        "core/code_symbol_index.md"
      ],
      "follow_local_instructions": true,
      "repository_only_read": ["../AGENTS.md"]
    },
    {
      "id": "code_reference",
      "when": "C++ ソースコード、クラス、関数シンボルの位置を特定・参照したい場合",
      "read": [
        "core/code_symbol_index.md",
        "core/architecture_layers.md"
      ]
    },
    {
      "id": "ai_documentation_quality",
      "when": "AI向け資料の構造、根拠、文字コード、画像、公開前検査について質問または変更を行う場合",
      "read": [
        "core/documentation_contract.md",
        "../For_AI.md"
      ],
      "verify_public_site_after_changes": true
    }
  ],
  "future_modules": []
}
