FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Guides

When the bug happens at sea and the logs replay clean

A hypothetical autonomous-boat case, drawn from Saronic's FDE roles, shows why capturing enough data to reproduce a failure must come before any fix.

ShareLinkedInFacebookX

In brief

  • In the field, reproducing a bug is often harder than fixing it. Record the data first, fix later.
  • If replay reproduces the bug, it is in the software. If not, suspect the inputs (hardware, network) or a nondeterministic stack.
  • Trigger failures yourself, such as GPS loss or an engine fault, in a controlled trial rather than waiting for the real environment to do it.
Two-zone diagram. On board: sensor data flows into a 2-minute ring buffer, is written out as a full snapshot, and from that a summary is produced. Only the summary, a few hundred bytes, travels by satellite so people ashore know something has happened. The full snapshot file is brought back after the voyage for replay at the office.
The slow satellite link carries only the summary. The full snapshot stays on the ship and is brought back to the office for replay. Source: the FieldRecorder code sketch in the article.

Take an uncrewed boat that holds its course offshore all morning. In the afternoon, as it enters harbor, it starts drifting off heading, corrects itself, then drifts again. Back at the office, the logs replay and everything looks right.

Handling this kind of failure is written into the job description of FDEs who work on autonomous systems. Saronic, which builds autonomous surface vessels, describes its FDEs as the people who integrate, deploy and improve autonomous systems in real-world environments.

According to the job description, FDEs must troubleshoot software, hardware and networking issues together during deployments. They also spend 50% or more of their time traveling, domestically and internationally.

You may never set foot on a boat. But almost every FDE has met a bug that happens only at the customer’s site: no debugger to attach, a slow network, and nobody able to recreate the exact moment for you. The sea is the harshest version of this problem, which makes it the clearest place to learn it.

In the field, the hard part is reproducing the bug

A moment at sea happens once. The waves, wind, surrounding traffic and satellite signal will never line up the same way again. Patch the problem on the spot without recording anything and you cannot prove the fix works, nor recognize the bug when it comes back.

At Saronic, the role that plans sea trials tracks defects through a structured process, recording reproduction steps, severity and corrective action for each one. The principle to take away: until you can reproduce a bug, you have nothing solid to fix.

Reproduction needs data. Saronic says the endurance trial of its Corsair vessel produced about 500 hours of video from multiple cameras, roughly 17 TB in total.

The company says it will use this dataset for model development, replay and regression testing. The trial was designed to run continuously to assess reliability and endurance, which is to say, to surface the failures that short tests miss.

A study of autonomous vessels points out that at sea, a boat is constrained by low-bandwidth satellite links. Nobody streams 17 TB over a connection like that. So you separate two jobs: record everything on the boat’s own machine, and send ashore only enough for people on land to know something happened.

Below is a simple sketch of that idea. The threshold, cooldown period and field names are only examples:

import collections, json, time

def send_over_satlink(msg):
    """Stub: replace with a real satellite client, with a queue and a size limit."""
    payload = json.dumps(msg).encode()
    assert len(payload) < 512, "summary must be small"
    print("SATLINK", payload)

class FieldRecorder:
    """Record everything on the local machine, send only summaries over the slow link."""
    def __init__(self, window_s=120, rate_hz=50, cooldown_s=60):
        self.buf = collections.deque(maxlen=window_s * rate_hz)
        self.cooldown_s = cooldown_s
        self.last_snap = {}  # reason -> time of the most recent snapshot

    def record(self, s):  # s: dict with t, heading_err_deg, gps_fix, link_ok, sw_version
        self.buf.append(s)
        if abs(s["heading_err_deg"]) > 5:
            self.maybe_snapshot("heading_error")

    def maybe_snapshot(self, reason):
        now = time.monotonic()
        if now - self.last_snap.get(reason, float("-inf")) < self.cooldown_s:
            return  # still the same heading excursion, no extra snapshot
        self.last_snap[reason] = now
        path = f"/data/snap_{int(time.time())}_{reason}.jsonl"
        with open(path, "w") as f:
            for s in self.buf:
                f.write(json.dumps(s) + "\n")
        # Only a few hundred bytes go over satellite; the full file stays on the boat
        send_over_satlink({"reason": reason, "file": path, "n": len(self.buf)})

The key is the ring buffer: when an anomaly is detected, you already hold the previous two minutes of data, the part that led up to the failure. The cooldown matters just as much. Without it, a heading excursion lasting a few minutes would generate thousands of snapshots, filling the disk and clogging the satellite link.

Record the state of all three layers in the same record as well: software version, GPS status and link status. Only then will you have evidence in hand when you come to isolate the fault.

Example: drifting off heading in harbor

Back to the boat from the opening. This is a hypothetical scenario for practicing the method, not an incident Saronic has published. On paper there are three families of hypotheses: the navigation logic mishandles a situation that arises only near shore, a sensor reads differently in the harbor environment, or a lost connection makes the system switch modes.

For the positioning layer, the hypothesis has grounds. Research on autonomous vessels warns that when GPS loses signal, is jammed or is spoofed, a ship with no crew aboard can end up in a dangerous situation. That is why the gps_fix field in the record matters so much.

The decisive test is replay. Feed the exact snapshot you recorded into the navigation stack on an office machine. If the virtual boat drifts just as it did at sea, the bug is in the logic, and you have a test case to fix against.

If the replay comes out perfect, there are two possibilities. The first is that the data you fed in differs from what the system actually received at sea, so suspect timing, hardware or the network.

The second is that the stack is nondeterministic: thread ordering, processing latency or a random step can make the same input produce different results.

So run the replay many times, fix the seed and use a simulated clock. If results vary between runs, fix the stack’s determinism first, and only then draw conclusions about hardware.

The findings go into the bug ticket like this:

Field How to fill it in for the heading bug
Symptom Heading error exceeds the threshold, repeatedly, on approach to the harbor
Conditions Time, position, GPS status, link status, software version
Reproduction steps Replay a specific snapshot; record the number of runs and how many produced the bug
Severity Whether it affects operational safety
Suspected layer Software, hardware or network, with evidence from replay
Corrective action The fix, plus a regression test built from this very snapshot

The last row is the one many people skip. The snapshot that triggered the bug should become a permanent test, so the next trial does not have to hunt for the old bug at sea again.

Trigger failures before the real environment does

The best way to avoid surprises at sea is to cause failures yourself in a controlled trial. In 2013, during a sea trial, GPS was deliberately jammed and a prototype system automatically switched over to eLoran.

That test targeted a positioning system rather than an autonomous vessel, but the method transfers intact.

A recent autonomy demonstration included an emergency response drill for a simulated machinery failure, while the vessel was monitored remotely from shore.

Such tests are worth something only when the criteria are set in advance. Saronic organizes testing around test matrices, in which each requirement is tied to an objective pass or fail criterion.

“The fallback works fine” is only an impression. “On GPS loss, switch to the backup system without exceeding the allowed deviation” is a criterion you can check.

Then there is safety. At Saronic, the on-site test director runs trials in real time and is responsible for their safety. To inject failures on purpose, you must agree it with that person beforehand; nobody cuts off a running system on their own initiative.

Common mistakes

The most common mistake is debugging only at the layer you know. A software engineer dives into the code while the evidence points at the antenna or the link. That is why FDE job descriptions put software, hardware and networking on a single line.

The second mistake is trying to send everything home over the slow link, choking it at the very moment it is needed most. The third is fixing on the spot without saving a snapshot, so the fix can never be proven. The fourth is testing without pass or fail criteria, then arguing afterward about whether the results were good.

Shortening the loop between the field and the code

Saronic’s test planner works daily with the software team, vessel operations and suppliers to resolve each issue quickly and for good. A good bug ticket keeps that loop turning: people at the office receive the snapshot and the reproduction steps, so they do not need to go to the field to understand what happened.

On the career side, when reading FDE job postings, watch for phrases like “software, hardware, and networking” or “real-world environments”: they signal a job that demands field debugging. On your CV, do not just write “resolved production incidents.”

Tell the story of one specific bug: how you captured the data, how you reproduced it, which layer you isolated it to and what regression test you turned it into. In an interview, a story like that persuades far more than a list of tools.

The sea gives you no second attempt. A good engineer is the one who can carry that single moment of failure back to the office and replay it as many times as needed.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
6 sources
Read next on the roadmap · Stage 5: DeploymentWhy copying tables one by one into MongoDB Atlas is the wrong moveMongoDB's own guidance says to embed the data an application reads together and to reference data that can grow without limit.