AIAG-VDA FMEA 4th Edition (2019) · ISO 13485 · 21 CFR 820

Foremode

See the failure before it ships — an AIAG-VDA 2019 pFMEA generator.

Turn a plain-YAML process description into a complete, auditable Process FMEA — exported to Excel, Word, and PDF from a single source of truth. Action Priority and every summary metric are computed, never hand-entered.

How it works

One engine, many scenarios. Edit YAML — no Python required.

scenario.yamlscope · failures · S/O/D · actions
foremode.pycomputes Action Priority
+ summary metrics
📊 Excel workbook (7 steps)
📝 Word (.docx)
📄 PDF
🩺 ISO 14971 bridge (--iso14971)

Why it's different

What every commercial and AI competitor is missing.

Free & open

No $1.2k–$10k/seat licenses. MIT-licensed, runs offline, no account.

Auditable, not black-box

AP is one readable function — reproducible for any FDA/notified-body auditor. AI tools can't answer "why this score?"

Excel + Word + PDF

One command, three formats. Competitors ship Excel only.

ISO 14971 bridge

Maps pFMEA → Hazard / Harm / P1 / P2. The gap no tool fills: AIAG-VDA and medical risk.

Git-diffable

YAML scenarios + a changelog command = auditable revision history for AIAG-VDA Step 7.

Self-consistent

Metrics computed from the same AP call that fills the risk sheet — they can't drift.

Samples at a glance

Three medical-device manufacturing scenarios. Action Priority shown is exactly what the engine computes.

AP: H High   M Medium   L Low
① CNC Femoral StemTi-6Al-4V machining · Class III PMA
Failure modeSODAP
OD out of tolerance843L
Surface roughness Ra>0.8µm932M
Fixture slip mid-cycle734L
Coolant pressure drop935M
Wrong program revision823L
CMM step skipped747H
Output: pfmea_aiag_vda_2019.xlsx · docx · pdf
② PEEK Spinal CageInjection molding · Class II 510(k)
Failure modeSODAP
Flash / fin at parting line643L
Footprint / height OOS845M
Wrong PEEK grade loaded937H
Short shot / incomplete fill732L
Gate vestige >0.3mm744M
Endplate texture OOS857H
Output: pfmea_spinal_peek_cage.xlsx · docx · pdf
③ Sterile PackagingTyvek-film heat seal · ISO 11607-1
Failure modeSODAP
Channel seal defect946H
Pinhole / micro-leak1028H
Seal temp out of range845M
Incorrect dwell time833L
UDI label mismatch824L
Breach during EtO/transit935M
Output: pfmea_sterile_packaging.xlsx · docx · pdf

Quick start

From clone to a three-format pFMEA in four lines.

git clone https://github.com/LSaiko/foremode.git && cd foremode
pip install -r requirements.txt

python foremode.py list                                          # see scenarios
python foremode.py generate sterile_packaging --format all --iso14971
# -> pfmea_sterile_packaging.xlsx / .docx / .pdf  (+ ISO 14971 bridge sheet)

python foremode.py changelog --from old.yaml --to scenarios/cnc_femoral_stem.yaml