feat(swarm): port bd swarm status + validate to proxied-server mode (bd-gen49) (#5360)

Both commands are pure computed reads (epic progress; ready fronts +
cycle detection), so they route through one read-only unit of work via
uow.RunTxRead — no commit message, no Dolt commit, no commandDidWrite —
with the existing uowMolReader adapter satisfying the SwarmStorage seam
(and utils.PartialIDResolverStore) over the UOW use-cases. All traversal
and rendering code is shared with the classic route unchanged.

swarm create and swarm list stay gated with their existing refusals
(no downstream consumer).

TestProxiedServerSwarm builds an identical explicit-ID epic DAG (one
closed, one in_progress+assignee, one ready, one blocked child) in a
proxied project and a classic embedded project, and asserts status +
validate human output byte-for-byte and --json deep-equal across modes,
a planted-cycle validate failure (proxied-only: classic embedded has no
bd sql and dep add cycle-gates, so there is no classic door to plant
one), the create/list refusals, and that the reads advance no Dolt HEAD.


Claude-Session: https://claude.ai/code/session_01JtAkNTf8DGzP1AF3FMuGmm

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge 2026-08-05 09:05:26 -07:00 • committed by GitHub
commit 8ceaf9a3b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 428 additions and 2 deletions

View file

@ -95,6 +95,7 @@
15 10 TestProxiedServerLabel
15 10 TestProxiedServerList
15 10 TestProxiedServerSQLDatabaseFlag
15 10 TestProxiedServerSwarm
15 10 TestProxiedServerUpdateWisp
15 11 TestProxiedServerCompactHistory