An explainable training-load and recovery risk engine with CSV ingestion, policy rules, reports, and deterministic batch screening.
moon check --deny-warn
moon test --deny-warn
moon run --target native cmd/mainimport {
"mhh12345678/injuryrisk/lib" @injury,
}
fn main {
let records = @injury.generate_healthy_athlete()
let policy = @injury.default_risk_policy()
match @injury.assess_latest(records, policy) {
Some(assessment) => println(@injury.assessment_text(assessment))
None => println("no valid telemetry")
}
}moon run --target native cmd/main
moon run --target native cmd/main -- --json
moon run --target native cmd/main -- --benchmoon run --target native --release cmd/benchlib/types.mbt public telemetry and rule types
lib/calendar.mbt ISO dates, ordinals, ranges, ordering
lib/load_metrics.mbt workload distribution and ACWR metrics
lib/recovery_metrics.mbt sleep, fatigue, pain, recovery scores
lib/policy.mbt configurable rule policy and decisions
lib/signals.mbt evidence-bearing risk signals
lib/assessment.mbt comprehensive assessment and action plan
lib/timeline.mbt daily risk timeline and trends
lib/cohort.mbt batch athlete screening
lib/telemetry_csv.mbt CSV ingestion and parse diagnostics
lib/reports.mbt text and CSV rendering
lib/workflow.mbt end-to-end ingest-to-report workflow
cmd/main scenario CLI
cmd/bench deterministic native benchmarkmoon run --target native --release cmd/benchMeasure-Command { moon run --target native --release cmd/bench }moon test --deny-warn
moon test --target all --deny-warn
moon test --target native --deny-warn --enable-coverage
moon coverage report -f summaryAn explainable training-load and recovery risk engine with CSV ingestion, policy rules, reports, and deterministic batch screening.