ai-dev-kit icon indicating copy to clipboard operation
ai-dev-kit copied to clipboard

Test expirimental branch: analyst

Open dustinvannoy-db opened this issue 7 months ago • 4 comments

Evalusate skills in experimental branch (no MCP server) compared to main

  • databricks-aibi-dashboards
  • databricks-dbsql
  • databricks-genie
  • databricks-metric-views

dustinvannoy-db avatar Apr 22 '26 17:04 dustinvannoy-db

databricks-genie — A/B comparison: main vs. experimental (re-run with PR changes)

Re-ran the A/B against the curated tool-agnostic ground truth from the polish/eval-findings branch. Per-side MCP isolation enforced via per-repo .mcp.json (A: databricks server only, no plugins; B: {"mcpServers": {}}, CLI-only).

Genie Report A.html Genie Report B.html

Headline

Statistical tie. Judge: winner TIE, confidence 0.20 — the lowest possible signal, indicating the two skills are essentially indistinguishable on this prompt set. L3 doc audit also tied (0.75 = 0.75); L5 within-noise (0.60 vs 0.52).

Per-level scores

Level Main (MCP) Experimental (CLI)
L1 (unit — syntax / link validity) 0.97 0.97
L3 (static doc audit) 0.75 0.75
L5 (output — agent task completion) 0.60 0.52

Judge verdict

TIE, confidence 0.20. Per-dimension: 3 ties, A wins user_experience by 1 point. No regression flags.

Dimension Main Experimental Winner
correctness 4 4 TIE
user_experience 6 5 A +1
safety 7 7 TIE
code_quality 7 7 TIE

L3 audit — dimension breakdown

Dimension Main Experimental Winner
self_contained 7 8 experimental +1
no_conflicts 8 9 experimental +1
security 8 8 tie
llm_navigable_structure 9 9 tie
actionable_instructions 9 9 tie
scoped_clearly 9 8 main +1
error_handling 8 7 main +1
no_hallucination_triggers 7 7 tie

Wins are split 2-2; rest tied. The skill text is at parity at the document-quality level.

Net for this run

The genie skill content is not changed in this PR — only the ground truth (7 cases, tool-agnostic outputs.response, no trace_expectations blocks) was ported over from the eval branch. So this run is the post-PR baseline against which any future genie skill changes can be compared.

Other data

  • Run duration: main 679s (~11m), experimental 651s (~11m). Essentially identical.
  • Composite scores: main 0.771, experimental 0.744.

Caveats unchanged from prior runs

  • L5 numeric scores are noisy run-to-run because agent behaviour is stochastic. The per-side judge confidence of 0.20 is the more stable signal.
  • expected_facts, expected_patterns, and guidelines are empty for each test case in this ground truth, so per-case static scoring doesn't discriminate.

jacksandom avatar Apr 23 '26 17:04 jacksandom

databricks-metric-views — A/B comparison: main vs. experimental (re-run with PR changes)

Re-ran with the PR's metric-views skill changes (Statement Execution API alternative for DDL, "convert existing view to metric view" example) and the curated 24-case ground truth (2 MCP-prescriptive cases dropped, trace_expectations blocks stripped).

Metric Views Report A.html Metric Views Report B.html

Headline

Main wins narrowly — confidence 0.60. L3 doc audit went up on experimental (+0.02 vs prior baseline) thanks to the new convert-view example and Statement Execution API alternative. L5 within-noise; the gap that exists is driven by an agent-level naming inconsistency on B (unrelated to skill content) flagged by the judge as a regression.

Per-level scores

Level Main (MCP) Experimental (CLI w/ polish)
L1 (unit) 0.95 0.95
L3 (static doc audit) 0.86 0.88
L5 (output — agent task completion) 0.49 0.42

Judge verdict

A wins, confidence 0.60. Per-dim: A wins correctness and code_quality by 1 each; UX and safety tied.

Dimension Main Experimental Winner
correctness 8 7 A +1
user_experience 7 7 TIE
safety 8 8 TIE
code_quality 8 6 A +2

Regression flags raised by the judge

  • b_verification_query_failed_unresolved_column
  • b_measure_name_inconsistency_between_create_and_query

These are agent-level reasoning errors, not skill-content issues. From the rationale:

"Both runs ultimately succeeded in creating the view... B's verification query failed because B referenced a measure name (Distinct Customers) that did not match the measure it actually defined (Unique Customers). This is an internal-consistency regression in B — B's own query did not match B's own create payload, indicating a self-referential naming error that A avoided."

The agent named a measure Unique Customers in the CREATE call but Distinct Customers in the verification query. This is the kind of mistake we wouldn't expect a skill text change to fix — it's the agent forgetting its own choice mid-session. Could be addressed by adding a "verification query must reference the same measure names from the CREATE call" reminder, but that's secondary doc polish.

What the PR changed for metric-views

  • Statement Execution API alternative for DDL (avoids the fragile heredoc $$ ... $$ shell-escaping pattern). New "Avoiding heredoc escaping" callout in the CLI Execution section.
  • "Convert an Existing View to a Metric View" example added — shows the migration pattern from a regular view to a metric view (mapping GROUP BY → dimensions, aggregations → measures).

L3 improvements attributable to these:

  • no_conflicts: 7 → 8 (+1 vs prior run)
  • scoped_clearly: 8 → 9 (+1)

Other data

  • Run duration: main 3,197s (~53m), experimental 3,148s (~52m). Essentially identical.
  • Composite scores: main 0.769, experimental 0.749.

Caveats unchanged from prior runs

  • 24 cases × 2 sides × 2 variants = 96 sessions. L5 still noisy run-to-run, but with this many sessions the L3 changes are interpretable.
  • expected_facts, expected_patterns, and guidelines per case still bias toward MCP wording in some cases — would benefit from a future tool-agnostic rewrite (similar to what we did for aibi).

jacksandom avatar Apr 24 '26 13:04 jacksandom

databricks-aibi-dashboards — A/B re-run with polish/eval-findings PR applied

Re-ran with all of the PR's aibi changes applied: deploy-step framing rework (Step 4 → Step 5 transition clarifies the databricks lakeview create command IS the deployment step) and DATABRICKS_WAREHOUSE_ID env-var fallback note for --warehouse flag failures.

Dashboards Report A.html Dashboards Report B.html

Headline

Aibi is now a tie — confidence 0.20. Major shift from prior baselines:

Run A L5 B L5 Judge Regression flags
Pre-PR (4/24) 0.75 0.67 A wins, conf 0.70 dashboard-not-created-in-B, truncated-response-in-B
First PR run (deploy-step only) 0.65 0.56 A wins, conf 0.55 (none)
This PR run (full) 0.60 0.53 TIE, conf 0.20 (none)

The deploy-step rework alone removed the dashboard-not-created-in-B regression flag. With the env-var note added on top, the judge can no longer differentiate the two skills.

Per-level scores

Level Main (MCP) Experimental (CLI w/ polish)
L1 (unit) 0.84 0.84
L3 (static doc audit) 0.78 0.82
L5 (output — agent task completion) 0.60 0.53

Judge verdict

TIE, confidence 0.20. Per-dim: 3 ties, B wins user_experience by 1.

Dimension Main Experimental Winner
correctness 6 6 TIE
user_experience 6 7 B +1
safety 8 8 TIE
code_quality 7 7 TIE

No regression flags.

Rationale excerpt:

"Both A and B attempted the same NYC taxi dashboard task and both stopped at similar points in the workflow… Both completed schema discovery and SQL validation steps successfully before transitioning to dashboard JSON authoring… B's response_text includes a clearer numbered step plan ('Step 1…Step 4') explaining intent, while A is slightly terser."

L3 audit — dimension breakdown

Dimension Main Experimental Winner
self_contained 9 9 tie
no_conflicts 8 9 B +1
security 9 9 tie
llm_navigable_structure 9 10 B +1
actionable_instructions 9 10 B +1
scoped_clearly 8 9 B +1
error_handling 8 8 tie
no_hallucination_triggers 8 8 tie

Experimental is now ahead on 4 L3 dimensions and tied on 4. The PR's deploy-step framing improved actionable_instructions (9→10) and scoped_clearly (8→9).

What the PR changed for aibi

  • Step 5 framing: renamed from "Dashboard Lifecycle" to "Deploy", with explicit completion criterion: "Your task is not complete until this command succeeds and returns a dashboard ID — the JSON file alone is an intermediate working artifact." Step 4 wording also clarified ("Build the dashboard JSON as a local working file (intermediate step, not the deliverable)").
  • DATABRICKS_WAREHOUSE_ID env-var fallback: documented immediately after the CLI commands table so the agent has the workaround at hand if --warehouse flag is rejected.

Other data

  • Run duration: main ~21m, experimental ~21m. Roughly identical.

Caveats

  • Transcripts were truncated for both sides before the deploy step was visible — the L5 numerical gap is partially driven by what the judge can see in the limited window, not necessarily by what each side did. The TIE verdict at 0.20 confidence is the more stable signal.
  • 4 test cases is a modest sample. Run-to-run variance in L5 is roughly ±0.10, so the 0.07 L5 gap here should be read as "within noise" rather than "A meaningfully ahead."

jacksandom avatar Apr 24 '26 15:04 jacksandom

databricks-dbsql — no meaningful A/B to run

The entire diff between main and origin/experimental for this skill is a single line in the Best Practices section:

- **Use MCP tools** (`execute_sql`, `execute_sql_multi`) to test and validate all SQL before deploying
+ **Test SQL via CLI** (`databricks experimental aitools tools query`) or notebooks before deploying

No script changes, no doc restructuring, no new sections, no new content anywhere else. A full SkillForge A/B on this skill would spawn ~28 agent sessions and run for 30-60 minutes to produce a verdict that's essentially predetermined: the two skills are functionally identical on every task except that one line of guidance. Skipping.

jacksandom avatar Apr 24 '26 15:04 jacksandom