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>