Context
HDIM already has the control-plane contract (lakehouse-api), package
materialization flow (analytics-export-service), customer-boundary execution
plane (lakehouse-edge-service), local conformance engine, DQM-backed publish
gating, and durable publish-run state. The remaining hardening gap is non-prod
certification evidence and operational proof for the live Databricks probe,
write, trigger, and downstream polling path.
The repo also contains a Databricks writer gap plan and a partner handoff brief,
but those documents were written as planning aids. They do not freeze the
architecture, and they leave room for an unsafe outcome where a partner-owned
Databricks writer introduces a parallel publish API, bypasses DQM and preview
controls, or expects raw secrets to be passed through manifests.
The customer context is SHIN-NY. The SHIN-NY FHIR integration guide is the
normative upstream baseline for FHIR and operational assumptions. HDIM still
needs its own canonical architectural decision for the lakehouse controls that
start after SHIN-NY-conformant data is available for export.
Decision
Adopt a single certified architecture for the SHIN-NY-to-Databricks path.
The authoritative publish sequence is:
analytics-export-service.
lakehouse-edge-service.write.
DatabricksTargetPlugin. GET /api/v1/edge/publish-runs/{runId} as the operator source of truth.
stages.
The following defaults are frozen for v1:
current edge seam.
secretRefs only. Raw secrets are forbidden in manifests, control-planepayloads, publish-run state, and operator logs.
unity-catalog-volume and dbfs.publish-runs/{runId} remains the operator source of truth even when theDatabricks writer performs its own downstream polling.
The documentation boundary is also frozen:
operational, and release assumptions.
controls, audit behavior, security posture, Databricks execution, and
promotion gates.
Change-control rules:
lakehouse-api must beintroduced as a versioned contract extension, not as a side-channel payload.
TargetExecutionMetadata.externalRunId is mandatory for certification; any
future change to that representation must be introduced through
lakehouse-api versioning.
require explicit approval against this ADR and the normative blueprint.
Consequences
Positive
path instead of multiple planning notes.
boundary rules cannot be bypassed by a partner-owned writer.
while the live Databricks runtime is hardened and certified.
acceptance matrices instead of re-litigating the seam.
Negative
move faster.
operational validation are complete.
ad hoc rollout.
References
docs/implementation-guides/SHIN_NY_FHIR_DATABRICKS_GOLD_STANDARD_BLUEPRINT.mdbackend/modules/shared/api-contracts/lakehouse-api/backend/modules/services/analytics-export-service/README.mdbackend/modules/services/lakehouse-edge-service/README.mddocs/plans/2026-04-23-databricks-writer-gap-closure-plan.md (planning history)docs/plans/2026-04-23-databricks-writer-partner-handoff-brief.md (planning history)