Inspiration

An alarm tells you which sensor stopped responding. It does not necessarily tell you which component failed.

We started with a simple question: if three satellite sensors fail across two different data buses, could one shared power connection explain all three alarms? We wanted to make that reasoning inspectable, including the healthy readings that weaken a tempting but incorrect explanation.

Common Cause is designed for student satellite teams and engineers exploring correlated telemetry faults. We built a software bench so the complete workflow can run on a laptop, with no physical equipment required.

What it does

Common Cause connects a system's wiring to its telemetry and ranks the shared components that could explain an observed failure.

In our main CubeSat example, the motion sensor, compass, and a sun sensor stop responding. They use different buses but share Regulator B. Healthy devices on those buses help distinguish the regulator fault from a bus failure.

The project can:

  • Rank power supplies, buses, devices, and drivers using failed and healthy observations.
  • Identify multiple suspects when one component cannot explain the full pattern.
  • Link a diagnosis to its readings, confidence, recovery guidance, and observed resolution.
  • Replay recordings or diagnose a live virtual capture through the actual recorder and sensor drivers.
  • Let viewers inspect the wiring, candidate rankings, event timeline, and read-only Cypher queries in a browser.

The public demo walks through healthy readings, a fault, its cause, and recovery. A quadcopter example uses the same engine with a different topology.

How we built it

YAML files describe the power rails, regulators, buses, drivers, devices, and telemetry channels. Python records or replays JSONL telemetry into embedded Relate. Shared Cypher queries follow dependencies and score candidates by the failed devices they explain and the healthy devices that contradict them.

We include persistent single-file Relate graphs at data/common-cause.rl and data/virtual-matrix.rl so judges can inspect saved diagnoses immediately. Live ingestion uses a writable directory store. The browser reconstructs exported JSON in Relate WASM inside a worker, runs queries locally, and renders the wiring with Cytoscape.js. A read-only MCP interface exposes the graph to compatible clients.

The virtual bench supplies modeled I2C registers and UART heartbeat bytes to the real driver and acquisition code. We also implemented a simulated bus-clear policy that checks fresh telemetry before recording a successful recovery.

We used ChatGPT and Codex during implementation, debugging, testing, and documentation. The running diagnosis uses telemetry, graph relationships, and deterministic Cypher rules; it does not depend on an LLM response.

Challenges we ran into

Healthy observations were as important as failures. A shared dependency can explain several alarms while also incorrectly implicating devices that still work, so coverage alone was insufficient.

Missing data introduced another problem: a delayed acquisition frame could look like a failed component. We separated capture-quality gaps from confirmed diagnostic evidence and retained the original observations rather than hiding them.

Timing also needed a precise definition. An upstream power fault can initially implicate a regulator, then identify the correct rail once heartbeat-loss evidence arrives. We therefore measure time to the first fully correct verdict separately from time to any verdict.

Our first interface exposed too many technical details at once. We rebuilt the starting experience around a four-stage walkthrough and kept the detailed graph and queries in an evidence workspace.

Accomplishments that we're proud of

  • The retained virtual session identified all 36 complete expected cause sets across four repetitions of nine modeled faults, including two simultaneous faults. All 36 episodes resolved after clearing. A first-failed-device baseline scored 8/36.
  • Three seeds with four repetitions exercise 108 additional bounded fault trials in the test suite.
  • The same queries work with native Relate and browser WASM, and the same diagnosis engine supports both CubeSat and quadcopter topologies.
  • Judges can inspect persistent stores, replay raw recordings, and trace diagnoses to graph evidence. CI covers Linux x64/ARM64, fresh Mac/Windows installs, and browser interactions.

These are results for defined software models, not an estimate of arbitrary-fault accuracy or evidence of physical sensor or flight performance.

What we learned

A useful diagnosis explains both the alarms and the observations that disagree with it. Keeping those relationships in the graph made uncertainty easier to inspect and the second topology easier to support.

We also learned to distinguish a working demonstration from a stronger performance claim. The retained hour still fails its cadence check. Corrected replay preserves its 19 gap events without opening component diagnoses, but that does not establish a new clean live-hour result.

What's next for Common Cause

We want to evaluate independently produced telemetry, expand beyond the current fault models, and improve how the interface explains ambiguous candidates and capture-quality problems. The current submission remains a complete laptop/browser simulation; physical validation is outside its scope.

Built With

Share this project:

Updates

Submission history