Skip to content
View Greybeard00007's full-sized avatar

Block or report Greybeard00007

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Greybeard00007/README.md

Kirk Keel — Senior Well Control Specialist & Energy AI Architect

Senior Well Control Specialist at Boots & Coots · Certified Well Control Instructor · 25+ Years in Operations Management
Well Operations, Drilling, Completions & Well Intervention (Land & Sea) · Surface & Subsea BOPs · Active & Passive MPD

🌐 Engineering Hub & Blog: eng.kcklayton.com
🧪 Live Production Simulators: kill.kcklayton.com · wellsim.kcklayton.com · wellcontrol.kcklayton.com

Through years of software engineering alongside field operations, I design and build production-grade AI architectures for safety-critical energy operations—combining real-time WITSML rig telemetry, deterministic multiphase well control physics, Model Context Protocol (MCP) tool servers, and CI-gated compliance evaluation.

Core Architectural Principle: Never let an LLM guess wellbore pressures. Every agentic workflow in this portfolio pairs LLM reasoning and SOP retrieval with deterministic, API RP 53 / IADC / IWCF-verified physics engines and automated CI evaluation gates.


End-to-End Rig Edge AI & Well Control Architecture

See docs/ARCHITECTURE.md for the complete sequence diagram and integration specification connecting WITSML telemetry, the wellcontrol MCP server, wellsim multiphase simulation, and sop-rag-judge.

flowchart TB
    subgraph RigEdge["Rig Edge Telemetry & Anomaly Detection"]
        WITSML["WITSML v1.4.1.1 / v2.0 Stream<br/>(SPP, Pit Gain, Flow Out, Hookload, Torque)"]
        EdgeAgent["witsml-edge-agent<br/>Air-Gapped Rig Site Telemetry & Ollama Sidecar"]
        Mesh["event-driven-telemetry-mesh<br/>High-Frequency Rig Instrumentation Event Bus"]
        WITSML --> EdgeAgent
        WITSML --> Mesh
    end

    subgraph DeterministicPhysics["Deterministic Physics & Engineering Engines (MCP Tools)"]
        WC["wellcontrol (1,312 Tests)<br/>Driller's / W&W / Bullhead / Volumetric / Stripping<br/>7-Screen FastAPI Choke Simulator + MCP Server"]
        WS["wellsim (783 Tests)<br/>Transient Multiphase Blowout, Relief Well<br/>Ranging & Monte Carlo Kill Risk Engine"]
        KSC["kill-sheet-calculations (636 Tests)<br/>IWCF / IADC Surface & Subsea Kill Sheets<br/>+ 45-Module CWI & Drilling Engineering Suite"]
        K5R["5kr-kill-sheet<br/>Interactive IADC WellSharp Single-Page App<br/>Directional Rounding & Live Choke Tracking"]
    end

    subgraph Governance["Enterprise AI Governance, RAG Judge & Sentinel Mesh"]
        Judge["sop-rag-judge<br/>Deterministic Citation, Groundedness &<br/>Numeric Drift CI Gate for Drilling SOPs"]
        Gateway["ai-gateway-sentinel<br/>3-Tier LiteLLM Fallback Router (Edge -> Local -> Cloud)<br/>+ OpenTelemetry Observability"]
        Twin["rig-digital-twin-core<br/>State-Space Drilling Physics Digital Twin"]
        BOP["bop-fault-sentinel<br/>Acoustic & Hydraulic Anomaly Detection"]
        Vision["rig-vision-sentinel<br/>Drill Floor Red Zone Intrusion Monitoring"]
    end

    EdgeAgent -->|"MCP Tool Calls"| WC
    EdgeAgent -->|"Kill / Relief Simulation"| WS
    WC <-->|"Cross-Verified Formulas"| KSC
    Gateway -.->|"Resilient Model Routing"| EdgeAgent
    Mesh --> Twin
    Mesh --> BOP
Loading

Flagship Public Portfolio (2,731+ Automated Tests)

1. Deterministic Well Control, Blowout Simulation & CWI Engineering

Repository Focus Area & Live Apps Verification & Highlights
5kr-kill-sheet Interactive IADC WellSharp Kill Sheet Web App
🌐 Live at: kill.kcklayton.com
12 passing unit tests · Zero-dependency single-page calculation engine · Enforces strict directional rounding (KMW round UP, LOT/MAMW round DOWN, MAASP round DOWN) with floating-point epsilon safeguards · SVG kill plot, printable kill sheet with sign-off blocks & live actual-vs-planned choke deviation tracking.
wellcontrol Full-Lifecycle Well Control Engine, 7-Screen Choke Simulator & MCP Server
🌐 Live at: wellcontrol.kcklayton.com
1,312 passing tests · Zero external runtime dependencies for core math · Driller's Method, Wait & Weight, Concurrent, Bullheading, Volumetric, Stripping/Snubbing, Barite Requirements, Multi-station Torque & Drag, and real-time FastAPI/WebSocket Choke Simulator + Model Context Protocol (MCP) Server.
wellsim Transient Multiphase Blowout, Relief Well Ranging & Dynamic Kill Simulator
🌐 Live at: wellsim.kcklayton.com
783 passing tests · Drift-flux multiphase hydraulics benchmarked against public well documents and experimental test datasets from research institutes including LSU's Petroleum Engineering program · Peng-Robinson / Beggs-Brill PVT, magnetic ranging & intersection solver, Monte Carlo kill risk quantification, and React/Three.js 3D trajectory frontend.
kill-sheet-calculations IWCF / IADC Kill Sheet Engine + 45-Module CWI & Drilling Engineering Suite 636 passing tests · Zero-dependency Python package (killsheet) + programmatic 45-sheet Excel engineering generator covering Coiled Tubing, Snubbing, Wireline, Hydraulic Workover, Subsea Kill Sheets, Casing Design, and Tubing Stress Analysis.

2. Agentic WITSML Telemetry, RAG Governance & Sentinel Mesh

Repository Focus Area Verification & Highlights
witsml-edge-agent Air-Gapped Rig-Edge WITSML AI Sidecar & Live Operator Dashboard Designed for intermittent satellite connectivity on remote rigs; runs containerized Node.js + local Ollama inference (llama3.2:3b) with deterministic SOP guardrails and WebSocket alerting.
ai-gateway-sentinel Enterprise Energy AI Reference Architecture & LiteLLM Gateway Production starter with 3-tier multi-model fallback routing (edge-fast $\rightarrow$ edge-reasoning $\rightarrow$ cloud-fallback), strict JSON schema validation, and OpenTelemetry distributed tracing.
bop-fault-sentinel BOP Acoustic & Hydraulic Signature Anomaly Detection Subsea and surface BOP monitoring engine analyzing hydraulic accumulator signatures and acoustic transients for early fault detection.
event-driven-telemetry-mesh High-Frequency Rig Telemetry Stream & Event Bus Low-latency event streaming architecture designed for distributed sensor networks on modern cyber rigs.
rig-digital-twin-core Physics-Informed Digital Twin of Rig Systems State-space dynamic modeling of drawworks hoisting, mud pump circulation, and top drive rotation.
rig-vision-sentinel Computer Vision Red Zone Intrusion & Safety Monitoring Real-time object detection and spatial boundary enforcement protecting personnel on active drill floors.
safety-graph-orchestrator Knowledge Graph Barrier Verification & API RP 53 Compliance Automated verification of well control barrier envelopes and regulatory standards compliance.
wellbore-knowledge-graph Wellbore Ontology & Offset Well Analytics Semantic graph database connecting historical well logs, casing programs, lithology, and operational drilling incidents.

Technical Stack & Domain Expertise

  • Well Operations & Petroleum Engineering: Surface & Subsea Well Control (IWCF / IADC / API RP 53 / API RP 59), Dynamic Kill & Relief Well Design, Completion & Well Intervention (Coiled Tubing, Snubbing, Hydraulic Workover, Wireline, Slickline), Torque & Drag, Multiphase Hydraulics.
  • AI Architecture & Agentic Workflows: Model Context Protocol (MCP), Deterministic Physics Tool Use, Hybrid Edge/Cloud LLM Routing (LiteLLM, Ollama, vLLM, OpenAI, Anthropic), RAG Evaluation & Hallucination Guardrails.
  • Software Engineering & MLOps: Python (pytest, FastAPI, Pydantic, NumPy, SciPy, Streamlit), TypeScript / Node.js, React / Three.js, Docker, GitHub Actions CI/CD, WITSML / Energistics Real-Time Telemetry.

Popular repositories Loading

  1. wellcontrol wellcontrol Public

    Full-lifecycle well control calculation engine, 7-screen choke simulator & MCP server (1,312 tests)

    Python 1

  2. kill-sheet-calculations kill-sheet-calculations Public

    IWCF / IADC kill sheet engine + 45-module CWI & drilling engineering suite (636 tests)

    Python 1

  3. wellsim wellsim Public

    Transient multiphase blowout, dynamic kill simulator & relief well magnetic ranging (783 tests)

    Python 1

  4. witsml-edge-agent witsml-edge-agent Public

    Air-gapped rig-edge WITSML telemetry AI sidecar with deterministic SOP guardrails and local Ollama inference

    JavaScript 1

  5. ai-gateway-sentinel ai-gateway-sentinel Public

    3-tier multi-model fallback router (LiteLLM) with OpenTelemetry observability and JSON schema validation

    TypeScript 1

  6. bop-fault-sentinel bop-fault-sentinel Public

    BOP acoustic & hydraulic anomaly detection with real-time pressure signature analysis

    Python 1