/flight-software:flightsw-gnc-verification-ground-and-autonomyfrom flight-software
Covers GNC software structure, numerical concerns, verification and validation (HIL/PIL), ground segment operations, onboard autonomy/AI appropriateness, and failure case studies. Useful for guidance, navigation, and control systems in aerospace.
Ships in flight-software. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 4 of 5 of the Flight Software reference (plugin
flight-software), covering §12–§16. Sibling skills:flightsw-architecture-languages-and-standards(§0–§3),flightsw-processors-radiation-and-real-time(§4–§7),flightsw-fdir-time-telemetry-and-updates(§8–§11),flightsw-reference(§17–§20). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: The discipline and standards are stable; flight processors and framework releases moved materially in 2025-26. See §17 →
flightsw-referencefor what is dated and what is genuinely contested.
How to read this. This is the deep treatment of flight software. It supersedes the compressed flight-software section in a robotics-software reference; spacecraft systems engineering is in a space-exploration reference, and launch physics in a rocket-science reference.
Two markers:
- [DURABLE] — the discipline, architecture, and standards. Most of this.
- [CONTESTED] — genuine disagreement.
⚠️ GOTCHA boxes mark what has actually destroyed vehicles.
The three properties that make this domain different from all other software:
- ⚠️ You cannot patch your way out. Uplink is bandwidth-limited, latency-bound, and sometimes impossible. A bug that bricks the receiver ends the mission — which is why §11 →
flightsw-fdir-time-telemetry-and-updates's update mechanism is designed before the software it updates.- ⚠️ The hardware is actively hostile. Radiation flips bits in RAM and registers with no warning and no error signal. Software must assume its own memory is corrupting underneath it (§4 →
flightsw-processors-radiation-and-real-time, §5 →flightsw-processors-radiation-and-real-time).- ⚠️ Correct-but-late is wrong. A control loop that misses its deadline has failed regardless of the answer it eventually produces. Determinism outranks throughput, and this inverts almost every instinct from server-side engineering (§6 →
flightsw-processors-radiation-and-real-time).
[DURABLE] The mathematics is in a rocket-science reference §11; this is the software practice.
The loop: sensors (IMU, star tracker, GPS) → estimation (⚠️ Kalman filter variants — EKF, UKF; and numerical conditioning matters: use square-root or UD factorization forms, because covariance matrices lose positive-definiteness in single precision) → guidance → control law → actuators.
⚠️ Model-based development is the norm here and it changes the workflow: algorithms are
developed in Simulink or equivalent, then autocoded to C (DO-331 covers this for
certification). The benefit is that the model is the specification and it is executable;
the risk is that the generated code's WCET and stack behaviour must still be analysed —
autocoding does not exempt you from §6 → flightsw-processors-radiation-and-real-time.
⚠️ Numerical hazards specific to flight:
[DURABLE] The layered campaign:
Static analysis ⚠️ multiple tools daily (Power of 10 rule 10) — Coverity,
Polyspace, CBMC, clang analyzer
Unit test with coverage requirements up to MC/DC (§3.3)
Integration component interactions on the software bus
SIL software-in-the-loop against a simulated environment
PIL / HIL ⚠️ processor- and hardware-in-the-loop — the flight code on the
flight processor
Testbed ⚠️ a full engineering-model spacecraft on the ground
Day-in-the-life realistic operational sequences end to end
Fault injection ⚠️ deliberately corrupt memory, hang devices, drop messages
⚠️ Formal methods are used here more than anywhere else in industry, because the cost of failure justifies it: SPARK/Ada for provable absence of runtime errors, model checking (⚠️ SPIN, developed by Holzmann at JPL, verified concurrency logic for several missions), abstract interpretation (Astrée), and theorem proving for critical algorithms. DO-333 provides the certification credit path.
13.3 ⚠️ The testbed is where flight software actually gets validated, and its fidelity is a mission-level risk. Discrepancies between testbed and flight configuration are a recurring source of anomalies — different EEPROM contents, different table values, different device firmware revision. Configuration control of the testbed is as important as of the flight article.
⚠️ And the irreducible gap: you cannot test in flight conditions. You cannot produce zero-g, the real radiation environment, or the real thermal-vacuum dynamics simultaneously. This is why fault injection and formal methods carry so much weight — they cover what the test campaign structurally cannot.
⚠️ Ground software is where most of the code is, and it gets a fraction of the attention.
Components: mission planning and sequence generation (⚠️ with constraint checking — the ground tool that catches an illegal command sequence is worth more than the onboard check that rejects it), command generation and uplink, telemetry processing, decommutation and archiving, monitoring and alarm display, trending and anomaly analysis, simulators, and flight dynamics.
Open source worth knowing: NASA OpenMCT (mission control visualization), COSMOS/OpenC3 (command and control), Yamcs (mission control framework), SatNOGS (ground station network). ⚠️ The commercial and institutional systems are mostly bespoke, which is exactly the reuse problem cFS solved on the flight side and nobody has fully solved on the ground side.
⚠️ Operational practice: procedures for everything, anomaly response teams and on-call rotations, the command approval chain (⚠️ two-person review for hazardous commands is standard for good reason), and long-term archiving in PDS for planetary missions.
[DURABLE] Autonomy is forced by light-time (a space-exploration reference §5.3), not chosen.
The ladder: time-tagged sequences → event-driven sequencing → onboard planning (⚠️ Remote Agent on Deep Space 1, 1999, was the first onboard planner in control of a spacecraft) → autonomous science (AEGIS selects and targets spectroscopy on the Mars rovers without ground involvement) → fully autonomous EDL.
⚠️ Onboard ML is arriving and the verification problem is unsolved. cFS's planned
2026 Gov Alpha explicitly targets AI/ML integration, and HPSC (§4 → flightsw-processors-radiation-and-real-time) provides the compute.
The engineering-honest position:
flightsw-processors-radiation-and-real-time) — an inference that occasionally
takes 3× as long has violated a deadline.[DURABLE] Each of these produced a rule that is now standard practice. This is how the discipline was built.
16.1 ⚠️ Mars Pathfinder (1997) — priority inversion, in flight, on Mars.
The lander began experiencing total system resets on the surface. Cause: a high-priority
bus management task blocked on a mutex held by a low-priority meteorological task, which
was preempted by a medium-priority communications task. The watchdog fired and reset the
system. ⚠️ The fix was uplinked: enable priority inheritance on that mutex — a flag that
existed in VxWorks and was off. The lesson: priority inheritance is not optional, and
the ability to debug and patch in flight saved the mission (§11 → flightsw-fdir-time-telemetry-and-updates).
16.2 ⚠️ Ariane 501 (1996) — reuse without re-validation. A 64-bit float horizontal-velocity value was converted to a 16-bit signed integer. The Ariane 5 trajectory produced a value that overflowed; the exception was unhandled, both (identical, redundant) inertial reference systems shut down, the backup failed first and the primary a moment later, and the vehicle self-destructed 37 seconds after liftoff. ⚠️ The computation was Ariane 4 alignment code that served no purpose after liftoff on Ariane 5. Lessons: identical redundancy does not protect against a design fault; inherited code must be re-validated against the new operating envelope; and dead code should be dead.
16.3 ⚠️ Mars Climate Orbiter (1999) — units at an interface. Ground software produced impulse in pound-force-seconds; the navigation software expected newton-seconds. Trajectory errors accumulated across the cruise and the spacecraft entered the atmosphere too low. Lesson: interfaces need explicitly specified units, and unit-typed values in code where the language permits it.
16.4 ⚠️ Mars Polar Lander (1999) — a sensor transient believed too readily. Leg-deployment vibration is believed to have generated a spurious touchdown signal; the software latched it and cut the descent engines ~40 m above the surface. ⚠️ Lesson: plausibility-check sensor inputs against other state — touchdown at 40 m altitude was physically impossible and could have been rejected.
16.5 ⚠️ Therac-25 (1985–87) — outside aerospace, and required reading anyway. Race conditions in a radiation therapy machine's software, with hardware interlocks removed in favour of software checks, caused massive overdoses and deaths. Lesson: removing hardware interlocks because "the software handles it" is a specific and recurring failure mode, and concurrency bugs are not theoretical.
16.6 ⚠️ Boeing Starliner OFT-1 (2019) — clock initialization. The mission elapsed timer initialized from the launch vehicle at the wrong point, offset by 11 hours, causing the spacecraft to burn propellant in the wrong mission phase. ⚠️ A second, separate software defect in the service module separation sequence was found and patched during the flight — which would have caused a destructive recontact. Lesson: end-to-end integrated testing of the full sequence, not subsystem-by-subsystem.
⚠️ The pattern across all of them: none was an exotic algorithmic error. They were interfaces, initialization, inherited assumptions, concurrency, and inadequate integrated testing. That is where flight software actually fails.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gnc, flight-software, verification, validation, autonomy, failure-analysis
Other plugins' skills for the same job
5 skills in this plugin
/flightsw-architecture-languages-and-standardsUse when structuring a flight software project or choosing its language: what makes flight software different from ordinary embedded work, the layered architecture pattern, the two frameworks worth knowing (cFS and F Prime) and the reusable applications around them, the language landscape, Rust's actual status in flight projects, and the coding standards (MISRA, JPL, NASA rules) and what they are really for. Includes the router for the whole flight-software reference./flightsw-fdir-time-telemetry-and-updatesUse when designing the operational behaviour of a spacecraft: fault detection, isolation and recovery including safe modes and the escalation ladder, time and clocks (onboard time, correlation, leap seconds, drift), command and telemetry design with CCSDS packets, and data handling, onboard storage and the in-flight software update path with its rollback requirements./flightsw-processors-radiation-and-real-timeUse when reasoning about the hardware the software runs on and its timing: flight processors and their performance and heritage trade-offs, radiation effects expressed in software terms (single-event upsets, latch-up, scrubbing, EDAC, watchdogs), real-time discipline including determinism, priority inversion and worst-case execution time, and RTOS choice and configuration./flightsw-referenceUse when checking whether a flight processor or framework claim is still current (verified August 2026), weighing a contested question in flight software practice, finding the books and the standards, or needing the rules that map to dead vehicles, a framework picker, and a code review checklist. Companion to the other flight-software skills.npx claudepluginhub the-vibey-project/vibey --plugin flight-software