Skip to content

Atlan Analytics 1.1.0: the demo on the Analytics Toolkit, with an eval-driven accuracy check - #270

Draft
shubhambatlan wants to merge 243 commits into
mainfrom
analytics-demo-state-driven
Draft

shubhambatlan wants to merge 243 commits into
mainfrom
analytics-demo-state-driven

Conversation

@shubhambatlan

@shubhambatlan shubhambatlan commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The analytics demo now runs from state: its stages, cards and task list live in flow.json and the Analytics Toolkit, not in prose. The accuracy check follows main's journey (try a question, check accuracy, fix the misses, test again), and a scenario eval suite grades every journey in code.

What changed

Area Change
Analytics Toolkit (new, hidden skill) kit/ modules per noun (job, flow, questions, answers, source, metrics, milestone). Every result names its next move and the exact command to run it (toolkit).
Demo flow.json stages and cards; one question at each decision; the task list resets per phase; off-script turns (aside, change, redirect) go through the toolkit.
Accuracy check One "Test your agent on these N questions?" card, with the questions listed, before anything runs; a printed score card (fix / keep); a fixes card naming each miss; metrics edit --fix <n> applies a fix from the check's own file; test again; a resume lands where the check stopped.
Test questions The demo checks each sample on a fixed set of 8 shipped with it, stored whole (question, trusted SQL, the metric it tests): about 3 easy, 3 that need a metric's rule, 2 hard. Known answers come from running the SQL at load. Target: about 3 of 8 with column names only, 6 of 8 with metrics, 7–8 of 8 after one fix. Own data keeps eval-generation.
Dashboard New PROJECT dashboard-page: tiles from the metrics' own queries, no model-written script.
What the person reads Plain text from tools: no widget code or local links in a question, no machinery words; $ amounts survive (the model's text reaches tools on stdin).
Design doc Principles for designing a skill, writing an eval and designing a check, including "speak at cards, not between steps" and "a scenario's steps are the agreed journey".

Evals (Codex, gpt-6.1-sol, one run per arm)

Scenario main this branch
Resume in a new session 13/18, 14 min, 9.4M tokens 17/18, 13 min, 6.4M
Fixit: check, dashboard, Skip at the set card 6/18, 40 min, 35.6M 17/18, 26 min, 14.7M
Improve loop (Ticketfuddle) not run: main's prose journey can't be driven by these steps first score 75–88%, a fix, then 100% across runs before the fixed set; the fixed set is first measured in the owner's manual run

The gate the branch still fails is the known metrics count (below).

Known and open (not in this PR)

  • Metrics count: one dashboard tile is sometimes held at review, leaving 3 metrics instead of 4.
  • Fixit's first score is often 100%: its history offers only one hard question (sample data).
  • Codex host habits: narration between steps and an occasional undefined/ path on a new turn; the grader catches both.
  • Card text polish: numbers in the score's one sentence, the public tour link inside two questions, a cut-off metric description, the long folder path.
  • For Analytics skills on the Foundation Analytics Toolkit: build, metrics generation, source survey, eval generation #275: metrics step and metrics configure move to metrics-generation's flow; one owner for the set's yes; changing an earlier choice mid-demo.
  • Follow-up PRs: a journey replay test in make check (both host forms); check scenarios that start from a pre-built run; a Claude-host scenario run.
  • Open decisions: the Codex time promise; "new metric" fixes.

🤖 Generated with Claude Code

shubhambatlan and others added 3 commits December 1, 2026 13:57
…d steps from demo_data.py

The demo's stages, questions and chips move into flow.json. demo_data.py gains the
commands that run them (state, question, choose, setup, build, show, answered); each
result ends with the job's state, so the skill reads where the demo stands instead of
following a fixed sequence. SKILL.md shrinks from 141 to 96 lines. Each demo's picker
row, intent and facts file live in its own demo.json. The orphaned metrics-found.md
reference is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… skill by name

A new skill, analytics-foundation-toolkit, holds the commands the analytics skills share, as
<noun> <verb>: job start/state/tasks, question get/choose, source samples/add, metrics
configure, milestone show, answer record. Its SKILL.md names the script path and one line per
command; nothing else in the plugin names a path inside it.

analytics-demo keeps only its data: SKILL.md, flow.json and assets/. It loads the toolkit once
and passes its flow and samples in as arguments; demo_data.py moves into the toolkit.

The flow is checked when loaded: an unknown condition, effect or source is named. A pick the
question does not offer is refused, state read failures come back as warnings instead of
silent defaults, and question special cases move from code into flow.json (options_from,
text_from, effect, show_when, flags_when). The task-list prompt the helpers printed on stderr
now comes back in state.tasks.

Each demo's facts move into its demo.json; the toolkit writes them beside the run, and
analytics-build's run_facts.py reads them there instead of from the demo's folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s next and how to show it

analytics-demo/SKILL.md goes from 99 lines to 32: goal, four principles, and a loop of
"job start, then do what `next` says". The toolkit's SKILL.md goes to 20 lines; its command
table gives way to --help. tour.md keeps only what no tool carries (81 of 175 lines).

What the prose used to say, the toolkit now returns:
- `next` on every result, typed: command, question, skill, reference (the toolkit resolves the
  path), wait or stop, with arguments filled in. flow.json's leads_to are typed moves.
- One card shape: `ask_native` for a question tool, `print` for plain chat, composed cards too.
- `relay` with each block (show_first, print): how to show it, said at the moment it is handed
  over. A rule read once at load did not hold in a headless run (0 of 6 blocks shown unchanged);
  with relay, 5 of 6.
- source add returns the sources chip; the after-answer sentence is a declared free-text slot.
- Gates are refusals: flow.json `requires` (source add after "Start building", metrics configure
  after the scope pick) and no question outside the current stage.
- The task list is asked for once "Start building" is picked (`tasks_when`), and again with
  the steps that changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shubhambatlan shubhambatlan changed the title The analytics demo runs from state: stages in flow.json, questions and steps from demo_data.py Analytics demo on the Foundation Analytics Toolkit: flow as data, the toolkit says what comes next Dec 1, 2026
shubhambatlan and others added 10 commits December 1, 2026 15:31
…ple's demo.json

schemas/flow.schema.json and schemas/sample.schema.json in the toolkit describe every field the
toolkit reads, with a description each. A standard-library test validates the demo's flow.json
and both samples against them, catches a field the schema does not know, and checks the schema
names the same conditions, move kinds, effects and sources as toolkit.py, so the two cannot
drift. The data files carry no $schema pointer: that would be a path into another skill.

flow.json drops stages.flow, which nothing read.

This puts the plugin at 514 files, over the directory's 512; the cleanup that follows brings it
back under.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A question that takes the person's own words declares where they lead (flow.json `typed`), and
`question choose <question id> --typed "<words>"` records them and returns that move. Without it,
a typed question at the ready step was answered off the toolkit's path, never recorded, and the
ready question came back instead of the answer.

The build step's `next` says, when it applies, that each metrics-engine chip opens the next
message unchanged, and the demo's principle names the engine's chips with the toolkit's. A run
had paraphrased one and stripped the symbol and bold from the rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
evals/atlan-analytics/scenarios/ holds scenarios in the design's format: an intent and the
person's selections, run over several turns and sessions, graded in code on workflow, setup,
cost, failures and outcome, plus the copy and UI elements the person sees. The explanation judge
is report-only. `claude plugin eval` runs one prompt per case with regex, tool_used and LLM
graders, so scenarios have their own runner.

- scenario.yaml: Ticketfuddle (Tableau), dashboard only, no question tool, kept on this machine,
  a second session that resumes, a typed question, then done. Expected copy is the shipped wording.
- run.py: one `claude -p` per turn, resuming the session unless the turn starts a new one.
- grade.py: what the person saw in each turn (every message, not only the last), the tool calls,
  and the run folder. Optional --baseline compares tokens.
- stress.py: replays 14 failures reported in Slack, PRs and tests on a good run; the grader must
  fail the named check on the copy and pass it on the good run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e rest is the model's

The demo's principle and the scenario's copy section now say it the same way: questions and UI
elements (chips and cards) come from the tools and are shown as they come; everything else is
the model's own words, guided by principles and examples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under the copy rule (questions and UI elements are fixed wording; everything else is the
model's), the tour's Doing/Why table gives examples of the pair at each moment. The model
writes its own, in the firm's terms, with counts and names from the tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`metrics step --model <id>` prepares the engine run on first use, then advances it one gate per
call, returning the gate, the step's chip as `show_first` and the job's state; when the run
completes it exports and loads the context, and `next` leads to the checks. The model no longer
calls the engine directly, where it piped results through `head` (a chip could be cut) and never
saw the task list's state: in an eval run the list stopped at step 2 of 8. A pending task-list
update now leads each result's `relay`, said at the moment, as the block rules are.

The answer card read a breakdown's rows in the first metric's unit: tickets by venue, answered
from Sell-through, showed "598600%" on main and the branch alike. Rows read in their own column's
unit unless the column is the metric (a count, money, or the column's own metric).

The demo fixture for the single-prompt evals opens its sample through the toolkit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From a review of the first scenario eval and the team's principle that each gate earns its place:

- grade.py: 17 checks where there were about 48. Each names the failures or design rules it
  guards. One check per concern: options as plain lines is one gate, not one per option; the
  side-page, build-chip, answer-card and closed rows are covered by the stop and block checks.
  A check with nothing to look at fails. New: the answer's number must come from a query that
  ran; every metric must be a definition and checked; each error must be followed by a success
  of the same tool; the task list must follow the work, not only exist; nothing is asked after
  a stop's question; the model's own words are checked with the repo's plain-reply pattern and
  for process talk. Questions put through a question tool count as shown. Several runs
  aggregate: gates in every run, other checks in 80%, time on the median.
- failures.yaml: 19 failures seen in Slack, pull requests and earlier runs, each with its source
  and guarding check, and the design rules gates may guard instead.
- stress.py: reads the catalog. Seven failures replay a recorded excerpt of the real run that
  failed (fixtures/, paths replaced, only the rows the check reads); the rest mutate the good
  run's raw transcript, so the transcript reading is tested too. It fails on a gate that guards
  nothing or a failure no gate guards. --record cuts a fixture.
- run.py: the host is the scenario's (`--append-system-prompt`, AskUserQuestion disallowed with no
  question tool), never words in the person's message; --runs N.

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

Two sections in CONTRIBUTING.md, each a table of principle, example from the analytics demo and
its eval, and why: skills orchestrate and tools do the work, stages as data, rules said when they
apply, fixed wording only for questions and UI elements, enforcement in tools, dependencies by
name, failing loudly; and for evals, starting from the job, the cheapest check that decides,
each gate earning its place, checks that can fail, past failures as data, grading what the person
saw, and comparing before and after the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A resumed turn waited 902 seconds before its first row, then ran in 43; the wall clock charged
the plugin for the host. Cost checks use the turn's `duration_ms`, and the totals report both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is not a chip

`metrics step` said "Answer this gate", and runs repeated "gate" and "refused" to the person. Its
`next` says "step", and its `relay` says to speak of what was built, never the engine's steps,
gates, statuses or refusals.

The grader took a command's help text as a chip when it printed a side-view line; a chip is now
the paragraph just before that line, and only when it opens with a chip's symbol.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shubhambatlan and others added 4 commits December 2, 2026 08:08
…ck catches them

failures.yaml holds each failure's evidence, a few lines of what the person saw or the tool calls,
quoted from the run where we kept it, rebuilt from the report otherwise and marked so, and what the
guarding check should say. tools/tests/test_scenario_grader.py builds a minimal run from each entry
and asserts the check fails for that reason, and that every gate guards something and every failure
has a gate. It runs in `make check`.

stress.py, its mutations and the 82 recorded transcript files go: testing the grader is a unit
test, and whole transcripts don't belong in the repository. The stop check reports every miss.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on carries nothing unread

- tour.md: its links into analytics-build's conventions, progress and presentation references and
  analytics-ask's definition links are replaced by the few rules they stood for, stated inline. It no
  longer describes the old prose model ("the moment files supply the full visible content").
- flow.json: the build stage's `say` no longer says "gate" (the model repeated it to the person); the
  `milestones` section goes, since nothing reads it; the schema drops it too.
- accuracy.md: the line handing over to the "What would you like to do next?" question reads plainly.

Still linking into other skills, by design for this PR: accuracy.md and edit-metric.md, the
accuracy-check and rule-change branches, which move with those skills.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eval: failures.yaml goes. A past failure is either a check the grader is missing, which becomes a
test case of the grader, or a workflow no scenario covers, which becomes a scenario. Its 19 entries
were all the first kind: each is now a case in tools/tests/test_scenario_grader.py, with its source
and the lines the person saw. Three gates that guarded only a design rule (first value in the
promise, errors recovered, kept where picked) get a case of their own; the test fails on a gate
with none. The checks no longer carry `guards` lists.

From the design review:
- analytics-build's ready.md says its option table is own-data setup's; the demo's options come
  from its flow, so the wording has one source per flow.
- The toolkit's SKILL.md drops the `state.tasks` line: a pending update arrives in `relay`.
- 514 to 512 files: the two schemas are one file (toolkit.schema.json, a flow at its root, a sample
  at $defs/sample), and the two samples' facts files are one (references/samples.md, a section
  per sample, which the sample's demo.json names).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The demo runs on the Foundation Analytics Toolkit: the same questions, chips and cards, with the
task list following the build, typed questions recorded, and a count no longer shown as a rate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shubhambatlan shubhambatlan changed the title Analytics demo on the Foundation Analytics Toolkit: flow as data, the toolkit says what comes next Atlan Analytics 1.1.0: the demo on the Foundation Analytics Toolkit, with its first scenario eval Dec 2, 2026
shubhambatlan and others added 10 commits December 2, 2026 08:40
demo-start-choice, demo-answer-asks-next, demo-build-without-checkpoint and demo-ready-next-actions
asked the model to read the demo's instructions without running anything, then judged the reply's
wording. The demo's questions now come from the toolkit's cards, so the wording is a unit test of
`question get` and its delivery is the demo-ticketfuddle-resume scenario's (its first stop, its answer
stop, nothing asked after a stop's question, its resumed session). start-choice could only fail now,
and ready-next-actions looked for a command the toolkit runs on the model's behalf.

Their fixture (fixtures/demo_run.py) and the unit test that checked ready-next-actions' scaffold and
judge go with them. New scenarios follow once the eval's structure is agreed.

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

The scenario names who the person is, what they say and what they pick, by namespaced question id
(demo.setup.pick_demo.box-office). grade.py reads each question's wording and options from the skill's
flow.json and the firm, welcome and counts from the sample, so nothing in the scenario can drift from
what ships. run.py takes --runs N; grade.py writes summary.json. A card a helper composes counts when
its command ran, even if the model filtered the output; two new failing cases (a card written by the
model, a reply naming a reference).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no question tool, the answer and the next question reach the person as one message, and the model
left the answer card out of it in 2 of 3 scenario runs. The toolkit now draws the card again from the
run's answer.json and hands it over as show_first with the next question; the flow says to write
nothing before it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Claude Desktop the model put its own plan in the task list ("Load toolkit and tour rules", ...)
before the toolkit handed one over. The task list is now worded like the questions: flow.json names
each item (demo.task.<id>, its text, and the start a run's detail keeps), the toolkit schema says what
a task list is, the toolkit words the tracker from the flow and says to keep none of its own until
one is handed over, through any task-list tool. The grader's task-list-as-shipped check reads
TaskCreate, TodoWrite and a host's plan tool, with the Desktop session as its failing case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…io with no budgets

grade.py was one 514-line file. grader/ now holds runs.py (reading a run), expect.py (what each step
should show, read from what the plugin ships), catalog.py (every check: dimension, gate or report, what
it validates, when it applies; and the limits) and checks/, one module per dimension. A row's
dimension and kind come from the catalog. README.md ties each scenario field to the checks it turns
on, describes the outputs and shows the catalog; a test keeps the two equal.

The scenario says or selects: `select: <question>.<option>` sends that option's label, as a question
tool would. `question_tool: false` replaces `host`. `budgets` is gone: the time promise is the
sample picker's own, first value is the first question after the build, and the other limits are
the grader's, overridable under `grading:` by name. Across runs, measured checks show their median
and each run's value, and a check that failed shows the failing run's evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A review of the grader found the catalog and the code were two lists that could drift, a check that
did not apply left no row (silence read as a pass), and results were per run, so a failure did not
point at its scenario line. Now:

- @check declares a check's id, dimension, kind, what it validates and when it applies (in words and
  as applies(run)) on the function itself; the README's table is generated from that registry.
- A check that does not apply writes an n/a row with its reason.
- grades.json holds each step with the checks that looked at it; summary.json lists each step's
  failed checks and in how many runs.
- The limits hidden in code are named: tasks_open_at_end, report_share.
- answer-from-a-query needs every number shown to come from a query result, reads 4,512 and 4512.00
  as one value and leaves years aside; its new failing case is a number main's model worked out itself.
- The copy rules are in one module (wording.py), and aggregate() has unit tests.

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

The first runs with a question tool (scenario run ab10, main and this branch) showed the person the
question after an answer without the answer card: the tool shows only ask_native, and the card came
as show_first beside it. The toolkit now puts the card at the top of the question in both forms, so
the tool shows it and plain chat opens with it.

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

- A scenario's checks: block names every check, to run or to skip with a reason, and changes a
  check's limits by its id. A check left out, an unknown name, a skip without a reason or an
  unknown limit is refused, so a new check makes every scenario decide about it. Each @check
  declares its own limits; grading: is gone.
- question_tool: true is the scenario's host: one Claude Code process per session over stream-json,
  with the runner answering the question tool with the selected option, as a click does. A session
  left with a question waiting is closed by declining it, so its cost is reported. Tokens are
  counted per step.
- From a review of the checks: questions-through-the-tool (a gate) checks each question went
  through the tool with the flow's options; blocks compare what the tool showed; an error counts
  as recovered only when the same command later succeeds; the task list is read from any task-list
  tool, Desktop's plan tool included; a question-tool answer starts the next step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ll-design.md

They are the analytics plugin's, not the repository's: CONTRIBUTING.md points to them. The task list
joins the fixed-wording UI elements; two eval rows are added (a scenario names every check; run as
the person's host does) and the past-failure row, which the gate row already covers, is dropped.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shubhambatlan and others added 22 commits December 4, 2026 09:49
ACC result, ACC fixes and CHECK show, confirm and load name toolkit steps but carried no command.
The job file records the toolkit's command; the check's results in that folder name it as toolkit,
with no path into another skill's folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes picked again after they were applied: the edit changed nothing and wrote no version, so job
state named fix 1 forever. The apply move skips a fix whose metric already holds its changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Back at the fixes card after fixes were applied, Keep the score opened the after-score card on the
pre-fix result. A metric changed since the score makes that score stale: Keep leads to the test
again, as job state does.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…idget's code

Failure: Desktop session, PR 270 at 1c3b8ac, 2026-12-04. `source add --sample
yard` returned show_first as the desktop app's widget HTML, reply() stored it as
the job's lead, and `question get` opened the native question "What should I
build your agent from?" with the widget's <style> and <div>.

Fix: reply() carries no lead when show_first is a widget (the host draws it with
show_widget, as side_view says) and relays that instead; `question get` drops a
widget lead a job saved earlier. A text chip still opens its question.

Eval: questions-from-cards-as-designed gets the rule "plain text": a question's
text (question-tool call, or a card printed for plain chat) holding markup fails.
Failing case from this card; passing case with the chip's plain line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex final round 13 (PR 270 at 1c3b8ac), turn 5: every question the build wrote ran past the
120-character cap, so the demo's ready card offered nothing, the pick of its first suggestion had
nothing to pick, no answer card followed (turn 6) and the check started from an aside (turn 7).
When no question fits the cap, the shortest are offered all the same.

Principle: fail loudly; a card never silently loses its options.
Eval: demo-ticketfuddle-input-agent-only-improve-loop step 6 picks suggestion 1.

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

Codex final round 13 (PR 270 at 1c3b8ac), turn 7: the person's "Check how accurate it is" at
demo.ask.after_answer went through question aside, so the check ran before its pick:
demo.check.run_set was refused, and the check's folder predated the pick, so the task list's
check items stayed pending to the end (turns 8 to 11). question aside now refuses words that
name one of the open card's options, with question choose <that option> as next.

Principle: enforce in the tools; refuse with the reason and the way forward.
Eval: demo-ticketfuddle-input-agent-only-improve-loop step 7 (expected-sequence-followed,
task-list-follows-work).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex final round 13 (PR 270 at 1c3b8ac), turn 3: Codex sent source add twice at once; the
second hit the runtime lock and its refusal said "This needs fixing before the build can go on.",
so the session searched the scripts and processes, then sent source add a third time. The lock's
refusal now says nothing is broken: wait for that call's result, never send this one again, and
job status says where the job stands. recovers-from-refusal counts job status as a named move.

Principle: refuse with the reason and the way forward.
Eval: recovers-from-refusal on demo-ticketfuddle-input-agent-only-improve-loop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex final round 13 (PR 270 at 1c3b8ac), turn 8: the card drew both passes and ACC result's
lines.before_after was empty, yet the score card went out under "With column names only: 0%.
With metrics: 75%.", worded as run.md's four examples word it (the session read run.md in turn
7). The examples now name lines.before_after instead of writing it out.

Principle: wording the person sees comes from tools, never from a reference.
Eval: blocks-shown-unchanged (rule "tool lines") on demo-ticketfuddle-input-agent-only-improve-loop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex final round 13 (PR 270 at 1c3b8ac), step 6: the ready card offered no suggestion, the pick
of the first one got "Did you mean ...?" and no answer card, and the evidence read
'no tile or past query asks ""', an empty question. It now says a suggestion was picked and no
answer card says which: none offered, or none answered.

Principle: a check's evidence names the rule that broke.
Test: suggested-pick-with-no-answer-card in test_scenario_grader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SCOPE pick, for a demo's run (or --mix easy,rule,hard), picks about 3
questions a column-names-only agent answers, 3 that need a metric's rule
and 2 hard ones. contested.difficulty reads easy from SQL structure alone:
one SELECT over at most two tables, plain aggregates, no condition beyond
a fixed period or a picked value. Each selection and set row records its
class. Before, every demo question needed a rule, so the column-names-only
comparison scored 0% in every run. Own data keeps the metric-first pick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
score-rises-after-fix drops the 100% floor in the improve-loop scenario:
the test again scores higher than the first. first-score-below-full also
fails a column-names-only comparison of 0% or below schema_at_least
(0.2 in that scenario), with its grader case from the 0% runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop session (PR 270 at 1c3b8ac, 2026-12-04, 18:06:25): EVALGEN was
`env PYTHONPATH=... "<python>" -m eval_builder.cli`, which the model built as a string in a
variable and ran as "$E"; zsh read the whole string as one program name ("no such file or
directory: env PYTHONPATH=..."). evalgen.py sets up the engine's interpreter (setup_runtime,
reused once ready) and runs eval_builder.cli on it with the engine on PYTHONPATH. SKILL.md names
it as EVALGEN, SCOPE inputs returns it as `evalgen`, and SCOPE wait's next names it in full.

Principle: fix what must come out the same every time in a tool, not in prose to compose.
Eval: plugin-commands-no-failures now covers the eval engine (evalgen.py, eval_builder.cli);
case eval-engine-run-as-one-word.
Test: test_eval_runtime (wrapper argv, env, blocked), test_eval_scope (wait's next).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop session (PR 270 at 1c3b8ac, 2026-12-04, 17:53): the save card went through the question
tool, which shows its text as it is, and read "From 2 tiles: http://127.0.0.1:63743/..." and
"Every metric and how it's calculated: http://127.0.0.1:63743/...". The question's text now says
"From 2 tiles." and "Every metric and how it's calculated: on the side page." (as the answer card
says "How this was worked out: on the side page"); the card's `plain` form, printed in plain chat
where a link opens, keeps the address. The side page opens on its own in both hosts.

Principle: blocks are the product; a question has fixed wording from tools, and that wording is
plain text as the host shows it.
Eval: questions-from-cards-as-designed rule "plain text" fails a side page's address in a
question tool's text; case side-page-address-in-a-question.
Test: test_analytics_visuals (save question, question vs plain).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop session (PR 270 at 1c3b8ac, 2026-12-04, 18:07:22): CHECK show's result was saved to a
file, its show_first table never shown, and the person was asked "Test your agent on these 8
questions?" with none of the 8 in sight. CHECK show's `ask` now carries the set in its `text`, one
plain line a question (number, question, the metric it tests), which the toolkit puts first in the
card's question, as it does the set's chip. Known answers stay in the table and on the side page.

Principle: questions and UI elements have fixed wording from tools; a card carries what the person
says yes to, as the chip precedent does, as text and never as a widget.
Eval: questions-from-cards-as-designed rule "set listed"; case set-card-without-its-questions.
Test: test_eval_scope (show lists the edited set in ask.text, no table, no known answer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop session (PR 270 at 1c3b8ac, 2026-12-04): the model's own lines read "Scoring is nearly
done: all 12 judges have reported. I'm now collecting their verdicts." (the nudge's reply),
"Now I'm getting the next card." and "Matched my own command. Exclude it." The toolkit's never-say
line now names card, judge and verdict and a note to itself about a command's output;
own-words-follow-voice fails "verdict(s)", "card(s)" after a determiner (the plugin's word; card as
Ticketfuddle's payment word passes) and notes to itself ("matched my own", "my own command",
"Exclude it"). "judges" was already a pass name.

Principle: speak at cards, not between steps; the model's own words name nothing internal.
Eval: own-words-follow-voice; cases judges-and-verdicts, names-the-next-card, note-to-itself,
and a passing case for card as the data word.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's Desktop session (PR 270 at 1c3b8ac, 2026-12-04, 18:15): "Your agent got 8 of 8
right with metrics, against 0 of 8 from column names only." read as a failure; the 0 of 8 is the
comparison pass. The before-and-after report, its widget's words and ACC result's
lines.before_after now lead with the score and name the other pass as the comparison: "Your agent
got 8 of 8 right with your metrics." / "For comparison, an agent with column names only, no
metrics, got 0 of 8." The wording lives in compared_lines, outside the grading span (the calls in
the span changed, so an approved harness asks again once).

Principle: numbers come from tools, worded so they read right on their face.
Eval: blocks-shown-unchanged ("tool lines") is unaffected: it compares what the tool gave.
Test: test_eval_scope (compared_lines, before_after line), analytics_eval selftest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to 7df14794 (the save card's question names the side page): the side-page test still
read the address from `question`; it now reads it from `plain` and checks the question says
"From 1 tile and 1 past query." with no address.

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

In the Desktop run at 1c3b8ac the after-answer question (17:57) began with
the answer card's widget HTML, the same bug 0511255 fixed for a chip lead,
on the other path: last_answer_card puts the answer card into the question
after `answer record`. A widget card now stays out of the question (the
answer step drew it); a text card still rides in, as before.

Principle: blocks are the product; a question's text is plain text from a
tool. Test: with_answer keeps widget HTML out and still leads with a text
card (fails before). Eval: the "plain text" rule in
questions-from-cards-as-designed (0511255) fails markup in a question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd Cowork Skill Sync (#267)

Conflicts were the analytics version (main 1.0.1, this branch 1.1.0: kept
1.1.0) and plugin.toml, merged by hand from main's file so its new
atlanai-cowork-skill-sync add-on stays, with this branch's analytics
version, long description, skill list and analytics-toolkit entry.
Generated manifests rebuilt with tools/build.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shubhambatlan shubhambatlan changed the title Atlan Analytics 1.1.0: the demo on the Analytics Toolkit, with its first scenario eval Atlan Analytics 1.1.0: the demo on the Analytics Toolkit, with an eval-driven accuracy check Dec 4, 2026
shubhambatlan and others added 7 commits December 4, 2026 13:04
…older and run filled

A Desktop session (PR 270 at 2c94a2a, 19:41:48) read "--questions 8 to CHECK start" and ran
check.py start without --project, which failed. A move's say now fills {folder} and {run} from the
job, and plugin-commands-no-failures grades the check's own scripts (check, accuracy, scope,
analytics_eval), whose failure it passed before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Desktop session (PR 270 at 2c94a2a, 19:48:09) ran `toolkit.py job state --folder .` and argparse
refused "unrecognized arguments: --folder .". Every verb now takes --folder too (a parent parser,
SUPPRESS so the one before the noun stays when none follows).

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

A Desktop session (PR 270 at 2c94a2a, 19:41:57) kept EVALGEN in a shell variable, zsh ran "$E" as one
program name, and the model told the person "Zsh doesn't split the command string". Each file that
defines a command now says, in one sentence, to run it as written and never keep it in a variable (no
zsh explanation to repeat); SCOPE, CHECK and ACC results name their command whole (scope, check, acc),
as the toolkit's name toolkit. own-words-follow-voice fails a line about the shell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…result's last relay line

A Desktop session (PR 270 at 2c94a2a) wrote a line at each helper's wake-up: "Drafting helper is
done (nothing to act on). Continuing: load the set.", "Prompts are identical apart from the file
path. Launching the 9 judges.", "Now the result banner and the next card.", and to a nudge "Two
merges (gross margin, rework cost), then the single-source ones." SCOPE pick and wait, EVAL todo and
a waiting or judging EVAL collect now end on a relay line saying so; own-words-follow-voice fails
banner, merges, single-source, "nothing to act on" and "Continuing:", with a case for each line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex final round 15 (PR 270 at 75cbb2c), turn 8, wrote "With metrics: **6 of 8 right**. With column
names only: **0 of 8**." above the score card. 6a40286 took the before-and-after line out of run.md's
examples, but the printed card's relay ("End your message with print ...") left the line above it open,
and run.md's list of what a result holds still read as the model's to write when a card shows
score_text. The relay now rules out a line just before the card that says its content again, and
run.md says a caller's card is the whole result. blocks-shown-unchanged already failed the run; a case
now pins it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d); the demo drafts no questions

The owner's decision (2026-12-04): the demo's accuracy check runs a fixed eval set per sample, stored
whole like any set (id, question, sql, tests, from, generated, plus class), with no answers: CHECK load
runs the trusted SQL. CHECK start copies the sample's set into the project in a demo's folder, so the
one set loads with no draft; beside other sets the person still chooses, and Write new still goes to
eval-generation. The set is never placed in the working folder the build surveys.

Tests: each set has 8 rows, 3/3/2, the row shape and no answer; each trusted SQL returns one value on
its sample's data; the set never reaches the working folder; the demo check installs and loads it.
Grader case: a demo check that drafts questions (eval-generation's scope commands) fails
expected-sequence-followed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… question asks for the share

From the validation of PR 270 at 7dca52d:
- CHECK start returned a bare "load" and the file, and the demo's move said
  "CHECK load it with this job's run": the model had to remember --project,
  the same omission that broke CHECK start on Desktop. In a demo folder it
  now returns load_command, the CHECK load command whole with this check's
  project, file and run, and the move says to run it as given.
- Fixit's demo-08 asked "How much of the material ... went to waste?" while
  its trusted SQL returns a share of value: an answer in pounds or quantity
  would be marked wrong for the set's wording. It now asks for the share.

Principle: a next that names a command gives it whole; a question asks for
exactly what its trusted SQL returns. Test: CHECK start's load_command
carries --project, --file and --run (fails before).

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