Skip to content

The Remac Contract

Seven guarantees anda clear declared 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.

Guarantees

The contract applies across logical and physical processing. Each mode has its own evidence, mechanisms, and recovery boundaries.

01

Completeness

Remac preserves every selected event required by the declared processing policy.

02

Ordering

Each required sink receives events in source commit order.

03

Delivery

Each selected event reaches its required sink under the declared delivery policy.

04

Resumability

Processing continues from the last safe confirmed position after an interruption.

05

Consistency

A replication sink converges to the selected source row state. Other sink types match their declared stream or projection.

06

Liveness

The processor makes progress when its required systems can make progress. It exposes unsafe or impossible progress.

07

Recoverability

The processor preserves enough durable state to recover its declared work from a known safe position.

Industry reality

The cost of getting it wrong

One enterprise survey shows how quickly pipeline failures become a business cost.

$3MPer month

Average business exposure from pipeline downtime and disruption.

4.7Failures / month

Average number of pipeline failures in large enterprises.

~13hTo resolve

Average time required to resolve each incident.

97%Of leaders

Say pipeline failures slowed analytics or AI programs.

Source: Fivetran Enterprise Data Infrastructure Benchmark, 2026. 500 senior data leaders at 5,000+ employee enterprises.

Failure catalog

74+ failure modes. Cataloged and growing.

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.

Source failures

9 modes

Connection drops, slot invalidation, disk pressure, DDL mid-stream, failover races, snapshot degradation.

Pipeline failures

10 modes

Transaction buffer overflow, orphaned transactions, deduplication exhaustion, backpressure deadlock, thread leaks.

Sink failures

8 modes

Write timeouts, partial batch writes, schema mismatches, connection pool exhaustion, broker unavailability.

Middleware failures

20 modes

Filter false-drops, transform mutations, enrichment staleness, routing conflicts, hot-reload races.

Durable state failures

6 modes

Corruption, unsafe frontier advancement, concurrent ownership, lease expiry, storage exhaustion.

Storage failures

6 modes

Partial uploads, read-after-write inconsistency, credential expiry, bit-rot, prefix collision.

Recovery failures (physical)

6 modes

Archive gaps, unreachable restore targets, snapshot corruption, timeline divergence, config conflicts.

Recovery failures (logical)

5 modes

Replay ordering violations, sink failure during replay, event format evolution, cross-database type mismatches.

Configuration failures

4 modes

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

Real incidents. Real consequences.

These documented incidents come from production data, replication, and distributed systems.

2017GitLabSix hours of production data lost

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.

2018GitHub43-second network split causes 24 hours of degraded service

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.

2021RobloxStorage pathology contributes to a 73-hour outage

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.

2022SlackBulk user removal triggers replication lag cascade and repeated OOM kills

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.

2023CloudflareTwo-day outage causes unrecoverable data gaps

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.

2023Datadog24-hour global outage with confirmed customer data loss

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

Reliability needs evidence.

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.

01

Every cataloged failure mode is a tracked test target; coverage is measured, not assumed.

02

No bug is fixed without a failing test that reproduces it first.

03

Failure test cases outnumber success test cases 70/30 for I/O code.

04

Crash recovery is tested by SIGKILLing the process mid-stream and verifying that it resumes from its last safe durable position with no loss.

05

Network partitions, latency, and disconnects are injected between the pipeline and every dependency with a real fault-injection proxy.

06

A flaky test is treated as a production bug, investigated and fixed, never skipped.

07

Tests are the specification. If a behavior is not tested, it is not guaranteed.