Dev.to AI 🤖 Ai 👁 2 📖 2 min read

The Pumps Stopped. The Ground Didn't: Building SHUT-IN with Kiro's Spec-Driven Workflow

In hydraulic fracturing and enhanced geothermal operations, shutting in a well—stopping the injection pumps—is often treated as the end of active operational risk. Field data tells a different story. Subsurface pore pres

In hydraulic fracturing and enhanced geothermal operations, shutting in a well—stopping the injection pumps—is often treated as the end of active operational risk. Field data tells a different story. Subsurface pore pressure continues to diffuse long after pumping stops, meaning trailing microseismicity can escalate hours later and reactivate nearby faults.

For the Kiroween 2026 hackathon (Frankenstein category), my teammate and I built SHUT-IN—a real-time microseismic monitoring, post-shut-in forecasting, and geomechanical decision-support platform powered by real Utah FORGE stimulation data (36,641 microseismic events across stimulation stages).

The Core Problem: Post-Shut-In Escalation & Hallucinated Numbers
When monitoring induced seismicity, operators face two major challenges:

  1. Delayed Escalation: During Stage 3 of our Utah FORGE replay, the traffic-light protocol remains green right as the pumps stop. Yet two hours after shut-in (T+02:00:21), a trailing $M_w\ 1.26$ event breaches the 30-minute rolling threshold, escalating the system from yellow to RED.
  2. AI Reliability in High-Stakes Engineering: Standard LLM chatbots cannot be trusted to compute seismological metrics or fault slip tendencies on the fly—one hallucinated decimal in a $b$-value or pore-pressure threshold compromises operational safety.

How We Engineered SHUT-IN with Kiro
To keep scientific rigor intact while moving fast during the hackathon, we used Kiro as the backbone of our development workflow:

  • Spec-Driven Development (.kiro/specs): Instead of diving straight into ad-hoc prompting, we structured our requirements, physics formulas, and API contracts inside Kiro's specs first. This kept our scientific Python engine (shutin_core) cleanly separated from the React/Three.js frontend.
  • Modular Architecture via Model Context Protocol (MCP): We exposed our deterministic physics calculations—including Seismogenic Index ($\Sigma$), Gutenberg-Richter $b$-value, Poisson exceedance probabilities, Omori post-shut-in decay curves, and Mohr-Coulomb fault slip tendency—through a dedicated shutin-mcp server.
  • Grounded AI Copilot ("The Medium"): Rather than letting an LLM guess numbers, The Medium listens to the replay state and calls shutin_core tools (get_replay_state, get_seismicity) to explain why a traffic-light transition occurred and whether interpreted faults (such as Fault-1) are approaching critical friction limits. Every single figure in its response is deterministically computed and cited.

Key Capabilities Inside SHUT-IN

  • Live Control Room & 3D Telemetry: Replays field pumping curves (treating pressure and slurry rate) synchronized with 3D microseismic point clouds (separating verified L2 locations from low-confidence bootstrap detections) and PCA-fitted fault planes.
  • Forecast & Omori Decay Modeling: Evaluates forward risk for hypothetical added injection volumes alongside 24-hour post-shut-in event decay rates.
  • Debrief & Audit Trail: Logs every breakdown, peak pressure, shut-in timestamp, and traffic-light transition in UTC for post-job reporting.

Takeaways from Building with Kiro
Using Kiro's spec-driven workflow and MCP integration completely changed how we built a domain-heavy scientific application. By locking down deterministic tool boundaries in specs early on, we could iterate rapidly on the 3D visualization and copilot UX without ever risking the integrity of the underlying geomechanics math.

Built for the Kiroween 2026 hackathon.
GitHub Repository: https://github.com/Haikal7090/shut-in
Demo (Youtube): https://youtu.be/Zmk8yPS7oSY

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.