Skip to content

v1.2.0 — Reviewable syncs

Choose a tag to compare

@github-actions github-actions released this 20 Oct 23:50
· 82 commits to main since this release
v1.2.0
9d6af78

Reviewable syncs. See exactly what a sync will do, approve it, then let it run — drt plan / drt apply, change guards on every mirror and replace destination, and fill-only enrichment that never overwrites what people entered.

Highlights

🔍 Review before you write — drt plan / drt apply (#1216, #1217)

drt plan orders_to_pg --out plan.json   # a saved, redacted, key-level change set (read-only)
drt apply plan.json                     # writes only if recomputing gives the same change set

The plan is an artifact: versioned, deterministic, no row values by default. apply re-plans and aborts on any drift, and a plan is single-use. It is a guard in front of a normal run, not a transaction — what it guarantees and what it doesn't. Plan works wherever drt can read the destination back (SQL databases and warehouses).

🛑 Change guards — a runaway delete stops before it happens (#1218)

sync:
  mode: mirror
  guards:
    max_deletes: 500
    max_delete_pct: 5

Judged at plan, apply and run. PostgreSQL, MySQL and Snowflake judge the DELETE's real row count inside a transaction and roll back; Databricks, BigQuery and ClickHouse count first and refuse before deleting. A tripped guard fails the sync loudly; --force-guards is explicit and recorded. Every leg is verified against a live warehouse (or a real container).

✍️ Fill, don't overwrite — write_policy: fill_empty (#1238)

sync:
  write_policy: fill_empty
  write_policy_overrides:
    last_synced: overwrite

A column is written only where the destination's value is empty (NULL, '', spaces-only text; a stored 0 is a value). Postgres, MySQL, Snowflake, Databricks, BigQuery and HubSpot.

🤖 Review in CI and from agents — not a UI (#1219, #1220)

  • drt deploy github-actions --with-plan scaffolds a PR comment with the plan and an apply-on-merge workflow.
  • MCP drt_plan / drt_apply: an agent can fetch a plan, but drt_apply needs approved_by — a human approval is recorded.

🛠️ Also in this release

  • drt init --from-ossie <model> scaffolds syncs from an Apache Ossie semantic model (#1254, spike).
  • Amazon SQS destination — standard and FIFO queues (#1182, @Susaidev, @Toyakki).
  • sync.match_policy (update_only / create_only) for MySQL and Intercom (#757, @Muawiya-contact).
  • Zero-credential demo: examples/review-demo (Docker + pip) — plan, a guard-refused mirror, and fill-only enrichment on a local CRM.
  • Claude skills and the MCP server teach the review loop; drt-debug explains the new guard and plan errors.
  • GitHub Sponsors is now set up on the drt-hub organization.

What's next

v1.3 Depth and durability — exact-replay apply, plan/apply audit lineage, coverage matrix: see ROADMAP.md.

No breaking changes — drop-in upgrade from v1.1.0.

Install / upgrade

pip install -U drt-core

Full Changelog: v1.1.0...v1.2.0