beads/internal
matt wilkie 8b94291538
fix(config,dolt): infer server mode from a configured non-localhost host (GH#3545, GH#3518) (#5276)
An already-initialized project that later gets a remote BEADS_DOLT_SERVER_HOST
or dolt.host configured, but never sets dolt_mode/BEADS_DOLT_SERVER_MODE,
silently falls through to embedded storage at runtime instead of talking to
the configured server. bd init's guard (#3533) only protects init time, not
this later-configured case.

- configfile.IsDoltServerMode now infers server mode from a non-localhost
  BEADS_DOLT_SERVER_HOST env var, a persisted metadata.json DoltServerHost,
  or config.yaml dolt.host — each gated so an explicit dolt_mode in
  metadata.json always wins over a persisted/configured host, and an
  explicit localhost/empty BEADS_DOLT_SERVER_HOST suppresses inference
  entirely (deliberate operator intent, not just "no signal"). This
  diverges from the original PR's precedence (host inference ran
  unconditionally before the dolt_mode check); here explicit metadata
  wins, matching the hard-fail review stance from the original PR
  discussion — flagging for maintainer confirmation.
- doltserver.EnsureRunningDetailed and storage/dolt's newServerMode
  connect-failure hint now recognize a non-localhost configured host and
  tell the operator to verify the external server instead of suggesting
  `bd dolt start`, which cannot help them (GH#3518).
- Adds regression tests for both, porting and extending PR #3563's
  (shaunc) test suite; one doltserver subtest is adapted because
  GetBackend() on this codebase now recognizes "sqlite" as a real
  registered backend rather than normalizing all input to "dolt".

Does not touch `bd dolt status` (already fixed on main by #3362).

Fixes #3545. Helps #3518. Supersedes #3563.


Agent-Signature: claude-fable-5-high on behalf of maphew

Co-authored-by: Shaun Cutts <shauncutts@factfiber.com>
2026-08-02 11:05:05 -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 feat(storage): add extension-safe backend registry seam (#4859) 2026-07-31 03:05:48 -07:00
compact fix(compact): archive content before destructive compaction; make restore work (#4464) 2026-06-20 14:12:07 -07:00
config fix(config,test): the two remaining macOS-only failures keeping main red (#5220) 2026-08-01 01:39:09 -07:00
configfile fix(config,dolt): infer server mode from a configured non-localhost host (GH#3545, GH#3518) (#5276) 2026-08-02 11:05:05 -07:00
creds fix(backends): address red-team review findings before merge 2026-07-10 18:58:00 +00: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(config,dolt): infer server mode from a configured non-localhost host (GH#3545, GH#3518) (#5276) 2026-08-02 11:05:05 -07:00
fdhygiene fix(doltserver): stop detached children inheriting the caller's fds (#4634) (#5184) 2026-07-31 08:41:41 -07:00
formula fix(formula): validate provided-empty and enum/pattern var values in pour/wisp/bond, not just cook (#5253) 2026-08-01 17:16:57 -07:00
git test(git): restore cwd before temp cleanup (#4935) (#4936) 2026-07-23 18:40:44 -07:00
githooksenv fix(dolt): disable git hooks on the in-process push path too (#4272) (#5186) 2026-07-31 09:42:50 -07:00
github fix(github) bd github sync (GitHub issues integration) (#3929) 2026-05-15 08:47:39 -07:00
gitlab feat(gitlab): sync issue dependency links on push (#4294) 2026-07-08 08:00:41 -07:00
hooks test: port Windows hardening fixes (#4600) 2026-07-07 12:59:50 -07:00
httpapi docs(httpapi): close the re-spell and value-narrowing gaps in the Profiles relation 2026-08-01 16:26:39 +00:00
idgen fix(idgen): correct test vectors in hash_test.go 2025-12-19 18:13:56 -08:00
jira feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00: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
metrics fix(metrics): skip the detached flusher spawn under BEADS_TEST_MODE (#5248) 2026-08-01 15:20:33 -07:00
molecules feat(storage): refuse test DBs on production dolt servers (AD-01) (#3632) 2026-07-24 01:28:51 -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: pass remote auth user during clone (#4484) 2026-07-05 11:28:24 -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(config,dolt): infer server mode from a configured non-localhost host (GH#3545, GH#3518) (#5276) 2026-08-02 11:05:05 -07:00
telemetry test(telemetry,storage): pin the Reader decorators the way Lifecycle is pinned 2026-07-31 18:37:26 +00:00
templates fix(cli): printed doc paths point at the new docs locations 2026-07-12 10:37:17 -07:00
testutil /{.github,docs,engdocs,go,internal,scripts}: bump dolt 2026-07-15 13:14:34 -07:00
timeparsing chore: unexport 14 dead symbols across 8 packages 2026-02-07 09:24:22 -08:00
tracker feat(update): enforce close policy when a status update crosses into done (#5206) 2026-07-31 18:23:06 -07:00
types feat(storage): one guarded issue-lifecycle surface for the CLI and linked consumers (#5191) 2026-07-31 11:26:38 -07:00
ui test(cli): cover --no-color flag handling and ui.DisableColors 2026-07-07 23:32:22 -04:00
uimd fix(cli): render markdown with terminal capability gates (#3881) 2026-06-25 13:55:28 -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(close): restore idempotent re-close by ordering, not by clearing the pin (#5236) 2026-08-01 09:04:14 -07:00
workapi docs(workapi): say where the shared epilogue stops, and what limit 0 does 2026-07-31 23:35:16 +00: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