Developer Tools

AI Can Write Factory Code That Secretly Uses Wrong Software

AI Can Write Factory Code That Secretly Uses Wrong Software

⚡One in five AI-written scripts for factory machines uses the wrong software—could cause accidents.

Deep Dive

Language models can generate Python that drives industrial protocols on programmable logic controllers, but existing code-grounding checks ask whether an imported package or symbol exists—not whether it suits the declared industrial target. The authors build Proteus-OT, a label-free static verifier over a version-pinned graph of documented bindings.

Across 883 generated scripts, 180 carry an import-level mismatch against the declared target (20.4%); single-vendor targets give 16.3%, and requiring the offending library to reach a protocol communication call gives 14.2%. None of 28 adjudicable human control files carries one, a sample too small to estimate prevalence.

Within the balanced subset, 96.6% of mismatching scripts import packages and call methods that exist, so an existence baseline does not represent them, and every positive ships with an inspectable witness. The authors conclude vendor–protocol consistency is a useful static audit target, whereas provenance classification on repository-labelled corpora is not authorship detection.

Key Points
  • About 20% of AI-written scripts for factory machines use the wrong software package for the declared brand.
  • Current checks only verify if a package exists, not if it's correct for the machine.
  • Human-written control files didn't show this mismatch, but the sample was small.

Why It Matters

Factories using AI to write control code could face safety risks and costly errors without proper checks.

🔒 FREE VIP ACCESS

Read the full breakdown & get daily AI executive intelligence

Join like-minded builders, researchers, and AI professionals who read The Neural Feed daily. 100% free. No spam.

🔔 BREAKING RELEASE RADAR INSTANT ALERTS • 1-CLICK PAUSE

Get instant breaking AI release alerts by topic

Choose the AI labs, models, or chip tracks you follow. Receive fast alerts only when something major ships — plus our free daily morning briefing.

Includes full article unlock • Only major releases • Unsubscribe anytime
🎁 FREE EXECUTIVE DOWNLOAD ISSUE #21

Download This Week's 8-Page Executive AI Briefing (PDF)

Our curated executive intelligence packet: in-depth breakdowns of frontier models, market movements, plus full-color AI comics.

  • ✓ 8-page formatted executive PDF briefing
  • ✓ Frontier AI models & technical breakthroughs
  • ✓ Full-color satirical AI comic strips
Instant 1-click download • 100% free • Unsubscribe anytime
📬 Get the top 10 AI stories daily