Repository navigation
Add validated Databricks Medallion execution and maintainer release controls - #16
Merged
Merged
Conversation
DevDataMLOps
marked this pull request as ready for review
October 2, 2026 22:37
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.
PATIENTRA gains a bounded Databricks batch adapter that executes Bronze, Silver, identity resolution, Gold, suppressed analytics, the 13 Phase 6 checks, and the existing Phase 10 experiment before publishing per-run Delta snapshots. Schemas, counts, and values are reconciled against validated CSV artifacts; the release registry is written last. MLflow records aggregate evaluation only, with no model artifact or individual prediction export.
Adds development/production bundle targets for the canonical workspace, maintainer-only execution and release workflows, CODEOWNERS, governance documentation, and a separate fictional smoke dataset. The adapter is bounded to 50 MiB and retains the reviewed driver-memory algorithms and string CSV contracts. Package discovery excludes legacy setup/ingestion scripts.
The execution workflow uses the required BUNDLE_VAR_source_commit and BUNDLE_VAR_observation_end environment variables. Delta and ML-report snapshot writes use the canonical Spark
errormode (fail if the table exists), avoiding theerrorifexistsalias rejected by some Spark Connect clients. Publication failures now identify the MLflow or Delta stage and report the run UUID, exception class, and available validated Spark error-condition/SQLSTATE codes. Raw exception messages, parameters, and patient values remain suppressed. Tests cover safe classification, legacy fallback, and rejection of unsafe metadata.Validation:
errorifexistsin Apache Spark 4.0.0's Connect serializer and verifiederrormaps to ERROR_IF_EXISTS.Production permissions, approved-data execution, and GitHub release publication remain unverified. The earlier failed job was manually recovered and a subsequent complete job succeeded. A fresh job using e83c087 then failed in delta_publication with PySparkValueError/UNSUPPORTED_OPERATION, consistent with the reproduced Spark Connect save-mode incompatibility. The canonical-mode fix has now passed a complete development job on the latest head; the original failed run's exact cause remains unconfirmed. Maintainer final review is required before merging or releasing. GitHub Write access retains native release-object management permissions; the official workflow gates do not remove those permissions. Phase 10 remains DEMONSTRATION_ONLY.