Submitted:
24 June 2026
Posted:
25 June 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction: Two Descents
- 1.
- We frame the instrumented drillstring as a resource- and communication-constrained edge node and quantify, with sourced figures, the one constraint axis it shares with the AGC and the axes on which the two diverge (Section 3).
- 2.
- We map the AGC’s priority-scheduled, fault-tolerant executive onto safety-critical pressure-integrity and kick-detection tasks in the drilling automation stack, and show with a reproducible illustration that priority-with-shedding protects the critical task where a priority-blind scheduler does not (Section 4).
- 3.
- We trace the recursive-estimation lineage to Apollo’s square-root (Potter–Battin) measurement update, reframe the industry-standard wellbore-uncertainty model as the propagation half of that estimator, and provide a reproducible benchmark showing the factored update keeps the covariance positive semidefinite where the textbook covariance update fails (Section 5).
- 4.
- We make explicit the edge-computing discipline, fixed-point arithmetic and pre-agreed, snapshot telemetry, and quantify the downlink-to-data ratio that forces onboard autonomy in both regimes (Section 6).
- 5.
- We delimit the analogy: the subsurface denies the absolute position fix that bounded Apollo’s drift, and the downhole threat model demands hard preemption the AGC lacked. We state each breaking point as an open problem (Section 8).
2. The Apollo Guidance Computer as an Existence Proof
4. Bridge I: The Priority-Scheduled Executive and the Downhole 1202
5. Bridge II: Recursive Estimation, from Star Fixes to Wellbore Surveys
6. Bridge III: Computing at the Edge
7. Bridge IV: Human-Supervised Autonomy
8. Where the Analogy Breaks, and Why That Is the Research Agenda
9. Related Work and Positioning
10. Conclusions
Acknowledgments
Appendix A. From AGC Assembly to Python: Annotated Ports of the Highlight Routines
Appendix A.1. The Preemption Decision (EXECUTIVE.agc)
| Listing 1. AGC: arm a preemption iff the new job outranks the running one. |
![]() |
| Listing 2. Python: the same decision, and the fixed-slot scheduler around it. |
![]() |
Appendix A.2. The Square-Root Measurement Update (MEASUREMENT_INCORPORATION.agc)
| Listing 3. Python: Apollo’s Potter square-root measurement update of the factor W. |
![]() |
Appendix B. Reproducible Experiment Details
Appendix B.1. Graceful Degradation Under Compute Overload
| Parameter | Value |
|---|---|
| Control cycles | 120 (≈2 s cadence each) |
| Compute budget per cycle | 100 units |
| Storm window | cycles 45–80 |
| Critical / important / background base cost | 22 / 28 / 30 units |
| Storm flood | 3–6 extra background jobs/cycle, ∼14 units each |
| Peak demand | ≈1.8× budget |
Appendix B.2. The SQRT-SURVEY Benchmark: Square-Root Versus Conventional Update
Appendix B.3. Bounding Drift by Measurement Incorporation
| Parameter | Value |
| Survey step | 30 m (one stand) |
| Measured depth | 3000 m (100 steps) |
| Initial gyro bias | 0.5 deg/km |
| Attitude random walk | 0.02 deg/ |
| Attitude-fix interval / noise | 150 m / 0.1 deg |
| Position-fix interval / noise | ≈1000 m / 1 m |
| Final lateral (3 regimes) | 39.8 / 1.16 / 0.68 m |
Appendix B.4. Fixed-Point Arithmetic at the Bit
References
- Hall, E.C. Journey to the Moon: The History of the Apollo Guidance Computer; Library of Flight; American Institute of Aeronautics and Astronautics: Reston, VA, 1996. [Google Scholar] [CrossRef]
- Garry, C.; Burkey, R.S. Apollo-11: Original Apollo 11 Guidance Computer (AGC) Source Code (Comanche055 / Luminary099). GitHub Repos. 2016. Public domain; transcribed from MIT Museum hardcopy. [Google Scholar]
- Eyles, D. Tales from the Lunar Module Guidance Computer. In Proceedings of the 27th Annual Guidance and Control Conference (American Astronautical Society), Breckenridge, CO, 2004. AAS Paper 04-064. [Google Scholar]
- Mindell, D.A. Digital Apollo: Human and Machine in Spaceflight; MIT Press: Cambridge, MA, 2008. [Google Scholar]
- Crouch, D.S. Apollo Lunar Surface Drill (ALSD) Final Report. Technical Report NASA-CR-92412; Martin Marietta Corporation for NASA, 1968. [Google Scholar]
- Gutierrez, D. Space-Age Directional Drilling Improves Efficiency, Economics. J. Pet. Technol. (JPT) 2022. Superior QC HiFi Guidance. [Google Scholar]
- Glass, B.; Cannon, H.; Branson, M.; Hanagud, S.; Paulsen, G. DAME: Planetary-Prototype Drilling Automation. Astrobiology 2008, 8, 653–664. [Google Scholar] [CrossRef] [PubMed]
- Zacny, K.; Bar-Cohen, Y.; Brennan, M.; Briggs, G.; Cooper, G.; et al. Drilling Systems for Extraterrestrial Subsurface Exploration. Astrobiology 2008, 8, 665–706. [Google Scholar] [CrossRef] [PubMed]
- Thorogood, J.L. Automation in Drilling: Future Evolution and Lessons from Aviation. SPE Drill. Complet. 2013, 28, 194–202, IADC/SPE-151257. [Google Scholar] [CrossRef]
- de Wardt, J.P. Industry Analogies for Successful Implementation of Drilling-Systems Automation and Real-Time Operating Centers. SPE Drill. Complet. 2014, 29, 22–27, SPE/IADC-163412. [Google Scholar] [CrossRef]
- Macpherson, J.D.; de Wardt, J.P.; Florence, F.; Chapman, C.D.; Zamora, M.; Laing, M.L.; Iversen, F.P. Drilling-Systems Automation: Current State, Initiatives, and Potential Impact. SPE Drill. Complet. 2013, 28, 296–308. [Google Scholar] [CrossRef]
- de Wardt, J.P.; Cayeux, E.; Mihai, R.; Macpherson, J.; Annaiyappa, P.; Pirovolou, D. Taxonomy Describing Levels of Autonomous Drilling Systems: Incorporating Complexity, Uncertainty, Sparse Data, With Human Interaction. SPE J. 2026, 1–14, Journal version of IADC/SPE-217754. [Google Scholar] [CrossRef]
- Kelsey, J.B. A Wellbore Inertial Navigation System. In Proceedings of the IADC/SPE Drilling Conference. Society of Petroleum Engineers; Sandia National Laboratories, 1983. IADC/SPE-11359. [Google Scholar] [CrossRef]
- ElGizawy, M.; Noureldin, A.; El-Sheimy, N. Continuous Wellbore Surveying While Drilling Utilizing MEMS Gyroscopes Based on Kalman Filtering. In Proceedings of the SPE Annual Technical Conference and Exhibition; Society of Petroleum Engineers, 2010. [Google Scholar] [CrossRef]
- Xue, Q.; Leung, H.; Wang, R.; Liu, B.; Wu, Y. Continuous Real-Time Measurement of Drilling Trajectory With New State-Space Models of Kalman Filter. IEEE Trans. Instrum. Meas. 2016, 65, 144–154. [Google Scholar] [CrossRef]
- Burkey, R.S. Virtual AGC: yaAGC Simulator and Digitized AGC Source. Online project and source repository. (accessed on 2026-06-17).
- Hamilton, M.H.; Hackler, W.R. Universal Systems Language: Lessons Learned from Apollo. Computer 2008, 41, 34–43. [Google Scholar] [CrossRef]
- Battin, R.H. An Introduction to the Mathematics and Methods of Astrodynamics, revised ed.; AIAA Education Series; American Institute of Aeronautics and Astronautics: Reston, VA, 1999. [Google Scholar] [CrossRef]
- Schmidt, S.F. The Kalman Filter: Its Recognition and Development for Aerospace Applications. J. Guid. Control 1981, 4, 4–7. [Google Scholar] [CrossRef] [PubMed]
- Klumpp, A.R. Apollo Lunar Descent Guidance. Automatica 1974, 10, 133–146. [Google Scholar] [CrossRef]
- Leveson, N.G. Role of Software in Spacecraft Accidents. J. Spacecr. Rocket. 2004, 41, 564–575. [Google Scholar] [CrossRef]
- MIT Instrumentation Laboratory. Guidance System Operations Plan for Manned LM Earth Orbital and Lunar Missions Using Program LUMINARY 1E. Technical Report R-567, MIT Instrumentation Laboratory (for NASA Manned Spacecraft Center), 1972. Guidance System Operations Plan; the cited NTRS scan is Section 7 (Erasable Memory Programs), NASA-CR-115564.
- Su, Y.; Sheng, L.; Li, L.; Bian, H.; Shi, R.; Zhuang, X.; Chin, W. Strategies in High-Data-Rate MWD Mud Pulse Telemetry. J. Sustain. Energy Eng. 2014, 2, 269–319. [Google Scholar] [CrossRef]
- Allen, S.; McCartney, C.; Hernandez, M.; Reeves, M.; Baksh, A.; MacFarlane, D. Step-Change Improvements with Wired-Pipe Telemetry. In Proceedings of the SPE/IADC Drilling Conference and Exhibition; Society of Petroleum Engineers, 2009. [Google Scholar] [CrossRef]
- Edwards, S.T.; Coley, C.J.; Whitley, N.A.; Keck, R.G.; Ramnath, V.; Foster, T.; Coghill, K.; Honey, M. A Summary of Wired Drill Pipe Field Trials and Deployments in BP. In Proceedings of the SPE/IADC Drilling Conference. Society of Petroleum Engineers, 2013. [Google Scholar] [CrossRef]
- Watson, J.; Castro, G. A Review of High-Temperature Electronics Technology and Applications. J. Mater. Sci. Mater. Electron. 2015, 26, 9226–9235. [Google Scholar] [CrossRef]
- Lv, Y.G.; Chu, W.X.; Wang, Q.W. Thermal Management Systems for Electronics Using in Deep Downhole Environment: A Review. Int. Commun. Heat Mass Transf. 2022, 139, 106450. [Google Scholar] [CrossRef]
- Beckwith, R. Downhole Electronic Components: Achieving Performance Reliability. J. Pet. Technol. 2013, 65, 42–57. [Google Scholar] [CrossRef]
- Liu, C.L.; Layland, J.W. Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment. J. ACM 1973, 20, 46–61. [Google Scholar] [CrossRef]
- Sha, L.; Rajkumar, R.; Lehoczky, J.P. Priority Inheritance Protocols: An Approach to Real-Time Synchronization. IEEE Trans. Comput. 1990, 39, 1175–1185. [Google Scholar] [CrossRef]
- Avižienis, A.; Laprie, J.C.; Randell, B.; Landwehr, C. Basic Concepts and Taxonomy of Dependable and Secure Computing. IEEE Trans. Dependable Secur. Comput. 2004, 1, 11–33. [Google Scholar] [CrossRef]
- Randell, B. System Structure for Software Fault Tolerance. IEEE Trans. Softw. Eng. 1975, SE-1, 220–232. [Google Scholar] [CrossRef]
- Godhavn, J.M. Control Requirements for Automatic Managed Pressure Drilling System. SPE Drill. Complet. 2010, 25, 336–345. [Google Scholar] [CrossRef]
- Kinik, K.; Gumus, F.; Osayande, N. Automated Dynamic Well Control With Managed-Pressure Drilling: A Case Study and Simulation Analysis. SPE Drill. Complet. 2015, 30, 110–118. [Google Scholar] [CrossRef]
- Yin, Q.; Yang, J.; Tyagi, M.; Zhou, X.; Hou, X.; Wang, N.; Tong, G.; Cao, B. Machine Learning for Deepwater Drilling: Gas-Kick-Alarm Classification Using Pilot-Scale Rig Data with Combined Surface-Riser-Downhole Monitoring. SPE J. 2021, 1–27. [Google Scholar] [CrossRef]
- Atchison, B.W. Automated Well Control: From Automated Detection to Automated Shut-In. In Proceedings of the SPE/IADC Middle East Drilling Technology Conference and Exhibition; Society of Petroleum Engineers, 2021. [Google Scholar] [CrossRef]
- Atchison, B.W.; Wuest, C. The Integration of Managed Pressure Drilling (MPD) and Automated Well Control Technology. In Proceedings of the IADC/SPE Managed Pressure Drilling & Underbalanced Operations Conference & Exhibition; Society of Petroleum Engineers, 2021. [Google Scholar] [CrossRef]
- National Academy of Engineering and National Research Council. Macondo Well Deepwater Horizon Blowout: Lessons for Improving Offshore Drilling Safety; The National Academies Press: Washington, DC, 2012. [Google Scholar] [CrossRef] [PubMed]
- National Commission on the BP Deepwater Horizon Oil Spill and Offshore Drilling. Deep Water: The Gulf Oil Disaster and the Future of Offshore Drilling. Report to the President; Technical report; National Commission on the BP Deepwater Horizon Oil Spill and Offshore Drilling: Washington, D.C., 2011. [Google Scholar]
- Weston, J.; Ledroz, A.; Ekseth, R. New Gyro While Drilling Technology Delivers Accurate Azimuth and Real-Time Quality Control for All Well Trajectories. SPE Drill. Complet. 2014, 29, 295–303. [Google Scholar] [CrossRef]
- Kalman, R.E. A New Approach to Linear Filtering and Prediction Problems. Trans. ASME–Journal Basic Eng. 1960, 82, 35–45. [Google Scholar] [CrossRef]
- McGee, L.A.; Schmidt, S.F. Discovery of the Kalman Filter as a Practical Tool for Aerospace and Industry; Technical Report NASA TM-86847; NASA Ames Research Center, 1985. [Google Scholar]
- Potter, J.E.; Stern, R.G. Statistical Filtering of Space Navigation Measurements. In Proceedings of the Proceedings of the AIAA Guidance and Control Conference; AIAA, 1963. AIAA Paper 63-333. [Google Scholar] [CrossRef]
- Kaminski, P.G.; Bryson, A.E.; Schmidt, S.F. Discrete Square Root Filtering: A Survey of Current Techniques. IEEE Trans. Autom. Control 1971, 16, 727–736. [Google Scholar] [CrossRef]
- Bierman, G.J. Factorization Methods for Discrete Sequential Estimation; Academic Press: New York, 1977. [Google Scholar]
- Wolff, C.J.M.; de Wardt, J.P. Borehole Position Uncertainty: Analysis of Measuring Methods and Derivation of a Systematic Error Model. J. Pet. Technol. 1981, 33, 2338–2350. [Google Scholar] [CrossRef]
- Williamson, H.S. Accuracy Prediction for Directional Measurement While Drilling. SPE Drill. Complet. 2000, 15, 221–233. [Google Scholar] [CrossRef]
- Torkildsen, T.; Håvardstein, S.T.; Weston, J.; Ekseth, R. Prediction of Wellbore Position Accuracy When Surveyed With Gyroscopic Tools. SPE Drill. Complet. 2008, 23, 5–12. [Google Scholar] [CrossRef]
- Ekseth, R.; Torkildsen, T.; Brooks, A.; Weston, J.; Nyrnes, E.; Wilson, H.; Kovalenko, K. High-Integrity Wellbore Surveying. SPE Drill. Complet. 2010, 25, 438–447. [Google Scholar] [CrossRef]
- Brooks, A.G.; Wilson, H. An Improved Method for Computing Wellbore Position Uncertainty and Its Application to Collision and Target Intersection Probability Analysis. In Proceedings of the European Petroleum Conference. Society of Petroleum Engineers, 1996. [Google Scholar] [CrossRef]
- Jamieson, A. (Ed.) Introduction to Wellbore Positioning, v9, 10 ed.; University of the Highlands and Islands: Inverness, UK; Industry Steering Committee for Wellbore Survey Accuracy (ISCWSA), 2017. [Google Scholar]
- Shuster, M.D.; Oh, S.D. Three-Axis Attitude Determination from Vector Observations. J. Guid. Control 1981, 4, 70–77. [Google Scholar] [CrossRef] [PubMed]
- Russell, A.W.; Roesler, R.F. Reduction of Nonmagnetic Drill Collar Length Through Magnetic Azimuth Correction Technique. In Proceedings of the SPE/IADC Drilling Conference. Society of Petroleum Engineers, 1985. [Google Scholar] [CrossRef]
- Brooks, A.G.; Gurden, P.A.; Noy, K.A. Practical Application of a Multiple-Survey Magnetic Correction Algorithm. In Proceedings of the SPE Annual Technical Conference and Exhibition; Society of Petroleum Engineers, 1998. [Google Scholar] [CrossRef]
- Gupta, S.; Agrawal, A.; Gopalakrishnan, K.; Narayanan, P. Deep Learning with Limited Numerical Precision. In Proceedings of the Proceedings of the 32nd International Conference on Machine Learning (ICML); PMLR, 2015; Vol. 37, pp. 1737–1746. [Google Scholar]
- David, R.; Duke, J.; Jain, A.; Janapa Reddi, V.; Jeffries, N.; Li, J.; Kreeger, N.; Nappier, I.; Natraj, M.; Regev, S.; et al. TensorFlow Lite Micro: Embedded Machine Learning for TinyML Systems. In Proceedings of the Proceedings of Machine Learning and Systems (MLSys); 2021; Vol. 3, pp. 800–811. [Google Scholar]
- Banbury, C.R.; Janapa Reddi, V.; Lam, M.; Fu, W.; Fazel, A.; Holleman, J.; Huang, X.; Hurtado, R.; Kanter, D.; Lokhmotov, A.; et al. Benchmarking TinyML Systems: Challenges and Direction. arXiv 2020, arXiv:2003.04821. [Google Scholar]
- Shi, W.; Cao, J.; Zhang, Q.; Li, Y.; Xu, L. Edge Computing: Vision and Challenges. IEEE Internet Things J. 2016, 3, 637–646. [Google Scholar] [CrossRef]
- Satyanarayanan, M. The Emergence of Edge Computing. Computer 2017, 50, 30–39. [Google Scholar] [CrossRef]
- Eidsvik, J.; Hokstad, K. Positioning Drill-Bit and Look-Ahead Events Using Seismic Traveltime Data. Geophysics 2006, 71, F79–F90. [Google Scholar] [CrossRef]
- Nejadi, S.; Kazemi, N.; Curkan, J.A.; Auriol, J.; Durkin, P.R.; Hubbard, S.M.; Innanen, K.A.; Shor, R.J.; Gates, I.D. Look Ahead of the Bit While Drilling: Potential Impacts and Challenges of Acoustic Seismic While Drilling in the McMurray Formation. SPE J. 2020, 25, 2194–2205. [Google Scholar] [CrossRef]
- Diao, B.; Gao, D.; Zhang, S.; Liu, Z. An Algorithm to Improve Magnetic Ranging Accuracy for Cluster Horizontal Wells with Narrow Spacings. J. Pet. Explor. Prod. Technol. 2024, 14, 583–592. [Google Scholar] [CrossRef]
- Wu, M.; Miao, Y.; Panchal, N.; Kowal, D.R.; Vannucci, M.; Vila, J.; Liang, F. Stochastic Clustering and Pattern Matching for Real-Time Geosteering. Geophysics 2019, 84, ID13–ID24. [Google Scholar] [CrossRef]
- Kyllingstad, Å.; Halsey, G.W. A Study of Slip/Stick Motion of the Bit. SPE Drill. Eng. 1988, 3, 369–373. [Google Scholar] [CrossRef]
- Bourgoyne, A.T.; Young, F.S. A Multiple Regression Approach to Optimal Drilling and Abnormal Pressure Detection. Soc. Pet. Eng. J. 1974, 14, 371–384. [Google Scholar] [CrossRef]
- Bourgoyne, A.T.; Millheim, K.K.; Chenevert, M.E.; Young, F.S. Applied Drilling Engineering; SPE Textbook Series; Society of Petroleum Engineers: Richardson, TX, 1986; Vol. 2. [Google Scholar]
- Thorogood, J.; Aldred, W.; Florence, F.; Iversen, F. Drilling Automation: Technologies, Terminology, and Parallels With Other Industries. SPE Drill. Complet. 2010, 25, 419–425. [Google Scholar] [CrossRef]
- de Wardt, J.P.; Macpherson, J.D.; Zamora, M.; Dow, B.; Hbaieb, S.; Macmillan, R.A.; Laing, M.L.; DiFiore, A.M.; Inabinett, C.E.; Anderson, M.W. Drilling Systems Automation Roadmap: The Means to Accelerate Adoption. In Proceedings of the SPE/IADC Drilling Conference and Exhibition; Society of Petroleum Engineers, 2015. [Google Scholar] [CrossRef]
- Brackel, H.U.; Macpherson, J.; Mieting, R.; Wassermann, I. An Open Approach to Drilling Systems Automation. In Proceedings of the SPE Asia Pacific Oil and Gas Conference and Exhibition; Society of Petroleum Engineers, 2018. [Google Scholar] [CrossRef]
- van Kuilenburg, R.; Isbell, M.; Behounek, M.; Macpherson, J.; Schaefer, S.; Fox, T.; Pirovolou, D. Interoperability for Drilling Process Automation. In Proceedings of the IADC/SPE International Drilling Conference and Exhibition; Society of Petroleum Engineers, 2024. [Google Scholar] [CrossRef]
- Flin, R.; O’Connor, P.; Crichton, M. Safety at the Sharp End: A Guide to Non-Technical Skills; Ashgate: Aldershot, UK, 2008. [Google Scholar]
- Wanasinghe, T.R.; Wroblewski, L.; Petersen, B.K.; Gosine, R.G.; James, L.A.; De Silva, O.; Mann, G.K.I.; Warrian, P.J. Digital Twin for the Oil and Gas Industry: Overview, Research Trends, Opportunities, and Challenges. IEEE Access 2020, 8, 104175–104197. [Google Scholar] [CrossRef]
| 1 | Eight, not the commonly cited seven: the erasable block statically reserves eight twelve-word core sets (96 words in ERASABLE_ASSIGNMENTS.agc), and the executive’s allocator scans all eight before raising 1202. The widely repeated “seven” follows the NO.CORES loop seed of 7, which counts down through zero for eight passes. |




| Axis | Apollo AGC (1969) | Modern downhole tool | Verdict |
|---|---|---|---|
| Clock / throughput | ∼1 , ∼85k ops/s | tens to hundreds of | diverge (tool ahead) |
| Read/write memory | ∼2k words | megabyte-class | diverge (tool ahead) |
| Numeric hardware | 15-bit fixed point, no FPU | fixed point / limited FPU at temperature | converge |
| Surface telemetry | downlist ∼1600 bps (low-rate PCM) | mud pulse ∼1–20 bps (typ. 10) | overlap (tool worse) |
| Environment | vacuum, radiation | 150–200 °C, shock, vibration | diverge (tool harsher) |
| Human intervention | light-time and workload limited | survey-interval and link limited | overlap |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).


