Repository navigation
feat: establish exact domain and immutable backend schema - #61
Merged
Merged
Conversation
8 tasks
DavidVFitzGerald
marked this pull request as ready for review
November 14, 2026 17:56
This was referenced Nov 15, 2026
# Conflicts: # docs/engineering/roadmap.md
7 tasks
This was referenced Nov 15, 2026
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.
Refs #57
Establish the backend foundation used by the read API and ingestion: exact decimal/string boundaries, deterministic release-scoped flow identities, source-preserving staging, harmonized SQLAlchemy relations and a clean Alembic migration. PostgreSQL enforces revision membership, score states and immutable published history; the API role can select only safe ever-published views, while import and publication roles remain separate.
Add an isolated rootless backend Postgres profile, pinned shared uv member, single lock honoring vendored Airflow constraints, container checks and backend CI. Resolver probes verify the intended lean Firebase/FastAPI selection and combined Airflow/PySpark stack without introducing placeholder services.
Validation: frozen lock/install, 9 unit cases, 5 disposable PostgreSQL scenarios, Ruff, strict MyPy, clean/idempotent migration and lean/combined constrained resolver probes pass in guarded containers. Regressions cover publication/write and release-metadata races, historical rule/flow integrity and importer temp-table shadowing. Independent QA and hosted checks for the delivered SHA remain required.
See
docs/engineering/b1-verification.mdfor exact commands, role/view interfaces and B2/B3/B4 handoff. Records ADR 0005 acceptance from the already-authorized PR #56 merge. No frontend code, API endpoints, ingestion or production publication are included.