Completeness
Remac preserves every selected event required by the declared processing policy.
The Remac Contract
Every transaction log processor makes implicit promises about your data. Remac makes those promises explicit and maps them to tests, failure injection, traces, invariants, and recovery checks.
The contract applies across logical and physical processing. Each mode has its own evidence, mechanisms, and recovery boundaries.
Remac preserves every selected event required by the declared processing policy.
Each required sink receives events in source commit order.
Each selected event reaches its required sink under the declared delivery policy.
Processing continues from the last safe confirmed position after an interruption.
A replication sink converges to the selected source row state. Other sink types match their declared stream or projection.
The processor makes progress when its required systems can make progress. It exposes unsafe or impossible progress.
The processor preserves enough durable state to recover its declared work from a known safe position.
Industry reality
One enterprise survey shows how quickly pipeline failures become a business cost.
Average business exposure from pipeline downtime and disruption.
Average number of pipeline failures in large enterprises.
Average time required to resolve each incident.
Say pipeline failures slowed analytics or AI programs.
Failure catalog
Remac catalogs known ways a transaction log processor can break. The catalog guides design, test coverage, and release evidence. It is not exhaustive, and it continues to grow.
Connection drops, slot invalidation, disk pressure, DDL mid-stream, failover races, snapshot degradation.
Transaction buffer overflow, orphaned transactions, deduplication exhaustion, backpressure deadlock, thread leaks.
Write timeouts, partial batch writes, schema mismatches, connection pool exhaustion, broker unavailability.
Filter false-drops, transform mutations, enrichment staleness, routing conflicts, hot-reload races.
Corruption, unsafe frontier advancement, concurrent ownership, lease expiry, storage exhaustion.
Partial uploads, read-after-write inconsistency, credential expiry, bit-rot, prefix collision.
Archive gaps, unreachable restore targets, snapshot corruption, timeline divergence, config conflicts.
Replay ordering violations, sink failure during replay, event format evolution, cross-database type mismatches.
Invalid hot-reload, config drift, secret exposure in logs, default value mismatches.
Total: 74+ cataloged failure modes across 9 categories. This number grows with every release.
Industry track record
These documented incidents come from production data, replication, and distributed systems.
PostgreSQL replication lag caused the secondary to fall behind. WAL segments were removed before the secondary could consume them. During recovery, an engineer accidentally deleted the primary database. Multiple backup mechanisms had silently failed, including unusable database exports and unconfigured cloud snapshots.
A routine maintenance task severed connectivity for 43 seconds, triggering an automated MySQL failover. Both data centers accepted writes during the partition, creating divergent datasets. Reconciling these writes took over 24 hours of degraded service.
High read and write load on Consul triggered a pathological performance issue in its BoltDB storage. Deleted entries left free pages that were not reclaimed, and write times grew from milliseconds to seconds. A single Consul cluster supported several workloads, which increased the blast radius.
A customer removed a large number of users from their workspace, overloading the database cluster with queries. Replication lag appeared as replicas fell behind the primary. The high write load exhausted memory on the shard primary, triggering an OOM kill. The promoted replica also OOM-killed under the same load, and the cycle repeated.
A control plane outage lasted approximately 40 hours. Datasets that were not replicated across regions experienced persistent gaps. Log push features suffered unrecoverable data loss for the majority of the event.
An unsupervised global update restarted infrastructure, disconnecting 50–60% of production Kubernetes nodes. Intake pipelines lacked disk-based persistence, so data existed only in memory or local disk. Losing nodes meant losing data. Replicated stores were unable to accept writes, causing memory buffers to overflow. Datadog confirmed a limited but non-zero amount of customer data was lost in unrecoverable ways.
Engineering discipline
The Remac Contract defines named, testable boundaries. Tests, failure injection, invariants, traces, and recovery checks provide the evidence.
We took part of our testing philosophy from SQLite, which publishes hundreds of lines of test code for each line of production code.
We don’t need that ratio, but we share the same responsibility: we handle other people’s data. A transaction log processor that silently drops events, delivers them out of order, or fails to resume after a crash is worse than having no processor at all.
Every cataloged failure mode is a tracked test target; coverage is measured, not assumed.
No bug is fixed without a failing test that reproduces it first.
Failure test cases outnumber success test cases 70/30 for I/O code.
Crash recovery is tested by SIGKILLing the process mid-stream and verifying that it resumes from its last safe durable position with no loss.
Network partitions, latency, and disconnects are injected between the pipeline and every dependency with a real fault-injection proxy.
A flaky test is treated as a production bug, investigated and fixed, never skipped.
Tests are the specification. If a behavior is not tested, it is not guaranteed.