* feat(export): port bd export to proxied-server mode (bd-o58fz)
Remove the proxied-server gate from bd export and route the command's
storage reads through an exportSource seam:
- storeExportSource preserves the classic (embedded/direct/server) call
pattern over the store global, verbatim.
- uowExportSource reads through the proxied unit of work's domain use
cases, with the whole read set inside ONE uow.RunTxRead transaction
(read-only, never committed) so the export is a consistent snapshot.
Plane-pinned use cases are re-partitioned to match the classic bulk
loaders: labels/comments partition by the row's own Ephemeral/NoHistory
flags; dependency records already partition internally; dependency
counts sum both planes for every id, as classic does.
Everything downstream of the reads (filtering, sanitizeZeroTime, record
shaping, marshal order, atomicfile, stderr summary) is shared code, which
is what holds the byte-identical cross-mode output bar. Ordering parity
holds because both stacks render ORDER BY from the same sqlbuild.SortDefs
(priority ASC, created_at DESC, id ASC; labels by issue_id,label;
comments by created_at,id; memories sort.Strings).
TestProxiedServerExport builds a rich fixture through the proxied CLI and
asserts flag semantics plus the acceptance oracle: proxied export,
imported into a fresh classic embedded workspace and re-exported, is
byte-identical (default shape and --include-memories shape).
buildOwnerExcludeSet's export_auto.go call site is adapted to the new
seam signature (classic source over the same store global); auto-export
behavior is unchanged and its proxied port stays a separate bead.
export_source.go joins the bulk-movement forbidigo family in
.golangci.yml (it carries export.go's filter, it does not build one).
The import half is NOT in this change.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018YmpYVCa5eN6JtG26dJLMs
* fix(export): classify relation planes by table membership, not row flags (bd-o58fz)
Review items on #5351:
1. LoadExportRelations queried the wisp plane for any row carrying
Ephemeral or NoHistory — but a promoted no-history wisp is a durable
issues-table row still flagged NoHistory (promote clears only
Ephemeral), so its durable-plane labels/comments were silently
dropped. Both planes are now queried with the full ID set and merged
(ID-disjointness per the GH#4455 cross-table guard), matching what
the dep-counts leg already did; wisp-plane reads tolerate
IsTableNotExist like that leg too.
2. The byte-identity oracle is blind to symmetric omissions, so the
suite now asserts seeded content directly (labels, comment texts,
comment_count, dependencies, blocks-only dep counts) and adds a
promoted no-history fixture row in its own project. That shape stays
out of the round-trip fixture deliberately: classic IMPORT routes by
the same flag heuristic (issueops.IsWisp) and re-planes the row into
the wisps table, a pre-existing export/import infidelity filed as
bd-r9uce.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NvU6bUda8oQjvG3zoa4uyX
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>