本文へスキップ

AI運用の判断と根拠を引く

トップへ戻る

セマンティックレイヤー × AI

用語・参照用語・参照公式仕様のみ公式仕様のみ鮮度未確認鮮度を確定できない

記事状態: 公開 · 最終確認: 未確認

要点

「エンタープライズAIの分析によれば、LLMを生のデータベーススキーマに直接接続するよりも、組織が定義したメトリクス、次元、リレーションシップ、アクセスルールを持つセマンティックレイヤーを介在させる方が、AIが推測しなければならない業務上の意味を減らすことができ、定義のバージョン管理、監査、評価が容易になる。ただし、これは回答の正確性を保証するものではない。セマンティックモデル自体の誤り、不足、陳腐化、権限設定、生のSQLなどによるバイパス経路、およびLLMによる質問の解釈やクエリ生成の誤りは、別途評価する必要がある。」

現在の判断

F1 VERIFIED_SPEC/OSS_PRACTICE: 意味をそろえる共通のデータ定義層 can encode business concepts above physical データ形式の定義: metrics, dimensions, entities/relationships/join paths and, depending on 実装, access policy. 現在の Snowflake and Cube implementations expose these semantics directly to AI/NL analytics. F2 推論: the architectural value is not “LLM becomes correct” but “business meaning becomes an explicit, versionable, reviewable dependency rather than an implicit LLM 推論.” This is the safe Core abstraction. F3 VERIFIED_SPEC: Snowflake 意味上の views are native schema-level governed objects; generated SQL still executes under database privileges. 意味上の guidance and 認可 are separate controls. F4 SOURCE_REPORT/OSS_PRACTICE: Cube demonstrates a 意味上の 実行環境 where AI queries are validated and access policy is applied before warehouse 実行; however Cube also documents raw 出典 SQL paths that bypass the layer. Therefore 強制的な適用 must be architectural, not assumed from product presence. F5 RESEARCH: Spider 2.0 establishes that enterprise text-to-SQL over complex raw data remains difficult. dbt Labs' semantic-layer 比較評価 provides direct comparative 根拠 but is small/domain-specific and also documents expressiveness failures (“too many hops”). F6 出典レポート: OSIはベンダーに依存しない意味的な相互交換への積極的な動きを示していますが、相互運用性が確保されているからといって、実装間で指標の意味論、セキュリティ、方言の振る舞い、または実行結果が同一であるという証拠にはなりません。

どこまで当てはまるか

エンタープライズAIコア / データ / ガバナンス / 実装 / 相互運用性 / ベンチマーク / プロバイダーマッピング。EA-066 Identity-aware ACL-aware RAGとはアクセス制御の強制を指し、EA-067 Knowledge 情報の鮮度 Engineeringとは意味定義の鮮度を指し、EA-015 監査証跡とは生成されたクエリ・意味バージョン・実行者の出典・来歴によって接続されるものです。

詳しく理解する

なぜ重要か

Enterprise AIで自然言語→SQLを許す場合、物理データ形式の定義だけでは「売上」「アクティブ顧客」「粗利」等の業務定義、正しいjoin path、粒度、集計式、アクセス制御を十分に表せない。意味をそろえる共通のデータ定義層はLLMの能力を上げる機構ではなく、AIが推測すべき業務意味を減らし、metrics/dimensions/relationships/access policyをgoverned interfaceとして提供する実装層になり得る。EA-068では「意味をそろえる共通のデータ定義層を通せば正しい」という製品保証ではなく、raw データ形式の定義直結より統制可能な分析面を作る設計原則として扱う。

対象範囲と前提

エンタープライズAIコア / データ / ガバナンス / 実装 / 相互運用性 / ベンチマーク / プロバイダーマッピング。EA-066 Identity-aware ACL-aware RAGとはアクセス制御の強制を指し、EA-067 Knowledge 情報の鮮度 Engineeringとは意味定義の鮮度を指し、EA-015 監査証跡とは生成されたクエリ・意味バージョン・実行者の出典・来歴によって接続されるものです。

検討ポイント

Q1. AI分析をraw DB/データ形式の定義へ直接接続する代わりに意味をそろえる共通のデータ定義層を介在させると、business 評価指標・join・dimension・access ruleを明示的に統制できるか。 Q2. 現在の製品は、AIエージェント/自然言語分析の実行面として、セマンティックモデル/ビューを実装しているか。 Q3. 意味をそろえる共通のデータ定義層はtext-to-SQLの正確性を保証するか。それともerror 利用機能・接続経路を縮小するだけか。 Q4. 意味上の モデルのバージョン、権限、情報の鮮度、bypass経路をどう監査すべきか。

根拠資料の対応表

  • 資料の種類: official product 仕様・利用方法の文書 原資料の題名: Cortex Analyst | Snowflake 仕様・利用方法の文書 org: Snowflake 原資料の正式なURL: https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-analyst publication/update: 現在の 仕様・利用方法の文書; access 2026-09-15 バージョン/公開・提供: 現在の as-of access; 意味上の Views recommended, legacy staged YAML supported for backward compatibility 裏付ける該当箇所: Understanding 意味上の Views / Why use 意味上の Views / Access 制御 requirements / Security and 運用管理・統制 分類ラベル: VERIFIED_SPEC + PRODUCT_VOLATILE 対応関係: 裏付け + limit finding: 意味上の Views define logical tables, dimensions, facts, metrics and relationships; Cortex Analyst uses them for NL→SQL. Generated SQL executes in Snowflake and underlying table SELECT privileges/RBAC apply. 意味上の view/モデル 付随情報 aids SQL generation; 意味上の views are recommended for new implementations.
  • 資料の種類: official product 仕様・利用方法の文書 原資料の題名: Overview of 意味上の views org: Snowflake 原資料の正式なURL: https://docs.snowflake.com/en/user-guide/views-semantic/overview publication/update: 現在の 仕様・利用方法の文書; access 2026-09-15 バージョン/公開・提供: 現在の as-of access 裏付ける該当箇所: Interfaces for working with 意味上の Views / getting started 分類ラベル: VERIFIED_SPEC + PRODUCT_VOLATILE 対応関係: 裏付け + 実装 調査結果:セマンティック・ビューは、ビジネス指標、エンティティ、およびリレーションシップを含むスキーマレベルのオブジェクトです。Cortex Agents、Cortex Analyst REST API、および直接的なSQL SELECTで使用可能であり、Snowflakeの仕組みを通じて共有できます。
  • 資料の種類: official product 仕様・利用方法の文書 原資料の題名: 処理先の振り分け Mode for Cortex Analyst org: Snowflake 原資料の正式なURL: https://docs.snowflake.com/en/en/user-guide/snowflake-cortex/cortex-analyst/cortex-analyst-routing-mode publication/update: 現在の 仕様・利用方法の文書; access 2026-09-15 バージョン/公開・提供: Preview 機能 — Open; PRODUCT_VOLATILE 補足的な参照先:ルーティングモードの概要 / 権限に関する注記 分類ラベル: VERIFIED_SPEC + PRODUCT_VOLATILE 対応関係: 裏付け + limit finding: 処理先の振り分け mode uses 意味上の views so metrics, joins and filters follow governed definitions; 仕様・利用方法の文書 explicitly states 処理先の振り分け mode does not change permissions, which remain standard Snowflake privileges.
  • 資料の種類: author-maintained product/OSS 仕様・利用方法の文書 原資料の題名: Introduction - Cube 仕様・利用方法の文書 org: Cube 原資料の正式なURL: https://docs.cube.dev/docs/introduction publication/update: 現在の 仕様・利用方法の文書; access 2026-09-15 バージョン/公開・提供: 現在の docs; Cube Core open-source 意味をそろえる共通のデータ定義層 参照箇所:セマンティックSQL / セマンティックレイヤーのアーキテクチャ / アクセス制御 / API 分類ラベル: OSS_PRACTICE + SOURCE_REPORT + PRODUCT_VOLATILE 対応関係: 裏付け + 実装 finding: AI agents query Cube 意味をそろえる共通のデータ定義層 through 意味上の SQL rather than warehouse directly; 実行環境 validates against data モデル and applies access policies before warehouse 実行. Metrics, joins, access rules and caching are centralized; APIs include SQL/REST/GraphQL/MCP-related paths.
  • 出典の分類: 作成者が維持する製品ドキュメント 原資料の題名: Workbooks - Cube 仕様・利用方法の文書 / 出典 SQL Tabs org: Cube 原資料の正式なURL: https://docs.cube.dev/docs/explore-analyze/workbooks/index ; https://docs.cube.dev/docs/explore-analyze/workbooks/source-sql-tabs publication/update: 現在の 仕様・利用方法の文書; access 2026-09-15 バージョン/公開・提供: 現在の as-of access 補足ロケーター: セマンティッククエリ vs ソースSQLクエリ 分類ラベル: SOURCE_REPORT + PRODUCT_VOLATILE 対応関係: counter + limit finding: Cube itself exposes both semantic-query paths and 出典 SQL Query paths that bypass the 意味をそろえる共通のデータ定義層. Therefore product 採用 alone does not prove 意味上の 強制的な適用; bypass 利用機能・接続経路 must be separately governed.
  • 資料の種類: open specification / industry working group 原資料の題名: Open 意味上の Interchange (OSI) org: Open 意味上の Interchange community 原資料の正式なURL: https://open-semantic-interchange.org/ 公開/更新:仕様策定は現在進行中。サイトの更新には2026-06-04の活動が含まれます。アクセス日:2026-09-15 バージョン/公開・提供: 現在の specification site; Apache 2.0; YAML; exact spec バージョン must be rechecked at update time 補足情報:Core Classes / AI Ready 意味上の 文脈・入力情報 / Working Groups 分類ラベル: SOURCE_REPORT + PRODUCT_VOLATILE 対応関係: 相互運用性 + 文脈・入力情報 finding: OSI is an active vendor-neutral effort to exchange 意味上の 付随情報 across analytics/AI/BI, with 意味上の モデル, datasets, fields, metrics, dimensions and relationships. It 裏付ける内容 the direction of portable semantics but does not yet establish universal cross-vendor 意味上の equivalence.
  • ソース分類:一次研究/ベンチマーク 原資料の題名: Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows 組織/著者: Fangyu Lei et al. 原資料の正式なURL: https://arxiv.org/abs/2411.07763 publication: 2024-11-12; access 2026-09-15 バージョン: arXiv 2411.07763; 比較評価 632 enterprise 処理の流れ problems 裏付ける該当箇所: abstract / 比較評価 description / reported 比較の基準 分類ラベル: RESEARCH 対応関係: counter + 文脈・入力情報 調査結果: 実務レベルのエンタープライズ向けtext-to-SQLには、大規模なスキーマ、方言のドキュメント、メタデータ、およびプロジェクトコードが関与します。報告されているエージェントの成功率は、より単純なSpider/BIRDの設定を大きく下回っています。これは、生のスキーマを用いたtext-to-SQLが解決済みであると扱うことに対する反証となりますが、セマンティックレイヤーの優位性を直接証明するものではありません。
  • 資料の種類: author-maintained reproducible 比較評価 正確なタイトル:LLM 意味をそろえる共通のデータ定義層 比較評価 org: dbt Labs 原資料の正式なURL: https://dbt-labs.github.io/dbt-llm-sl-bench/ publication/update: 現在の 比較評価 site; access 2026-09-15 バージョン:現在のサイト。保険分野に関する11の質問。繰り返し実行やモデル比較の実行が可能。 裏付ける該当箇所: 比較評価 description / note on modeling 分類ラベル: RESEARCH + SOURCE_REPORT 対応関係: 裏付け + counter + limit finding: 比較評価 explicitly compares 意味をそろえる共通のデータ定義層 (MetricFlow) with raw SQL. Importantly, 3/11 questions are documented as “too many hops” when the 意味上の モデル cannot express required joins; adding models can make them answerable. This 裏付ける内容 意味上の modeling as a controllable interface while demonstrating that モデル coverage is itself a 失敗 適用限界.

利用できる条件

Snowflake: account/region/モデル 利用可能性, required CORTEX roles, semantic-view privileges and underlying table SELECT; preview features must be rechecked as-of publication update. Cube: Cube/Core/Cloud 機能 split, 配備 設定, API/MCP 利用可能性, JWT/security 文脈・入力情報 and access-policy setup. dbt 比較評価/MetricFlow: product/バージョン and モデル coverage must be pinned before product claims. OSI: specification バージョン and participating implementations/converters must be revalidated.

実装・運用

MATURE PATTERN / PRODUCT-SPECIFIC IMPLEMENTATIONS EXIST. Snowflake has native 意味上の Views integrated with Cortex Analyst/Agents and SQL; Cube has an open-source semantic-layer foundation and AI-facing query surfaces. Cross-vendor portable 意味上の interchange is EMERGING rather than closed. A universal Enterprise AI 意味上の 条件・契約 remains PROPOSAL.

確認・評価方法

Use three distinct 評価 layers: A) セマンティックな正確性: 指標の計算式、粒度、結合パス、次元/フィルタ/時間のセマンティクス B) 実行 correctness: generated query result equals golden result under authorized 操作主体; C) 回答の正確性: 最終的な記述/数値/引用が、結果を忠実に表していること。 Required paired fixture: same 30-100 business questions against (1) raw データ形式の定義 path and (2) 意味上の path, same モデル/バージョン/temperature where possible. Include ambiguous synonyms, metric-definition conflicts, multi-hop joins, row-level security, unsupported questions, 要再確認 評価指標 バージョン, and attempted bypass. Track 実行 accuracy, metric-selection accuracy, unauthorized-result rate, abstention quality, latency/cost, semantic-model coverage and regression after 意味上の changes. Spider 2.0 is 外部 文脈・入力情報, not a product guarantee. dbt LLM 意味をそろえる共通のデータ定義層 比較評価 is useful comparative 根拠 but too small to generalize alone.

セキュリティとプライバシー

ウェアハウスに対して最小権限の原則とセマンティックレイヤーのポリシーを適用してください。生のSQLによるバイパスは禁止するか、別途許可を得る必要があります。セマンティックメタデータ自体が、機密性の高いテーブル名、指標名、およびビジネスロジックを明らかにする可能性があります。 監査:主体、質問、モデル/バージョン、意味モデル/ビューのID+バージョン/ハッシュ、生成されたクエリ、実行されたクエリ、参照されたメトリクス/次元、ポリシーの決定、結果/エラー、および最終的な回答の出典・来歴を記録する。

コストと運用負荷

意味上の modeling adds authoring/review/CI maintenance but may reduce repeated prompt/データ形式の定義 文脈・入力情報 and wrong-query rework; product-specific caching/preaggregation can change warehouse cost. No generic ROI 記述・判断 established.

OPERABILITY

treat 意味上の definitions as code/設定 with 担当者, バージョン 制御, review, tests, 配備 environment, deprecation and 以前の状態へ戻す操作. Couple EA-067 情報の鮮度 SLO to 意味上の definition 段階的な提供, not only 出典 data refresh.

確認できていること

  • F1 VERIFIED_SPEC/OSS_PRACTICE: 意味をそろえる共通のデータ定義層 can encode business concepts above physical データ形式の定義: metrics, dimensions, entities/relationships/join paths and, depending on 実装, access policy. 現在の Snowflake and Cube implementations expose these semantics directly to AI/NL analytics. F2 推論: the architectural value is not “LLM becomes correct” but “business meaning becomes an explicit, versionable, reviewable dependency rather than an implicit LLM 推論.” This is the safe Core abstraction. F3 VERIFIED_SPEC: Snowflake 意味上の views are native schema-level governed objects; generated SQL still executes under database privileges. 意味上の guidance and 認可 are separate controls. F4 SOURCE_REPORT/OSS_PRACTICE: Cube demonstrates a 意味上の 実行環境 where AI queries are validated and access policy is applied before warehouse 実行; however Cube also documents raw 出典 SQL paths that bypass the layer. Therefore 強制的な適用 must be architectural, not assumed from product presence. F5 RESEARCH: Spider 2.0 establishes that enterprise text-to-SQL over complex raw data remains difficult. dbt Labs' semantic-layer 比較評価 provides direct comparative 根拠 but is small/domain-specific and also documents expressiveness failures (“too many hops”). F6 出典レポート: OSIはベンダーに依存しない意味的な相互交換への積極的な動きを示していますが、相互運用性が確保されているからといって、実装間で指標の意味論、セキュリティ、方言の振る舞い、または実行結果が同一であるという証拠にはなりません。

よくある失敗・反証

  • セマンティックレイヤーは、誤った指標、古いビジネスルール、不正確な関係性、安全でないアクセスルール、または不完全なドメインをエンコードする可能性があります。それはエラーを修正するのではなく、エラーを継続的に再現させてしまう可能性があります。

  • Coverage gap: if a required measure/join/domain is absent, the agent may fail, refuse, or seek a bypass. dbt 比較評価 explicitly documents unexpressible “too many hops” cases before extra modeling.

  • 回避の隙間: 生のSQL、データウェアハウスへの直接的な資格情報、代替ツール/MCPサーバー、ノートブック、エクスポート、キャッシュされた抽出データ、またはシャドー・セマンティックモデルによって、運用管理・統制された層を回避できてしまう可能性がある。

  • 認可 gap: 意味上の definitions and database privileges are distinct. A semantically valid query can still be unauthorized; conversely a technically authorized raw-table query may violate intended business abstraction.

  • 鮮度のギャップ:データウェアハウスのデータの鮮度と、意味定義の鮮度は別物である。メトリクスの定義変更には、バージョン、出典・来歴、および回帰テストが必要である。

  • LLM gap: correct 意味上の 付随情報 does not guarantee correct 検討する問い interpretation, filter choice, time window, query generation, 実行 or narrative explanation.

  • 相互運用性のギャップ: OSIのポータビリティは現在仕様策定中の段階です。バージョン管理されたコンバーターや適合性の証拠がない限り、ベンダーに依存しない普遍的な同等性があると記述しないでください。

  • EA-068の更新準備として、(a) 現在の 実装が複数系統で存在、(b) raw-schema text-to-SQLの限界、(c) semantic-layer自身のcoverage/bypass/情報の鮮度/認可 失敗 envelope、(d) 相互運用性の現状、(e)後続paired TEST_PROFILEが揃ったため本実行をbounded completeとする。未確認事項は推測で閉じず後続Workへ渡す。

    ---

実務での使い方

  • Snowflake: account/region/モデル 利用可能性, required CORTEX roles, semantic-view privileges and underlying table SELECT; preview features must be rechecked as-of publication update. Cube: Cube/Core/Cloud 機能 split, 配備 設定, API/MCP 利用可能性, JWT/security 文脈・入力情報 and access-policy setup. dbt 比較評価/MetricFlow: product/バージョン and モデル coverage must be pinned before product claims. OSI: specification バージョン and participating implementations/converters must be revalidated.

  • MATURE PATTERN / PRODUCT-SPECIFIC IMPLEMENTATIONS EXIST. Snowflake has native 意味上の Views integrated with Cortex Analyst/Agents and SQL; Cube has an open-source semantic-layer foundation and AI-facing query surfaces. Cross-vendor portable 意味上の interchange is EMERGING rather than closed. A universal Enterprise AI 意味上の 条件・契約 remains PROPOSAL.

  • Use three distinct 評価 layers: A) セマンティックな正確性: 指標の計算式、粒度、結合パス、次元/フィルタ/時間のセマンティクス B) 実行 correctness: generated query result equals golden result under authorized 操作主体; C) 回答の正確性: 最終的な記述/数値/引用が、結果を忠実に表していること。 Required paired fixture: same 30-100 business questions against (1) raw データ形式の定義 path and (2) 意味上の path, same モデル/バージョン/temperature where possible. Include ambiguous synonyms, metric-definition conflicts, multi-hop joins, row-level security, unsupported questions, 要再確認 評価指標 バージョン, and attempted bypass. Track 実行 accuracy, metric-selection accuracy, unauthorized-result rate, abstention quality, latency/cost, semantic-model coverage and regression after 意味上の changes. Spider 2.0 is 外部 文脈・入力情報, not a product guarantee. dbt LLM 意味をそろえる共通のデータ定義層 比較評価 is useful comparative 根拠 but too small to generalize alone.

  • ウェアハウスに対して最小権限の原則とセマンティックレイヤーのポリシーを適用してください。生のSQLによるバイパスは禁止するか、別途許可を得る必要があります。セマンティックメタデータ自体が、機密性の高いテーブル名、指標名、およびビジネスロジックを明らかにする可能性があります。 監査:主体、質問、モデル/バージョン、意味モデル/ビューのID+バージョン/ハッシュ、生成されたクエリ、実行されたクエリ、参照されたメトリクス/次元、ポリシーの決定、結果/エラー、および最終的な回答の出典・来歴を記録する。

  • Coreへ「意味上の 条件・契約」を追加候補: 評価指標/dimension/entity/relationship/grain/filter/time semantics/access policy/担当者/バージョン/effective_at/deprecated_at/出典 変更・継承の履歴。

  • 製品への対応付けはSnowflake 意味上の Views+Cortex、Cube 意味をそろえる共通のデータ定義層/AI、dbt 意味をそろえる共通のデータ定義層/MetricFlowをversioned comparisonし、Microsoft Fabric/Power BI 意味上の モデル、Looker/LookML等は追加採集候補として別bounded unitで照合する。

  • OSIは相互運用性節へ置き、publication時のspec バージョン、converter実装、形式への適合/test 状態を再採集する。

  • paired 比較評価をTEST_PROFILEとして実施し、raw データ形式の定義 vs 意味上の pathを同一fixtureで比較する。

  • raw SQL / alternate ツール / notebook / exportのbypass inventoryを必須化し、「意味をそろえる共通のデータ定義層 adopted」と「意味をそろえる共通のデータ定義層 enforced」を分離する。

まだ確認できていないこと

  • EA-068-UNKNOWN-01

    プロバイダーを横断して同一の指標定義が同一の結果を保証する適合水準。OSIの公開時点における仕様/バージョン/コンバーターの網羅性。セマンティックレイヤーの変更からAIの回答への伝播遅延。セマンティックメタデータに対するプロンプトインジェクション/ポイズニング耐性。複雑な非加算的/半加算的な指標、時間的意味論、マルチホップな関係性における各製品の限界。

  • EA-068-UNKNOWN-CURRENTNESS

    外部根拠の再確認日が正式な本文・公開管理情報で確定していないため、現行性は未確認のまま保持する。確認日を推測して補わない。

根拠資料

  • 研究資料研究資料

    org: Snowflake

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    org: Snowflake

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    org: Snowflake

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    org: Cube

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    org: Cube

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    原資料の正式なURL: https://docs.cube.dev/docs/explore-analyze/workbooks/index ;

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    org: Open 意味上の Interchange community

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    組織/著者: Fangyu Lei et al.

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

  • 研究資料研究資料

    org: dbt Labs

    原資料を開く

    確認上の限界

    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。

出典ID・検証情報・機械可読データ

根拠の種類と情報の鮮度は、ラベルとアイコンで確認できます。

記事ID
EA-068
最終確認日
—
提供元・モデル・プラン・利用環境
—
対象地域
—
元資料の全文と収録照合記録
WHY_THIS_MATTERS_TO_UPDATE

Enterprise AIで自然言語→SQLを許す場合、物理schemaだけでは「売上」「アクティブ顧客」「粗利」等の業務定義、正しいjoin path、粒度、集計式、アクセス制御を十分に表せない。semantic layerはLLMの能力を上げる機構ではなく、AIが推測すべき業務意味を減らし、metrics/dimensions/relationships/access policyをgoverned interfaceとして提供する実装層になり得る。EA-068では「semantic layerを通せば正しい」という製品保証ではなく、raw schema直結より統制可能な分析面を作る設計原則として扱う。

SCOPE_ROUTING

Enterprise AI Core / Data / governance / implementation / interoperability / benchmark / provider mapping。EA-066 Identity-aware ACL-aware RAGとはaccess enforcement、EA-067 Knowledge Freshness Engineeringとはsemantic definition freshness、EA-015監査証跡とはgenerated query・semantic version・actorのprovenanceで接続する。

CLAIM_OR_RESEARCH_QUESTION

Q1. AI分析をraw DB/schemaへ直接接続する代わりにsemantic layerを介在させると、business metric・join・dimension・access ruleを明示的に統制できるか。 Q2. current productsはsemantic model/viewをAI agent / natural-language analyticsの実行面として実装しているか。 Q3. semantic layerはtext-to-SQLの正確性を保証するか。それともerror surfaceを縮小するだけか。 Q4. semantic modelのversion、権限、freshness、bypass経路をどう監査すべきか。

EVIDENCE TABLE
  • source class: official product documentation exact title: Cortex Analyst | Snowflake Documentation org: Snowflake canonical URL: https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-analyst publication/update: current documentation; access 2026-09-15 version/release: current as-of access; Semantic Views recommended, legacy staged YAML supported for backward compatibility supporting locator: Understanding Semantic Views / Why use Semantic Views / Access control requirements / Security and governance label: VERIFIED_SPEC + PRODUCT_VOLATILE relation: support + limit finding: Semantic Views define logical tables, dimensions, facts, metrics and relationships; Cortex Analyst uses them for NL→SQL. Generated SQL executes in Snowflake and underlying table SELECT privileges/RBAC apply. Semantic view/model metadata aids SQL generation; semantic views are recommended for new implementations.
  • source class: official product documentation exact title: Overview of semantic views org: Snowflake canonical URL: https://docs.snowflake.com/en/user-guide/views-semantic/overview publication/update: current documentation; access 2026-09-15 version/release: current as-of access supporting locator: Interfaces for working with Semantic Views / getting started label: VERIFIED_SPEC + PRODUCT_VOLATILE relation: support + implementation finding: Semantic Views are schema-level objects containing business metrics, entities and relationships; usable by Cortex Agents, Cortex Analyst REST API and direct SQL SELECT, and shareable through Snowflake mechanisms.
  • source class: official product documentation exact title: Routing Mode for Cortex Analyst org: Snowflake canonical URL: https://docs.snowflake.com/en/en/user-guide/snowflake-cortex/cortex-analyst/cortex-analyst-routing-mode publication/update: current documentation; access 2026-09-15 version/release: Preview Feature — Open; PRODUCT_VOLATILE supporting locator: Routing Mode overview / permissions note label: VERIFIED_SPEC + PRODUCT_VOLATILE relation: support + limit finding: routing mode uses semantic views so metrics, joins and filters follow governed definitions; documentation explicitly states routing mode does not change permissions, which remain standard Snowflake privileges.
  • source class: author-maintained product/OSS documentation exact title: Introduction - Cube Documentation org: Cube canonical URL: https://docs.cube.dev/docs/introduction publication/update: current documentation; access 2026-09-15 version/release: current docs; Cube Core open-source semantic layer supporting locator: Semantic SQL / semantic layer architecture / access control / APIs label: OSS_PRACTICE + SOURCE_REPORT + PRODUCT_VOLATILE relation: support + implementation finding: AI agents query Cube semantic layer through Semantic SQL rather than warehouse directly; runtime validates against data model and applies access policies before warehouse execution. Metrics, joins, access rules and caching are centralized; APIs include SQL/REST/GraphQL/MCP-related paths.
  • source class: author-maintained product documentation exact title: Workbooks - Cube Documentation / Source SQL Tabs org: Cube canonical URL: https://docs.cube.dev/docs/explore-analyze/workbooks/index ; https://docs.cube.dev/docs/explore-analyze/workbooks/source-sql-tabs publication/update: current documentation; access 2026-09-15 version/release: current as-of access supporting locator: Semantic Query vs Source SQL Query label: SOURCE_REPORT + PRODUCT_VOLATILE relation: counter + limit finding: Cube itself exposes both semantic-query paths and Source SQL Query paths that bypass the semantic layer. Therefore product adoption alone does not prove semantic enforcement; bypass surface must be separately governed.
  • source class: open specification / industry working group exact title: Open Semantic Interchange (OSI) org: Open Semantic Interchange community canonical URL: https://open-semantic-interchange.org/ publication/update: specification effort current; site update includes 2026-06-04 activity; access 2026-09-15 version/release: current specification site; Apache 2.0; YAML; exact spec version must be rechecked at update time supporting locator: Core Classes / AI Ready Semantic Context / Working Groups label: SOURCE_REPORT + PRODUCT_VOLATILE relation: interoperability + context finding: OSI is an active vendor-neutral effort to exchange semantic metadata across analytics/AI/BI, with semantic model, datasets, fields, metrics, dimensions and relationships. It supports the direction of portable semantics but does not yet establish universal cross-vendor semantic equivalence.
  • source class: primary research / benchmark exact title: Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows org/authors: Fangyu Lei et al. canonical URL: https://arxiv.org/abs/2411.07763 publication: 2024-11-12; access 2026-09-15 version: arXiv 2411.07763; benchmark 632 enterprise workflow problems supporting locator: abstract / benchmark description / reported baseline label: RESEARCH relation: counter + context finding: real enterprise text-to-SQL involves large schemas, dialect docs, metadata and project code; reported agent success is far below simpler Spider/BIRD settings. This is evidence against treating raw-schema text-to-SQL as solved, but it does not directly prove semantic-layer superiority.
  • source class: author-maintained reproducible benchmark exact title: LLM Semantic Layer Benchmark org: dbt Labs canonical URL: https://dbt-labs.github.io/dbt-llm-sl-bench/ publication/update: current benchmark site; access 2026-09-15 version: current site; 11 insurance-domain questions; repeated/model comparison runs available supporting locator: benchmark description / note on modeling label: RESEARCH + SOURCE_REPORT relation: support + counter + limit finding: benchmark explicitly compares Semantic Layer (MetricFlow) with raw SQL. Importantly, 3/11 questions are documented as “too many hops” when the semantic model cannot express required joins; adding models can make them answerable. This supports semantic modeling as a controllable interface while demonstrating that model coverage is itself a failure boundary.
FINDINGS

F1 VERIFIED_SPEC/OSS_PRACTICE: semantic layer can encode business concepts above physical schema: metrics, dimensions, entities/relationships/join paths and, depending on implementation, access policy. Current Snowflake and Cube implementations expose these semantics directly to AI/NL analytics. F2 INFERENCE: the architectural value is not “LLM becomes correct” but “business meaning becomes an explicit, versionable, reviewable dependency rather than an implicit LLM inference.” This is the safe Core abstraction. F3 VERIFIED_SPEC: Snowflake semantic views are native schema-level governed objects; generated SQL still executes under database privileges. Semantic guidance and authorization are separate controls. F4 SOURCE_REPORT/OSS_PRACTICE: Cube demonstrates a semantic runtime where AI queries are validated and access policy is applied before warehouse execution; however Cube also documents raw Source SQL paths that bypass the layer. Therefore enforcement must be architectural, not assumed from product presence. F5 RESEARCH: Spider 2.0 establishes that enterprise text-to-SQL over complex raw data remains difficult. dbt Labs' semantic-layer benchmark provides direct comparative evidence but is small/domain-specific and also documents expressiveness failures (“too many hops”). F6 SOURCE_REPORT: OSI shows active movement toward vendor-neutral semantic interchange, but interoperability is not yet evidence that metric semantics, security, dialect behavior or execution results are identical across implementations.

LIMITS / COUNTEREVIDENCE / FAILURE ENVELOPE
  • Semantic layer can encode a wrong metric, stale business rule, incorrect relationship, unsafe access rule, or incomplete domain. It can make an error consistently repeatable rather than correct it.
  • Coverage gap: if a required measure/join/domain is absent, the agent may fail, refuse, or seek a bypass. dbt benchmark explicitly documents unexpressible “too many hops” cases before extra modeling.
  • Bypass gap: raw SQL, direct warehouse credentials, alternate tools/MCP servers, notebooks, exports, cached extracts or shadow semantic models can evade the governed layer.
  • Authorization gap: semantic definitions and database privileges are distinct. A semantically valid query can still be unauthorized; conversely a technically authorized raw-table query may violate intended business abstraction.
  • Freshness gap: warehouse data freshness and semantic-definition freshness are separate. Metric definition changes require version/provenance and regression testing.
  • LLM gap: correct semantic metadata does not guarantee correct question interpretation, filter choice, time window, query generation, execution or narrative explanation.
  • Interoperability gap: OSI portability is an active specification effort; do not claim universal vendor-neutral equivalence without versioned converter/conformance evidence.
AVAILABILITY_GATES

Snowflake: account/region/model availability, required CORTEX roles, semantic-view privileges and underlying table SELECT; preview features must be rechecked as-of publication update. Cube: Cube/Core/Cloud feature split, deployment configuration, API/MCP availability, JWT/security context and access-policy setup. dbt benchmark/MetricFlow: product/version and model coverage must be pinned before product claims. OSI: specification version and participating implementations/converters must be revalidated.

IMPLEMENTATION_STATE

MATURE PATTERN / PRODUCT-SPECIFIC IMPLEMENTATIONS EXIST. Snowflake has native Semantic Views integrated with Cortex Analyst/Agents and SQL; Cube has an open-source semantic-layer foundation and AI-facing query surfaces. Cross-vendor portable semantic interchange is EMERGING rather than closed. A universal Enterprise AI semantic contract remains PROPOSAL.

BENCHMARK_OR_EVAL

Use three distinct evaluation layers: A) semantic correctness: metric formula, grain, join path, dimension/filter/time semantics; B) execution correctness: generated query result equals golden result under authorized principal; C) answer correctness: final narrative/number/citation faithfully represents result. Required paired fixture: same 30-100 business questions against (1) raw schema path and (2) semantic path, same model/version/temperature where possible. Include ambiguous synonyms, metric-definition conflicts, multi-hop joins, row-level security, unsupported questions, stale metric version, and attempted bypass. Track execution accuracy, metric-selection accuracy, unauthorized-result rate, abstention quality, latency/cost, semantic-model coverage and regression after semantic changes. Spider 2.0 is external context, not a product guarantee. dbt LLM Semantic Layer Benchmark is useful comparative evidence but too small to generalize alone.

SECURITY

enforce warehouse least privilege plus semantic-layer policy; prohibit or separately authorize raw-SQL bypass. Semantic metadata itself can reveal sensitive table/metric names and business logic. AUDIT: record principal, question, model/version, semantic-model/view ID+version/hash, generated query, executed query, referenced metrics/dimensions, policy decision, result/error and final answer provenance.

COST

semantic modeling adds authoring/review/CI maintenance but may reduce repeated prompt/schema context and wrong-query rework; product-specific caching/preaggregation can change warehouse cost. No generic ROI claim established.

OPERABILITY

treat semantic definitions as code/config with owner, version control, review, tests, deployment environment, deprecation and rollback. Couple EA-067 freshness SLO to semantic definition rollout, not only source data refresh.

SAFE_WORDING_FOR_FUTURE_BOOK

「Enterprise AIの分析では、LLMを生のデータベースschemaへ直接接続するより、組織が定義したmetrics・dimensions・relationships・access rulesを持つsemantic layerを介在させると、AIが推測しなければならない業務意味を減らし、定義をversion管理・監査・評価しやすくできる。これは回答正確性の保証ではない。semantic model自体の誤り・不足・陳腐化、権限設定、raw SQL等のbypass経路、LLMの質問解釈・query生成誤りは別途評価する必要がある。」

UPDATE_WORK_HANDOFF
  • Coreへ「Semantic Contract」を追加候補: metric/dimension/entity/relationship/grain/filter/time semantics/access policy/owner/version/effective_at/deprecated_at/source lineage。
  • provider mappingはSnowflake Semantic Views+Cortex、Cube Semantic Layer/AI、dbt Semantic Layer/MetricFlowをversioned comparisonし、Microsoft Fabric/Power BI semantic model、Looker/LookML等は追加採集候補として別bounded unitで照合する。
  • OSIはinteroperability節へ置き、publication時のspec version、converter実装、conformance/test statusを再採集する。
  • paired benchmarkをTEST_PROFILEとして実施し、raw schema vs semantic pathを同一fixtureで比較する。
  • raw SQL / alternate tool / notebook / exportのbypass inventoryを必須化し、「semantic layer adopted」と「semantic layer enforced」を分離する。
UNKNOWN

provider横断で同一metric definitionが同一結果を保証するconformance水準。OSIのpublication時点spec/version/converter coverage。semantic-layer変更からAI回答へのpropagation latency。semantic metadataへのprompt injection/poisoning耐性。複雑なnon-additive/semi-additive metric、temporal semantics、multi-hop relationshipの各製品限界。

STOP_CONDITION

EA-068の更新準備として、(a) current implementationが複数系統で存在、(b) raw-schema text-to-SQLの限界、(c) semantic-layer自身のcoverage/bypass/freshness/authorization failure envelope、(d) interoperabilityの現状、(e)後続paired TEST_PROFILEが揃ったため本RUNをbounded completeとする。UNKNOWNは推測で閉じず後続Workへ渡す。

---

  • EVD-EA-068-URL-D34C8A1E96F5研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org: Snowflake

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-D34C8A1E96F5
    検証箇所
    EVIDENCE TABLE · canonical URL: https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-analyst
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-0D9A9D0851F4研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org: Snowflake

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-0D9A9D0851F4
    検証箇所
    EVIDENCE TABLE · canonical URL: https://docs.snowflake.com/en/user-guide/views-semantic/overview
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-AB71C485E37C研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org: Snowflake

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-AB71C485E37C
    検証箇所
    EVIDENCE TABLE · canonical URL: https://docs.snowflake.com/en/en/user-guide/snowflake-cortex/cortex-analyst/cortex-analyst-routing-mode
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-3667935FF461研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org: Cube

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-3667935FF461
    検証箇所
    EVIDENCE TABLE · canonical URL: https://docs.cube.dev/docs/introduction
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-4827824FD91B研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org: Cube

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-4827824FD91B
    検証箇所
    EVIDENCE TABLE · canonical URL: https://docs.cube.dev/docs/explore-analyze/workbooks/index
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-ADADB672F620研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    canonical URL: https://docs.cube.dev/docs/explore-analyze/workbooks/index ;

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-ADADB672F620
    検証箇所
    EVIDENCE TABLE · canonical URL: https://docs.cube.dev/docs/explore-analyze/workbooks/index ; https://docs.cube.dev/docs/explore-analyze/workbooks/source-sql-tabs
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-1913780EA4D1研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org: Open Semantic Interchange community

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-1913780EA4D1
    検証箇所
    EVIDENCE TABLE · canonical URL: https://open-semantic-interchange.org/
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-94A1C139819B研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org/authors: Fangyu Lei et al.

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-94A1C139819B
    検証箇所
    EVIDENCE TABLE · canonical URL: https://arxiv.org/abs/2411.07763
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EVD-EA-068-URL-405387DEAAB7研究資料研究資料根拠の出所: SOURCE_PACKET_REFERENCE

    org: dbt Labs

    裏付ける内容
    —
    確認日
    —
    出典・実験ID
    SRC-EA-068-URL-405387DEAAB7
    検証箇所
    EVIDENCE TABLE · canonical URL: https://dbt-labs.github.io/dbt-llm-sl-bench/
    適用範囲
    EVIDENCE TABLE
    出典・来歴
    SOURCE_PACKET_REFERENCE_PROJECTED
    限界
    元の監査済み資料に記載された参照先です。URLの復元は、資料の最新性や全主張の支持を新たに検証したことを意味しません。
  • EA-068-R11-RESEARCH研究資料研究資料根拠の出所: AUDITED_CANONICAL_RESEARCH_PACKET

    EA-068 監査済みresearch / canonical revision binding

    裏付ける内容
    F1 VERIFIED_SPEC/OSS_PRACTICE: semantic layer can encode business concepts above physical schema: metrics, dimensions, entities/relationships/join paths and, depending on implementation, access policy. Current Snowflake and Cube implementations expose these semantics directly to AI/NL analytics. F2 INFERENCE: the architectural value is not “LLM becomes correct” but “business meaning becomes an explicit, versionable, reviewable dependency rather than an implicit LLM inference.” This is the safe Core abstraction. F3 VERIFIED_SPEC: Snowflake semantic views are native schema-level governed objects; generated SQL still executes under database privileges. Semantic guidance and authorization are separate controls. F4 SOURCE_REPORT/OSS_PRACTICE: Cube demonstrates a semantic runtime where AI queries are validated and access policy is applied before warehouse execution; however Cube also documents raw Source SQL paths that bypass the layer. Therefore enforcement must be architectural, not assumed from product presence. F5 RESEARCH: Spider 2.0 establishes that enterprise text-to-SQL over complex raw data remains difficult. dbt Labs' semantic-layer benchmark provides direct comparative evidence but is small/domain-specific and also documents expressiveness failures (“too many hops”). F6 SOURCE_REPORT: OSI shows active movement toward vendor-neutral semantic interchange, but interoperability is not yet evidence that metric semantics, security, dialect behavior or execution results are identical across implementations.
    確認日
    —
    出典・実験ID
    COMM-064-EA0068
    検証箇所
    COMM-064-EA0068 · EA-068-R5-LEGACY-MIGRATION-20261008-R1 · content/staging/EA-068.md
    適用範囲
    監査済みEA本文・canonical revision・既存Source Graph relationの範囲。欠損currentnessは推測で閉じない。
    出典・来歴
    AUDIT_PASS_CANONICAL_BINDING
    限界
    canonical監査・revision bindingの存在を示す。外部ソースcurrentnessが本文またはcontrol-planeで確定していない場合は、currentnessをUNKNOWNのまま保持する。
  • EA-068-R11-WEB-READBACK実装資料実装資料根拠の出所: IMPLEMENTATION_READBACK

    EA-068 Web body identity / canonical readback

    裏付ける内容
    canonical staging bodyのSHA-256一致とR9 canonical ledger readbackをProduction projectionの入力として検証する。
    確認日
    —
    出典・実験ID
    WEBBODY-EA0068-R8-BEB924EE
    検証箇所
    WEBBODY-EA0068-R8-BEB924EE · content/staging/EA-068.md · EA-068-R5-LEGACY-MIGRATION-20261008-R1
    適用範囲
    R9/R10 canonical readback後のProduction生成時body identity。
    出典・来歴
    CANONICAL_READBACK_BODY_HASH_MATCH
    限界
    body identity/readbackは本文claim自体の真偽や外部ソースの最新性を追加保証しない。
出典ID
COMM-064-EA0068, SRC-EA-068-URL-D34C8A1E96F5, SRC-EA-068-URL-0D9A9D0851F4, SRC-EA-068-URL-AB71C485E37C, SRC-EA-068-URL-3667935FF461, SRC-EA-068-URL-4827824FD91B, SRC-EA-068-URL-ADADB672F620, SRC-EA-068-URL-1913780EA4D1, SRC-EA-068-URL-94A1C139819B, SRC-EA-068-URL-405387DEAAB7, WEBBODY-EA0068-R8-BEB924EE
追跡中のUNKNOWN ID
EA-068-UNKNOWN-01, EA-068-UNKNOWN-CURRENTNESS
再確認のきっかけ
正式な 改訂版/publication 状態 change · 本文 成果物 hash change · 出典 現行性 change · new contradiction or 実装 結果の照合

機械検査: 通過 — 機械検査の結果です。情報の正確性や実行の承認を保証するものではありません。

    同じ記事IDの機械可読データです。