Skip to content

Analytics skills on the Foundation Analytics Toolkit: build, metrics generation, source survey, eval generation - #275

Draft
shubhambatlan wants to merge 1 commit into
analytics-demo-state-drivenfrom
analytics-skills-on-toolkit
Draft

shubhambatlan wants to merge 1 commit into
analytics-demo-state-drivenfrom
analytics-skills-on-toolkit

Conversation

@shubhambatlan

@shubhambatlan shubhambatlan commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #270 (base analytics-demo-state-driven); the branch merges #270's head (merge commits, no rebase) before each push.

Refactors every skill analytics-build uses onto the Analytics Toolkit, with the toolkit holding only what more than one skill shares.

Decisions

Decision Why
Build-only logic leaves the toolkit: connection, BI-file and database detection and the use-case rules are analytics-build/scripts/intake.py, a stateless composer whose output goes to question get <id> --options - (options_from: given) Owner's boundary rule: the toolkit holds what more than one skill shares
The toolkit gains only generic flow features: a stage route, presets, asked_with (two questions in one card), plain_line, a given option's like/detail (kept with the pick as chosen), flow options marked always after composed ones, job flag <name> for flags a flow declares, a multiple pick holding each part Any flow can use them; each is checked by check_flow and the schema
Job model: option 2. source-survey, metrics-generation and eval-generation keep no job. Their questions live in their own flow.json (no job, no stages), asked with question get --flow and question choose --flow, which record nothing. job start refuses such a flow A folder holds one job, which a build may already own; option 2 needs no change to job storage, and the code showed nothing that needed a job for these questions
TOOLKIT run <helper> runs the run's shared helpers (project, context, evals, publication) Skills named analytics-build/scripts in prose; now the toolkit is the one place that names it
Every Markdown link from one skill into another becomes the skill's name; flow reference moves stay in the flow's own skill #270's cross-skill lint: the analytics allowlist drops from 102 paths to 15, all Python
No Doing/Why lines in the build Owner decision; the build's start line is its one line before work

Commits

Skill Commits
analytics-build + toolkit boundary c8414ef3 (intake.py, generic toolkit features, --flow), 3852aca8 (no Doing/Why), 53112cb0 (links by name)
analytics-toolkit 88758797 (TOOLKIT run), 0f41704f (--flow default and reference paths)
source-survey 6862393d, 2a32a1ed, 67a9353a (flow.json)
metrics-generation 174d0939, af10b0d3, 41f135ec (flow.json)
eval-generation f9201670, 225d5b20, a573f116 (flow.json)
accuracy-check, analytics-ask 57363170, 82e8ebd7; ab5800e2, e0ed565c
scenarios abe7e9be: build-own-folder-discovery, build-own-dashboard-branch, build-own-resume

Verification

  • tools/lint.py and tools/build.py --check pass (512 files: render.md folds into visuals.md). Each pushed commit was checked in a detached worktree.
  • Unit tests: 1,551 run; the same 8 failures as Atlan Analytics 1.1.0: the demo on the Analytics Toolkit, with an eval-driven accuracy check #270's head (missing sqlglot, saved-run fixtures), none new. New: tools/tests/test_build_flow.py, 19 tests (the interview through intake.py and question get --options, --flow with no job, the capability flows, TOOLKIT run).
  • Not run: scenarios, claude -p, the bench (no paid runs). The end-to-end and bench results in earlier versions of this description measured the branch before this pass.

Open

  • 15 Python paths remain in the allowlist: the toolkit, accuracy-check and eval-generation import analytics-build/scripts (the shared run code), and analytics-build imports metrics-generation's engine module. Moving the shared run code into the toolkit is the next step.
  • The build scenarios need four runner and grader changes, listed in the scenarios README ("Build scenarios").

🤖 Generated with Claude Code

shubhambatlan added a commit that referenced this pull request Dec 2, 2026
…s off by name

run.md's conflict goes #270's way. The cross-skill allowlist shrinks to what #275 leaves: no
Markdown link or flow reference from one skill into another remains in atlanai-analytics, only
15 Python paths to the shared run code. next_move reads a state without a stage, as a test mocks it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shubhambatlan
shubhambatlan force-pushed the analytics-demo-state-driven branch from 4d628f3 to 65dc0a0 Compare December 3, 2026 03:14
@shubhambatlan
shubhambatlan force-pushed the analytics-skills-on-toolkit branch from abe7e9b to cbd7fd6 Compare December 3, 2026 04:15
shubhambatlan added a commit that referenced this pull request Dec 3, 2026
The off-script principle names all three kinds and says the toolkit, never
prose, decides where the flow goes next. The example notes the change and
redirect mechanisms are designed in PR #275 and the demo handles asides; the
why cites Rasa CALM's command set. The sorting-test example no longer calls
the way back after a detour a `say` (the toolkit's results carry it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the PR

Fourteen journeys (S1-S14) through analytics-build, eval-generation, accuracy-check, metrics-generation and
source-survey, each stop graded by the card-grading table: T (main's question text), C (a composed card: main's
helper command or `question get <card>`), F<n> (a flow-only card, n/a before commit n, via `--commit`).

Runner and grader prerequisites R1-R11: the person's own folder from a sample (its BI file, its CSVs as SQLite,
its past queries, and a metric catalogue derived only from the BI file's own measures); `setup.expect` for a journey
with no sample; `{label}`, `{nth}` and question-text selects; every skill's flow read for callee cards; the first
value after a skill move; a built project from a finished main run (`--project-from`); each run staged with the
gateway emulator, signed out or no Atlan server on both hosts, refused if the stage names a live one; the demo picker
as `given` + `sample list`; the plugin's scripts and commands derived from the arm, matched by path; the sentence
style in own words; a session ended mid-build once the a3b answer is ingested.

Ten new checks, each with a constructed failing case: no-write-before-approval, asks-only-what-is-missing,
correction-reaches-build, eval-set-as-written, project-loads-across-versions, safe-calls-only (from commit 0);
one-way-asked, change-reopens-stage, redirect-through-toolkit, root-reopens-after-close (from commit 7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shubhambatlan
shubhambatlan force-pushed the analytics-skills-on-toolkit branch from 50ca355 to b0e11e0 Compare December 3, 2026 15:32
shubhambatlan added a commit that referenced this pull request Dec 3, 2026
…-before-run

One check per flow-defined sequence: each step's reply ends on its card and
asks nothing after it, no later step's work runs before that card is answered
(a command of the card's moves in flow.json, or a set's run before the card
asking to test it), and nothing moves on while a card is open. The last part
moves here from typed-reply-mapped, which now only grades how typed words are
recorded.

A failure still names the rule that broke, per step, e.g. "turn 8:
demo.check.run_set: EVAL todo ran before the pick" or "turn 5
(demo.save.where_to_keep): no card composed".

The set-running list (answering agents, EVAL todo, EVAL collect) stays written
by hand because accuracy-check and eval-generation ship no flow.json yet; it is
#275 debt and goes away when those skills get flows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant