Remote Agent
| Original author(s) |
|
|---|---|
| Developer(s) | |
| Initial release | May 17, 1999 (Deep Space 1 flight experiment) |
| Written in | Common Lisp (Harlequin Common Lisp) |
| Engine | |
| Operating system | VxWorks |
| Platform | RAD6000 |
| Type | Autonomous spacecraft control, automated planning and scheduling, model-based diagnosis |
Search Remote Agent on Amazon.
Remote Agent (RA) is an autonomous spacecraft command and control artificial intelligence architecture co-developed by NASA's Ames Research Center and the Jet Propulsion Laboratory (JPL) under NASA's New Millennium Program.[1][2] Led by principal architects Nicola Muscettola, P. Pandurang Nayak, Barney Pell, and Brian C. Williams at NASA Ames alongside flight validation manager Douglas E. Bernard at JPL, Remote Agent integrated an onboard constraint-based temporal planner and scheduler, a reactive multi-threaded executive, and the Livingstone model-based health management and fault recovery engine into a closed-loop autonomous control system.[1][2]
Tested in flight during the Remote Agent Experiment (RAX) aboard the Deep Space 1 interplanetary probe from May 17 to May 21, 1999, at a distance of more than 96,500,000 kilometres (60,000,000 mi) from Earth, Remote Agent became the first artificial intelligence system to assume primary autonomous command of an operational spacecraft.[3][4] Operating without real-time ground intervention, the system generated activity schedules directly from high-level mission goals, executed optical navigation and ion thruster maneuvers, and autonomously detected, diagnosed, and recovered from four simulated hardware faults.[3][4] For this milestone, Remote Agent was named co-winner of the 1999 NASA Software of the Year Award.[3]
Background and development
Historically, deep-space missions were operated through low-level, time-tagged command sequences generated manually on the ground and uplinked to the spacecraft.[1] Onboard fault protection relied on hand-crafted reflex rules ("if–then" monitors) that responded to unexpected anomalies by halting science operations and placing the spacecraft into a standby "safe mode" to await days or weeks of human diagnosis from Earth.[1][5] As NASA sought to reduce mission operations costs and enable exploration in environments with long round-trip communication delays or brief encounter windows (such as comet landings or outer-planet satellites), researchers proposed shifting from ground-commanded sequencing to goal-directed onboard autonomy.[1][2]
In 1995, under NASA's New Millennium Program, engineers from NASA Ames Research Center and JPL convened the New Millennium Autonomy Architecture Workshop to design an integrated autonomy architecture for Deep Space 1 (DS1), a technology-demonstration spacecraft scheduled for launch in October 1998.[1][2] The team synthesized three hitherto separate artificial intelligence paradigms—constraint-based temporal planning, reactive plan execution, and model-based diagnosis—around a shared declarative modeling philosophy.[1]
Remote Agent was implemented in Common Lisp using a custom flight port of Harlequin Common Lisp executing atop the VxWorks real-time operating system on Deep Space 1's radiation-hardened 25 MHz RAD6000 processor with 32 megabytes of random-access memory, running alongside the spacecraft's conventional C flight software.[1][6]
System architecture
Remote Agent controls a spacecraft through a closed-loop architecture comprising three integrated AI reasoning components layered above the real-time flight execution software:[1][2]
Planner and Scheduler (PS / HSTS)
The onboard Planner and Scheduler (PS) is built on the Heuristic Scheduling Testbed System (HSTS), a constraint-based temporal planning framework originally developed by Nicola Muscettola and colleagues at Carnegie Mellon University and matured at NASA Ames.[7][8] Rather than treating action planning and resource scheduling as separate phases, PS models the spacecraft as a collection of parallel state-variable timelines (representing subsystems such as the ion propulsion engine, attitude control, camera, and power bus).[1][8] Domain physics and operational safety rules are encoded as temporal compatibilities between state tokens across timelines (for example, requiring the attitude control timeline to complete a slew and settle before the camera timeline begins an exposure).[1][8]
Given a high-level mission goal list and the current spacecraft state, PS uses heuristic chronological backtracking and a temporal constraint network to synthesize a flexible plan—a partially ordered schedule of activity tokens with earliest and latest start/end time windows rather than rigid time stamps.[1][8] To accommodate the limited CPU speed of the RAD6000 processor, Remote Agent employs an episodic planning cycle configured by Barney Pell and colleagues: while PS spends minutes or hours deliberating to generate the next multi-day plan horizon (or replanning after a major system degradation), the Smart Executive maintains the spacecraft in a safe, resource-predictable standby state.[9][1]
Smart Executive (EXEC)
The Smart Executive (EXEC) is a reactive, multi-threaded plan execution engine written in the Executive Support Language (ESL), a set of Common Lisp macros and concurrency constructs developed by Erann Gat and colleagues for task coordination and fault containment.[9][1] EXEC receives the flexible temporal plan from PS, dynamically chooses exact execution times within the allowed temporal windows, and decomposes high-level plan tokens into low-level primitive commands issued to the real-time flight software.[1][2]
During execution, EXEC continuously monitors state confirmations returned by the mode identification engine, manages concurrent task hierarchies and resource locks, and enforces invariant safety properties.[1][6] If a component failure occurs, EXEC first queries Livingstone for an immediate single-step or multi-step hardware reconfiguration that can repair the broken activity cleanly within the current plan's slack windows; if the fault permanently alters available spacecraft capabilities (such as reduced power or degraded thrust), EXEC aborts the current plan, places the vehicle in a safe configuration, and invokes PS to generate a new plan tailored to the degraded health state.[1][2]
Mode Identification and Reconfiguration (MIR / Livingstone)
Livingstone is the Mode Identification and Reconfiguration (MIR) engine of Remote Agent, developed at NASA Ames by Brian C. Williams and P. Pandurang Nayak as a reactive extension of earlier multiple-fault model-based diagnosis engines (such as the General Diagnostic Engine and Sherlock).[10][1] Instead of relying on symptom-to-fault lookup tables, Livingstone models each spacecraft hardware component (valves, switches, thrusters, sensors, and power buses) as a concurrent finite-state machine expressed in propositional logic, encoding both nominal operating behaviors and known or unmodeled failure modes along with their prior probabilities.[10][5]
Using a single declarative hardware model together with an online assumption-based truth maintenance system and Conflict-directed A* best-first search, Livingstone provides two closed-loop functions:[10][1]
- Mode Identification (MI): As EXEC issues commands, discrete monitors abstract continuous sensor telemetry into qualitative values (such as high, low, or nominal current and pressure). Whenever observations conflict with the predicted nominal transition, MI searches in real time for the most probable combination of component mode transitions (diagnoses) that explains the discrepancy—for instance, distinguishing an actual thruster failure from a broken feedback sensor.[10][1]
- Mode Reconfiguration (MR): When EXEC requests recovery from a diagnosed fault, MR searches the same propositional transition model in the forward direction to find the least-cost set of control commands (such as switching to a redundant hardware path, resetting a bus controller, or firing alternate thrusters) that restores the desired configuration without violating operational constraints.[10][5]
Deep Space 1 flight experiment (May 1999)
Experiment overview
Deep Space 1 launched on October 24, 1998, on a heliocentric trajectory toward asteroid 9969 Braille.[3] After the spacecraft's primary hardware payloads were validated, the Remote Agent software image was activated during the interplanetary cruise phase for the Remote Agent Experiment (RAX), conducted between May 17 and May 21, 1999, when Deep Space 1 was more than 96,500,000 kilometres (60,000,000 mi) (60 million miles) from Earth.[3][4] The flight test was executed in two segments—an initial validation phase beginning at 11:04 a.m. PDT on Monday, May 17, 1999, and a six-hour completion run on Friday, May 21, 1999—totaling nearly 30 hours of autonomous control.[4][11]
During RAX, ground controllers transmitted only a high-level goal file specifying target asteroid and star imaging schedules and desired orbital velocity changes. From those goals, Remote Agent generated multi-hour execution plans onboard, commanded the Miniature Integrated Camera and Spectrometer (MICAS) to acquire optical navigation images, slewed the spacecraft, and controlled the NSTAR ion thruster.[4][8]
Simulated fault injection and recovery
To test Livingstone, EXEC, and PS under realistic failure conditions without damaging actual flight hardware, engineers used an onboard simulation interface layer between Remote Agent and the spacecraft hardware drivers to inject four simulated hardware faults:[3][4] 1. Camera power switch stuck "on" (May 17): When EXEC commanded the MICAS optical navigation camera to power off after an imaging session, the fault injector blocked the switch state transition so the camera remained powered on. Livingstone diagnosed that the power switch was stuck closed; EXEC determined that the fault was benign to camera operation, and PS autonomously generated a revised mission schedule that achieved the remaining goals while accounting for the continuous power draw of the camera.[3][4] 2. Bus controller / electronics unit failure (May 21): A simulated failure caused an electronics interface unit to stop responding on the data bus. Livingstone identified the failed unit mode, and EXEC recovered autonomously by issuing a reset and reactivation sequence.[3][4] 3. False ion-propulsion sensor failure (May 21): A sensor monitoring the propulsion system was forced to report an anomalous reading while all correlated spacecraft telemetry remained normal. Livingstone reasoned across its system-wide model to conclude that the sensor itself had failed rather than the physical device, allowing EXEC to continue executing the nominal thrusting plan without a false abort.[3][4] 4. Attitude-control thruster stuck "off" (May 21): A reaction control thruster was simulated as stuck closed when commanded to fire. Livingstone detected the missing angular acceleration, diagnosed the stuck-off thruster mode, and recommended a mode reconfiguration that switched the attitude control system to an alternate thruster set so the maneuver could continue.[3][4]
Concurrency deadlock and formal verification analysis
On the morning of Tuesday, May 18, 1999—roughly 14 hours into the initial test run, after Remote Agent had already completed approximately 70 percent of its validation objectives—mission operators observed that although Remote Agent was still running and healthy, the Smart Executive had stopped advancing through its current plan and had not issued a scheduled command to turn off the ion engine.[4][11] Engineers commanded Remote Agent to standby mode, downloaded diagnostic buffers via the Lisp runtime environment, and identified the cause before executing the May 21 run that completed the remaining 30 percent of test objectives.[4][11]
Subsequent analysis by the flight team and NASA Ames's Formal Methods group (Klaus Havelund, Michael R. Lowry, John Penix, and colleagues) traced the anomaly to a classic multi-threading race condition and deadlock inside an Executive property-monitoring loop.[11][6] A plan-execution thread checked whether a monitored spacecraft property had achieved a target value and, finding that it had not, prepared to call `wait-for-event` to sleep until a concurrent daemon thread signaled a state change; however, because the property check and the `wait-for-event` call were not enclosed within a critical-section lock (`with-lock`), the daemon thread preempted the execution thread right after the check, updated the property, and broadcast the event signal before the execution thread went to sleep—leaving the execution thread blocked indefinitely waiting for an event that had already occurred.[11][6]
Notably, prior to launch in 1997–1998, the NASA Ames Formal Methods group had applied the SPIN model checker to a clean-room model of a sibling synchronization module in the Executive and had discovered and fixed virtually the exact same missing-lock concurrency defect.[11][6] The May 1999 Deep Space 1 deadlock became a landmark case study in software engineering for autonomous systems, catalyzing NASA's investment in automated software model checking (including the development of Java PathFinder at NASA Ames) and formal verification of concurrent flight executives.[11][6]
Impact and legacy
In August 1999, the Remote Agent team at NASA Ames and JPL was named co-winner of the 1999 NASA Software of the Year Award.[3] Principal co-inventors Brian C. Williams, P. Pandurang Nayak, Nicola Muscettola, and Barney Pell also received NASA Space Act Awards, and the flight validation team received a NASA Group Achievement Award.[5]
Each of Remote Agent's three core architectural pillars spawned subsequent flight and ground systems across NASA and academia:[8][5]
- Automated planning (EUROPA and ASPEN/CASPER): The HSTS/PS constraint-based timeline planner evolved at NASA Ames into EUROPA (Extensible Universal Remote Operations Planning Architecture), which was used for daily tactical surface planning on the Mars Exploration Rovers (Spirit and Opportunity), the Phoenix Mars lander, the Mars Science Laboratory (Curiosity), and solar-array operations on the International Space Station.[8] In parallel, JPL's continuous planning and execution systems (ASPEN and CASPER) flew for over a decade aboard the Earth Observing-1 (EO-1) Autonomous Sciencecraft Experiment (2003–2017)[12] and informed the onboard planner deployed on the Mars 2020 Perseverance rover.
- Model-based health management and programming: Livingstone was succeeded at NASA Ames by Livingstone 2 (L2), which was flight-tested on the X-34 propulsion testbed and the EO-1 satellite.[5] After joining the Massachusetts Institute of Technology in 1999, Brian C. Williams generalized the EXEC and Livingstone architecture into model-based programming, developing the Reactive Model-based Programming Language (RMPL) and the Titan model-based executive.[5]
- Plan execution languages: The Smart Executive's ESL heritage influenced NASA's Universal Executive and PLEXIL (Plan Execution Interchange Language), used for autonomous execution on planetary rovers, drilling platforms, and aviation systems.[5]
See also
- Deep Space 1
- Brian C. Williams
- Barney Pell
- Automated planning and scheduling
- Model-based reasoning
- SPIN model checker
References
- ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 Muscettola, Nicola; Nayak, P. Pandurang; Pell, Barney; Williams, Brian C. (August 1998). "Remote Agent: to boldly go where no AI system has gone before". Artificial Intelligence. 103 (1–2): 5–47. doi:10.1016/S0004-3702(98)00068-X.
- ↑ 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Bernard, Douglas E.; Dorais, Gregory A.; Fry, Chuck; Gamble, Edward B. Jr.; Kanefsky, Bob; Kurien, James; Millar, William; Muscettola, Nicola; Nayak, P. Pandurang; Pell, Barney; Rajan, Kanna; Rouquette, Nicolas; Smith, Benjamin; Williams, Brian C. (March 1998). "Design of the Remote Agent experiment for spacecraft autonomy". 1998 IEEE Aerospace Conference Proceedings. 2. pp. 259–281. doi:10.1109/AERO.1998.687914.
- ↑ 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 "Futuristic Software Demonstrated On Deep Space 1 Wins NASA Award". Jet Propulsion Laboratory. August 6, 1999. Retrieved November 19, 2026.
- ↑ 4.00 4.01 4.02 4.03 4.04 4.05 4.06 4.07 4.08 4.09 4.10 4.11 Bernard, Douglas; Dorais, Gregory; Gamble, Edward; Kanefsky, Bob; Kurien, James; Man, Guy K.; Millar, William; Muscettola, Nicola; Nayak, Pandurang; Rajan, Kanna; Rouquette, Nicolas; Smith, Benjamin; Taylor, William; Tung, Yu-Wen (September 1999). "Spacecraft Autonomy Flight Experience: The DS1 Remote Agent Experiment". AIAA Space Technology Conference & Exposition. Albuquerque, New Mexico. Paper AIAA-99-4512.
- ↑ 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 Williams, Brian C.; Ingham, Michel D.; Chung, Seung H.; Elliott, Paul H. (January 2003). "Model-based programming of intelligent embedded systems and robotic space explorers". Proceedings of the IEEE. 91 (1): 212–237. doi:10.1109/JPROC.2002.805828.
- ↑ 6.0 6.1 6.2 6.3 6.4 6.5 Havelund, Klaus; Lowry, Michael R.; Penix, John (August 2001). "Formal analysis of a space-craft controller using SPIN". IEEE Transactions on Software Engineering. 27 (8): 749–765. doi:10.1109/32.940728.
- ↑ Muscettola, Nicola (1994). "HSTS: Integrating Planning and Scheduling". In Zweben, Monte; Fox, Mark S. Intelligent Scheduling. Morgan Kaufmann. pp. 169–212. ISBN 978-1-55860-260-1. Search this book on
- ↑ 8.0 8.1 8.2 8.3 8.4 8.5 8.6 Jonsson, Ari K.; Morris, Paul H.; Muscettola, Nicola; Rajan, Kanna; Smith, Benjamin D. (April 2000). "Planning in Interplanetary Space: Theory and Practice" (PDF). Proceedings of the Fifth International Conference on Artificial Intelligence Planning Systems (AIPS 2000). pp. 177–186. Retrieved November 19, 2026.
- ↑ 9.0 9.1 Pell, Barney; Gat, Erann; Keesing, Ron; Muscettola, Nicola; Smith, Ben (August 1997). "Robust Periodic Planning and Execution for Autonomous Spacecraft". Proceedings of the Fifteenth International Joint Conference on Artificial Intelligence (IJCAI-97). pp. 1234–1239. Retrieved November 19, 2026.
- ↑ 10.0 10.1 10.2 10.3 10.4 Williams, Brian C.; Nayak, P. Pandurang (August 1996). "A Model-Based Approach to Reactive Self-Configuring Systems" (PDF). Proceedings of the Thirteenth National Conference on Artificial Intelligence (AAAI-96). pp. 971–978. Retrieved November 19, 2026.
- ↑ 11.0 11.1 11.2 11.3 11.4 11.5 11.6 Havelund, Klaus; Lowry, Michael; Park, SeungJoon; Pecheur, Charles; Penix, John; Visser, Willem; White, Jon L. (June 2000). "Formal Analysis of the Remote Agent Before and After Flight". Proceedings of the Fifth NASA Langley Formal Methods Workshop. Williamsburg, Virginia. pp. 133–144.
- ↑ Chien, Steve; Sherwood, Rob; Tran, Daniel; Cichy, Benjamin; Rabideau, Gregg; Castaño, Rebecca; Davies, Ashley; Mandl, Dan; Frye, Stuart; Trout, Bruce; Shulman, Seth; Boyer, Darrell (April 2005). "Using Autonomy Flight Software to Improve Science Return on Earth Observing One". Journal of Aerospace Computing, Information, and Communication. 2 (4): 196–216. doi:10.2514/1.12923.
This article "Remote Agent" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Remote Agent. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
