beads/.github/scripts
Steve Yegge 9291864c8c
feat(export): port bd export to proxied-server mode (bd-o58fz) (#5351)
* 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>
2026-08-05 07:37:59 -07:00
..
ci-capability-selector.sh ci: shadow PR Risk capability ownership (bd-8yjq8.1) (#5324) 2026-08-03 20:06:16 -07:00
ci-embedded-tier.sh Tier embedded Dolt CI for PRs (bd-0gz) (#3459) 2026-04-24 07:53:23 -07:00
ci-gate.sh Add PR CI wrapper command surface (#4211) 2026-05-29 18:52:53 -07:00
docs-render-check.sh chore: purge deleted docs-pipeline references from release tooling, CI, and repo plumbing 2026-07-12 11:07:26 -07:00
embedded-cmd-test-shards.txt Rebalance embedded cmd CI shards (bd-8zg) (#3499) 2026-04-25 17:58:51 -07:00
embedded-storage-test-shard.sh ci: shard Embedded Dolt Storage into 5 manifest-driven shards (#5117) 2026-07-28 22:16:48 -07:00
embedded-storage-test-shards.txt ci: shard Embedded Dolt Storage into 5 manifest-driven shards (#5117) 2026-07-28 22:16:48 -07:00
embedded-test-shard.sh Rebalance embedded cmd CI shards (bd-8zg) (#3499) 2026-04-25 17:58:51 -07:00
proxied-cmd-test-shards.txt feat(export): port bd export to proxied-server mode (bd-o58fz) (#5351) 2026-08-05 07:37:59 -07:00
proxied-test-shard.sh /.github/{scripts,workflows}: shard it 2026-07-15 18:19:36 -07:00