Repository navigation
Description
Epic: #75
Target: gitgalaxy/standards/language_standards.py
Context & Strategic Value
Modern Airbus aircraft (A320, A380) utilize full-authority fly-by-wire controls. The code for these flight computers is not written manually; Airbus uses SCADE (based on the Lustre declarative language) to formally specify functional requirements, which then auto-generates DO-178C certified C code.
By mapping Lustre/SCADE directly, GitGalaxy can audit the synchronous dataflow specifications before they are translated into C, catching architectural anomalies at the source.
Implementation Tasks
-
Add
lustretoLANGUAGE_DEFINITIONS. -
Define Extensions:
.lus. -
Set
lexical_familytohybrid_dash(--for line comments,/* */for blocks). -
Implement
class_startsignature: Target thenodekeyword (the fundamental block of Lustre). -
Implement
state_mutationsignature: Targetpre(accessing previous state in synchronous dataflow) and->(initialization). -
Implement
branchsignature: Targetif,then,else,with. -
[Process check] Cross-reference the language's official spec/reference manual for this signature's full keyword vocabulary before closing -- do not rely solely on the abbreviated list above. Run the
tests/extraction/languages/test_<lang>_strict.pyharness and confirm coverage againstgitgalaxy/standards/how_to_add_a_language.md's recurring-bug-class checklist. (Implement Ada & SPARK Structural Signatures #76's SPARK refinement-aspect gap -- found only in a manual post-merge pass, fixed in f1326f6 -- is the failure mode this guards against.)
Validation
Scan European fly-by-wire or nuclear control system snippets. Ensure that the state_mutation metric correctly spikes when the pre operator accesses historical clock-cycle states.
Activity