arXiv:2610.09764cs.ROOct 2026

Manuscript Offprint

arXiv:2610.09764

AeroEval: Staged Program and Execution Validation for AI-Generated Drone Missions

Kautuk Astu, Naina Rabha, Yogesh Simmhan

Abstract

Large Language Models (LLMs) can generate drone programs from natural-language mission descriptions, but syntactically valid programs may still violate user intent, environmental constraints, and mission-level behavior. This problem is pronounced in cyber-physical applications, where correctness depends on the interaction among generated code, mobile sensing, environmental geometry, event-driven analytics, and physical execution. Existing drone code-generation systems primarily use prompt guardrails or simulator outcomes and provide limited failure localization. We present AeroEval, an agent-assisted middleware for staged validation of AI-generated drone missions. AeroEval combines deterministic program analysis with context-grounded LLM agents. It first validates program syntax, platform API usage, and mission intent, and then evaluates the realized behavior using execution trajectories, mission requirements, and environmental context. Each stage returns structured failure information for iterative regeneration. In our evaluation using 20 navigation tasks and five analytical mission types over AirSim and Gazebo simulators, AeroEval improves navigation success from 55% to 95%. In a stagewise ablation study, our Code and Trajectory Validators by themselves achieve mean run-level success rates of 44% and 56%, respectively, while the full AeroEval pipeline achieves 88%; the stages detect complementary failures in program structure, API usage, mission intent, obstacle avoidance, altitude, coverage, and event-driven transitions and the guided regeneration corrects for them. Across the main analytics missions, AeroEval increases aggregate run-level success from 34% for one-shot AeroGen to 88% within the regeneration budget. These results demonstrate the benefit of combining program-level and execution-grounded agentic validation for AI-generated drone applications in the evaluated environment.

1 Introduction

Large Language Models (LLMs) allow users to construct drone applications by specifying missions such as delivery, survey, inspection, and target tracking in natural language [4,14,31,33]. The generated programs coordinate navigation, mobile sensing, analytics, and control across drone, edge, and cloud resources. Their correctness therefore depends on more than syntactic validity. A program must use the available platform interfaces, preserve user intent, respond to sensed events, and satisfy spatio-temporal constraints imposed by the physical environment. AI-generated drone missions are consequently pervasive cyber-physical applications whose software behavior must be interpreted relative to their execution context [1, 5, 9, 35].

However, existing code generation workflows provide limited evidence that a plausible program actually realizes its requested mission. A syntactically valid program may fly directly through an obstacle, survey a region along the wrong orientation, leave part of a search region uncovered, or fail to transition from search to tracking after detecting a target. These errors depend on environmental geometry, sensing events, and realized trajectories, and may remain undetected by code-level checks. Conversely, a simulator failure alone does not identify whether the cause is an invalid API call, an intent mismatch, or

Figure

(a) Run-level success for AeroGen and AeroEval

Figure

(b) Mean run-level success of AeroEval configurations.

Figure 1: Impact and composition of staged mission validation. (a) Run-level success for one-shot AeroGen and AeroGen +AeroEval over 10 independent runs per analytical mission using o3-mini; aggregate error bars show Wilson score 95% confidence intervals. (b) Mean run-level success of the Code Validator-only, Trajectory Validator-only, and full AeroEval pipeline with a budget of up to three regenerations.

incorrect physical behavior. Hence, validating generated drone applications requires both program-level and execution-grounded evidence.

Existing cyber-physical code-generation systems provide only part of this lifecycle. Structured prompting improves generated drone code but discovers failures primarily through subsequent execution [31]. Simulation-guided generation has also been applied to autonomous-driving software, where rule-based assessments of critical traffic scenarios are returned to an LLM for code repair [19]. CLG similarly uses simulator feedback to iteratively refine drone navigation programs [33], while AeroGen combines planning, code generation, sensing, and analytics for more complex missions [4]. However, these systems do not systematically separate failures caused by program structure, platform API usage, mission interpretation, and realized physical behavior. Validation frameworks for autonomous systems combine formal specifications, simulation, digital twins, and domain-specific tests [2,25], but typically assume that the application logic and testable properties have already been authored. In contrast, an AI-generated mission is an untrusted program synthesized from an informal user specification [24,34].

We present AeroEval, an agent-assisted middleware that performs staged validation between AI-based mission generation and drone execution. Its Code Validator combines deterministic syntax and API checks with context-grounded validation of mission intent. Programs that pass this stage execute in a physics-based simulator. The Trajectory Validator then evaluates the realized behavior using the mission specification, robot and world descriptions, execution trajectory, and observed events. For navigation tasks with a reference path, AeroEval uses numerical trajectory comparison. For analytical missions without a unique reference path, a bounded validation agent evaluates properties such as obstacle avoidance, altitude, coverage, orientation, and event-driven transitions. A failed stage returns a structured diagnosis to the generator for refinement.

The key novelty of our work is the composition of program-level and execution-grounded validation within a common mission lifecycle. Figure 1 summarizes both its impact and the reason for staged validation. Under a common budget of at most three regeneration cycles, the Code and Trajectory Validators alone achieve mean run-level success rates of 44% and 56%, respectively, while their composition in the complete AeroEval workflow achieves 88%. Relative to the underlying generators, AeroEval improves navigation success over the closed-loop CLG baseline from 11/20 to 19/20 tasks, and analytical run-level success over one-shot AeroGen from 17/50 to 44/50 runs. This is because program validation detects structural, API, and intent errors, while execution-grounded validation detects violations that arise from the interaction between the generated program and its physical environment.

In this paper, we make the following key contributions:

  1. We propose a staged validation lifecycle that separates program validity, mission-intent alignment, and realized physical behavior, and returns stage-specific feedback for iterative regeneration (Sec. 3).

  2. We develop context-grounded behavioral validation for analytical missions without a unique reference trajectory. The validation agents combine mission requirements, program artifacts, robot and world descriptions, and execution observations to evaluate spatio-temporal and event-driven properties (Sec. 3.4).

  3. We evaluate AeroEval across 20 navigation tasks and five analytical mission types using two generators, two simulators and two reasoning models. The evaluation includes stagewise ablations, failure localization, limited physical-drone execution, and validation overheads (Sec. 4).

References (34)