refactor(db): move git registry store ownership - #6809
Draft
TheSentinel454 wants to merge 1 commit into
Draft
Conversation
TheSentinel454
force-pushed
the
codex/issue-2-git-repo-store
branch
from
August 25, 2026 20:07
c3ece0f to
6ab8bc0
Compare
TheSentinel454
force-pushed
the
codex/issue-2-git-repo-store
branch
from
August 25, 2026 20:59
6ab8bc0 to
3f651b7
Compare
TheSentinel454
force-pushed
the
codex/issue-2-git-repo-store
branch
from
August 26, 2026 14:33
3f651b7 to
fb850be
Compare
Signed-off-by: OpenAI Codex <codex@openai.com>
TheSentinel454
force-pushed
the
codex/issue-2-git-repo-store
branch
from
August 26, 2026 15:53
fb850be to
dc73def
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current reconstructed head
Exact base:
codex/issue-2-moderation-storeata0a4afc5317bb15e02f77a169ca359e8af289e28Exact head:
codex/issue-2-git-repo-storeatdc73defc41030278821ce43478bbb222226141e7This current head removes
crates/buzz-db/tests/store_ownership.rs; no replacement path-sensitive ownership test is introduced. Apart from removing that complete test-file diff, the production patch is byte-for-byte identical to the previously reviewed slice. This remains part of tracker #2 and the #17/#19 acceptance work.Independent exact-head review from a separate clean Blox workstation found no issues. Current-head evidence passed formatting, strict
buzz-dbclippy, 111 non-PostgreSQL library tests with 200 PostgreSQL tests ignored, the observability source test, relay consumer compilation, exact ownership/unique-span review checks, and 4 Git-registry PostgreSQL tests on native PostgreSQL where applicable.Summary
Continue tracker #2 by making
git_repo.rsown the Git repository-name registry persistence boundary.ReserveOutcome, the SQL implementation, and focused PostgreSQL tests already lived there; this child moves the remaining fourDbmethods and datastore spans out oflib.rswithout changing public signatures or behavior.This also advances #17 and #19 through single test and span ownership.
Stack
Domain moved
crates/buzz-db/src/lib.rsfalls from 4,033 to 3,985 lines.Non-goals
Risk
Small review surface and low semantic risk. The four facades and spans moved intact and call the same module-owned functions with the same pool, arguments, and return types. Existing SQL and focused tests are unchanged. The only extra source line is a secret-scanner suppression on the long-standing fake local test URL in the now-modified module.
Blox verification
Author workstation:
buzz-tornquist-issue-2-store-stack(2046520), exact headc3ece0f59aebb6119cb0d942b614fe2d3dce35d4.cargo fmt --all --checkgit diff --check 5fd23b4bd81d9db24c2ac4ad29a7ff74590de700..HEADcargo clippy -p buzz-db --all-targets -- -D warningscargo clippy -p buzz-relay --all-targets -- -D warningscargo test -p buzz-db --lib: 108 passed, 200 ignoredcargo test -p buzz-db --test observability_source: 1 passedcargo test -p buzz-relay --lib: 909 passed, 48 ignoredIndependent exact-head Blox review: no findings. Review artifacts were preserved before teardown.
Remaining tracker work
Next: archived identities, then usage/admin/maintenance, deletion ownership, and the final runtime-boundary/test audit.
Superseded pre-comment restack verification
PR #6700 merged before publication completed. This layer was restacked onto current main through the exact parent named above; the final cumulative tip is 2ddcc8a. Cumulative author gates passed: formatting and diff checks; buzz-db and buzz-relay all-target clippy with -D warnings; DB lib 111 passed / 200 ignored; ownership 22/22; observability 1/1; the full isolated PostgreSQL domain matrix; and relay lib 910 passed / 49 ignored.
Result
No findings.
Exact revision and isolation
da6d86cb4f46504edd3d860571e670d07b2f20236ab8bc04429d6596c91bcfc0bcf150f69ab2d17fbuzz-tornquist-pr-6809-final-review(2057664)The fresh shallow workstation was clean and unclaimed, had no competing commands, and had no Buzz production relay credentials or ownership-report file.
Review conclusions
git_repo.rs.Verification
-D warnings: passed.Artifacts:
pr-6809-final-review-artifacts.tgz, SHA-256d389bffa772b51c34f8b4345d5fa4d200dfa32d9020a967505eccea72b1e38dc. Archive and internal checksums were verified locally.Comment-addressed restack
Review follow-up on #6777 removed only the low-value replaceable ownership source test. This PR was restacked onto its rewritten parent; its production patch is unchanged.
f87152c1c0d3f9ab460e5b54711af41b43da0e283f651b72d81ca6d6d051200c9384e189e36aeaf26fa2f104d42c6ba85bdf62e7ccb74ceaf4a84f67buzz-db/buzz-relayClippy; DB lib 111 passed / 200 ignored; ownership 21/21; observability 1/1; every moved PostgreSQL test; relay lib 910 passed / 49 ignored.buzz-db/buzz-relayClippy, DB lib and current ownership/observability/unique-span guards, 4 Git-registry PostgreSQL tests, and relay compilation.