BepiColombo and the Lessons of Recoverable Software

 


A spacecraft software fault is a recovery problem before it is a programming problem. The immediate job is to preserve power, maintain communication, and keep the vehicle inside safe operating limits—not to rush out a patch.

That is the useful engineering lens for The Register’s report on BepiColombo’s uncertain state around its arrival at Mercury. The headline raises questions about software and mission readiness. It does not, by itself, establish which component failed, what caused the problem, or whether recovery succeeded.

Those distinctions matter. “Software issue” can describe an incorrect calculation, an unexpected operating condition, a timing failure, or software reacting correctly to unhealthy hardware. Treating all four as “a bug” hides the work required to make a mission dependable.

For developers and system owners, the lesson is practical: design the recovery path before you need it. A service running in a data center has more escape routes than a spacecraft, but many of the same engineering rules apply.

1. Separate the symptom from the failure mechanism

A spacecraft is not a computer with a rocket attached. Its software continually interacts with sensors, power electronics, communications equipment, and moving mechanisms. A failure can travel across those boundaries.

Consider a hypothetical sequence:

  • A sensor supplies an implausible reading.
  • The control software rejects it.
  • A fallback sensor supplies data too slowly.
  • A deadline expires.
  • The spacecraft enters a protective operating mode.

The visible result might be described as a software interruption. Yet changing the timeout could make matters worse if the original sensor problem remains.

This is why a useful incident account distinguishes three things:

The observation: what operators actually measured, such as missed telemetry or an unexpected mode transition.

The mechanism: the chain of events that produced the observation.

The root cause: the underlying defect or condition that allowed that chain to begin.

These are not interchangeable. “The watchdog reset the computer” describes an event. It does not explain why the computer stopped meeting its deadlines.

For BepiColombo, the supplied report reference is not enough to establish that chain. The responsible approach is to leave the diagnosis open rather than invent a faulty update, a programming language problem, or an operator mistake.

Apply the same discipline to your own incident reports. Replace “the deployment broke production” with the exact sequence: configuration changed, memory consumption rose, health checks failed, and traffic moved to instances that shared the same configuration. Now there is something testable.

2. Safe mode is a product feature, not an afterthought

On a spacecraft, continuing normal operations can be more dangerous than stopping them. Scientific observations are valuable, but they come after keeping the vehicle alive.

A protective mode typically aims to reduce activity and preserve essential capabilities. Its precise behavior depends on the spacecraft: there is no universal safe-mode recipe.

The broader pattern is useful everywhere:

> When normal operation becomes uncertain, move into a simpler state whose behavior is easier to predict.

For a business application, that might mean disabling writes while retaining read access. For an automated billing workflow, it might mean collecting proposed charges without submitting them. For a Google Workspace script, it could mean recording intended changes in a review sheet instead of modifying customer records.

The trap is assuming that “safe” means “do nothing.” In a physical system, doing nothing may allow temperature, orientation, or battery state to become unsafe. In a database, stopping every process may prevent cleanup or recovery.

A safe state must be actively defined. Specify what continues, what stops, what evidence is retained, and who or what can authorize a return to normal operation.

Here is a small Python snippet demonstrating a conservative decision gate:

```python

from dataclasses import dataclass

from math import isfinite

@dataclass(frozen=True)

class Health:

telemetry_fresh: bool

power_margin: float

temperature_ok: bool

def choose_mode(health: Health) -> str:

if not health.telemetry_fresh:

return "PROTECT"

if not isfinite(health.power_margin):

return "PROTECT"

if health.power_margin <= 0:

return "PROTECT"

if not health.temperature_ok:

return "PROTECT"

return "NORMAL"

assert choose_mode(Health(True, 10.0, True)) == "NORMAL"

assert choose_mode(Health(False, 10.0, True)) == "PROTECT"

assert choose_mode(Health(True, float("nan"), True)) == "PROTECT"

```

This is illustrative application logic, not flight software. The power margin is assumed to have already been calculated against an application-specific reserve.

The useful detail is the treatment of missing or invalid evidence. An unknown condition does not silently become permission to proceed. A real implementation would also need controlled transitions, validated thresholds, and protection against repeatedly switching modes.

3. Remote recovery changes how you build software

An office computer can be unplugged. A cloud instance can often be replaced. A distant spacecraft offers neither convenience.

Communication is delayed by distance, and contact opportunities, bandwidth, and onboard resources constrain recovery. Operators cannot assume an interactive debugging session with immediate feedback.

That changes the design priorities.

Commands need clear completion semantics. Did the spacecraft receive a command, accept it, start it, or finish it? Those are four different events. Acknowledging receipt is not proof of execution.

The same distinction prevents failures in ordinary automation. An API returning “accepted” does not mean a document was generated or a payment completed. Your script needs a way to check the resulting state.

Retries need duplicate protection. If an acknowledgement disappears, resending a command can repeat an action that already happened. Where possible, use identifiers and state checks so that a retry does not create a second effect.

Recovery needs a known starting point. After interruption, software should determine what actually completed rather than guess from the last message sent.

A practical pattern for everyday systems is a durable operation record:

```text

operation_id: export-2026-0042

requested_action: create_report

state: accepted | running | completed | failed

result_reference: recorded only after successful completion

```

This record alone does not guarantee correct recovery. The operation identifier must also be enforced where the effect happens, with suitable transactional or deduplication behavior.

Still, it gives operators something better than “try again and see.”

A workaround that bypasses a failed dependency may be necessary. It should be narrow, observable, and reversible—not a permanent removal of the checks that exposed the fault.

4. Reliability testing must include broken surroundings

Testing whether a function returns the expected value is necessary. It is not enough for software that controls equipment or coordinates services.

The difficult failures often appear when individually reasonable components interact badly:

  • A valid measurement arrives too late.
  • A reboot occurs halfway through saving state.
  • Two redundant components share the same incorrect assumption.
  • An error handler consumes more resources than normal operation.
  • A recovery attempt triggers another recovery attempt.

Redundancy deserves particular scrutiny. Two copies of identical software can reproduce the same defect. Two services in separate locations can still depend on one identity provider. Independence must be demonstrated, not inferred from a diagram containing two boxes.

For spacecraft development, simulation and hardware-in-the-loop testing can expose interactions that isolated software tests miss. Neither proves that every operating condition has been covered. Models simplify reality; test equipment has limits.

For a smaller engineering team, the practical equivalent is deliberate fault injection in a controlled environment. Expire credentials. Delay responses. Return malformed data. Stop a worker after it has performed an external action but before it records success.

Then ask concrete questions:

  • Does the system stop safely?
  • Can an operator identify the last completed action?
  • Does a restart preserve evidence?
  • Can normal operation resume without duplicating work?

Use open-source test tools where they fit, but do not confuse installing a tool with having a test strategy. The value comes from checking a stated failure expectation.

Automate these tests where possible. Keep hazardous experiments away from production unless you have explicit safeguards and authorization.

5. Measure recoverability, not just uptime

Uptime tells you whether a system appears available. It says less about whether the system remains understandable when something goes wrong.

For mission-critical work, recovery deserves its own acceptance criteria. Before release, require answers to these questions:

What evidence survives a restart? Logs stored only in volatile memory may disappear with the failure they were meant to explain.

How does an operator distinguish stale data from healthy data? A dashboard displaying the last good value without its age can be actively misleading.

What can be rolled back? Reverting executable code does not necessarily revert configuration, persistent state, or physical actions.

What prevents an unsafe recovery command? Emergency access should not mean unvalidated access. Recovery tools need checks too.

Has the recovery procedure been exercised? A document that nobody has followed is an untested dependency.

For your next release, pick one workflow that would be expensive to repeat or difficult to reverse. Define its protective state, add durable progress tracking, and rehearse an interruption halfway through. Record how long it takes to understand the state—not merely how quickly the process restarts.

BepiColombo’s reported uncertainty should not be turned into an unsupported verdict on its engineers. Spacecraft operate under constraints most software teams never face. What the story usefully exposes is the weakness of treating reliability as a promise that nothing will fail.

The stronger engineering standard is more demanding: when something fails, the system preserves its options, reports what it knows, and gives operators a tested route back.

Comments