Skip to content

chore: remove beads, dolt services and linear sync - #3411

Merged
shunkakinoki merged 2 commits into
mainfrom
t3/remove-beads
Nov 15, 2026
Merged

shunkakinoki merged 2 commits into
mainfrom
t3/remove-beads

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Removes beads (bd), the Dolt services, and the beads<>Linear sync from the dotfiles. Draft: do not merge until the ordering below is satisfied.

Removed

  • Flake input beads (gastownhall/beads) and its lock entries, the inputs.beads.overlays.default overlay, the beads-unwrapped postPatch overlay, and the dolt 2.6.0 override overlay
  • The beads and dolt home packages
  • home-manager/services/dolt/ in full: Dolt user service, start.sh, activate-system-service.sh (installed /etc/systemd/system/dolt.service), client environment (BEADS_/BD_/DOLT_* session vars), linear-sync.sh + timer, linear-control-state.jq, and beads-linear-complete.sh
  • kyber: the beads-linear-complete-ssh-guard home file and script
  • galactica: the kyber-writer.age secret (deleted while still encrypted, never decrypted), its secrets.nix entry, the kyber ssh block that used id_ed25519_kyber_writer, and the com.shunkakinoki.kyber-writer-key launchd daemon
  • ssh-authorized-keys.nix: the galacticaKyberWriterKey entry. galactica's fleet key stays excluded from kyber, as before, so galactica now has no key on kyber
  • bd hooks in config/codex/hooks.json (PreCompact/PostCompact) and config/cursor/hooks.json (preCompact)
  • The Makefile "Gas Town" targets (gt-*); scripts/gt-remote-bootstrap.sh they called was already missing
  • Docs: .beads/, BEADS.md, UPGRADE_GUIDE.md, the beads sections in AGENTS.md/README.md/host READMEs, and the beads_viewer entry in .local-binaries.txt
  • Specs/tests that only covered these: spec/beads_*_spec.sh, spec/dolt_*_spec.sh, tests/kyber-writer-guard.nix, tests/fixtures/linear-control-state/, the dolt/beads overlay guards, and the beads/dolt/writer-key assertions in tests/eval.nix. Shared specs now use neutral fixtures (HM_SESSION_PROBE, @example/stale-cli, owner/alpha, linear issue ...)

Data preservation (hard rule)

Kyber's Dolt is the cluster-replication standby for the GKE beads-dolt authority. It holds tracker data that has not been imported into Linear yet. This PR does not delete, move or wipe any Dolt data directory, database or snapshot. It adds no activation script, tmpfiles rule or rm step, and the removed modules contained none. Removing the service definition leaves ~/.beads/shared-server/dolt (and any other .beads/.dolt data) on disk. .gitignore keeps .beads/ and .dolt/ ignored so git clean/git add . in a checkout never touch host-local tracker data.

Merge ordering

  1. The beads<>Linear sync on kyber (dolt-linear-sync timer) stays the live mirror until the monorepo's beads->Linear import has run --apply and --verify with operator approval.
  2. This PR stays draft and merges only after that import. The next home-manager switch on kyber is what stops the sync timer and user service.
  3. Deleting GKE beads-dolt is a separate step. It also waits for the import or for a Dolt dump.

Operator follow-ups (none done here)

  • Revoke the galactica kyber-writer key ssh-ed25519 ...AIAY5u/jbnetfuqmXFw51/fjUOe96eUt3SDLvaCdqSL14 galactica-kyber-writer-20261027 wherever else it is trusted. On galactica, after merge, remove ~/.ssh/id_ed25519_kyber_writer and any leftover com.shunkakinoki.kyber-writer-key launchd plist
  • kyber: /etc/systemd/system/dolt.service was installed by activation outside home-manager, so removing the module does not stop or disable it. Once the import (or a dump) is done, decide when to systemctl disable --now dolt. Do that before a nix GC, because the unit points at a store path that GC could remove. Leave the data directory in place
  • .env.example lines 39/43/45 (Beads sync, bd linear sync, BEADS_LINEAR_SYNC_REPOS) are untouched: this agent's permissions deny reading that file. Remove them in a follow-up, along with the Doppler BEADS_LINEAR_SYNC_REPOS secret
  • The dolt CLI is no longer installed. Use nix run nixpkgs#dolt -- dump ... for dumps

Verification

  • make nix-format: no changes to files in this PR (treefmt also reformatted scripts/package-patches.ts and spec/cliproxyapi_spec.sh; that drift is unrelated and not included)
  • make nix-lint (statix + deadnix): exit 0. The remaining deadnix warnings are pre-existing in files this PR does not touch
  • make shell-inline-check: pass
  • nix flake check --system aarch64-darwin --impure --no-build: pass (all aarch64-darwin checks, darwin and home configurations evaluated)
  • x86_64-linux check drvPath evals pass: eval-home-{beskar,kamino,kamino100,kamino2-identity,kamino4-t3-publish-only,kamino7,kamino8,andor,pod,ubuntu-x86_64,root-x86_64,runner-x86_64}, eval-nixos-{matic,default,runner,viper}, linux-rust-linker, lib-*, overlay-neovim-lua. eval-darwin-galactica passes
  • shellspec: 3271 examples, 41 failures, 1 warning, 9 skips. The same 41 examples fail on origin/main a65e41c0b5 (identical list for activate_kyber, cliproxyapi_backup, cliproxyapi, coverage, herdr_worker_admission, kamino_activation, kyber_find, secure_dotenv, t3_browser_setup, t3_cli, t3_connect, t3code). The coverage failure is the same pre-existing gap (worktree-create.sh, kamino-tailnet-socks.sh). This PR adds no new failures
  • kyber config spot check (homeConfigurations.kyber.config): no dolt/beads services, timers, activation entries, home files, session vars or packages remain

Unproven

  • eval-home-kyber fails on attribute 'IOReadBandwidthMax' missing in the openclaw-gateway assertion. It fails the same way on origin/main; the kyber assertions changed here come before that line
  • The full kyber activationPackage was not evaluated: it needs an x86_64-linux IFD and this darwin host has no remote builders
  • No host was built, switched or deployed. Runtime effects on kyber (unit removal, leftover system dolt.service) are inferred from the module code

Remaining rg -i "beads|\bbd\b|dolt" hits

.gitignore:506:.beads/                      # data preservation, intentional
.gitignore:507:.dolt/                       # data preservation, intentional
.env.example:39,43,45                       # unreadable by agent, follow-up above
bun.lock:1472                               # sha512 substring "Bd", false positive
home-manager/programs/neovim/lua/config/keymaps.lua:51-52  # <leader>BD keymap, false positive

🤖 Generated with Claude Code


Summary by cubic

Removes beads (bd), the Dolt services, and the beads→Linear sync from the dotfiles, along with all related packages, overlays, hooks, agent SSH access, docs, specs, and tests.

Data preservation and rollout

  • Local tracker data (.beads/, .dolt/) stays on disk and ignored by git; nothing here deletes or wipes data.
  • This PR stays draft until the beads→Linear import has completed with operator approval; the next kyber home-manager switch is what stops the sync timer and user service.
  • The kyber dolt.service was installed outside home-manager, so it must be disabled manually before a nix GC; the galactica kyber-writer SSH key also needs revoking wherever else it is trusted.
  • .env.example and the Doppler BEADS_LINEAR_SYNC_REPOS secret still reference beads and need a follow-up.

Written for commit ce55d42. Summary will update on new commits.

View guided diff Turn on auto-fix

@indent

indent Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

This organization is out of credits, so Indent couldn't start this review. Manage billing to resume reviews on this repository.

Review agents

Select any unchecked box below to run or rerun that agent.

Pending (1)
  • Indent Review Agent · This agent has not run.
Full results

Indent Review Agent

  • Summary: This agent has not run.
  • Latest resultNo result — this agent has not run.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shunkakinoki
shunkakinoki marked this pull request as ready for review November 15, 2026 12:48
@pullfrog

pullfrog Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

This run was cancelled before it finished.

Pullfrog  | View workflow run | via Pullfrog

@shunkakinoki
shunkakinoki enabled auto-merge (squash) November 15, 2026 12:48
@shunkakinoki
shunkakinoki merged commit d10ccbf into main Nov 15, 2026
15 of 16 checks passed
@shunkakinoki
shunkakinoki deleted the t3/remove-beads branch November 15, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant