Phase 1 Query Processing
Phase 1 Query Processing は、Context Build、Material Quarantine、Reasoning 実行より前に、AIKernel が query intent を整えるための境界を定義します。
これは知識検索エンジンではありません。KernelContext の下で query intent を補間・分解・意味空間化・routing するための contract layer です。
1. 責務境界
IQueryAugmentorは素材を commit せずに query intent を正規化・補間・rewrite します。IQueryDecomposerは複合 input を順序付きQueryPartに分割します。IEmbeddingProviderは Provider capability が許可する場合に text を意味ベクトル空間へ写像します。IQueryRouterは宣言済み capability に基づき、QueryPartを処理可能 Provider へ割り当てます。QueryPartは query planning から material/context build へ渡される immutable DTO です。
RAG は素材を供給しうる Provider または Pipeline 戦略であり続けます。Core の query 抽象は retrieval、indexing、knowledge-store mutation を所有してはなりません。
2. Phase 1 Flow
Input Query\n -> IQueryAugmentor\n -> IQueryDecomposer\n -> QueryPart[]\n -> optional IEmbeddingProvider semantic projection\n -> IQueryRouter provider selection\n -> ROM / CacheDB material resolution\n -> Material Quarantine\n -> Structure Phase
3. 既存概念との整合
- Phase 1: Query 補間・分解・embedding projection・routing は Structure より前に行います。
- Phase 2: Generation と Polish は QueryPart state を変更してはなりません。
- ROM: Query processing は ROM 素材を対象にできますが、ROM identity と canonical hash が正典です。
- CacheDB: Cache hit は material resolution の結果であり、query-processing state ではありません。
- Governance: PDP/Guard decision は部分 state の commit 前に query processing を deny/abort できます。
4. Provider Capability 拡張
Provider は query support を capability metadata として宣言します。
SupportsQueryAugmentationSupportsQueryDecompositionSupportsQueryRoutingMaxQueryPartsSupportedQueryProcessingOperationsSupportsEmbeddingEmbeddingDimensionsSupportedEmbeddingModels
Kernel はこれらの宣言を routing と audit に使用します。隠れた Provider 能力を推測してはなりません。
変更履歴
- v0.0.1 (2026-05-09): Phase 1 Query Processing architecture を追加
Source:
architecture/17.QUERY_PROCESSING_PHASE1-jp.md