Failure Lab

What happens when it breaks?

Borrow an isolated bench for five minutes. Break its sensor or connection, then watch the real gateway report what happened.

Lontra Creek is fictional. A working Lab uses real Kafka, a real gateway, and your browser SDK. Failure actions affect only your leased bench.

Connections and clients

What happens between Kafka, the gateway, and browsers: a cut relay, a client that can't keep up, a restart. Fouled sensor bridges to the other track.

  1. Flash flood takes the relay

    Cut only this bench's Kafka path. Views go stale while your connection stays up, then recover after restoration.

    Runs on a leased bench with the controls below, when this backend has benches.

    Bench controls: Flash flood takes the relay

  2. Laptop on a satellite link

    A separate client stops acknowledging frames. Its receipt timeout disconnects it; your own view keeps flowing.

    Runs on a leased bench with the controls below, when this backend has benches.

    Bench controls: Laptop on a satellite link

  3. Gateway restart

    Restart your gateway. The SDK reconnects and takes a fresh snapshot; intermediate states are not replayed.

    Runs on a leased bench with the controls below, when this backend has benches.

    Bench controls: Gateway restart

  4. Fouled sensor: fix and retry

    LC11-S01 · Public exercise · existing scenario

    The default pause still works: restore calibration, retry the exact held record, then watch a fresh synchronization. It is an ordinary mapper exception, not quarantine.

    Runs on a leased bench with the Fouled sensor controls below, when this backend has benches.

    Bench controls: Fouled sensor

Source failures

What happens when a record itself is bad: pause and retry, quarantine, guarded continuation, evaluation and reprocessing, and cases where the safe answer is to hold. Each story has one implementation; Fouled sensor appears in both tracks with one set of controls.

Every new exercise stays unavailable until this backend reports that it can run it.

  1. Fouled sensor: fix and retry

    LC11-S01 · Public exercise · existing scenario

    The default pause still works: restore calibration, retry the exact held record, then watch a fresh synchronization. It is an ordinary mapper exception, not quarantine.

    Runs on a leased bench with the Fouled sensor controls below, when this backend has benches.

    Bench controls: Fouled sensor

  2. Garbled reading: preserve and hold

    LC11-S02 · Public exercise

    Real invalid JSON is captured in quarantine and the source does not advance. Saving malformed bytes doesn't make them repairable.

    Unavailable until this backend reports support for it.

  3. Bad projection: recover from authoritative state

    LC11-S03 · Public exercise · headline path

    Valid source JSON produces an invalid public payload. Quarantine succeeds, a guard first refuses to continue, and verified snapshot coverage later permits it.

    Unavailable until this backend reports support for it.

  4. Inspect the old reading: evaluate, then reprocess

    LC11-S04 · Public exercise

    A dry-run evaluation has no delivery effect; an exact approval permits gateway-local reprocessing; a newer snapshot can correctly supersede the old state.

    Unavailable until this backend reports support for it.

  5. Conflicting readings: stopping is correct

    LC11-S05 · Public · advanced

    An equal revision with conflicting state stays held. There is no force-skip.

    Unavailable until this backend reports support for it.

  6. Calibration lookup blip

    LC11-S06 · Public · advanced

    Only a trusted, explicitly transient mapper error gets a bounded retry. Success and exhausted retries are different outcomes.

    Unavailable until this backend reports support for it.

  7. Too many bad readings

    LC11-S07 · Local and CI only

    Five distinct automatic continuations are permitted in the configured window; the next incident holds. Duplicate evidence doesn't count as another incident.

    Unavailable until this backend reports support for it.

  8. Recovery across restart and a new subscription

    LC11-S08 · Local and CI only

    The same journal, consumer group, and source generation keep recovery obligations across a restart; a new view can't evade the barrier.

    Unavailable until this backend reports support for it.

  9. Unavailable evidence or quarantine

    LC11-S09 · Local and CI only

    No advancement on an unacknowledged quarantine write; missing or expired evidence refuses stored reprocessing.

    Unavailable until this backend reports support for it.

Checking the Lab…

Your bench

Not leased.

LC-03 subscription: idle

Stage
—
Flow
—
Revision
—

Bench controls

Actions on your leased bench

Fouled sensor

Remove LC-03's calibration. The map handler fails and pauses at the record; restoring the table and resuming retries that same record.

Why it matters: the source pauses at the bad record instead of skipping it, so nothing is silently lost. Views show stale, not wrong, until it's fixed.

Flash flood takes the relay

Cut only this bench's Kafka path. Views become stale, then recover after restoration. Watch the feed for this run's actual timing.

Why it matters: your page's connection to the gateway stays up, yet views still go stale, because StreamOtter reports whether a view is still in sync with its source, not just whether the socket is open.

Laptop on a satellite link

A separate client stops acknowledging frames. Its receipt timeout disconnects it; your own view keeps flowing.

Why it matters: what the gateway holds for a slow client is capped, so one bad connection can't slow other visitors or grow the gateway's memory without limit.

Gateway restart

Restart your gateway. The SDK reconnects and takes a fresh snapshot.

Why it matters: when the gateway restarts, for example during a deploy, open pages show stale and then recover on their own, with no reload.

Current incident

No incident to show. This panel shows a quarantine incident only when the backend reports one for your leased bench. It never shows sample data.

Until this backend reports that it supports incidents, this panel stays empty.

Fouled sensor's pause is a held source, not a quarantine incident: follow it in Your bench and the gateway feed.

Review reprocessing

This evaluation changed no source offset, sent no state, and published no business event. Nothing has been reprocessed.

Approving asks your bench's gateway to reprocess the saved record once, locally, with the mapper it evaluated. The source's Kafka position doesn't move. If a newer snapshot already covers this reading, the result is Superseded by a newer snapshot: a safe outcome, not an error.

Redacted gateway feed

Actual actions, source states, and traces from your current lease. No payloads, credentials, or other visitors' data.

The scenario view shows what each scenario turns on: your actions, failed or rejected traces, source state changes, the LC-03 record a fouled sensor stopped on (topic, partition, and offset), and trace gaps. A record retried after Resume is marked Retried. “Mapper returned” means the bench's map handler finished for that record; it isn't proof that the gateway delivered it or committed its offset.