Skip to content
ValmoriaBook an audit

FIELD NOTES / BUYING GUIDE

How to scope a repair when two systems disagree

A mismatched total is a symptom. Before deleting duplicates or rerunning an import, establish which records should exist and how they reached the destination.

By Del Rey Valmoria · Based on the project evidence linked below.

Identify the source of truth

Write down which system owns each field and what counts as one record. A source invoice, its line items and a payment are different entities; treating them as interchangeable can create convincing but incorrect totals.

Trace one record from request to report

Capture a sanitized source response, its stable identifier, transformation and destination record. Then inspect pagination and retry behavior. In the published accounts-payable investigation, a duplicated pagination parameter was the source of repeated data.

Separate the repair from the recurring fix

Cleaning the destination without repairing ingestion allows the next sync to recreate the problem. The payment case study describes removing 2,725 surplus rows and rebuilding the sync as idempotent. Those figures describe that investigation, not a typical cleanup size.

Define what a safe rerun means

A repeated input should have a defined effect. Stable keys, explicit update rules and a record of failures help distinguish a retry from a new business event. Avoid silently skipping errors simply to make a job appear successful.

Prove the result with reconciliation

Agree on counts, unique keys, relevant totals and representative records before making changes. Compare them after the repair and again after a rerun. Retain a recovery path and a list of unresolved exceptions.

Prepare the smallest useful evidence pack

Bring schemas, an anonymized example of the mismatch, the sync schedule and relevant error timestamps. Start discovery with examples rather than production credentials or a complete customer database.

SOURCE PROJECTS

The work behind this guide

Data pipelines

The Numbers Were Wrong — AP Data-Integrity Rescue

Tracing an eight-figure AP overstatement to a duplicated pagination parameter: 2,725 surplus rows purged, the sync rebuilt as an idempotent pipeline.

React 18 + Vite · Keycloak OIDC · Node + Express · NocoDB · n8n

Data pipelines

243,000 SKUs, Zero LLMs at Runtime

A deterministic fiscal-enrichment API for a 243k-SKU auto-parts catalog: a 3-stage lookup chain, 26,420 rows corrected, zero LLM calls at runtime.

Node 20 · Express · PostgreSQL 16 · Redis (ioredis) · Zod

Systems architecture

Polling on the ETA, Not the Clock — Meridian

Meridian: a multi-tenant container-tracking SaaS on PostgreSQL RLS with an adaptive, ETA-anchored polling scheduler that cut vendor API calls ~6×.

Node 20 · Express + Helmet · PostgreSQL 16 (Force RLS) · Redis 7 · React 18 + Vite

START WITH A $150 AUDIT

Where is your business losing
leads or hours?

Tell me what happens today and what keeps going wrong. I reply with times for a 45-minute audit call; you get a written fix list with fixed prices, and the $150 is credited against any build.

See pricing · Email instead · Read the project evidence