beads/tools
Eddie the Engineer e52d7ecbff fix(labels): guard exclusive namespaces on proxied and rename paths (bd-7u5ki)
Review-loop fixup for #4757 (exclusive label namespaces).

- proxied route: LabelSQLRepository.Insert runs the shared
  issueops.CheckExclusiveLabelInTx guard; ApplyUpdate removes before it
  adds, so a swap inside one namespace passes; proxied create settles
  inherited labels the way the direct front door does (explicit beats
  inherited)
- bd label rename refuses a rename that would create a new violation;
  a same-namespace rename or a merge into a held label still passes
- the empty-database auto-import (ImportJSONLData) and the molecules
  loader replay in warn mode, so one historical violation no longer
  fails hydration
- bd create, bd q, and the create form share resolveInheritedLabels:
  a config read error is surfaced, and an inherited-only conflict names
  the parent and --no-inherit-labels (labelns.ResolveCreateLabels)
- re-adding a label the issue already carries is a no-op, not a refusal
- proxied import reports exclusive_label_conflicts; bd label add
  --replace reports the labels it evicted, in text and as --json rows
  with status "removed", and its flag help says so
- the guard comment and configuration.md name the doctor scan as the
  backstop for concurrent writes and Dolt merges; config help and docs
  list rename and the boundary rules; json-schema.md documents
  exclusive_label_conflicts
- tests: domain/db TestExclusiveLabelNamespaces, embeddeddolt
  auto-import and create/rename tests, a uow ImportBatch subtest, and
  proxied and embedded CLI subtests; the pure eviction test moves to an
  untagged file so non-cgo lanes run it
- bazel: make bazel-sync registers the new internal/labelns package in
  the go_srcs-managed repo_files filegroups and the tools/bazel
  go_library list
- ci: the 15-shard embedded-storage manifest lists the two new
  embeddeddolt tests (gen_embedded_storage_shard_manifest.py --write)
- the large-batch statement-count pins move +1 per create item, the
  labels.exclusive-prefixes read NewBatchContext now makes (embedded and
  server: 356 +102, 712 +204, classic +10)

Agent-Signature: claude-code-claude-opus-5-5-max on behalf of Julian Knutsen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 05:01:34 +00:00
..
bazel fix(labels): guard exclusive namespaces on proxied and rename paths (bd-7u5ki) 2026-10-08 05:01:34 +00:00
cc_toolchain ci(bazel): cut per-lane fixed cost — LLVM .tar.zst slice, release cross-compile lane, no protoc build (#7379) 2026-10-08 03:13:34 +00:00
docsmint ci(bazel): run the scripts and source-walking tests remotely; retire their go test legs (#7320) 2026-10-06 22:20:16 +00:00
nogo ci(bazel): nogo replaces go vet and golangci-lint (ga-96smfk.18) (#7341) 2026-10-07 05:17:22 +00:00
rbe ci(rbe): fail remote runs fast on a stale worker-env pin; nightly opens an issue (#7373) 2026-10-08 00:55:02 +00:00