Skip to content

Add validated Databricks Medallion execution and maintainer release controls - #16

Merged
DevDataMLOps merged 3 commits into
mainfrom
feat/databricks-medallion-release
Oct 2, 2026
Merged

DevDataMLOps merged 3 commits into
mainfrom
feat/databricks-medallion-release

Conversation

@DevDataMLOps

@DevDataMLOps DevDataMLOps commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

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 error mode (fail if the table exists), avoiding the errorifexists alias 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:

  • 118 local tests passed for the workflow/diagnostic correction. After the save-mode fix, all five Databricks integration/diagnostic tests passed and diff checks passed. A source-backed check reproduced UNSUPPORTED_OPERATION for errorifexists in Apache Spark 4.0.0's Connect serializer and verified error maps to ERROR_IF_EXISTS.
  • All five GitHub CI jobs passed for head 2619e17: Python 3.11/3.12 on Ubuntu/Windows and official Databricks CLI 1.19.0 bundle schema (run 37071983936). Earlier source also passed a fresh-source wheel/package-boundary check.
  • Maintainer-supplied Databricks screenshots and final notebook exit output confirm development execution of source commit 61e71e0 on 2026-10-02: job run 222813126927416, pipeline run cee97894-2a8d-4763-b5d9-214eebb176b3, status VALIDATED_DEMONSTRATION, 13 checks passed, 15 Delta snapshots, and MLflow run 13377612f169449b85bdef25e7cf9737. This was fictional development data; evidence is recorded in docs/databricks-dev-evidence.json.
  • Latest-head development execution confirmed: source commit 2619e17, pipeline run 0141997e-33e4-4fb5-86d7-0a3a32937c1a, status VALIDATED_DEMONSTRATION, 13 checks, 15 Delta snapshots, MLflow run aa7d344c4590438ea1e297eb7ba4c19b. The maintainer-run PowerShell script saved outputs/PATIENTRA-Databricks-live-result.json at 2026-10-02T22:28:52Z; its source SHA and output gates were checked from the saved file. Databricks job run 647217202220358 succeeded. Development job ACL lists the maintainer as IS_OWNER and inherited admins as CAN_MANAGE; this does not verify production ACLs.

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.

@DevDataMLOps
DevDataMLOps marked this pull request as ready for review October 2, 2026 22:37
@DevDataMLOps
DevDataMLOps merged commit 320a5e3 into main Oct 2, 2026
5 checks passed
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.

1 participant