[Bug] Anthropic API Error: Incomplete fix for nested-runtime panic across multiple call sites

Resolved 💬 2 comments Opened Mar 4, 2026 by William17738 Closed Apr 1, 2026

Bug Description
Opus generated a Tokio nested-runtime panic in our GA pipeline by .await-ing inside a backfill_topk_trades async function that was called from a spawn_blocking context. When we caught the panic and asked it to fix, it applied block_in_place only to the call site in evolve.rs but missed an identical call chain in cluster.rs — it didn't grep for other callers of the same function. The bug also evaded its own validation because the short 2-gen/fold test it ran never triggered the backfill path (all genome fitness was 0, so the topk condition was skipped), and it didn't recognize that the code branch was conditionally executed and therefore untested. In summary: incorrect async/blocking boundary handling, incomplete fix propagation across call sites, and insufficient awareness of conditional code coverage in its own test runs.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.62
  • Feedback ID: 24336c66-3d8c-4cee-af94-afd00efab014

Errors

[{"error":"Error: {\"message\":\"Failed to export 2 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\",\"originalLine\":\"6252\",\"originalColumn\":\"1409\",\"line\":\"6252\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 2 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\\n    at doExport (/$bunfs/root/claude:6252:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:2407:25028)\n    at <anonymous> (/$bunfs/root/claude:119:92465)\n    at l$D (/$bunfs/root/claude:119:93009)\n    at <anonymous> (/$bunfs/root/claude:120:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:21:33.121Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:95:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:51:06.649Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:95:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:51:06.666Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:95:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:51:07.054Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:95:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:51:07.193Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:95:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:51:09.045Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:95:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:51:09.047Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:95:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T19:51:09.048Z"},{"error":"Error\n    at DM (/$bunfs/root/claude:92:1144)\n    at <anonymous> (/$bunfs/root/claude:93:10067)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:stre…

Note: Content was truncated.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗