beads/internal
Steve Yegge ffeffdda45
fix(circuit): stop the legacy sweep churning against live TMPDIR-less writers (#5640)
The legacy /tmp/beads-circuit closed-file sweep (GH#4636) assumed the
directory is abandoned — 'no live process left to reuse or clean' its
files. That premise is false wherever os.TempDir() still resolves to /tmp:
any TMPDIR-less process (launchd, cron, a bare ssh command) uses the
legacy path as its LIVE breaker directory and rewrites its closed file on
every successful connection (RecordSuccess). Every TMPDIR-set invocation
then deleted that live file and logged
'[circuit-breaker] removed legacy closed breaker file: ...' — recreate,
delete, log, forever, one stderr line per bd invocation on any machine
mixing TMPDIR-set and TMPDIR-less contexts (macOS most of all, where
interactive shells get a per-user TMPDIR and background contexts do not).

Deterministic repro at tip: 'env -u TMPDIR bd list' creates the file; the
next normal 'bd list' logs and deletes it; repeat.

Fix: gate the closed-file removal on an mtime TTL (legacyClosedSweepTTL,
24h) and drop the per-file log line. A live writer keeps its file's mtime
fresh, so it is never fought; a genuinely abandoned file — the GH#4636
ephemeral-port accumulation this sweep exists for — only ages, and still
gets cleaned. Open/half-open handling is unchanged.

Test updated to pin the split: aged closed file removed, fresh closed
file (a live writer's state) survives, fresh open file survives.
Red-before-green: the old code removes the fresh closed file
unconditionally.

(bd-uann8, from the post-wave startup audit bd-7x3ov)
2026-08-11 00:14:51 -07:00
..
ado fix(ado): map parent-child deps to hierarchy links (not Related) (#5129) 2026-07-31 01:45:16 -07:00
atomicfile /internal/atomicfile/atomicfile.go: use io.Copy 2026-05-01 17:03:30 -07:00
audit fix(audit): make JSONL sidecar opt-in (#4688) 2026-07-11 00:09:17 -07:00
beads chore: retire a zombie test, drop a dead field, true up two leaf docs (#5492) 2026-08-09 10:42:34 -07:00
compact feat: add MiniMax provider support via Anthropic-compatible API (#3610) 2026-08-02 22:23:37 -07:00
config fix(config): reject unsafe user config paths (#5528) (#5602) 2026-08-10 21:10:49 -07:00
configfile Guard and qualify historical upgrades to v1.2 (#4907) 2026-08-06 18:45:04 -07:00
creds chore(creds): drop the two unreferenced credential rungs (#5379) 2026-08-06 07:03:09 -07:00
debug feat(verbosity): wire --quiet into create/close/update (bd-au0.10) (#4058) 2026-07-06 22:35:42 -07:00
doltremote fix(doltremote): fold host case, strip creds, recognize user-less SCP in CanonicalForComparison (#4576) 2026-07-07 12:59:18 -07:00
doltserver fix(doltserver): drain MySQL handshake before closing probe connections (#5277) 2026-08-10 12:51:12 -07:00
eventsjournal feat(httpapi): publish the events journal on the v0 surface (bd-opisf) 2026-08-09 06:01:23 +00:00
fdhygiene fix(doltserver): stop detached children inheriting the caller's fds (#4634) (#5184) 2026-07-31 08:41:41 -07:00
formula fix(cook/pour): honor declared formula step types instead of squashing them to task (#5520) 2026-08-10 05:36:33 -07:00
git test(git): restore cwd before temp cleanup (#4935) (#4936) 2026-07-23 18:40:44 -07:00
githooksenv fix(dolt): scrub stderr-directed git tracing before git-remote transfers (#5323) 2026-08-10 05:25:15 -07:00
github fix(github): content-based dedup on push to stop re-PATCHing every issue (#4214) (#4329) 2026-08-02 22:53:06 -07:00
gitlab feat(gitlab): sync issue dependency links on push (#4294) 2026-07-08 08:00:41 -07:00
gittraceenv fix(dolt): scrub stderr-directed git tracing before git-remote transfers (#5323) 2026-08-10 05:25:15 -07:00
hooks Make wasm hook refusals observable (#5607) 2026-08-10 21:01:31 -07:00
httpapi Publish PUT and DELETE /v0/beads/config/{key}, the write half of issueops.WorkspaceConfig (ga-098zm) (#5596) 2026-08-10 19:47:21 -07:00
idgen fix(idgen): correct test vectors in hash_test.go 2025-12-19 18:13:56 -08:00
jira Add issueops.GraphCounter: how many edges, in one named direction (ga-itny5) (#5485) 2026-08-09 11:29:32 -07:00
linear fix(windows): detect exited processes in liveness helpers (#4980) (#4981) 2026-07-23 18:24:49 -07:00
lockfile Triage and clean up an unreviewed automated commit stream on main (#4418) 2026-06-15 20:24:57 -07:00
memoryapi Put the memory plane behind memoryops, conformance-tested at three backends (#5387) 2026-08-07 03:57:04 -07:00
metrics fix(config): reject unsafe user config paths (#5528) (#5602) 2026-08-10 21:10:49 -07:00
migration/legacysqlite Guard and qualify historical upgrades to v1.2 (#4907) 2026-08-06 18:45:04 -07:00
molecules refactor: delete the dead orphan-handling capability (bd-gwryr) (#5497) 2026-08-09 12:03:18 -07:00
notion test: replace Notion config fixtures with recorder (bd-b51np) (#5256) 2026-08-01 19:49:57 -07:00
procid fix(lint): check deferred windows.CloseHandle returns (errcheck) (#5088) 2026-07-26 14:47:37 -07:00
query fix(query): make slash and mixed-case metadata keys queryable (#4896) 2026-07-24 17:52:22 -07:00
recipes [codex] Add Kiro setup recipe (#4535) 2026-07-27 22:28:43 -07:00
remotecache fix(dolt): scrub stderr-directed git tracing before git-remote transfers (#5323) 2026-08-10 05:25:15 -07:00
routing fix(routing): warn when contributor auto-routing swaps bd list/ready to the planning store (#4866) 2026-07-25 22:31:03 -07:00
storage fix(circuit): stop the legacy sweep churning against live TMPDIR-less writers (#5640) 2026-08-11 00:14:51 -07:00
telemetry docs: the ext-api-store documentation tranche — post-#5516 auth sweep, wave doc coherence, role checklist refresh (#5545) 2026-08-10 08:05:07 -07:00
templates fix(cli): printed doc paths point at the new docs locations 2026-07-12 10:37:17 -07:00
testutil fix(test): pin DOCKER_HOST from the active docker context before TestMain swaps HOME (bd-84kos) (#5391) 2026-08-07 00:32:40 -07:00
timeparsing fix: normalize parsed timestamps to UTC (#5295) 2026-08-07 07:03:43 -07:00
tracker fix(github): content-based dedup on push to stop re-PATCHing every issue (#4214) (#4329) 2026-08-02 22:53:06 -07:00
types Publish PUT and DELETE /v0/beads/config/{key}, the write half of issueops.WorkspaceConfig (ga-098zm) (#5596) 2026-08-10 19:47:21 -07:00
ui fix(ui): stop using blocked ● for priority in CLI output (#5511) 2026-08-10 06:19:51 -07:00
uimd fix(show): a close reason too big for a metadata line renders as body text (#5595) 2026-08-10 20:44:10 -07:00
utils feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
validation fix(bd): canonicalize actor==assignee comparisons in unclaim.go and AuthorizeAssigneeTransferWithPools (#5439) 2026-08-09 11:35:01 -07:00
workapi feat(workapi,storage): opt-in Brief projection for the list and ready pages (#5554) 2026-08-10 10:45:23 -07:00
workspacegate feat(workspacegate): shared physical-root resolver, beads.OpenGated, and CLI gate wiring (part 2) (#5093) 2026-07-31 01:41:20 -07:00
worktreeremove test: replace worktree removal process matrix (bd-kuqlg.2) (#5280) 2026-08-02 09:34:29 -07:00