This page calls FairFile's real risk-flag engine (the exact function,
detectRiskFlags(), that gates /api/generate-letter in production) against
one fixed, clearly-synthetic fact pattern, and renders whatever it returns. Nothing on this page is a real
employee, a real account, or hand-typed sample output.
A manager is about to issue a final written warning for attendance, ten days after the employee returned from FMLA medical leave, with no prior documented discussion on file.
Fetched just now from GET /api/risk-demo, which runs the scenario above through the
same engine the product uses before a letter can generate:
src/risk-flag-engine.js, and is a drafting/risk check, not
a legal review.