Skip to content

Wave 1 P03: complete rosters, chunked mentions, migration operation map - #234

Closed
only21mil wants to merge 2 commits into
mainfrom
cursor/wave1-p03-db-e2f3
Closed

only21mil wants to merge 2 commits into
mainfrom
cursor/wave1-p03-db-e2f3

Conversation

@only21mil

Copy link
Copy Markdown
Owner

Summary

Wave 1 P03 lane. Database operations and migration compatibility.

UD-1 ports upstream e0940927f (block#5765): get_members returns the complete roster without the LIMIT 1000 cap, event_mentions inserts chunk at 5000 rows inside one transaction, and addressable replacement indexes mentions in the replacement transaction so event and index commit or roll back together. Adds get_members_paged for UI pagination plus the upstream 1501-member roster, 11000-tag mention, and replacement-rollback regressions.

MS-2/RB-9 add the semantic operation map (migrations/operation-map.json + OPERATION_MAP.md) covering all 42 fork migrations and dispositions for the 13 upstream-only operations at the pinned upstream commit. The frozen checksum manifest extends through 0042 via a second ledger, the admission checker accepts typed empty prerequisites and rejects duplicate semantic operations unless declared in supersedes, and migration.rs tests pin contiguous unique versions with an approved tail, recompute SQLx checksums from file bytes, and lock the stale 0040 header comment to its correction beside the SQL. No applied migration bytes changed.

Related issue

None found. Tracks wave 1 P03 (UD-1, MS-2, RB-9) of the product completion plan.

Testing

  • cargo test -p buzz-db: 121 unit tests pass, 0 failures
  • cargo clippy -p buzz-db --all-targets: clean
  • cargo fmt -p buzz-db --check: clean
  • cargo check -p buzz-relay -p buzz-admin: clean
  • scripts/check-frozen-migrations.py + scripts/test-postgres-test-local.py (14 tests): pass
  • scripts/check-postgres-test-discovery.py: pass with 4 new Postgres tests registered
  • Postgres-backed tests compile and are inventoried but need CI: no Postgres or docker in this environment.
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 13, 2026 20:04
…ndexing

Port upstream e094092 (block#5765): drop the LIMIT 1000 on get_members so
large rosters come back whole, chunk event_mentions inserts at 5000 rows
inside one transaction, and move addressable replacement indexing into
the replacement transaction so event and index commit or roll back as
one unit.

Adds get_members_paged for UI pagination plus the upstream 1501-member
roster, 11000-tag mention, and replacement-rollback regressions.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: only21mil <only21mil@users.noreply.github.com>
Add the semantic operation map (migrations/operation-map.json +
OPERATION_MAP.md) recording origin SHA, hashes, operations, and
prerequisites for every fork migration plus dispositions for the 13
upstream-only operations at the pinned upstream commit. Extend the
frozen checksum manifest through 0042 via a second ledger, keeping
the 0001-0035 file untouched, and teach the admission checker typed
empty prerequisites plus duplicate-operation protection with an
explicit supersedes escape.

Strengthen migration.rs tests: contiguous unique versions with an
intentionally approved tail, sqlx checksums recomputed from file
bytes, no duplicate table creates or column adds outside the pinned
search_tsv chain, and the 0040 stale dependency comment preserved in
SQL with its correction locked to the map. No applied SQL bytes
changed.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: only21mil <only21mil@users.noreply.github.com>
@only21mil only21mil closed this Sep 13, 2026
@only21mil
only21mil deleted the cursor/wave1-p03-db-e2f3 branch September 13, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants