DataAgentBench icon indicating copy to clipboard operation
DataAgentBench copied to clipboard

Running DAB without provider API credentials: OAuth CLI agent, 15/18 on a mixed sample

Open marc-shade opened this issue 4 months ago • 3 comments

DAB's built-in DataAgent needs a provider API key, but the leaderboard accepts answers from any agent. That means a submission can be produced with a subscription-backed coding CLI instead, at no per-run API cost. I have this working and wanted to share the approach and the numbers, in case it is useful to note in the docs.

This seemed worth raising because the paper notes you "were unable to obtain credits for Anthropic's Claude models", and the reported evaluation costs ($67 for GPT-5-mini up to $1,355 for Gemini-3-Pro) are a real barrier for contributors without an API budget.

Approach

The agent is claude --print (Claude Code CLI, OAuth via an existing subscription, no ANTHROPIC_API_KEY). Rubric compliance is enforced structurally rather than requested in the prompt:

  • Single data door. The agent's only way to reach data is one helper that reads that dataset's own db_config.yaml. An unsanctioned store cannot be named, and write/DDL keywords are refused, so §1 holds by construction rather than by instruction.
  • No web tools. Launched with --disallowedTools WebSearch WebFetch, so the ground truth cannot arrive from outside. §2.1 is unreachable, not merely discouraged.
  • Traces prove it. Full stream-json transcript per run. Across the 18 runs below: 290 Bash calls, 2 Write calls, 0 web calls. Both writes were scratch parsing helpers in /tmp, which §1 permits as profiling.

Verified after all runs: the 36 dataset files still match dataset_manifest.tsv by sha256, so read-only access held.

Results (n=1 per query, no hints, no DAB-specific prompt tuning)

Scored with each query's own validate.py.

dataset correct DBMSes
agnews 1/1 Mongo + SQLite
bookreview 3/3 Postgres + SQLite
googlelocal 4/4 Postgres + SQLite
music_brainz_20k 3/3 DuckDB + SQLite
stockindex 3/3 DuckDB + SQLite
DEPS_DEV_V1 1/2 DuckDB + SQLite
PATENTS 0/2 Postgres + SQLite
total 15/18 all four DBMSes

Two caveats I would rather state than have you find:

  1. This is not a 83% pass@1 claim. It is 18 runs on 7 of 17 datasets, n=1, no pass@k. The first five datasets were chosen for DBMS coverage, not difficulty, and that selection flattered the result until I added the hard ones.
  2. PATENTS failed 0/2, consistent with the paper, where no agent solves it across 2,700 trials. Both failures look like the regex-extraction limitation Section 3.3 describes: the CPC date formats defeated pattern matching and the agent never recovered. Our agent tracks your difficulty curve rather than beating it.

Median runtime was about 200s per query on the easier datasets and 350-720s on PATENTS/DEPS_DEV_V1.

Offer

If useful, I am happy to send a PR adding a short "running DAB without provider API credentials" section to the README, or a documented example agent under common_scaffold/. Entirely your call on whether that fits the project's scope. Two things I would want to confirm first:

  • Is a CLI-agent submission in the spirit of the leaderboard, or do you consider the built-in DataAgent the intended baseline for comparability?
  • For submissions, what execution-trace format do you actually want? The README requires traces, and the example in leaderboard_submissions/ is results-JSON only, so I want to match your expectation rather than guess.

marc-shade avatar Aug 03 '26 13:08 marc-shade

Correction to the numbers above. A fifth run finished after I posted, and it changes a claim I made, so flagging it rather than leaving it wrong.

PATENTS is 1/3, not 0/2. Updated totals: 16/19 (84%), PATENTS 1/3, DEPS_DEV_V1 1/2, the other five datasets 14/14. Still 0 web-tool calls (314 Bash, 2 Write, both /tmp scratch helpers).

The passing query is PATENTS/query3 ("which assignees, excluding UNIV CALIFORNIA, have cited patents assigned to UNIV CALIFORNIA, and what are the titles of the primary CPC subclasses"). It is a multi-hop citation join across the Postgres CPC definitions and the SQLite publication DB, and the answer had to carry full CPC subclass titles verbatim. Its validator returned All assignee-title pairs matched successfully by at least one method, and I checked separately that this validator rejects both a numeric shotgun and a refusal, so it is not a soft pass.

I would not read this as contradicting the paper. It is n=1 on one of three PATENTS queries, the other two failed, and Section 3.3's regex-extraction limitation is exactly what the two failures look like. If it is useful, the plausible reading is that this particular query is join-heavy rather than extraction-heavy, so it sidesteps the failure mode that makes the rest of the dataset hard.

Happy to share the trace for that run if you want to check it against §2.

marc-shade avatar Aug 03 '26 13:08 marc-shade

Answering my own two questions, in case it saves someone else the guesswork. Both turned out to be visible in the merged leaderboard PRs rather than in the docs.

Traces. Of the four merged submissions, only #75 shipped a traces.tar.gz; #73, #70 and #67 (currently ranks 1, 2 and 4) shipped the results JSON alone. So the README's trace requirement is not what gates a submission in practice. I will still include them, since they are what makes the rubric §2 checks verifiable rather than asserted.

Scope. This is the one I would not have guessed. The most recent accepted submission (#75, merged 2026-07-28, the same day as current main) contains 270 entries = 54 queries x 5 runs across 12 datasets, while the repo currently holds 104 queries across 17. The five extra datasets (civic_unstructured, cve, imdb, krama, usaspending) have been in the repo since May and appear in no accepted submission.

I have scoped my run to those 54, which cut it roughly in half. Is that right? If the scored set is meant to include the newer datasets, I would rather run the extra 50 queries now than submit something short. A line in the README naming the scored set would settle it for anyone else attempting a submission.

For the record, the exact format from the accepted diff, since the README example and the in-repo submissions/*.json differ on typing:

{"dataset": "DEPS_DEV_V1", "query": "1", "run": "0", "answer": "..."}

query and run are strings; dataset is the directory name minus the query_ prefix; the file goes to leaderboard_submissions/<agent>_results.json. The submissions/*.json files in-repo use integers for those two fields, which is what sent me to the PR diffs to check.

No action needed on my account. Flagging the scope question only because it is the one thing that could make an otherwise valid submission incomplete.

marc-shade avatar Aug 03 '26 14:08 marc-shade

Hi @marc-shade ! Thanks for writing this up!

Is a CLI-agent submission in the spirit of the leaderboard?

Yes — any agent is allowed to submit, as you can see from the submissions already on the leaderboard, most of which are not the built-in DataAgent (that one is only a reference baseline).

What execution-trace format do we want?

There is no required format, as long as the per-step information is fully recorded in the trace so that we can check it.

One scoping note on coverage:

The current leaderboard is 54 queries over 12 datasets (as in this table). The 5 newly-added datasets in the repo are not in scope for now; we will officially release them soon, so stay tuned!

Ruiying-Ma avatar Aug 03 '26 23:08 Ruiying-Ma