# Reconcile two data extracts — acceptance checklist

Record evidence for every checked item. Unchecked or untested is not a pass. This checklist does not execute an integration or authorise external actions.

## Required inputs

- [ ] Two authorised immutable exports with hashes, source row identifiers, extraction queries or filters, extraction times and snapshot/cutoff evidence.

- [ ] The intended row grain, candidate keys, units, timezone, field definitions and known differences in source coverage.

- [ ] A prepared local SQL or Python environment, applicable data-handling rules and the data owners who can decide comparison rules.

## Output checks

- [ ] Both input hashes, extraction filters, snapshot/cutoff meanings and common row grain are recorded; incompatible coverage is labelled.

- [ ] Every original row ID occurs in exactly one primary disposition for its own extract, including duplicates and exclusions.

- [ ] Duplicate-key cardinality is measured before matching; no arbitrary row selection or many-to-many expansion is hidden.

- [ ] Null-key matching, null/blank/zero comparisons, numeric tolerances and time boundaries have explicit expected and observed cases.

- [ ] Every reported changed value links raw and normalised values to source rows; equal aggregates do not suppress row differences.

- [ ] A repeat run from the same frozen inputs and rules reproduces the ledger, or the difference is retained as a failed check.

## Deliverables

- [ ] Extract manifest and comparison contract with grain, cutoffs, units and explicit normalisation rules.

- [ ] Independent grain profiles, rule review and edge-case expectations.

- [ ] Source-linked row difference ledger and per-extract accounting table.

- [ ] Reproducible local query/script or optional notebook with execution receipts.

- [ ] Unexplained-difference handoff and invalid-run recovery record.

## Evidence and decision

Evidence links: [fill in]
Untested paths: [fill in]
Unresolved findings: [fill in]
Reviewer: [fill in]
Decision and scope: [fill in]

## Boundaries

- Prefer local exports; no warehouse connection is required. Any optional source read must use the confirmed database/account and a role limited to the approved objects. The profiles do not enforce read-only access.

- SQL Pro and the Statistician target Claude Code; the notebook profile targets VS Code Copilot with Python/Jupyter integrations. Verify host tools and pass files explicitly. Use the existing runner and a plain script/report when notebook integrations are unavailable; do not inherit the notebook profile's package-install or cloud-example assumptions.

- Null, missing, blank and zero remain distinct unless a documented domain rule equates them. Different cutoffs, units or populations can make a comparison inconclusive. Tolerances are owner-set and justified before the run.

- Limit shared reports to necessary redacted evidence and source row references. Tool licences do not authorise redistribution of exports; keep tokens, connection strings and unnecessary personal data out of notebooks and logs.

- Stop if a hash changes, the target is wrong, the common grain is unresolved or rows disappear from accounting. Corrections to source systems are a separate action requiring authority for named records and a recoverable pre-change state; this workflow writes only derived local artefacts.

Workflow: https://undominated.ai/workflows/#reconcile-two-data-extracts
