beads/internal
Harry be65f59cd0 fix(dolt): batch wisp-ID partition in bulk hydrators (GH#3414)
Every mutating bd command against a remote Dolt backend hung ~10–15s
with `auto-export failed: ... hydrate labels: ... context canceled`.

Root cause: five bulk fetchers in internal/storage/issueops partitioned
IDs into wisp vs permanent buckets by calling IsActiveWispInTx once per
ID, and each call is a round-trip to the SQL server. With ~600 issues
over WAN latency that's ~12s of sequential SELECTs *before* the real
label query runs — blowing past the context deadline.

Fix:
- Add PartitionWispIDsInTx that batches the check into one
  `SELECT id FROM wisps WHERE id IN (...)` per queryBatchSize chunk,
  reducing cost from O(N) to O(1 + N/200) round-trips. Falls back to
  "no wisps" when the wisps table is absent (pre-migration dbs).
- Rewrite GetLabelsForIssuesInTx, GetCommentsForIssuesInTx,
  GetDependencyRecordsForIssuesInTx, GetBlockingInfoForIssuesInTx, and
  DeleteIssuesInTx to use it.
- Add fast-path helpers GetLabelsForIssuesFromTableInTx and
  GetDependencyRecordsForIssuesFromTableInTx for callers (searchTableInTx)
  that already know every ID is in a single table, skipping the partition
  round-trip entirely on the hot auto-export path.

Tests:
- New wisp_partition_test.go covering the partitioner directly: empty,
  all-perm, all-wisp, mixed-with-unknown, input-order preservation, and
  a 450-ID large-batch case crossing the queryBatchSize boundary.
- End-to-end mixed-routing regression tests for GetCommentsForIssues,
  GetDependencyRecordsForIssues, and a 250-ID GetLabelsForIssues case
  that crosses the chunk boundary.

Made-with: Cursor
2026-05-02 13:27:24 -07:00
..
ado fix(ado): use date-only format for WIQL ChangedDate queries (#3345) 2026-04-20 13:05:34 -07:00
atomicfile /internal/atomicfile/atomicfile.go: use io.Copy 2026-05-01 17:03:30 -07:00
audit fix: avoid false shared-server bootstrap no-op for synthesized worktrees 2026-04-24 08:16:38 -07:00
beads /internal/beads: maybe fix worktree server bug 2026-04-29 13:55:09 -07:00
compact fix(ci): get nightly full tests passing (#2835) 2026-03-26 09:52:03 -07:00
config fix(init): repair existing .beads permissions to 0700 2026-04-28 06:48:13 -07:00
configfile feat(config): add central server config library (#3258) 2026-04-27 12:54:11 -07:00
debug chore: unexport 14 dead symbols across 8 packages 2026-02-07 09:24:22 -08:00
doltserver [codex] Diagnose Dolt journal corruption and init lock hangs (#3457) 2026-04-24 07:14:24 -07:00
formula Fix gate and cook regressions (bd-r2l) 2026-04-25 17:41:39 -07:00
git feat: add --list and --doc flags to bd help for CLI doc generation (GH#2527) 2026-03-11 18:25:40 -07:00
github fix: recognize ado:NNNNN shorthand in IsExternalRef and ExtractIdentifier (#2966) 2026-04-02 19:20:30 -07:00
gitlab fix(gitlab): wire issue link dependencies into sync pull (GH#2645) (#3202) 2026-04-11 21:21:49 -07:00
hooks fix: increase TestRun_Async polling timeout to 10s (bd-ldi) 2026-02-28 23:11:46 -08:00
idgen fix(idgen): correct test vectors in hash_test.go 2025-12-19 18:13:56 -08:00
jira fix: support Jira Cloud token pagination (#3456) 2026-04-24 06:58:32 -07:00
linear Document Linear external_ref pre-linking (#3517) 2026-04-27 06:05:30 -07:00
lockfile chore: remove daemon infrastructure (lockfile, activity signal) (bd-9u8zd) 2026-02-18 19:05:31 -08:00
molecules /{cmd,internal}: update global store to be interface 2026-03-17 13:26:17 -07:00
notion feat: reimplement Notion sync on REST data sources (fix-merge PR #2759) 2026-03-27 19:20:40 -07:00
query feat(issues): add started_at timestamp (GH#2796) (#3206) 2026-04-14 09:24:08 -07:00
recipes Enforce .beads/ directory permissions at runtime 2026-03-30 09:15:49 -07:00
remotecache fix: don't normalize user-provided sync.remote URLs (GH#3339) (#3432) 2026-04-24 09:33:02 -07:00
routing Fix init leaving beads.role unset in edge cases (GH#2950) (#2964) 2026-04-01 17:00:41 -07:00
storage fix(dolt): batch wisp-ID partition in bulk hydrators (GH#3414) 2026-05-02 13:27:24 -07:00
telemetry /{cmd,internal}: move local only state to dolt ignored tables 2026-04-14 14:47:30 -07:00
templates/agents fix(setup): prevent doubled BEGIN/END markers from CRLF embedded template (#3553) 2026-04-27 13:41:45 -07:00
testutil ci: install dolt binary on Linux and macOS test runners (#3440) 2026-04-24 06:58:40 -07:00
timeparsing chore: unexport 14 dead symbols across 8 packages 2026-02-07 09:24:22 -08:00
tracker Document Linear external_ref pre-linking (#3517) 2026-04-27 06:05:30 -07:00
types feat: add --exclude-label flag to bd ready and bd list 2026-04-24 08:17:14 -07:00
ui feat: BD_JSON_ENVELOPE=1 opt-in for uniform JSON wrapping (#3393) 2026-04-21 13:24:17 -07:00
utils fix(sort): natural numeric sort for issue IDs with dotted suffixes (GH#3477) (#3486) 2026-04-27 07:04:37 -07:00
validation fix: promote gate to built-in type so formula pour works (#3382) 2026-04-24 05:10:56 -07:00