Skip to content

feat: add Spark REST eval suite - #482

Open
mattrossman wants to merge 19 commits into
mainfrom
mattrossman/ai-1399-add-an-agent-eval-suite-for-spark-rest-api
Open

mattrossman wants to merge 19 commits into
mainfrom
mattrossman/ai-1399-add-an-agent-eval-suite-for-spark-rest-api

Conversation

@mattrossman

@mattrossman mattrossman commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a Spark eval suite and a minimal sample scenario for adding due dates to a seeded task tracker.

Follow-up from #471 which was a larger attempt at adding MCP / CLI integration and adapting existing scenarios.

Demo

See sample trace from a local run.

CleanShot 2026-11-03 at 7 27 20 PM@2x

How to use

  • To add a scenario → Put PROMPT.md, EVAL.ts, and optional seeded remote/project.sql under evals/spark/<id>/.
  • To run scenarios → Set SPARK_API_URL in .env (find it here), connect to Supabase WARP, then run pnpm eval:upload -- --suite spark.
  • To view results → Open the Braintrust experiment link printed by the command, or hand it to Braintrust MCP.

The expected workflow is to add a scenario, verify it fails, update Spark API, and verify the eval passes. The Spark team owns the suite, skill, and runtime so they can run that process self-serve.

Notes

Spark interface is explained to agent in a /spark skill derived from spark-server/API.md.

Currently this can only run locally with WARP access. CI support will need Sandboxes to have WARP access.

You can find existing scenarios from our benchmark and regression suites in evals/, though these will need adaptation to make sense for Spark due to known incompatibilities (e.g. many rely on RLS during setup).

Closes AI-1399

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
evals Ignored Ignored Preview Nov 4, 2026 8:51pm UTC

Request Review

@mattrossman
mattrossman marked this pull request as ready for review November 4, 2026 20:52
@mattrossman
mattrossman requested a review from a team as a code owner November 4, 2026 20:52
Comment on lines +523 to +528
await using session = disposable(
await exp.runtime.startSession({
...readSessionSeedArgs(ev),
hostname: agentRunsInSandbox ? '0.0.0.0' : undefined,
})
);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love using using 🙂

@mattrossman mattrossman Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated but after our call I cleaned up the EVAL.ts a bit to make the checks easier to see in one place and understand why 2 queries are involved

This branch has not been deployed

No deployments
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.

2 participants