]> git.hungrycats.org Git - bees/commit
rewrite: tie canonical-src consolidation to a non-zero ref-op-cost scratch
authorZygo Blaxell <bees@furryterror.org>
Sun, 11 Oct 2026 06:57:35 +0000 (02:57 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sun, 11 Oct 2026 06:57:35 +0000 (02:57 -0400)
commit3ac345c9c2196bdff6bf8cdff95038a8a89bf375
treed95d1a081aa63a7c7e7a66d697e02e51b73b41ec
parent66052910d90e50ca731324c09d3c98d86166a678
rewrite: tie canonical-src consolidation to a non-zero ref-op-cost

rewrite.prefer-canonical-src was only safe together with a non-zero
ref-op-cost: unpriced, consolidation piles references onto canonical
extents up to refs-max and re-canonicalizes along a chain.  Yet config
version 1 shipped it enabled with ref-op-cost = 0, the unsafe pairing,
and not the v0.11 behaviour that version 1 is meant to reproduce.

Remove the option.  The equal-reach tie-break and the Plan B pivot now
run exactly when ref-op-cost > 0, so version 1 (ref-op-cost = 0) spreads
references as v0.11 did, and version 2 (ref-op-cost = 53) consolidates as
before.  A config that still sets the key loads unchanged; the key is
ignored.  config-parse keeps the name in its kind table.

Assisted-by: Claude-Code:claude-opus-5-5
docs/config-file.md
docs/running.md
src/bees-config-v1.cc
src/bees-config-v2.cc
src/bees-config.cc
src/bees-plan.h
src/bees-scan-next.cc
src/bees.h