fmeca
The deterministic, offline kernel for structured FMECA (Failure Modes, Effects & Criticality Analysis).
The caller supplies observations — never scores. This kernel owns the structure and the arithmetic: a typed failure-mode / mitigation ledger over an append-only event log, a fixed evidence→score map, a locked S×P criticality matrix (swappable between a 3×3 qualitative default and the NASA GSFC-HDBK-8004 5×5), the prevent→detect→fail-fast mitigation discipline, computed residual risk, issue detection, and a readiness gate. Criticality, residual, and standing are computed by a fold over the log — never stored. No LLM, no network.
Stateless one-shot
use ;
let failure_modes = vec!;
let report = analyze.unwrap;
println!;
Long-lived sessions
For multi-turn analyses, use Engine over a StateStore (a FilesystemStore
is provided). It persists an append-only event log and replays it to compute
state, so restart survival is free:
use Arc;
use ;
let store = new;
let engine = new;
let state = engine.open_session.unwrap;
println!;
See the root README for the MCP server and the full design rationale.