Predictika · Leave Eligibility Check

Before an AI agent approves a leave request, the request is checked against leave policy

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.

Scope: one leave request, judged against eligibility, entitlement and approval rulesSee everything this validator covers

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.

  • Actions — approve one leave request for one of five reasons: own serious health condition, a family member's condition, birth or adoption bonding, military exigency or military caregiver.
  • Rules — months of employment, hours worked, worksite size, weeks of entitlement, required certification, notice for foreseeable leave, long requests and extended entitlements.

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.

What the validator sees: request facts, never the personnel file or the certificationRead more

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.

The AI agentProposes approving a leave request, says why it is fine, then calls the validator before approving.
Predictika validatorReads the request facts, applies the rules, then returns one verdict.

6 scenarios in 3 groups · each group runs from the agent’s first attempt to the outcome · click one to switch

What the agent proposes

The AI agent says

Illustrative agent statement. The validator receives the structured request below.

Proposing agent: AI agent (scripted)

Before sending, the agent must call Recorded run

Predictika validator


      
Waiting for the call.

Where leave tools get it wrong

Click to expand

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 caughtTypical toolPredictika
Reading reason, tenure, hours, site size and certification togetherCannot 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 exceptionsOnly 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 onceOnly 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 leaveOnly 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 employmentOnly 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.

What this validator catches: findings from its test cases

Click to expand

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.

111 months of employment is fewer than the 12 required.
21249 hours worked in the last 12 months is fewer than the 1250 required.
3A worksite headcount of 49 is fewer than the 50 required.
413 weeks in total is over the 12 week entitlement for own serious health condition.
5The certification required for own serious health condition has not been received.
620 days of notice is fewer than 30 for foreseeable leave. An HR specialist must approve it.
7A request of 7 weeks is longer than 6 weeks. An HR specialist must approve it.
8Military caregiver has an extended entitlement. The HR director must approve it.

Scenarios and results

Click to expand

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.

1. Extended leave: A 15-week military caregiver leave

The agent's request. I'm approving a 15-week military caregiver leave for this employee, starting Monday.

Verdict: Blocked.

  • Over the weeks of entitlement. 29 weeks in total is over the 26 week entitlement for military caregiver.
  • Required certification not received. The certification required for military caregiver has not been received.
  • Long request. A request of 15 weeks is longer than 6 weeks. An HR specialist must approve it.
  • Extended entitlement. Military caregiver has an extended entitlement. The HR director must approve it.

2. Extended leave: Cut to 12 weeks, certification in, specialist approval

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.

  • Long request. A request of 12 weeks is longer than 6 weeks. An HR specialist must approve it.
  • Extended entitlement. Military caregiver has an extended entitlement. The HR director must approve it.

3. Extended leave: HR director approval on record

The agent's request. I'm approving the 12-week military caregiver leave. The HR director has approved it.

Verdict: Allowed.

  • Long request. A request of 12 weeks is longer than 6 weeks. An HR specialist must approve it.
  • Extended entitlement. Military caregiver has an extended entitlement. The HR director must approve it.

4. Notice: Bonding leave with 20 days of notice

The agent's request. I'm approving a 4-week bonding leave for a new parent, starting in 20 days.

Verdict: Needs approval.

  • Short notice for foreseeable leave. 20 days of notice is fewer than 30 for foreseeable leave. An HR specialist must approve it.

5. Notice: HR specialist approval on record

The agent's request. I'm approving the 4-week bonding leave. An HR specialist has approved it.

Verdict: Allowed.

  • Short notice for foreseeable leave. 20 days of notice is fewer than 30 for foreseeable leave. An HR specialist must approve it.

6. Several problems: One request, five blocking findings

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.

  • Too few months of employment. 6 months of employment is fewer than the 12 required.
  • Too few hours worked. 900 hours worked in the last 12 months is fewer than the 1250 required.
  • Worksite too small. A worksite headcount of 30 is fewer than the 50 required.
  • Over the weeks of entitlement. 18 weeks in total is over the 12 week entitlement for own serious health condition.
  • Required certification not received. The certification required for own serious health condition has not been received.
  • Long request. A request of 8 weeks is longer than 6 weeks. An HR specialist must approve it.

Narration transcript

Click to expand

The text of the narrated walkthrough, step by step.

  1. Welcome to a demo of Predictika's Validator. 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.
  2. I will start with the first request by the agent.
  3. The agent says. I'm approving a 15-week military caregiver leave for this employee, starting Monday.
  4. Before it goes out, the agent calls the validator.
  5. Blocked, with two findings and two approvals, all in one answer. 29 weeks in total is over the 26 week entitlement for military caregiver. The certification required for military caregiver has not been received.
  6. The validator returned two blocking findings and two approvals in one answer. A check that reads one field at a time would pass most of this; it shows only when the choices in the request are checked against each other.
  7. What this shows: for reading reason, tenure, hours, site size and certification together, a tool cannot do this.
  8. Now the agent resubmits.
  9. The corrected request. It changes the weeks requested to 12, the certification to provided and the approval on record to hr specialist.
  10. It calls the validator again.
  11. Not blocked, but held for a person.
  12. The two blocking findings are cleared; two approvals remain for a person: Long request and extended entitlement.
  13. The agent resubmits once more.
  14. The revised request. It changes the approval on record to hr director.
  15. It calls the validator once more.
  16. This time the validator clears it.
  17. Both earlier findings are cleared.
  18. Four problems caught in one call, fixed in two passes, and a clean request. That is the value of Predictika's validator: catching mistakes before the action runs. Now you can try the other scenarios yourself.