Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringclasses
29 values
passSource
stringlengths
11
14
attemptNumber
int64
1
3
⌀
messages
listlengths
3
3
perturbation
stringclasses
4 values
When a Shopify order is paid, append the order number, customer email and total to an Airtable table.
pass-1/6.json
2
[ { "role": "system", "content": "You are the repair step of patchbay. Given a TypeScript connector that failed its sandbox tests, output the full set of fixed files that will make every test pass. Output each file as <file path=\"…\">…</file> blocks with no prose outside them." }, { "role": "user", ...
null
When a Shopify order webhook arrives, verify the HMAC-SHA256 signature from the X-Shopify-Hmac-Sha256 header against the shared secret, then forward the order summary to a Slack channel.
pass-2/12.json
1
[ { "role": "system", "content": "You are the repair step of patchbay. Given a TypeScript connector that failed its sandbox tests, output the full set of fixed files that will make every test pass. Output each file as <file path=\"…\">…</file> blocks with no prose outside them." }, { "role": "user", ...
null
When a GitHub issue gets the label "bug", create an issue in Linear in the Triage team.
pass-2/4.json
1
[ { "role": "system", "content": "You are the repair step of patchbay. Given a TypeScript connector that failed its sandbox tests, output the full set of fixed files that will make every test pass. Output each file as <file path=\"…\">…</file> blocks with no prose outside them." }, { "role": "user", ...
null
When a HubSpot deal is updated, search Salesforce for an Account by website domain; update it when a match is found, otherwise create a new Account.
pass-2/17.json
3
[ { "role": "system", "content": "You are the repair step of patchbay. Given a TypeScript connector that failed its sandbox tests, output the full set of fixed files that will make every test pass. Output each file as <file path=\"…\">…</file> blocks with no prose outside them." }, { "role": "user", ...
null
"When a Jotform submission arrives, update an Airtable record by looking it up with filterByFormula (...TRUNCATED)
root/16.json
1
[{"role":"system","content":"You are the repair step of patchbay. Given a TypeScript connector that (...TRUNCATED)
null
"When a Twilio incoming SMS webhook arrives, route it to Slack #sales when the body matches /pricing(...TRUNCATED)
pass-2/20.json
1
[{"role":"system","content":"You are the repair step of patchbay. Given a TypeScript connector that (...TRUNCATED)
null
"When a Stripe invoice is finalized, create a line item in QuickBooks for every invoice line and att(...TRUNCATED)
pass-3/21.json
2
[{"role":"system","content":"You are the repair step of patchbay. Given a TypeScript connector that (...TRUNCATED)
null
"When a Linear issue is closed, fetch all its comments using cursor pagination and post a single dig(...TRUNCATED)
pass-4/18.json
1
[{"role":"system","content":"You are the repair step of patchbay. Given a TypeScript connector that (...TRUNCATED)
null
"When a Calendly meeting is cancelled, find the matching HubSpot engagement by invitee email + start(...TRUNCATED)
pass-3/30.json
2
[{"role":"system","content":"You are the repair step of patchbay. Given a TypeScript connector that (...TRUNCATED)
null
"When an Intercom conversation is tagged \"refund\", create a ticket in Zendesk with the conversatio(...TRUNCATED)
root/9.json
1
[{"role":"system","content":"You are the repair step of patchbay. Given a TypeScript connector that (...TRUNCATED)
null
End of preview. Expand in Data Studio

patchbay — connector-repair dataset

A compact, in-domain fine-tuning dataset for training LLMs to repair failing TypeScript API-connector code.

Every example is a (broken connector + failing vitest report) → fixed connector pair, extracted from live benchmark runs of patchbay — an agent that turns a one-sentence integration description into a tested TypeScript connector using Nemotron on Nebius Token Factory and Tavily for API docs.

What it is

Each row is an OpenAI-style messages triple:

  • system: patchbay's repair-step system prompt (identical for all rows)
  • user: the original integration request, the current (broken) src/connector.ts, src/connector.test.ts and README.md as <file path="…">…</file> blocks, plus the exact vitest + tsc failure output
  • assistant: the fixed set of three files that made the sandbox tests pass

Format matches the Nebius Token Factory /v1/fine_tuning/jobs endpoint (OpenAI-compatible) directly — no pre-processing needed.

Splits

File Examples Source
training-data.jsonl 68 Real red → green repair steps across 5 full benchmark passes × 30 prompts
training-data-perturbed.jsonl 111 Synthetic perturbations: off-by-one retries, cursor pagination without hasNextPage, missing Retry-After parse, placeholder URLs left literally, auth header name wrong, missing field validation
training-train.jsonl 98 Merged + deduped + capped at 25 auth perturbations, 90 % split
training-eval.jsonl 11 10 % held-out eval

Vocabulary of bugs

The 68 real examples span the recurring failure modes patchbay actually hits in production:

  • 429 retry with wrong attempt count
  • Retry-After parsing (integer seconds vs HTTP-date)
  • cursor pagination termination (truthy-cursor vs hasNextPage)
  • HMAC verification with timing-safe compare and base64/hex mismatch
  • OAuth2 refresh-on-401
  • Idempotency-Key placement
  • URL template substitution (region hosts, placeholders)
  • Field mapping between source + target
  • Deduplication across webhook retries
  • GraphQL nested mutations

Why fine-tune on this

patchbay already uses Nemotron 3 Ultra (550B) for repair. We're testing whether a smaller model (Qwen3-30B-A3B) fine-tuned on exactly these patterns can match Ultra's repair quality at a fraction of the cost. Full plan + numbers at docs/finetune.md.

Reproduce from source

git clone https://github.com/GodSmasher/patchbay
cd patchbay && npm install
npx tsx scripts/extract-training-data.ts    # 68 real
npx tsx scripts/perturb-training-data.ts    # +111 synthetic
# merge + split (see scripts/README.md)

The raw benchmark runs are committed under bench/runs/pass-{1..5}/ so every row in this dataset is traceable back to the exact prompt, attempt and sandbox verification report that produced it.

License

MIT. Attribution appreciated. Repo: https://github.com/GodSmasher/patchbay

Downloads last month
59