Add Logbook family model and typed exact-k cardinality - #739
Draft
anth-volk wants to merge 1 commit into
Draft
Conversation
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.
Summary
Warning
This implementation is not fully tested and must not be merged yet. Local Python and PostgreSQL tests pass, but the migration and database-facing behavior have not been verified against the intended Supabase project.
requested_k,realized_k, andrecord_unitfields while preserving every existing row and checksumfamilies,family_members, andfamily_actionstables, public views, local persistence, archive import/export, reconciliation, and query commandsrung = nullbecause exact-k is an absolute count rather than a sampling fraction, and record completed or failed attempts with the cardinality known at that pointFixes #641.
Refs #637. This implements the relational foundation for family discovery, membership, revocation, and supersession. It does not complete #637's Hugging Face derivation bundle, immutable child-publication records, arbitrary-k command, family-aware loader, automated discovery interface, or dataset-card work.
Supabase access blocker
This PR is draft because the intended Supabase project and owning organization have not been identified, and we do not currently have access to inspect its applied migration history.
The migration in this PR has not been deployed. Before this PR is ready for deployment, someone with access must:
20260818000000_logbook_chain_scopes.sqlmigrations; and20260821000000_logbook_family_model.sqlcan be applied after that exact sequence.The repository has not been linked to any unverified Supabase project.
Verification
N, reduced exact-k, and failed attemptsgit diff --checkpasses