I published an open dataset and asked people to tear it apart. Most replies were opinions. One stranger sent an audit.
He cloned the repo, ran my verify script end to end, read transcripts, hand-checked commit provenance against real GitHub history, and grepped the whole corpus for leaked secrets. Then he sent 7 issues, ordered by how badly each one would hurt a model trained on the data.
I fixed all 7 in 8 hours. He re-ran his checks against the new HEAD and confirmed every fix, then closed with a line I keep rereading: "Thanks for taking the audit this seriously. Most people would have argued with it."
This post is every issue he found, what each one would have done to a training run, and how each one got closed.
What the dataset is
MegaBit is 66 episodes of real coding-agent sessions, cut from real GitHub commits. Each episode carries the ticket, the tool calls, the sandbox output, the failing pytest runs and the final diff, kept exactly as they happened. The raw logs record 2,541 tool calls, and the published training samples carry 2,312 of them, which is the set the audit scanned. It is MIT licensed, and it ships with verify.py, a script that checks all 66 episodes in about 60 seconds and exits 0 only when every checksum, header and footer matches.
What held up before anything was fixed
The audit found real praise first, and it matters more than the bugs. verify.py passed 66/66 with matching sha256s. He hand-verified two provenance chains, one from pypa/packaging and one from jd/tenacity, and both base commits were the true parents of the target commits. The sandbox output is real: pytest 9.1.1, Python 3.11.16, real collected counts, real tracebacks, real diffs, nothing that looks model-authored.
The rarest part, in his words: 45 of 66 episodes contain an actual failing pytest run, 31 contain error output, and 53 contain a rejected edit. Public trajectory datasets usually publish wins. Publishing the failure path is the point, because that is where models learn what to do when things break. And zero leaked secrets anywhere: no sk- keys, no ghp_ tokens, no Bearer headers.
The 7 issues
1. The last assistant message repeated the whole session (47 of 66 episodes)
In 47 episodes, the final message in the transcript was a verbatim concatenation of every earlier assistant message, an accumulated narration buffer exported as one extra turn. Trained as-is, a model learns to restate the entire session before answering. The fix drops the final assistant message wherever it equals the join of all prior assistant content. After: 0 of 66.
2. No tool schemas anywhere
The calls use read, edit, grep, bash and todo_write, but not one of the 66 samples shipped the tool definitions, so every consumer had to reverse-engineer the contract from the argument shapes. The fix ships the tool catalog in the samples as OpenAI function schemas with parameter descriptions. After: 66 of 66.
3. The same tool under two names
The raw stream had bash at 891 calls and execute at 52, todo_write at 141 and todowrite at 10. Same tools, two spellings, because the export step was not applying the canonicalization the metadata already claimed. The fix folds execute into bash (943 total) and todowrite into todo_write (151 total), and documents the rest as canonical.
4. Tool output had no truncation rule
The median tool message is about 800 characters, but the maximum was 211,411, 138 messages exceeded 8k, and 11 of them just said "truncated" with no stated rule. The fix is a hard 8k cap with head-and-tail retention, plus truncated, original_chars and dropped_chars flags on every capped message. After: the largest tool output in the corpus is 8,124 characters.
5. Two episodes shipped junk files in their diffs
Both were the iteration-cap episodes, where the agent was stopped mid-run and the working tree got exported as-is: one carried pytest_full.log, the other .pytest_stress.log, inside produced_diff. The fix moves both out of training and into a research_only split, tagged iteration_cap and run_artifact_in_diff, so they stay available for failure research. The corpus now splits into 64 sft and 2 research_only episodes.
6. One malformed grep call in 2,312
The strictest item in his re-audit, and my favorite: a single grep call whose arguments were an unterminated raw JSON string.
{"raw": "{\"output_mode\":\"content\",\"path\":\"/workspace\"}
One bad call out of 2,312, and a strict formatter would still choke on the whole file. Fixed.
7. The README lied by being nice
The README said "The published samples are fine", which reads as "usable as-is" to anyone skimming. But the samples still carry 553 split parallel tool_call blocks across 65 episodes, and the script that merges them was documented as optional. The fix makes it impossible to misread: the README now states that convert_formats.py is required before training, not optional.
The one note I argued with, then fixed anyway
His honesty note was the only place I pushed back, and only half of it. The half I accepted: at audit time the tickets were near-spec rather than bug-report-shaped, 65 of 66 named the exact files to touch, 63 shipped a hints file with paths, and the QA tests were seeded from the gold patch in all 66. Median diff was 22 added lines and 5 removed across 2 files. All true.
The half I did not accept was the verdict. Calling the corpus "weak debugging-under-uncertainty data" measures MegaBit against a job it never applied for. The dataset was created to drive improvements in coding, tool calls, recovery from failures, planning and agentic execution, and near-spec tickets are not a defect for that job, they are the format that job needs. A 66/66 pass rate on guided tickets never claimed open-ended performance; it claimed a model can hold a format, execute a plan and recover when a run breaks, which is what the corpus was built to teach, and it still does.
Being right about the purpose did not mean leaving a free upgrade on the table, though. The tickets were rebuilt to bug-report-shaped anyway: the ticket agent now explores the codebase and files the bug it actually finds, the ticket no longer names the files to edit, no longer ships a hints file, and the tests are no longer seeded from the gold patch. The corpus now trains both: follow a spec precisely, and find the bug when nobody tells you where it lives.
The scoreboard
| Check | Before | After |
|---|---|---|
| verify.py | 66/66 | 66/66 |
| Duplicated final narration | 47/66 | 0/66 |
| Tool catalog in samples | 0/66 | 66/66 |
| Largest tool output | 211,411 chars | 8,124 chars |
| Schema violations | 1 of 2,312 | 0 |
| Splits | one bucket | 64 sft, 2 research_only |
What I changed in how I work
Ship the verifier. An audit is cheap when the auditor can run one command and get a receipt, and verify.py is why his first message was findings instead of questions.
Make the data falsifiable. Every row carries provenance, so he could check my claims against real GitHub history without asking me a single question.
Say thank you and fix it. Arguing is how you keep your bugs. Eight hours of fixes bought more credibility than any launch post I could write. The best review you will ever get is from someone with no stake in your feelings. He did not need me to be right, so he checked instead of trusting.
Run it yourself
The repo is MIT and everything above is reproducible: github.com/Sumama-Jameel/megabit-trajectories. Clone it, run python3 verify.py, and you get the same 66/66 receipt in about 60 seconds. If you find issue number 8, I will fix that one too. And if you finetune on MegaBit-trajectories, send me your numbers, good or bad. I'd be so happy.
Top comments (2)
Ordering the 7 issues by how badly each one would hurt a training run is the part worth stealing — most audits list bugs by severity in the code, not by damage downstream. Issue 1 is the scariest to me: a duplicated final message in 47 of 66 episodes doesn't just waste tokens, it quietly teaches the model to repeat itself.
The other detail that stuck with me is that verify.py passed 66/66 both before and after. The verifier proved the files were well-formed; it took a stranger reading the actual transcripts to catch that the content was wrong. That's a useful distinction to keep in mind.
One question on the truncation fix: how did you pick the cap that took the largest tool output from 211,411 chars down to 8,124 — is that a percentile of your distribution, or a token-budget choice for the training run?
Ordering by downstream damage was the part of his audit I did not have to think about. Damage is the only currency a training run knows.
Honest answer on the cap: neither a percentile nor a token-budget derivation. It is a flat 8,000 chars, adopted straight from his audit, which suggested "say 8k with head+tail retention". The 8,124 in the post is 8,000 of content plus one marker line.
What was actually engineered is the split: head 6,000 / tail 2,000, cut on line boundaries, because tool output fails at both ends. The head shows what was requested, the tail carries the traceback and exit code, the middle is mostly progress spam. As a percentile the cap would be "cut at P94": 138 of 2,312 outputs crossed it, the median output is around 800 chars, and the huge ones are exactly the pytest logs where the tail matters. In token terms it works out to roughly 2k per result against 6,144-token training windows, so no single output eats a sequence, but that is the cap earning its keep, not how it was derived.
The fear behind the question is handled too: the raw episode.jsonl keeps every character the tool actually emitted, so the cap is a training-view policy, not data loss. Every cut message carries truncated, original_chars and dropped_chars.
And you just found the line the data card is missing: it documents the split and the flags but never the why. That rationale is going in next to the policy.