Predictika · Leave Eligibility Check
Northfield Distribution Co., a fictional distributor, lets an AI agent work through leave requests. Before the agent approves one, the call goes to Predictika’s Leave Eligibility Check. It checks the leave reason, the months of employment, the hours worked, the worksite size, the weeks already used and requested, the certification, the notice given and the approval on record. Then it returns one verdict: allow, needs approval, or block. It checks that policy is applied consistently to stated facts; it never evaluates a person.
Not legal advice. Northfield Distribution Co. is fictional. The scenarios are illustrative. The rules follow the public structure of US federal family and medical leave, simplified; they are not legal advice.
This validator decides one thing: whether one leave request may be approved, given the facts about it. It is not an HR system and not legal advice, and it never evaluates a person, only whether policy was applied to the stated facts.
Within these rules the validator handles any combination of the listed facts, not just the seven scenarios on this page. It does not read the personnel file or the medical certification; those facts are taken as stated.
The validator takes facts as inputs: the leave reason, the months of employment, the hours worked in the last 12 months, the worksite headcount, the weeks already used and requested, whether the certification was received, the days of notice and the approval on record. These come from the HR system at the moment of the call. The validator never sees the personnel file, the medical certification or the person.
Two honest limits. The validator judges the facts it is given: if the hours worked are wrong, the answer follows them. And a request that never calls the validator is not checked; in this demo the agent calls it itself, and in a deployment the leave workflow makes the call.
6 scenarios in 3 groups · each group runs from the agent’s first attempt to the outcome · click one to switch
Illustrative agent statement. The validator receives the structured request below.
Proposing agent: AI agent (scripted)
Before sending, the agent must call Recorded run
What this means
General statements about leave tools, not about any named product. We rest this on public descriptions of how such tools work; anyone running a specific product will know it better than we do.
| What the validator caught | Typical tool | Predictika |
|---|---|---|
| Reading reason, tenure, hours, site size and certification together | Cannot do it HR tools collect each fact. Blocking an approval when the reason, the tenure, the hours, the site or the certification do not line up takes a rule across all of them. | Every rule is checked on every call and the verdict lists each finding. |
| Different approval levels for different exceptions | Only if someone is vigilant A workflow records that someone approved. Checking that the approver is an HR specialist for notice and long requests and the HR director for an extended entitlement has to be added. | Every rule is checked on every call and the verdict lists each finding. |
| Reporting every finding at once | Only with workarounds Many tools stop at the first missing item. A complete list for one request, with the level of approval needed, takes a rule set built to return it. | Every rule is checked on every call and the verdict lists each finding. |
| Short notice for foreseeable leave | Only if someone is vigilant Notice rules depend on whether the leave was foreseeable. A rule has to read the reason and the notice together. | Every rule is checked on every call and the verdict lists each finding. |
| Too few months of employment | Only if someone is vigilant Most tools stop at the first failing check. Returning every finding together takes a rule set designed to do that. | Every rule is checked on every call and the verdict lists each finding. |
Every rule is checked on every call, in any order the choices arrive; one problem never hides another. Blocking findings stop the leave; approval findings need a person to sign off first.
| 1 | 11 months of employment is fewer than the 12 required. |
| 2 | 1249 hours worked in the last 12 months is fewer than the 1250 required. |
| 3 | A worksite headcount of 49 is fewer than the 50 required. |
| 4 | 13 weeks in total is over the 12 week entitlement for own serious health condition. |
| 5 | The certification required for own serious health condition has not been received. |
| 6 | 20 days of notice is fewer than 30 for foreseeable leave. An HR specialist must approve it. |
| 7 | A request of 7 weeks is longer than 6 weeks. An HR specialist must approve it. |
| 8 | Military caregiver has an extended entitlement. The HR director must approve it. |
The recorded result of the validator for each scenario on this page: the request the AI agent sent, the verdict, and every finding, in the order they appear above.
The agent's request. I'm approving a 15-week military caregiver leave for this employee, starting Monday.
Verdict: Blocked.
The agent's request. I'm approving a 12-week military caregiver leave for this employee. The certification has arrived and the HR specialist has approved it.
Verdict: Needs approval.
The agent's request. I'm approving the 12-week military caregiver leave. The HR director has approved it.
Verdict: Allowed.
The agent's request. I'm approving a 4-week bonding leave for a new parent, starting in 20 days.
Verdict: Needs approval.
The agent's request. I'm approving the 4-week bonding leave. An HR specialist has approved it.
Verdict: Allowed.
The agent's request. I'm approving this leave. The employee has been here 6 months, has used 10 weeks already and is asking for 8 more, so we should just be kind.
Verdict: Blocked.
The text of the narrated walkthrough, step by step.