How the Experience Fits Into the AI SystemLayered architecture: context sources flow through MCP tool access and context assembly to the Optimization Agent; evidence enters a six-stage agentic loop (Detect, Diagnose, Recommend, Validate, Act, Observe); a human decision authority boundary surrounds Act; each stage maps to a Query Optimization product experience. Designed architecture and intended AI behavior, not verification of production capabilities.AI PRODUCT DESIGN · SYSTEM ARCHITECTURE How the Experience Fits Into the AI System Context Engineering → Agentic Reasoning → Query Optimization My contribution: translating AI capabilities and system reasoning into explainable investigations, evidence-backed recommendations, and human decision points. 01 CONTEXT ENGINEERING System behind the experience 02 AGENTIC LOOP Shared reasoning framework 03 QUERY OPTIMIZATION Applying the framework HUMAN DECISION AUTHORITY CONTEXT SOURCES Telemetry · ClickHouse Cost & performance · SF stats Query ID · execution stats Metadata · schema · lineage Dependencies · history · owners MCP tool access Tenant- scoped access Context assembly Scoped to the selected query or workload Signals + lineage + ownership become one evidence set Optimization Agent LLM reasons over context Hypotheses · next action Parallel analysis Query (SQL) Table (structure) Calls MCP tools for evidence Insight context analysis Context made visible Business · people / ownership · technical · insight context shown in the reasoning panel NO DATA / NO ACCESS Table data · value distribution Works from stats, not table contents AGENT · AUTONOMOUS ANALYSIS agent recommends - humans decide 01 Detect Surface costly or risky patterns. Issue detection 02 Diagnose Gather query, lineage, cost & usage context. Hypotheses · MCP tool evidence 03 Recommend Propose changes with supporting evidence. Query & table optimizations 04 Validate Check policy, syntax and expected impact. Potential impact check 05 Act Human approval for high-impact changes. Review · redirect · approve 06 Observe Compare outcomes; detect regressions. Outcome feedback · impact TBD outcome feedback ↩ AI Insight discovery Homepage insights centralized discovery Insight icon on query and asset pages contextual, in the workflow Opens the reasoning panel Root-cause investigation Investigation steps + signals Evidence & reasoning Context analysis + reasoning SQL comparison Proposed optimization: before / after, inspect Lineage & blast radius Upstream / downstream dependencies before acting Engineer review & decision Review evidence & SQL Redirect or refine Approve high-impact change Verify · recover Outcome verification Observe cost and impacted queries after a change Observed impact: TBD designed, not yet verified 1 2 3 4 5 6 1 telemetry → context2 evidence → reasoning3 Detect → Validate4 pause at human approval5 approved step → experience6 outcome feedback Designed architecture and intended AI behavior - not verification of all production capabilities. illustrative information flow design intent, not verified

Slingshot screenshot