A Multi-Layered Heterogeneous AI-Enabled Hypergraph Framework for Continuous Quality Assurance and Reliability Driven Compliance Verification in Safety-Critical Aerospace Software
CaaFM is my MTech thesis research implementation for automated MISRA-C compliance verification over embedded C software using a Multi-Layered Compliance Hypergraph. This scaffold targets a dummy embedded avionics C module and is structured to support formal compliance modeling, graph reasoning, anomaly detection, and decision support.
The framework models compliance across five interconnected layers:
layer1_normative): Captures MISRA-C rule ontology and normative constraints.layer2_specification): Represents software requirements/specification entities and trace links.layer3_implementation): Extracts code-level structure from C sources into graph entities.layer4_verification): Encodes static checks, verification outcomes, and MISRA rule evaluations.layer5_process): Tracks lifecycle and process evidence (review, test, release, etc.).These layers are fused into a compliance hypergraph to support:
This project validates MISRA-C compliance workflows on a dummy embedded avionics C module located under data/dummy_module/.
Top-level package: caafm/
config/ - runtime configuration (rules, model, chart settings)data/ - dummy sources, generated artifacts, serialized graphs, reportssrc/ - layered modeling, hypergraph core, reasoning, temporal, GNN, pipelineontology/ - MISRA-C DCCO OWL ontology assetdashboard/ - Streamlit application and visual componentsnotebooks/ - interactive walkthroughtests/ - baseline test modulesFrom the repository root:
cd caafm
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Optional editable install:
pip install -e .
The pipeline entrypoint is scaffolded at:
src/pipeline/run_pipeline.pyRun:
python -m src.pipeline.run_pipeline
Generated outputs are expected in:
data/artifacts/data/graphs/data/reports/streamlit run dashboard/app.py
The dashboard is intended to provide:
C3 extends classic statistical process control to compliance telemetry by combining:
mu ± k*sigma over baseline windows).