mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* test: bring Kuma eval baseline and dataset updates from #6006 * test: harden assistant evals and tool contracts Add production-replay datasets, resilient eval execution and comparison UI, a committed baseline, and broad tool contract and chain coverage on top of the runtime behavior changes. * test: align tool contracts with #6006 list_tables and permission output * fix: restore the eval runner results tab and pin it structurally The Results tab shipped unable to execute: the closing brace of usageCell was dropped, renderResults read an undeclared totals, the cost cell still called the old four-argument usageCell, and a second pane clear wiped the dataset errors appended just above it. Two tests covered the tab by asserting substrings of the page, so all four passed against dead script. Check the page structurally instead, with a small tokenizer, because the backend CI image has no JavaScript engine and a node-based test would silently skip there. Replace the sampled tool-visibility assertions with the full routed-tool map, so adding a tool has to state its reach rather than inherit one. * test: score eval checks against the call that actually ran An incomplete cross-mode call is answered with a re-call redirect, so the first create_workflows call can hold a pre-switch guess rather than the arguments that executed. Score the executed call instead, recognising the redirect through the router's own helper in both its retry and tool-result forms. * test: score the update_row target from the database, not the first draft The check read row_id out of the recorded create_workflows arguments, which are the model's raw output. When those arguments fail validation the toolset's argument-repair agent fixes them and the tool runs with the repaired payload, so a workflow that correctly names its row still scored as missing one. Measured over ten repetitions this produced one false failure; the trace shows execute_tool succeeding and a fix_agent span right behind it. Read the persisted service instead, like the neighbouring trigger and action checks already do. * test: check saved values in the prod-replay evals Replay checks now verify the form collects the order fields, the page was inspected, the requested tables have rows, ISO week numbers and signed amounts are correct for seeded rows, no broken formula is left behind, and all 30 employee rows carry typed values. * fix: compare eval results only across the same case population A baseline captured on an older dataset version ran a different set of cases, so its means are not comparable. The Results tab now requires the experiment and baseline to share a dataset version and says when they do not. * test: expect Kuma to ask when an implied app table is missing #6006 decided that a request to show records refers to workspace data, so Kuma asks where the projects come from instead of inventing a table. The eval had been flipped to expect building; restore the ask expectation while the explicit example-app case still builds. * test: accept date subtraction as a correct date-difference answer Subtracting two date fields returns a duration (verified: 5 days for 2026-01-01 to 2026-01-06), so an answer that subtracts the dates is correct even when it does not name date_diff. Retrieval rarely surfaces the reference-guide passage for date_diff, which made this case fail three times in four on an accurate answer. * test: expect Kuma to offer a sample-data table when app records are missing When no table holds the records an app should show, Kuma should create nothing and ask, offering a table with sample data among the next steps. * test: accept a plain-text question when Kuma must ask ask_user only records a question for the final answer, so a run that asks in its reply and builds nothing behaves the same for the user. The ask checks still require that nothing was created. * test: match docs keywords through Markdown emphasis Answers bold feature names, so '**File** field' missed 'file field'. Keyword matching now ignores emphasis markers, and the OCR case accepts 'AI prompt', the field type's name in the product. * chore: recapture the Kuma eval baseline on the final stack Three repetitions of all 122 cases on 3ca6497591 with Groq GPT-OSS 120B (harness v5): 355/366 passed. Docs 192/192, core 9/9, database 61/63, builder 55/60, automation 20/21, prod-replay 18/21. * chore: drop an import the develop rebase left unused * test: expect docs search in every mode * test: require complete tracker and employee replay data * fix: compare Kuma eval results using recorded cases and checks * fix: correct Kuma eval scoring and preserve baseline runs * test: reuse the seeded user in Kuma builder contracts * test: isolate async docs-search database fixtures Create users and workspaces in synchronous pytest fixtures so their writes stay inside the rollback transaction. Async setup previously used a separate autocommit connection and leaked users, causing later data-sync tests to fail on duplicate usernames. Remove the global async-safety bypass, enforce Django's guard locally, and keep the real database hybrid test synchronous around its async tool call. Verified the seeded two-test reproduction fails before and passes after with no leaked users. All 71 focused tests and 1,742 broader tests pass; one existing test is skipped. Scoped pre-commit checks pass. * docs: update Builder eval count after rebase * fix: grade saved assistant results and preserve eval errors
13 lines
447 B
Plaintext
13 lines
447 B
Plaintext
# Set the default behavior, in case people don't have core.autocrlf set.
|
|
* text=auto
|
|
|
|
# So the bash scripts work when run inside the baserow docker images
|
|
*.sh text eol=lf
|
|
# Prettier does not allow windows file endings by default
|
|
*.js text eol=lf
|
|
*.vue text eol=lf
|
|
*.scss text eol=lf
|
|
|
|
# Machine-captured eval baseline snapshot: collapsed in PR review
|
|
enterprise/backend/src/baserow_enterprise/assistant/evals/baseline.json linguist-generated=true
|