Manuscript Offprint
arXiv:2610.09764AeroEval: Staged Program and Execution Validation for AI-Generated Drone Missions
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

(a) Run-level success for AeroGen and AeroEval

(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:
-
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).
-
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).
-
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).
2. 0.1 AI-based drone program synthesis
LLMs can translate natural-language specifications into executable programs for embodied control [14]. In the drone domain, GSCE uses structured prompts, API constraints, and examples, but detects failures primarily through subsequent execution [31]. CLG incorporates simulator observations into a refinement loop for navigation tasks, regenerating programs that violate waypoint, altitude, yaw, or geometric requirements [32,33]. AeroGen extends single-shot generation to analytical missions that compose navigation, sensing, analytics, and deployment over heterogeneous resources [4].
Simulation-guided generation has also been applied to autonomous-driving software, where generated control code is evaluated over predefined critical scenarios and rule-based assessments are returned for repair [19]. Corrective robot-code generation similarly uses physics-based execution or static text-based simulation to predict navigation failures and refine generated operations [33]. These approaches demonstrate the value of execution feedback, but organize validation around scenario outcomes or deviations from specified navigation behavior.
AeroEval instead proposes a validation lifecycle that separates deterministic syntax and API checks, context-grounded intent validation, and post-execution behavioral validation. This distinction is necessary because invalid API usage may not be observable from a trajectory, while collision, coverage, orientation, and event-transition violations may not be inferred reliably from program text. Further, AeroEval supports analytical missions with multiple valid trajectories by evaluating mission-specific spatio-temporal and event-driven properties using the mission specification, generated program, environment descriptions, and execution trace.
2. 0.2 Validation of autonomous systems
Validation and Verification of autonomous systems commonly use formal specifications, simulation, digital twins, scenario-based testing, and runtime monitoring [2, 3, 16, 25, 29]. PolyVerif treats validation of AI-enabled Cyber-Physical Systems (CPS) as an infrastructure problem requiring reusable simulators, test environments, and analysis tools [25]. Co-zyBench similarly uses co-simulation middleware and Digital Twins to evaluate context-dependent behavior before physical deployment [15]. These techniques typically assume that application logic has been authored and that the evaluated properties can be formally or procedurally specified. In contrast, an AI-generated mission is an untrusted program synthesized from an informal user specification and may misinterpret the task before controller-level properties can be examined. AeroEval instead validates program structure, platform interfaces, mission intent, and realized spatio-temporal behavior before physical execution; formal verification and runtime assurance remain complementary.
LLM-guided validation has also been used to translate natural-language driving policies into checkable specifications, analyze their consistency with autonomous-driving software, and generate simulation tests [37]. This approach validates software against explicit safety policies, whereas AeroEval localizes failures across generated program structure, mission intent, and realized behavior for navigation and analytical drone missions.
2. 0.3 Middleware for pervasive drone applications
Middleware and runtime systems support mobile applications across robots, sensors, edge devices, and cloud resources. Service-oriented Drones-as-a-Service (DaaS) systems provide abstractions for navigation, sensing, analytics, scheduling, and data management [23], while microservice-based platforms coordinate mission planning and resource allocation across multiple drones [6, 21]. Context-adaptive middleware such as Furcifer selects among local, edge, split, and cloud execution according to network and system conditions [17], while OctopInf performs workload-aware scheduling for edge video-analytics pipelines [18]. Aerial-edge systems similarly combine UAV mobility with communication and computation placement [13]. These systems optimize the execution of supplied applications, whereas AeroEval examines whether AI-generated mission logic satisfies its program-level and physical-context requirements before execution.
Drones also operate as mobile sensing and analytics platforms in context-dependent environments. Prior systems perform on-board crowd-motion analysis under changing viewpoints [1] and use drones to collect data from batteryless sensors under environment-dependent communication conditions [9]. These applications illustrate that drone behavior depends jointly on mobility, sensing, communication, computing resources, and physical context, but assume that application logic is authored and suitable for execution.
2. 0.4 Summary
Prior work has developed AI-based drone generators, validation techniques for autonomous systems, and middleware for context-aware mobile applications. However, generators provide limited failure localization, validation techniques typically assume authored application logic, and execution middleware assumes that supplied programs are suitable for execution. AeroEval connects these areas through a staged lifecycle that separates program validity, mission-intent alignment, and realized physical behavior. Its technical distinction is context-grounded validation of analytical missions without a unique reference trajectory, together with stage-specific feedback for iterative repair.
3 AeroEval Design
3.1 Architecture and Lifecycle
Figure 2 shows AeroEval operating between an AI-based mission generator and the drone execution environment. Its input is a candidate bundle containing the natural-language mission specification, generated program, platform interfaces, and robot and world descriptions. The middleware processes this bundle through Program Validation, simulated execution, and Behavioral Validation before accepting the candidate for the evaluated environment.
Program Validation checks syntax, platform API usage, and alignment with mission intent. A candidate that passes executes in a physics-based simulator, whose adapter returns a normalized execution record containing the trajectory, vehicle state, mission events, and environment interactions. Behavioral Validation evaluates this record against the spatial, temporal, and event-driven properties derived from

Figure 2: AeroEval architecture and validation lifecycle. Program Validation combines deterministic syntax and API checks with an agent-based intent check. Programs that pass execute in an external simulator, and the resulting trace is evaluated using either a reference-path comparator or a context-grounded validation agent. Failures return stage-specific diagnoses to the generator. Acceptance is scoped to the evaluated mission and environment. Dashed components and links are external or optional.
the mission specification. Thus, each stage operates over distinct evidence: program artifacts before execution and observed mission behavior after execution.
Each validator returns a record consisting of stage, outcome, violation, evidence, correction . A failed record is supplied to the generator together with the original candidate bundle. The regenerated program re-enters Program Validation because a behavioral correction may introduce a syntax, API, or intent error. The lifecycle terminates when a candidate passes both mandatory stages or exhausts the configured refinement budget, in which case AeroEval exits the feedback loop and refers the run for human intervention.
A candidate accepted by AeroEval has passed the implemented program, intent, simulator-execution, and behavioral checks for the evaluated mission and environment. This acceptance provides empirical validation evidence; it does not provide a formal guarantee of safety, liveness, adversarial robustness, or correctness under untested conditions. Physical execution remains supervised and requires the robot, platform, and environmental assumptions used during validation to remain applicable.
3.2 Agents, Context, and Tools
AeroEval combines deterministic analysis with bounded validation agents. We use the term validation agent for an LLM-based component that performs a specific validation task using structured instructions, mission context, and tool or execution observations. The agent does not autonomously modify or execute mission code. Instead, it returns a structured validation record to the upstream generator, which performs the regeneration.
The Intent Validator receives the mission specification, generated program, permitted platform APIs, and intent-validation criteria. The Context-Grounded Agent additionally receives the robot and world descriptions, executed trajectory, mission events, and behavioral criteria. The robot description captures platform constraints such as maximum flight speed and altitude, payload capacity, and battery limitations, while the world description specifies environmental constraints including obstacles, the road network, permitted flying corridors, no-fly regions, and maximum allowed height. These inputs ground validation in the user request, platform capabilities, physical environment, and observed behavior, rather than requesting an unconstrained judgment from the reasoning model. Table 1 summarizes the evidence and mechanism used to evaluate each class of mission property.
Deterministic tools complement the validation agents. The current implementation uses the Python Abstract Syntax Tree (AST) library for parsing and structural inspection [22], platform API metadata for interface checks, and a numerical comparator for navigation tasks with a reference trajectory [32]. Gazebo and AirSim provide physics-based execution [11, 27] and expose trajectories, vehicle state, and mission events through different interfaces. AeroEval adapters normalize these observations before passing them to the Trajectory Validator.
Our evaluations use o3-mini and Gemini-3.1-Pro as reasoning models for our agents [8, 20]. The default configuration uses o3-mini for both generation and validation, with distinct task instructions and evidence for each role. Supporting another programming language just requires a parser and platform-specific API metadata, but does not change the interfaces used by the validation agents.
3.3 Code Validator
The Code Validator determines whether a generated program is structurally executable, uses the available platform interfaces, and represents the requested mission before simulator resources are allocated. It contains syntactic, API, and intent checks. The first two use deterministic analysis where possible, while the Intent Validator uses a context-grounded validation agent.
The Syntactic Validator parses the generated program and identifies malformed syntax and invalid constructs that prevent execution. For the evaluated Python drone programs, it uses the AST library and lightweight structural inspection [22]. A failed check returns the parser diagnostic and source location to the generator. Syntax parsing is prior capability leveraged by AeroEval; its role is to reject invalid programs before invoking simulation or additional validation agents.
The API Validator examines calls to the drone, simulator, sensing, and analytics interfaces available on the target platform. It deterministically checks operation names and dependencies on unsupported services using program structure and platform API metadata, while an agent evaluates call ordering relative to the surrounding mission logic. These checks detect generated calls that appear plausible but refer to nonexistent operations or unsupported interfaces.
The Intent Validator evaluates whether the generated program represents the requirements in the natural-language mission specification. It extracts the required mission phases, constraints, and event-driven transitions, and examines whether the program contains corresponding logic. For example, it can identify a delivery program that omits a destination or the return-to-depot phase. However, it does not determine from program text whether the realized trajectory avoids every obstacle or provides the required spatial coverage. Such properties are evaluated after simulation (Sec. 3.4).
A candidate advances to simulated execution only after passing all three checks. Otherwise, AeroEval combines the detected violations and corrective feedback into a validation record and returns the candidate to the generator. Passing the Code Validator indicates program-level validity under the implemented checks; it does not indicate that the program realizes the required physical behavior.
3.4 Trajectory Validator
The Trajectory Validator evaluates whether a program that passes code validation realizes the required behavior in the simulated environment. AeroEval records the executed trajectory, vehicle state, mission events, and environment interactions, and then applies one of two validation modes depending on whether
Table 1: Evidence and validation mechanisms used for program-level and execution-grounded mission properties.
| Property | Evidence | Validator |
|---|---|---|
| Syntax | Program | Deterministic |
| API availability | Program, API metadata | Deterministic |
| Mission phases | Program, specification | Intent Agent |
| Reference path | Waypoints | Comparator |
| Obstacle/corridor | Trace, world context | Context Agent |
| Coverage/orientation | Trace, mission region | Context Agent |
| Event transition | Events, trace | Context Agent |
the evaluation provides a reference trajectory.
For navigation tasks, AeroEval uses a numerical Trajectory Comparator to evaluate the observed path against a reference trajectory [33]. The evaluated CLG tasks assume deterministic waypoint sequences, therefore, the observed trajectory must contain the same number of waypoints as the reference trajectory, and any mismatch is treated as a failure. For matching-length trajectories, a 2 meter (configurable) positional tolerance is applied independently to each corresponding waypoint, together with mission-specific terminal conditions. This comparator is adopted from the CLG workflow.
Analytical missions may admit multiple valid trajectories because the path can depend on the environment, sensing outcomes, and event locations that feed through DNNs or other ML models for online decisions. For these missions, AeroEval uses a Context-Grounded Agent within the Trajectory Validator. The agent receives the mission specification, generated program, executed trajectory, robot and world descriptions, observed mission events, and behavioral criteria. The executed trace is represented as an ordered list of odometry tuples . Obstacles and mission regions are described in natural language within the world-information guardrail. Using these inputs, the Trajectory Validation Agent evaluates properties such as obstacle and corridor compliance, altitude bounds, spatial coverage, camera orientation, waypoint completion, and event-driven transitions. The current implementation does not use separate geometric helpers; the agent infers these properties directly from the textual world description and execution trace.
This validation differs from reference-path comparison because it determines whether the observed behavior satisfies mission properties rather than whether the drone reproduces one expected path. For example, a survey may use different valid waypoint sequences while still covering the required region with the specified orientation and lane spacing. Similarly, the location of a transition from search to tracking may depend on when the target is detected.
Each behavioral criterion produces a pass or fail outcome, supporting execution observations, and corrective feedback. A failed candidate and its validation record return to the generator, while the regenerated candidate re-enters the lifecycle at the Code Validator. This prevents a behavioral correction from introducing an undetected syntax, API, or intent failure.
The agent output provides empirical validation, and later we evaluate its false acceptances, false rejections, repeated-trace consistency, and agreement across reasoning models in Sec. 4.2.
3.5 Optional Deployment Advisor
After a candidate passes the mandatory validation stages, an optional advisor can use resource telemetry to recommend alternative analytics placements or waypoint schedules. For example, the advisor may identify that concurrent analytical models exceed the memory available on an edge device, or that waypoint ordering can be shortened without changing mission requirements. These recommendations do not determine mission acceptance and are returned to the generator or runtime scheduler rather than applied directly.
Table 2: Summary of the experimental configurations.
| Study | Generator | Environment | Missions | Budget |
|---|---|---|---|---|
| Navigation | CLG | AirSim | 20 tasks | 15 iterations |
| Analytical | AeroGen | Gazebo | 5 types 10 runs | 15 iterations |
| Ablation | AeroGen | Gazebo | 5 types 10 runs | 3 regenerations |
| Physical | AeroGen | Tello | 3 types | supervised |
The present evaluation considers this component only as an extensibility mechanism under constructed resource contention. The principal contribution and evaluation of AeroEval concern program-level and execution-grounded mission validation.
4 Evaluation
We evaluate AeroEval along four dimensions: (i) whether its validation stages identify complementary failure classes, (ii) whether the agent-based validators provide consistent decisions, (iii) whether the complete lifecycle improves mission success, and (iv) whether its latency and model costs remain practical. We use navigation missions with reference trajectories and analytical missions whose valid behavior depends on sensing, environmental context, and event-driven transitions.
4.1 Methodology
4.1.1 Workloads
We evaluate two mission families with different behavioral requirements. The navigation family contains 20 tasks from CLG, including waypoint traversal, altitude control, yaw control, and geometric flight patterns [33]. These tasks have reference trajectories and are executed using AirSim. The analytical family contains five mission types from AeroGen [4]: multi-destination delivery, farm survey, cable inspection, radio-tower inspection, and search and track [7, 12, 28, 30, 36]. These missions combine navigation with sensing, analytics, spatial coverage, and event-driven behavior, and are executed using Gazebo.
Each analytical mission type is evaluated using 10 independent runs. The main reliability experiment permits at most 15 refinement iterations per run. A run that does not produce an accepted candidate within this budget terminates and is referred for human intervention. To control the cost of the stagewise comparison, all ablation configurations instead use one initial candidate and at most three regeneration cycles per run.
4.1.2 Experimental environment
The analytical experiments execute on a workstation with an NVIDIA RTX 3090 GPU with 24GB VRAM and 124GB RAM. We use Gazebo Ignition Fortress [11] with a PX4-based quadrotor in a custom environment containing roads, buildings, farms, and radio towers. Analytical services include YOLOv8-based object detection [26], ORB-based tower detection, and PID-based tracking, and execute in isolated containers. The navigation experiments use CLG and AirSim [27] on the same workstation.
The default reasoning model is o3-mini for both generation and agent-based validation. Generation and validation use distinct instructions and evidence, but may retain correlated model errors. We additionally evaluate Gemini-3.1-Pro to study sensitivity to the reasoning model. The prompts and reasoning configuration remain fixed across independent runs. The reasoning models do not expose temperature or conventional sampling controls for the evaluated configuration, and we use the default medium reasoning setting. One obstacle parameter in the world description varies across runs and is appended near the end of the input context; the remaining prompt and mission guardrails are unchanged.

(a) Stagewise ablation.

Intent: FP=6/12, FN=0/3 Trajectory: FP=3/12, FN=0/3
(b) Validator dependability.
Figure 3: Contribution and dependability of the validation stages. Panel (a) reports mean across five analytical mission types, with 10 independent runs per mission and a common limit of three regeneration cycles for each configuration. Panel (b) reports expert agreement, repeated-trace consistency, and cross-model agreement for the Intent and Trajectory Validator; false-accept and false-reject counts are shown below the panel.
4.1.3 Metrics
We distinguish pipeline convergence from the quality of individual generated candidates. The run-level success rate, , is the fraction of independent runs that produce a candidate accepted by both mandatory validation stages within the configured refinement budget:
The candidate-level success rate, , is the fraction of individual generated programs accepted by both stages:
The former measures whether the iterative lifecycle eventually succeeds, while the latter characterizes the quality of individual generated programs. For converged runs, we also report iterations-to-success, end-to-end latency, and token usage. We define an iteration as one code-generation event within an independent run. The initial candidate is counted as iteration 1. Thus, a budget of three regenerations permits up to four iterations per run. We report 95% confidence intervals for using the Wilson score interval for a binomial proportion.
The stagewise ablation evaluates the Code Validator-only, Trajectory Validator-only, and complete AeroEval configurations using independent initial generations. Each configuration uses 10 independent runs for each of the five analytical mission types, with a common budget of at most three regeneration cycles per run. The experiment therefore compares configuration-level outcomes over repeated runs rather than paired outcomes for identical initial candidates.
4.2 Stage Complementarity and Validator Dependability
4.2.1 Program-level and execution-grounded validation address complementary failure classes
Figure 3a reports the stagewise ablation over five analytical mission types, with 10 independent runs per mission and a common budget of at most three regeneration cycles. The Code Validator-only and Trajectory Validator-only configurations achieve mean run-level success rates of 44%, (95% CI: 0.31–0.58) and 56%, (95% CI: 0.42–0.69), respectively, while the complete configuration achieves 88% (95% CI: 0.76–0.94). Thus, the complete configuration improves success by 44 percentage points over Code Validator-only and 32 percentage points over Trajectory Validator-only validation.
The three configurations use independently generated initial candidates rather than identical candidates shared across configurations. Consequently, the experiment compares configuration-level outcomes over repeated runs rather than paired outcomes for the same initial generation.
Without the Trajectory Validator, code-valid programs frequently violate physical mission requirements. Delivery programs take a direct path and collide with a building in 8/10 runs, Farm Survey begins from the +y edge rather than the required +x edge in 10/10 runs, and Radio Tower Inspection violates altitude or lane-spacing coverage requirements in 10/10 runs. These failures survive program-level checks because they depend on the realized trajectory and its interaction with the environment.
Without the Code Validator, Farm Survey has one false acceptance by the Trajectory Validator and reaches the refinement limit in 3/10 runs. Radio Tower Inspection uses insufficient altitude or excessive lane spacing in 8/10 runs, resulting in incomplete coverage. Search and Track contains invalid API usage in 4/10 runs and unnecessary yaw operations in 2/10 runs. These failure categories are non-exclusive, and a single run may exhibit more than one failure mode.
These observations explain the composition gain. Program validation removes structural, interface, and intent failures before simulation, while trajectory validation detects spatial and event-driven violations that become observable only during execution.
4.2.2 Many code-valid candidates subsequently fail behavioral validation
Across the analytical missions, 12 Delivery, 27 Farm Survey, and 64 Radio Tower Inspection candidates pass the Code Validator but fail the Trajectory Validator. These outcomes are not false acceptances by the Code Validator because the two stages evaluate different properties. Instead, they quantify candidates whose syntax, API usage, and apparent intent alignment pass program-level validation, but whose realized behavior violates the mission requirements.
This distinction further explains the stagewise composition gain. Program validation rejects structural, interface, and intent failures before simulation, while behavioral validation detects violations that depend on trajectories, environmental geometry, spatial coverage, and mission events. Cable Inspection and Search and Track have no observed code-pass/behavior-fail candidates in the current results. The counts are computed per candidate and may include overlapping behavioral failure categories.
4.2.3 The Trajectory Validator provides empirical rather than formal validation evidence
Against the current 15 expert-labelled outcomes, comprising 12 expert-rejected and 3 expert-accepted cases, it produces three false acceptances and no false rejections, corresponding to a false-accept rate of and a false-reject rate of . Each trace is evaluated three times independently with o3-mini using the identical validator input; fourteen of the 15 traces receive the same pass/fail label in all three o3-mini repetitions, yielding all-run consistency. We additionally evaluate each trace once with Gemini-3.1-Pro. The o3-mini and Gemini-3.1-Pro show 87% raw cross-model agreement. Given the small and imbalanced expert-labeled set, we report raw cross-model agreement rather than interpreting a chance-corrected coefficient.
The 25% false-accept rate confirms that the Context-Grounded Agent cannot serve as a standalone assurance mechanism. AeroEval instead combines execution-grounded agent decisions with deterministic checks, structured mission context, iterative repair, and human intervention for non-converged runs.
4.3 End-to-End Mission Reliability
4.3.1 AeroEval improves convergence for navigation tasks that already use simulator feedback
Native CLG completes 11/20 navigation tasks, for a success rate of 55%, while CLG +AeroEval (AE) completes 19/20 tasks, for a success rate of 95% (Fig. 4a). AeroEval successfully completes the nine tasks that fail under native CLG. However, one task that succeeds under CLG does not converge under CLG +AeroEval, resulting in a net gain of eight completed tasks.

(a) Navigation-task outcomes.

(b) Analytical-mission run-level success.
Figure 4: End-to-end mission reliability using o3-mini. Panel (a) compares native CLG with CLG +AeroEval (AE) over 20 navigation tasks. Panel (b) reports for five analytical mission types over 10 independent runs per mission; error bars show 95% confidence intervals.
The remaining AeroEval failure is Task 20, for which the generator does not produce a program that both reaches the target altitude and maintains the required yaw while traversing the square trajectory within the 15-iteration budget. Successful tasks require a mean of 3.3 iterations with AeroEval compared with 2.1 iterations for native CLG. Thus, staged diagnosis increases refinement effort but converts most previously unsuccessful tasks into accepted missions.
4.3.2 AeroEval improves run-level reliability across the analytical missions
Figure 4b reports for 10 independent runs of each analytical mission using o3-mini. AeroGen completes 2/10 Delivery, 1/10 Farm Survey, 9/10 Cable Inspection, 0/10 Radio Tower Inspection, and 5/10 Search and Track runs. AeroEval increases these outcomes to 10/10, 8/10, 10/10, 6/10, and 10/10, respectively. Aggregated across the five mission types, AeroGen completes 17/50 runs (34%), while AeroEval completes 44/50 runs (88%), an increase of 54 percentage points.
The Wilson score 95% confidence interval is [0.22, 0.48] for AeroGen and [0.76, 0.94] for AeroEval. Per-mission intervals remain wide because each estimate uses 10 runs; therefore, we report raw counts together with the intervals in Fig. 4b.
Radio Tower Inspection has the lowest AeroEval success because it combines search-region coverage, altitude and lane-spacing constraints, target detection, inspection, and resumption of the search pattern. In contrast, Cable Inspection has a more constrained analytical and navigation workflow. Across the analytical missions, the number of iterations ranges from 1 to 15, with Radio Tower Inspection requiring the highest mean refinement count of 12.8 iterations across its 10 independent runs.
4.3.3 Candidate-level acceptance is distinct from run-level reliability
Across the candidates generated during the AeroEval refinement runs, AeroGen produces 13/60 accepted Delivery, 9/75 Farm Survey, 10/11 Cable Inspection, 6/128 Radio Tower Inspection, and 10/19 Search and Track candidates. Aggregated across these mission types, 48/293 candidates (16.4%) satisfy the complete mission-level acceptance criteria.
These denominators vary because difficult missions require more refinement iterations and therefore produce more candidates. characterizes the individual generated programs observed during refinement, whereas measures whether an independent mission request eventually produces an accepted program within the configured budget. Candidate outcomes within the same run are not independent; therefore, we use as a descriptive lifecycle statistic rather than a run-level reliability estimate. AeroEval accepts 44/293 candidates, giving .

(a) Aggregate phase-transition flow of analytical missions through the AeroEval lifecycle with o3-mini

(b) Real-world trajectories.

(c) Real-world farm survey
Figure 5: Failure localization and physical applicability of AeroEval. Panel (a) shows measured transitions of generated analytical candidates through the validation lifecycle using o3-mini; backward flows indicate regeneration and DNF denotes runs that do not converge within the refinement budget. Panel (b) shows representative simulated and physical trajectories for missions accepted by AeroEval and executed on a DJI Ryze Tello under expert supervision.
4.4 Failure Localization and Physical Applicability
4.4.1 Program-level validity does not imply correct mission behavior
Figure 5(a) shows the measured progression of analytical candidates through the AeroEval lifecycle. Across the evaluated candidates, 51.5% (151/293) pass syntax, API, and intent validation, while only 16.4% (48/293) pass the complete lifecycle. Thus, 103/293 candidates appear valid at the program level but subsequently fail during execution or behavioral validation.
Late-stage failures arise primarily from interactions with the physical and mission context. These include obstacle and corridor violations, incorrect altitude or orientation, incomplete spatial coverage, and missing event-driven transitions. The Sankey also shows the backward flows caused by stage-specific diagnosis and regeneration, and the terminal flow for runs that do not converge. This measured attrition is the illusion of correctness: a generated program may be syntactically valid and appear consistent with the mission, yet fail to realize the required behavior in the evaluated environment.
4.4.2 Accepted programs execute on the evaluated physical platform under supervision
We additionally execute Virtual Drone Delivery, Farm Survey, and Search and Track using a DJI Ryze Tello with one physical run per mission. Experiments are conducted in an open circular field of approximately 50 m radius. All three mission run succeed. The drone visits the designated waypoints for Delivery and Farm Survey, and detects and follows the designated person wearing a high-visibility vest for Search and Track. Each program first passes the mandatory AeroEval stages in simulation and is then reviewed by a domain expert before physical execution. No manual intervention is required during execution beyond experimental setup and teardown. Owing to the Tello's limited battery life, trajectory extents and travel distances are scaled down for the physical runs, the mission logic and validation
Table 3: Practicality and model sensitivity for analytical missions. Values summarize the five mission types over converged runs.
| Model | Validation latency | Cached input | Cost/iteration | |
|---|---|---|---|---|
| o3-mini | 44/50 (88%) | 49–585 s | ≈ 83% | ≈ $0.03 |
| Gemini-3.1-Pro | 47/50 (94%) | 7–1499 s | ≈ 85% | ≈$0.07–0.14 |

Figure 6: Median end-to-end latency composition for one refinement iteration across the analytical missions using o3-mini. Labels report the total median duration, while segments show the contributions of code generation, Code Validation, simulated execution, and Trajectory Validation.
methodology remain unchanged from the simulation-accepted version. Figure 5(b–c) shows the physical trajectories and Farm Survey execution.
The physical experiments provide evidence that accepted programs can transfer to the evaluated drone and environments. However, the experiments use one drone platform and a limited set of mission and environment conditions. They therefore do not establish general sim-to-real transfer or safety across other vehicles and operating contexts.
4.5 Practicality and Model Sensitivity
4.5.1 Validation overhead is smaller than the end-to-end generation and simulation cost for most missions.
Excluding simulation, the median time for one analytical refinement iteration using o3-mini ranges from 49 to 585 s across the five mission types (Table 3). Including simulation, the end-to-end duration of a converged run ranges from approximately 115 s for Search and Track to 2.4 h for Radio Tower Inspection. Across the five missions, the maximum observed latency contribution of the Code Validator and Trajectory Validator is 30% and 25%, respectively; the remaining latency is dominated by code generation and simulated execution.
Figure 6 decomposes the median end-to-end latency of an analytical refinement iteration, excluding simulation time, into code generation, Code Validation, simulated execution, and Trajectory Validation. Simulation accounts for the largest share in long-running spatial missions, whereas code generation contributes more heavily to missions requiring complex reasoning and repair. Across the evaluated missions, the Trajectory Validator remains smaller than code generation or simulation, while the Code and Trajectory Validators contribute at most 30% and 25% of end-to-end latency, respectively. Thus, the additional validation stages are measurable but are not the dominant latency component for most missions.
Token use is dominated by repeated contextual input rather than newly generated output. Across 50 runs of the five analytical missions, o3-mini consumes 8.51M input tokens, 0.47M output tokens, and 1.60M reasoning tokens. Of the input tokens, 7.06M are served from the model cache, corresponding to approximately 83% of the input context. Caching therefore reduces the effective cost of repeatedly supplying mission specifications, platform APIs, world descriptions, and validation instructions, yielding an average cost of approximately $0.03 per analytical refinement iteration. Costs are calculated using the standard OpenAI API prices in effect on June 6, 2026.
4.5.2 The reliability benefit persists across the two evaluated reasoning models
Using Gemini-3.1-Pro, AeroGen succeeds in 21/50 independent runs (42%), while AeroEval succeeds in 47/50 runs (94%), an increase of 52 percentage points. The corresponding Wilson score 95% CIs are [0.29, 0.56] and [0.84, 0.98], respectively. AeroEval succeeds in 44/50 runs (88%) using o3-mini and 47/50 runs (94%) using Gemini-3.1-Pro. Since the AeroEval confidence intervals overlap, the results do not establish that one model is more reliable; instead, they show that staged validation improves run-level success with both evaluated model families. The corresponding latency, token-use, and effective-cost comparison is reported in Table 3.
4.5.3 Optional deployment advice
After mandatory validation, an optional advisor uses resource telemetry to recommend alternative analytics placements or waypoint schedules [10]. Its recommendations do not determine mission acceptance and are evaluated only as an extensibility mechanism under constructed resource contention.
4.5.4 Summary
The evaluation shows that program and behavioral validation detect complementary failures, improve end-to-end mission convergence, and localize failures that survive code-level checks. The physical experiments provide scoped evidence of applicability on one supervised drone platform, while the overhead results show that validation cost is mission and model dependent. These findings apply to the evaluated missions, models, simulators, and physical environments rather than constituting a general assurance guarantee.
5 Conclusion and Future Works
We presented AeroEval, an agent-assisted middleware that combines program-level and execution-grounded validation for AI-generated drone missions. AeroEval separates syntax, API, and intent checks from post-simulation behavioral validation, and returns stage-specific diagnoses for iterative regeneration. For analytical missions without a reference trajectory, its Context-Grounded Agent evaluates spatio-temporal and event-driven properties using the mission specification, program, environment description, and execution observations.
Across 20 navigation tasks, AeroEval increases success from 11/20 (55%) to 19/20 tasks (95%). Across five analytical mission types, it increases aggregate run-level success from 17/50 (34%) for one-shot AeroGen to 44/50 (88%) using o3-mini. The stagewise ablation explains this improvement: Code Validator-only and Trajectory Validator-only configurations achieve mean run-level success rates of 44% and 56%, respectively, while their composition achieves 88%. This is because program validation detects structural, API, and intent failures, whereas behavioral validation detects violations involving obstacles, altitude, coverage, orientation, and mission transitions. The measured lifecycle further shows that code-valid candidates may remain behaviorally invalid. Supervised executions of three mission types on a physical drone provide limited evidence that accepted programs can transfer to the evaluated platform and environments.
AeroEval provides empirical validation evidence rather than formal guarantees of safety, liveness, or adversarial robustness. The current evaluation is limited to two generators, two simulators, two reasoning models, five analytical mission types, and one physical drone platform. Moreover, using the same model for generation and validation may produce correlated errors. Future work will examine broader mission and hardware conditions, cross-model validation, adversarial specifications, and online monitoring that re-validates mission behavior as the execution context changes.
Acknowledgment
Generative AI tools were solely used to refine the clarity of author-written text in the paper. No new technical content, data or figures were generated. All such edits were carefully reviewed and verified by the authors.
References
[1] Khizar Anjum, Tahmeed Chowdhury, Sreeram Mandava, Benedetto Piccoli, and Dario Pompili. Leveraging on-board UAV motion estimation for lightweight macroscopic crowd identification. In Proceedings of the 22nd IEEE International Conference on Pervasive Computing and Communications, pages 11–17, 2024.
[2] Hugo Araujo, Mohammad Reza Mousavi, and Mahsa Varshosaz. Testing, validation, and verification of robotic and autonomous systems: A systematic review. ACM Transactions on Software Engineering and Methodology, 32(2), March 2023.
[3] T. Aslandere and U. Durak. A survey of validation and verification methods for AI-based vehicle functions. SAE International Journal of Connected and Automated Vehicles, 8(4):477–491, 2025.
[4] Kautuk Astu and Yogesh Simmhan. Aerogen: Agentic drone autonomy through single-shot structured prompting & drone sdk. In International Conference on Service-Oriented Computing, (IC-SOC), 2026. (To Appear).
[5] Favyen Bastani, Songtao He, Ziwen Jiang, Osbert Bastani, and Sam Madden. Skyquery: an aerial drone video sensing platform. In Proceedings of the 2021 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, 2021.
[6] Juan A. Besada, Ana M. Bernardos, Luca Bergesio, Diego Vaquero, Iván Campaña, and José R. Casar. Drones-as-a-service: A management architecture to provide mission planning, resource brokerage and operation support for fleets of drones. In 2019 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops), pages 931–936, 2019.
[7] Hui Cheng, Lishan Lin, Zhuoqi Zheng, Yuwei Guan, and Zhongchang Liu. An autonomous vision-based target tracking system for rotorcraft unmanned aerial vehicles. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1732–1738, 2017.
[8] Google Deepmind. Gemini 3.1 pro. https://deepmind.google/models/model-cards/gemini-3-1-pro/, 2026.
[9] Lucan De Groot, Talia Xu, and Marco Antonio Zúñiga Zamalloa. DroneVLC: Exploiting drones and VLC to gather data from batteryless sensors. In Proceedings of the 21st IEEE International Conference on Pervasive Computing and Communications, pages 242–251, 2023.
[10] Aakash Khochare, Francesco Betti Sorbelli, Yogesh Simmhan, and Sajal K. Das. Improved algorithms for co-scheduling of edge analytics and routes for uav fleet missions. IEEE/ACM Transactions on Networking, 32(1):17–33, February 2024.
[11] N. Koenig and A. Howard. Design and use paradigms for gazebo, an open-source multi-robot simulator. In 2004 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) (IEEE Cat. No.04CH37566), volume 3, pages 2149–2154 vol.3, 2004.
[12] JiHyun Kwon, Yi-Ying Chen, GaHyun Lee, Chung-Wei Lin, and BaekGyu Kim. Landing-aware multi-drone routing in last-mile delivery services. In 2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 6380–6387, 2025.
[13] Bin Li, Yufeng Liu, Ling Tan, Heng Pan, and Yan Zhang. Digital twin assisted task offloading for aerial edge computing and networks. IEEE Transactions on Vehicular Technology, 71(10):10863–10877, 2022.
[14] Jacky Liang, Wenlong Huang, Fei Xia, Peng Xu, Karol Hausman, Brian Ichter, Pete Florence, and Andy Zeng. Code as policies: Language model programs for embodied control. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pages 9493–9500, 2023.
[15] Jun Ma, Dimitrije Panic, Roberto Yus, and Georgios Bouloukakis. Co-zybench: Using co-simulation and digital twins to benchmark thermal comfort provision in smart buildings. In 2024 IEEE International Conference on Pervasive Computing and Communications (PerCom), pages 25–35, 2024.
[16] Santiago Matalonga, Julie Black, and James Riordan. Verification and validation for a digital twin for augmenting current SORA practices with air-to-air collision hazards prediction from small uncooperative flying objects. Journal of Intelligent & Robotic Systems, 110:109, 2024.
[17] Matteo Mendula, Paolo Bellavista, Marco Levorato, and Sharon Ladron de Guevara Contreras. Furcifer: A context adaptive middleware for real-world object detection exploiting local, edge, and split computing in the cloud continuum. In Proceedings of the 22nd IEEE International Conference on Pervasive Computing and Communications, pages 47–56, 2024.
[18] Thanh-Tung Nguyen, Lucas Liebe, Nhat-Quang Tau, Yuheng Wu, Jinghan Cheng, and Dongman Lee. OctopInf: Workload-aware inference serving for edge video analytics. In 23rd IEEE International Conference on Pervasive Computing and Communications, pages 128–137, 2025.
[19] Ali Nouri, Johan Andersson, Kailash De Jesus Hornig, Zhennan Fei, Emil Knabe, Håkan Sivencrona, Beatriz Cabrero-Daniel, and Christian Berger. On simulation-guided LLM-based code generation for safe autonomous driving software. In 29th International Conference on Evaluation and Assessment in Software Engineering. ACM, 2025.
[20] OpenAI. Openai gpt o3-mini. https://openai.com/index/openai-o3-mini/, 2025.
[21] Nuno Paula, Bruno Areias, André Braga Reis, and Susana Sargento. Multi-drone control with autonomous mission support. In 2019 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops), pages 918–923, 2019.
[22] Python Software Foundation. ast — abstract syntax trees. https://docs.python.org/3/library/ast.html, 2026.
[23] Suman Raj, Rajdeep Singh, Kautuk Astu, and Yogesh Simmhan. Aerodaas: Towards an application programming framework for drones-as-a-service. In 2025 IEEE International Conference on Web Services (ICWS), pages 545–551, 2025.
[24] Zachary Ravichandran, Varun Murali, Mariliza Tzes, George J. Pappas, and Vijay Kumar. Spine: Online semantic planning for missions with incomplete natural language specifications in unstructured environments. In 2025 IEEE International Conference on Robotics and Automation (ICRA), pages 13714–13721, 2025.
[25] Rahul Razdan, Mustafa Ilhan Akbaş, Raivo Sell, Mauro Bellone, Mahesh Menase, and Mohsen Malayjerdi. Polyverif: An open-source environment for autonomous vehicle validation and verification research acceleration. IEEE Access, 11:28343–28354, 2023.
[26] Varghese Rejin and M. Sambath. Yolov8: A novel object detection algorithm with enhanced performance and robustness. 2024 International Conference on Advances in Data Engineering and Intelligent Computing Systems (ADICS), pages 1–6, 04 2024.
[27] Shital Shah, Debadeepta Dey, Chris Lovett, and Ashish Kapoor. Airsim: High-fidelity visual and physical simulation for autonomous vehicles. In Marco Hutter and Roland Siegwart, editors, Field and Service Robotics, pages 621–635, Cham, 2018. Springer International Publishing.
[28] Giuseppe Silano, Tomas Baca, Robert Penicka, Davide Liuzza, and Martin Saska. Power line inspection tasks with multi-aerial robot systems via signal temporal logic specifications. IEEE Robotics and Automation Letters, 6(2):4169–4176, 2021.
[29] Christoph Torens and Florian Michael Adolf. Automated verification and validation of an onboard mission planning and execution system for UAVs. In AIAA Infotech@Aerospace Conference. American Institute of Aeronautics and Astronautics, 2013.
[30] Francesco Toscano, Costanza Fiorentino, Nicola Capece, Ugo Erra, Danilo Travascia, Antonio Scopa, Marios Drosos, and Paola D'Antonio. Unmanned aerial vehicle for precision agriculture: A review. IEEE Access, 12:69188–69205, 2024.
[31] Wenhao Wang, Yanyan Li, Long Jiao, and Jiawei Yuan. Gsce: a prompt framework with enhanced reasoning for reliable llm-driven drone control. In 2025 International Conference on Unmanned Aircraft Systems (ICUAS), pages 441–448, 2025.
[32] Wenhao Wang, Yanyan Li, Long Jiao, and Jiawei Yuan. Large language model-driven closed-loop uav operation with semantic observations. IEEE Internet of Things Journal, 13(7):14465–14476, 2026.
[33] Wenhao Wang, Yi Rong, Yanyan Li2, Long Jiao1, and Jiawei Yuan. Llm-driven corrective robot operation code generation with static text-based simulation. In IEEE International Conference on Robotics and Automation (ICRA), 2026.
[34] Ziming Wang, Qingchen Liu, Jiahu Qin, and Man Li. Ensuring safety in llm-driven robotics: A cross-layer sequence supervision mechanism. In 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 9620–9627, 2024.
[35] Chaocan Xiang, Yanlin Zhou, Haipeng Dai, Yuben Qu, Suining He, Chao Chen, and Panlong Yang. Reusing delivery drones for urban crowdsensing. IEEE Transactions on Mobile Computing, 22(5):2972–2988, 2023.
[36] Jiaxu Xing, Giovanni Cioffi, Javier Hidalgo-Carrió, and Davide Scaramuzza. Autonomous power line inspection with drones via perception-aware mpc. In 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1086–1093, 2023.
[37] Qingzhao Zhang and Z. Morley Mao. Towards llm-guided semantic validation of autonomous driving safety policies. In 3rd International Workshop on Large Language Models For Code, LLM4Code '26, page 121–125, New York, NY, USA, 2026.