Eduard Kharaev
Home · Projects

ProbeForge · AI Field Electrician in Shadow Mode

An AI agent that reads the wiring drawing of a real transfer switch, chooses its own measurements and finds the root cause, under a safety policy enforced in code. Built solo for the Meta Global AI Developer Hackathon, Oct 26 to Nov 4, 2026.

Case study by Eduard Kharaev · Source on GitHub (MIT) · Demo video

The three-minute hackathon video: the outage, the transfer switch, and the agent finding the fault under a safety policy enforced in code.

Problem

A data center loses utility power. The generator starts, but the automatic transfer switch does not move the critical load onto it. The UPS carries the load, and it has minutes left. A technician has to find the fault from the controller's lights, a wiring drawing and a meter, without making anything worse: no bypassing interlocks, no paralleling sources, no operating the switch by hand under load.

Power is the leading cause of such outages. Uptime Institute's 2026 outage analysis puts power issues behind 45% of the most impactful outages, and one in five outages now costs more than $1 million.

What ProbeForge does

ProbeForge simulates that situation on a real piece of equipment, an ASCO Series 300 Group G transfer switch (redrawn from the vendor's wiring diagram, every part and net with its source), injects a hidden fault, and lets three diagnosticians work on it through the same tools and the same safety policy:

Every reading or action passes the policy first. Risky actions wait for a human approval; some are never allowed. The UPS clock drains 30 seconds per reading, and a correct diagnosis after the UPS ran out is shown as what it is: critical load lost.

Hybrid v2 mid-run: the planner's next reading ringed on the drawing, candidate faults, the pipeline log and the UPS clock

Hybrid v2 mid-run. The planner's next reading is ringed on the drawing and its card lists the causes each possible result keeps. The log records every reading with its policy check while the UPS clock drains.

Safety policy, enforced in code

The policy lives in code, not in the prompt. Blocked attempts return to the diagnostician as an error and are counted.

TierExamples
Allowedread the panel, event log, metering; measure voltage; resistance only with both sources isolated
Approvalisolate the sources while the load is not powered; manual operation check; repairs (isolated only)
Strong approvalisolate a powered load; restore or repeat a transfer after a Transfer Failure; the request must cite a reading and state the policy's facts to the approver
Neverbypass an interlock, parallel the sources, operate the handle under load

Engineer mode: the approval card for isolating the sources, with the policy's reason and Deny / Approve buttons

Engineer mode: isolating the sources for an ohmmeter check waits for a human approval, with the reason on the card.

Architecture

flowchart LR
  S["Simulated bench: sources, controller, mechanism, UPS, hidden fault"]
  T["Tool API: panel, meter, isolate, manual check, repeat transfer, repair"]
  P["Safety policy in code: allowed / approval / strong approval / never"]
  A["Agent: Muse Spark, tool calling"]
  H["Hybrid v2: information-gain planner"]
  D["Drawing sheets"] --> R["Muse Spark: read"] --> C{"Documented sequence check"}
  C -- contradicted --> RP["Muse Spark: repair"] --> C
  C -- holds --> H
  H --> E["Muse Spark: explain"] --> K{"Code check: names the part, root cause first"}
  A --> P
  H --> P
  P --> T --> S
  U["Human: approvals, Engineer mode"] --> P
  K --> W["Web UI: live drawing, log, result"]

The agent and the planner never see the injected fault: tests check the agent's prompt against all 118 catalog faults and verify that UI events carry the fault only in the final result. All model calls go to muse-spark-1.3 through the Meta Model API; the key stays server-side, and a metered client reserves an upper bound in a local ledger before every call so a run that fails midway still records what it spent.

Results

One holdout run on 28 faults nobody picked by hand, against the 12 dev cases. The holdout was protected the way an evaluation should be: the agent, tools, policy, bench, fault catalog, scoring and hybrid were frozen with 13 fingerprints first; the 28 cases were sampled by a fixed seed excluding every dev fault and their twins, and committed with their sha256 before any run. One run, no reruns, no changes.

Agent devAgent holdoutHybrid v2 devHybrid v2 holdout
Part-level correct10/1217/2810/1218/28
Confidently wrong0/123/280/120/28
Insufficient information2/1211/282/1213/28
Correct before the UPS ran outn/a12/2810/1215/28
Readings per case13.214.53.82.6
Cost per case$0.095$0.12$0.009$0.006

What it shows: the free-running agent was confidently wrong three times on unseen faults, once naming the burnt coil (the consequence) instead of the misadjusted contact (the root cause). The hybrid, with deterministic checks around the model, was never confidently wrong, never lost the load, and cost 20 times less per case. Eight position-feedback faults ended in "insufficient information" for every diagnostician: the load was powered, isolating it needs strong approval, and the batch rule denied it. That is the policy working as designed.

Result card: verdict Correct, the injected fault revealed, UPS time left, and the diagnosed part outlined on the drawing

The result: the diagnosed part outlined on the drawing, the injected fault revealed only now, the UPS time left at diagnosis, and the model's explanation for the technician.

Limits, stated

What this project demonstrates