The Q07 miss is the best argument in the whole piece — 94.4% intent accuracy looked fine until the exact-number assertion caught the model picking group_aggregate over top_n. A harness that only checks 'did it roughly understand' would have shipped that bug. Do you re-run the 18 golden cases on every prompt tweak, or only when you change the router itself?
Thanks so much for reading! Completely agree checking only "did it roughly get the intent" would have quietly shipped that 4-row bug.
Right now I split it into two layers:
GitHub Actions CI (every PR): Runs fast offline mocked tests (~0.8s) so CI stays deterministic and free of API rate limits.
Live 18-case eval harness: I re-run it manually on every prompt tweak (with a PROMPT_VERSION bump), intent schema change, or model fallback update — and log the before/after scorecard so nothing silently regresses.
The PROMPT_VERSION bump plus a before/after scorecard is the discipline that makes manual re-runs trustworthy — without the version stamp, a re-run proves nothing about which prompt produced the score. Is the scorecard checked into the repo alongside the prompts, or kept separately? If it's in the repo, the live harness is one step away from running on a schedule instead of by hand.
Great point — right now I keep the full benchmark log in my private project notes and publish the summary table in the repo's README.md, while evals/run_evals.py already supports an --output flag to export timestamped JSON scorecards.
Checking those scorecards directly into server/evals/scorecards/ and running the live harness on a weekly GitHub Actions schedule cron (using GEMINI_API_KEY from repo secrets) is a brilliant next step — even when I don't touch prompts.py, it would catch silent upstream model drift automatically at zero cost. Adding that straight to my v1.1.0 roadmap — really appreciate the suggestion!
The weekly cron is the real win here — drift happens without anyone touching prompts.py, so a harness that only runs on your own changes would miss exactly the failure it exists to catch. Checking the scorecards in makes the drift visible in the repo history too. Will the scorecards record the model version, so a regression is attributable to the provider and not your code?
The two non-negotiable rules are what make this design convincing — sending only column names and inferred types to the LLM, and letting it act purely as a natural-language intent router while deterministic Pandas code runs the 10 allowlisted operations, with a "how this was calculated" audit trail. The Q07 story is the best proof of why the harness matters: 17/18 intent accuracy at 94.4% in v1.0 looked fine until Gemini picked group_aggregate instead of top_n for the top 3 customers in Colombo, and the one-line disambiguation in v1.1 took it to 18/18 and 15/15 exact. The ORD-1011 regex bug turning an order ID into -1011 is another great catch. As you add new operations beyond the current 10, how are you planning to grow the 18-case golden dataset — will you add a case for every new operation, or are you thinking about generating cases from real user questions once the React workspace UI is live?
Really appreciate the thoughtful feedback! I'm planning to grow it using both tracks:
Per new operation / bug fix: Every new allowlisted operation or parser fix gets 2–3 new synthetic cases (happy path + edge case + refusal/regression) before merging.
Privacy-safe beta feedback loop: Once the React UI is live, AskGrid won't log or store users' private CSV rows or PII instead, I've built a simple Correct/Wrong rating button and will turn anonymized failure patterns (and feedback on the built-in sample dataset) into new synthetic golden cases. That way the eval set grows from real phrasing without compromising user privacy!
The ORD-1011 currency regex bug is such a classic false positive. Treating group_aggregate vs top_n as a disambiguation rule in the prompt is a smart fix. Are you going to keep expanding the golden set as new operations land in the React UI?
Thank you! That ORD-1011 regex bug definitely humbled me early glad a test caught it instead of a user.
Yes! Every new operation or tricky phrasing we discover once the React UI goes live will become a permanent synthetic test case in the golden suite before we ship changes. Keeping the suite growing alongside the app is the best way to make sure prompt tweaks don't break older operations.
Haha, honestly that was my favorite catch of the whole build! Nothing teaches you to respect golden-dataset tests faster than watching your own currency parser quietly turn an order ID into -1011. Thanks for reading!
We're a place where coders share, stay up-to-date and grow their careers.
The Q07 miss is the best argument in the whole piece — 94.4% intent accuracy looked fine until the exact-number assertion caught the model picking group_aggregate over top_n. A harness that only checks 'did it roughly understand' would have shipped that bug. Do you re-run the 18 golden cases on every prompt tweak, or only when you change the router itself?
Thanks so much for reading! Completely agree checking only "did it roughly get the intent" would have quietly shipped that 4-row bug.
Right now I split it into two layers:
The PROMPT_VERSION bump plus a before/after scorecard is the discipline that makes manual re-runs trustworthy — without the version stamp, a re-run proves nothing about which prompt produced the score. Is the scorecard checked into the repo alongside the prompts, or kept separately? If it's in the repo, the live harness is one step away from running on a schedule instead of by hand.
Great point — right now I keep the full benchmark log in my private project notes and publish the summary table in the repo's README.md, while evals/run_evals.py already supports an --output flag to export timestamped JSON scorecards.
Checking those scorecards directly into server/evals/scorecards/ and running the live harness on a weekly GitHub Actions schedule cron (using GEMINI_API_KEY from repo secrets) is a brilliant next step — even when I don't touch prompts.py, it would catch silent upstream model drift automatically at zero cost. Adding that straight to my v1.1.0 roadmap — really appreciate the suggestion!
The weekly cron is the real win here — drift happens without anyone touching prompts.py, so a harness that only runs on your own changes would miss exactly the failure it exists to catch. Checking the scorecards in makes the drift visible in the repo history too. Will the scorecards record the model version, so a regression is attributable to the provider and not your code?
The two non-negotiable rules are what make this design convincing — sending only column names and inferred types to the LLM, and letting it act purely as a natural-language intent router while deterministic Pandas code runs the 10 allowlisted operations, with a "how this was calculated" audit trail. The Q07 story is the best proof of why the harness matters: 17/18 intent accuracy at 94.4% in v1.0 looked fine until Gemini picked group_aggregate instead of top_n for the top 3 customers in Colombo, and the one-line disambiguation in v1.1 took it to 18/18 and 15/15 exact. The ORD-1011 regex bug turning an order ID into -1011 is another great catch. As you add new operations beyond the current 10, how are you planning to grow the 18-case golden dataset — will you add a case for every new operation, or are you thinking about generating cases from real user questions once the React workspace UI is live?
Really appreciate the thoughtful feedback! I'm planning to grow it using both tracks:
The ORD-1011 currency regex bug is such a classic false positive. Treating group_aggregate vs top_n as a disambiguation rule in the prompt is a smart fix. Are you going to keep expanding the golden set as new operations land in the React UI?
Thank you! That ORD-1011 regex bug definitely humbled me early glad a test caught it instead of a user.
Yes! Every new operation or tricky phrasing we discover once the React UI goes live will become a permanent synthetic test case in the golden suite before we ship changes. Keeping the suite growing alongside the app is the best way to make sure prompt tweaks don't break older operations.
ord-1011 turning into -1011 is the bug that sells the harness. a currency regex eating order ids, caught by a golden test before any user saw it.
Haha, honestly that was my favorite catch of the whole build! Nothing teaches you to respect golden-dataset tests faster than watching your own currency parser quietly turn an order ID into -1011. Thanks for reading!