Prepare a verified remediation
praxis_prepare_remediationResolve schema-drift incidents by generating a safe dbt compatibility patch from DataHub evidence and running fail-closed verification without mutating repositories.
Instructions
Resolve DataHub evidence for a schema-drift incident, generate the smallest safe dbt compatibility patch against the real repository, and run fail-closed verification. Returns the run id, the risk score, the verification tier and every check. Blocks on nothing and mutates nothing: the target repository, DataHub and GitHub are untouched. Waits for the run to reach its human gate before returning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'live' reads the real DataHub configured by DATAHUB_GMS_URL. 'sandbox' uses the packaged fixture and accepts only its one incident. | |
| model_path | No | Repo-relative path to the dbt .sql model, e.g. models/staging/stg_encounters.sql. | |
| source_urn | Yes | Exact DataHub dataset URN, e.g. urn:li:dataset:(urn:li:dataPlatform:snowflake,clinical.encounters,PROD). Praxis does not search; resolve the URN first. | |
| source_field | Yes | The field the dbt model still projects but the source no longer has. | |
| contract_path | No | Repo-relative path to the dbt contract .yml for that model. | |
| replacement_field | Yes | The field observed in the source schema in its place. |