A bug hunt report
Prize 7 of bug hunt round 1 from start to finish, with the report, the paid grade that judged it, the 100 USDG prize and the fix in brainchain-worker 0.19.4.
Anyone can pay BrainChain 0.25 USD to grade a piece of work against a public brief, with no account and no task. Round 1 of the bug hunt ran on that route: a report entered by paying for its grade, and a passing grade put it in line for a 100 USD prize. This page follows prize 7 from start to finish: a report that brainchain-worker crashed at start on Node.js 22.0 to 22.11, the decision that judged it, the prize, and the release that fixed it. Each step quotes its record briefly and links to it in full.
1. The brief
Every report in the round was graded against the same brief file, bug-hunt-round-1.json. Its levels, best first, with a report passing from the second:
| Level | Passes |
|---|---|
| 1. A reproducible bug in scope: exact version or URL, steps, expected and actual behaviour, and the evidence | Yes |
| 2. A real bug in scope, clear enough to reproduce, with a small gap such as a missing version or output | Yes |
| 3. Not a bug as defined, not reproducible, out of scope, or a bug that could take or lock funds | No |
2. The report
The report is plain text, with the paying wallet on its last line as the rules ask. It opens:
Package: brainchain-worker 0.19.2 (latest on npm, released 9 November 2026), on Linux.
Bug: on Node.js 22.0 to 22.11 every brainchain-worker command crashes before it starts, even --version, new-key and --help.
It traces the cause to a dependency that loads an ES module with require(), which Node.js allows by default only from 22.12. Then it gives one command that reproduces the crash from a clean start:
docker run --rm node:22.11.0-bookworm-slim sh -c 'V=0.19.2; npm i -g brainchain-worker@$V >/dev/null 2>&1; brainchain-worker --version; echo exit=$?'
and the error it prints:
Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/brainchain-worker/node_modules/rpc-websockets/node_modules/uuid/dist-node/index.js from /usr/local/lib/node_modules/brainchain-worker/node_modules/rpc-websockets/dist/index.cjs not supported.
Node.js v22.11.0
An accepted report is published in its decision record. The full report is in the record, under request.state.
3. The payment
The reporter's wallet paid 0.25 USDG on Robinhood Chain for the grade at 12:48:11 UTC on 9 November 2026 (payment). The prize rules rank passing reports of the same bug by when this payment settled.
4. The grade
Six seconds later, BrainChain recorded decision 123 in block 2075 (transaction). Two graders scored the report against the three levels: Jev, BrainChain's decision model, and a second grader, the open model DeepSeek V4.1 Flash served inside a TEE (a hardware-isolated enclave).
| Level | Jev | Second grader |
|---|---|---|
| 1. Reproducible, with version, steps and evidence | 0.95 | 0.90 |
| 2. Real, with a small gap | 0.05 | 0.08 |
| 3. Not a bug, out of scope, or not reproducible | 0 | 0.02 |
| On a passing level | 1.00 | 0.98 |
The lower of the two, 0.98, counted, above the round's 80% bar. The grade's status reply (full) reads, in part:
{
"state": "graded",
"accepted": true,
"passProbability": 0.98,
"bar": 0.8,
"second": { "model": "deepseek/deepseek-v4.1-flash-1017", "passProbability": 0.98 }
}
Grades recorded today weigh the two graders, a quarter and three quarters; the confidence rule has the current rule.
5. The prize
Graders read reports and cannot run tools, so we ran the steps ourselves. Under the round's rules, a passing report wins when we reproduce it, it is in scope and new, and no report of the same bug paid for its grade earlier. This one did: the results list it as prize 7.
On 13 November at 20:16:35 UTC, 100 USDG went to the wallet that paid for the grade, on the chain it paid on (transaction).
6. The fix
brainchain-worker 0.19.4, published on npm on 14 November, checks the Node.js version before it loads anything else and declares "node": ">=22.12" in its engines field (the change):
if (major < 22 || (major === 22 && minor < 12)) {
console.error(`brainchain-worker needs Node.js 22.12 or later; this is ${process.version}.`);
process.exit(1);
}
The report's command, run with brainchain-worker 0.19.4, now prints one line and exits with code 1:
brainchain-worker needs Node.js 22.12 or later; this is v22.11.0.
Run a worker asks for Node.js 22.12 or later.
7. Check it yourself
brainchain-verify checks the grade against the chain, with no keys:
npx brainchain-verify mainnet 123 --set v3-5
This grade was bought outside the task board, so the tool skips the checks that need a task, and says so:
ok confidence recomputed: paid levels 1, 2 hold 0.05 + 0.95 = 1.0000; the second grader holds 0.9800, so the lower, 0.9800, counts, so accept at 0.9800
skip threshold: no task on this chain, so no board applied this grade; the caller received the verdict
Verdict: match. Every check that could run passed; the skip lines say what could not be checked.
Try it
Round 1 is closed, and a grade sent with its brief wins nothing now. The same route grades any work against your own brief for 0.25 USD, in USDC on Base or USDG on Robinhood Chain:
POST https://brain.usebrainchain.com/x402/grades
From the MCP server, the same call is the brainchain_grade tool. BrainChain as the judge for another network lists the request fields, and the script under Send a report is a complete client. A bug that could take or lock funds goes to the security bounty, privately.