Skip to content

No show

The rule

A person scheduled to work a day who does no work on it at all, and was not excused, is a no show. Excused are: approved leave on the day, a day taken off the schedule, and (where the business closes) a holiday. Leave still waiting for approval excuses nothing.

Who uses it

Every employer that schedules shifts: a no show leaves a post uncovered and usually counts heavily in attendance policies (often a full point, or more than a late arrival). Operations that run on holidays treat a holiday as an ordinary scheduled day.

How the recipe does it

Configuration only: a package (package.toml) of one layer running the standard no_show step.

[[layer]]
id = "no-show"
[[layer.step]]
id = "no-show"
uses = "standard/no_show" # holidays_off = true, the default

A company whose holidays are working days sets holidays_off = false in a layer of its own (change = "params").

no_show runs on each workday that has a scheduled shift or work. It reads the day’s schedule (ctx:day(date)): its shifts, whether an override took it off, its holidays and its leave (each request with its state). With a shift, none of those excusing it, and no work segment in ctx.segments, it raises no_show about the day (shown at the day’s start). Any work at all, however short, is a show; late and early are other rules.

Parameters

ParameterMeaning
holidays_offtrue (default): a holiday excuses the day. false: a holiday is scheduled like any day.

What the scenarios show

  • leave-a-day-off-and-a-holiday-excuse: approved vacation, an override taking the day off and Thanksgiving are excused; an empty Friday is a no show.
  • pending-leave-and-a-working-holiday: with holidays_off = false, missing Thanksgiving is a no show; vacation still pending approval is too; ten minutes of work is a show.

This is a common way companies implement no-show tracking; check the rules where you operate. Some absences are protected (sick leave, family and medical leave, jury duty) and must be recorded as leave rather than counted against anyone.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/no_show. 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:

no_show/package.toml
name = "no_show"
version = "1.0.0"
description = "An exception for a scheduled day with no work on it, unless approved leave, a day taken off or a holiday excuses it."
# A scheduled day with no work, which no day off, holiday or approved
# leave excuses, is a no show.
[[layer]]
id = "no-show"
[[layer.step]]
id = "no-show"
uses = "standard/no_show"

Scenarios

Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).

Scheduled Monday to Friday in Thanksgiving week: Monday worked; Tuesday on approved vacation; Wednesday taken off by a schedule override; Thursday is Thanksgiving; Friday nothing, the only no show. It is about the day, at its start, not about a punch
scenarios/leave-a-day-off-and-a-holiday-excuse.toml
description = "Scheduled Monday to Friday in Thanksgiving week: Monday worked; Tuesday on approved vacation; Wednesday taken off by a schedule override; Thursday is Thanksgiving; Friday nothing, the only no show. It is about the day, at its start, not about a punch"
punch = [
{ at = "2026-11-23 08:00", kind = "in" }, { at = "2026-11-23 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "vacation"
worked = false
[[holiday]]
id = "thanks"
name = "Thanksgiving"
month = 11
weekday = "thursday"
n = 4
[[shift_definition]]
id = "days"
start = "08:00"
end = "16:00"
days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[[leave]]
category = "vacation"
days = { "2026-11-24" = "8h" }
recorded = "2026-11-02 09:00"
[[approval]]
subject = "leave:lv1:2026-11-24"
stage = "approval"
decision = "approve"
recorded = "2026-11-02 09:00"
[[schedule_override]]
date = "2026-11-25"
kind = "off"
recorded = "2026-11-20 09:00"
[expect]
week = "2026-11-23"
exceptions = [{ kind = "no_show", at = "2026-11-27 00:00" }]
A plant that runs on holidays (holidays_off = false): Thanksgiving is a scheduled day like any other, so missing it is a no show. Tuesday's vacation request waits for a supervisor: leave not yet approved excuses nothing. Wednesday's few minutes of work, however short, is a show
scenarios/pending-leave-and-a-working-holiday.toml
description = "A plant that runs on holidays (holidays_off = false): Thanksgiving is a scheduled day like any other, so missing it is a no show. Tuesday's vacation request waits for a supervisor: leave not yet approved excuses nothing. Wednesday's few minutes of work, however short, is a show"
punch = [
{ at = "2026-11-23 08:00", kind = "in" }, { at = "2026-11-23 16:00", kind = "out" },
{ at = "2026-11-25 08:00", kind = "in" }, { at = "2026-11-25 08:10", kind = "out" },
{ at = "2026-11-27 08:00", kind = "in" }, { at = "2026-11-27 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
# A company whose holidays are working days: a holiday does not excuse a
# scheduled shift.
[[layer]]
id = "holidays-worked"
[[layer.step]]
id = "no-show"
change = "params"
params = { holidays_off = false }
[[category]]
id = "vacation"
worked = false
[[holiday]]
id = "thanks"
name = "Thanksgiving"
month = 11
weekday = "thursday"
n = 4
[[shift_definition]]
id = "days"
start = "08:00"
end = "16:00"
days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[[approval_rule]]
subject = "leave"
stages = ["supervisor"]
[[leave]]
category = "vacation"
days = { "2026-11-24" = "8h" }
recorded = "2026-11-02 09:00"
[expect]
week = "2026-11-23"
exceptions = [
{ kind = "no_show", at = "2026-11-24 00:00" },
{ kind = "no_show", at = "2026-11-26 00:00" },
]