Bereavement leave by relationship
The rule
On the death of a family member, a person may take bereavement leave, as many days as their relationship to the person who died allows:
- five days for a spouse, domestic partner or child;
- three days for a parent, sibling, grandparent or grandchild.
The relationship is part of the request. A request of more days than the relationship allows, or for a relationship the policy does not list, is refused, saying why.
Who uses it
Employers with a bereavement policy that differs by relationship, and employers in states that require bereavement leave for listed family members.
How the recipe does it
Configuration only: a package (package.toml) of one layer and one
business rule. Bereavement leave is asked for in the bereavement
category, with the relationship as the request’s value relationship
(values = { relationship = "spouse" }; in the API, "values": {"relationship": "spouse"}).
[[layer.step]]id = "days"uses = "standard/leave_days_per_request"params = { categories = ["bereavement"], days = { spouse = 5, domestic_partner = 5, child = 5, parent = 3, sibling = 3, grandparent = 3, grandchild = 3 } }leave_days_per_request reads the request’s value value (default
relationship) and refuses a request with more days than days gives for
it; a value not listed is refused, or allowed other days where the
policy sets it. A request’s values are part of what its approval is of: a
request changed to another relationship is approved again.
Parameters
| Step | Parameter | Meaning |
|---|---|---|
leave_days_per_request | categories | The leave categories it holds. |
leave_days_per_request | value | The request’s value the days go by (default relationship). |
leave_days_per_request | days | The days for each value. |
leave_days_per_request | other | The days for a value not listed (none: refused). |
What the scenarios show
five-days-for-a-spouse: five days stand.three-days-for-a-grandparent: four days are refused.a-relationship-not-listed-is-refused: a friend, or no relationship named, is refused.a-day-for-anyone-else: withother = 1, a day for a friend stands and two days for an aunt are refused.
Legal note
Some states require bereavement leave (paid or unpaid) for a list of family members, and some count it as protected family leave; the days need not always be taken together or right away. Check the rules where you operate.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/bereavement_leave. Test it, or your own copy of it, with hourctl attend test, and publish it with hourctl attend pkg publish.
The policy package
The package’s layers, with the standard steps each one runs and their settings:
name = "bereavement_leave"version = "1.0.0"description = "Bereavement leave by relationship: five days for a spouse or child, three for a parent, sibling, grandparent or grandchild; the relationship is part of the request."
# A bereavement request names the relationship (its value relationship):# five days for a spouse, domestic partner or child, three for a parent,# sibling, grandparent or grandchild. A request of more days, or for a# relationship not listed, is refused.[[layer]]id = "bereavement"[[layer.step]]id = "days"uses = "standard/leave_days_per_request"params = { categories = ["bereavement"], days = { spouse = 5, domestic_partner = 5, child = 5, parent = 3, sibling = 3, grandparent = 3, grandchild = 3 } }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
An employer that gives a day for any other relationship (other = 1): a day for a friend stands, two are refused
description = "An employer that gives a day for any other relationship (other = 1): a day for a friend stands, two are refused"
[policy]zone = "America/New_York"
[[category]]id = "bereavement"worked = false
[[leave]]id = "b1"category = "bereavement"days = { "2026-10-05" = "8h" }recorded = "2026-10-04 09:00"values = { relationship = "friend" }
[[leave]]id = "b2"category = "bereavement"days = { "2026-10-07" = "8h", "2026-10-08" = "8h" }recorded = "2026-10-04 09:00"values = { relationship = "aunt" }
# A day for anyone not listed.[[layer]]id = "anyone"[[layer.step]]id = "days"change = "params"params = { other = 1 }
[expect.period]day = "2026-10-05"leave = ["b1 pending approval", "b2 refused: 2 days of bereavement for aunt, more than 1"]A request for a relationship the policy does not list (a friend), or naming none, is refused
description = "A request for a relationship the policy does not list (a friend), or naming none, is refused"
[policy]zone = "America/New_York"
[[category]]id = "bereavement"worked = false
[[leave]]id = "b1"category = "bereavement"days = { "2026-10-05" = "8h" }recorded = "2026-10-04 09:00"values = { relationship = "friend" }
[[leave]]id = "b2"category = "bereavement"days = { "2026-10-06" = "8h" }recorded = "2026-10-04 09:00"
[expect.period]day = "2026-10-05"leave = ["b1 refused: no bereavement for relationship friend", "b2 refused: no bereavement for no relationship"]Five days of bereavement leave on the death of a spouse stand
description = "Five days of bereavement leave on the death of a spouse stand"
[policy]zone = "America/New_York"
[[category]]id = "bereavement"worked = false
[[leave]]id = "b1"category = "bereavement"days = { "2026-10-05" = "8h", "2026-10-06" = "8h", "2026-10-07" = "8h", "2026-10-08" = "8h", "2026-10-09" = "8h" }recorded = "2026-10-04 09:00"values = { relationship = "spouse" }
[expect.period]day = "2026-10-05"leave = ["b1 pending approval"]On the death of a grandparent, three days: a request of four is refused, naming the relationship
description = "On the death of a grandparent, three days: a request of four is refused, naming the relationship"
[policy]zone = "America/New_York"
[[category]]id = "bereavement"worked = false
[[leave]]id = "b1"category = "bereavement"days = { "2026-10-05" = "8h", "2026-10-06" = "8h", "2026-10-07" = "8h", "2026-10-08" = "8h" }recorded = "2026-10-04 09:00"values = { relationship = "grandparent" }
[expect.period]day = "2026-10-05"leave = ["b1 refused: 4 days of bereavement for grandparent, more than 3"]