🦀 ClawHub
Data quality & reconciliation with exception
by @kowl64
Reconciles data sources using stable identifiers (Pay Number, driving licence, driver card, and driver qualification card numbers), producing exception reports and “no silent failure” checks. Use when you need weekly matching with explicit reasons for non-joins and mismatches.
TERMINAL
clawhub install data-reconciliation-exceptions📖 About This Skill
name: data-reconciliation-exceptions description: Reconciles data sources using stable identifiers (Pay Number, driving licence, driver card, and driver qualification card numbers), producing exception reports and “no silent failure” checks. Use when you need weekly matching with explicit reasons for non-joins and mismatches.
Data quality & reconciliation with exception reporting and no silent failure
PURPOSE
Reconciles data sources using stable identifiers (Pay Number, driving licence, driver card, and driver qualification card numbers), producing exception reports and “no silent failure” checks.WHEN TO USE
INPUTS
OUTPUTS
assets/exceptions-report-template.csv + references/matching-rules.md.WORKFLOW
1. Confirm sources and key priority (Pay Number → Driver Card → Driving Licence → DQC). 2. Normalize columns: - trim spaces; standardize case; strip common punctuation for document numbers. 3. Validate keys: - flag blanks/invalid formats; identify duplicates per source. 4. Join: - exact join on Pay Number; then attempt secondary joins only for remaining unmatched items. 5. Produce exception categories with reasons: - Missing in A/B, Duplicate key, Field mismatch, Invalid key. 6. “No silent failure” gates: - counts within tolerance; unmatched rate below threshold; duplicate spikes flagged. 7. STOP AND ASK THE USER if: - columns are not mapped, - multiple competing IDs exist with no priority, - expected tolerances are unspecified.OUTPUT FORMAT
exception_type,reason,source_a_id,source_b_id,pay_number,name,field,source_a_value,source_b_value
Reason codes: MISSING_IN_A, MISSING_IN_B, MISMATCH, DUPLICATE_KEY, INVALID_KEY.