Rules are the limits and preferences Staffedly applies whenever someone is put on the schedule. They are settings you can read and change, written as plain sentences.

#Who can open it
Admins, schedulers and credentialing staff can read the rules, under Schedule, then Rules. Only admins can change them.
#The rules you start with
Every organization starts with a set of defaults. must rules are never broken. prefer rules are weighed.
| Rule | Kind | Default |
|---|---|---|
| Max days in a row | must | 5 days |
| Rest between shifts | must | 10 hours between any two shifts; home and backup call excepted |
| Rest after in-house call | must | 24 hours |
| Max calls per week | must | 2 |
| Days between calls | must | 2 |
| No call around leave | must | 1 day before approved time off and 1 day after |
| Credential expiry | must | Expired credentials block; warn 60 days before |
| State license required | must | The credentials each role needs, by default a license in the site's state |
| Supervision ratio | must | Up to 4 supervised per supervisor; warns, does not block |
| Call points by day | prefer | Weekday 1, Friday 1.5, Saturday 2, Sunday 2, holiday 3 |
| Call fairness look-back | prefer | 180 days |
| Call requests per month | prefer | 4 per person |
You can also add Prefer a provider at a facility, as many times as you need. It makes the generator favor one person at one site.
The supervision rule appears only if one of your roles needs supervision; see Roles and skills.
#Change a rule
Rules live in a numbered pack. The pack in force cannot be edited. You change a copy, then switch to it.
- Click Create editable copy. A draft pack opens with the same rules.
- On a rule, click Edit…, change the value and click Save. Values outside the allowed range are refused; minimum rest, for example, is 0 to 24 hours.
- To stop applying a rule, click Discard. Accept brings it back.
- To add a rule, use Add a rule at the top. Only rule types the pack does not already have are offered.
- Click Activate pack.

Nothing changes until you activate. Then the new pack is in force and the old one is archived. The line at the top right lists every pack.

Activating does not re-check shifts already on the schedule. The new rules apply from the next save or generation.
#What happens when a rule blocks a save
A save that would break a must rule is refused, and the reason names the rule and the numbers. Nothing is saved.

The same check runs wherever a person meets a shift:
- Assigning or moving a shift on the calendar, on the live schedule or a draft.
- Generating shifts or call. A blocked person is skipped.
- Offers for open shifts. A person the rules would refuse is not offered the shift.
- Swaps, trades and pickups in the provider portal.
- Assignments proposed by the Copilot.
There is no "save anyway" for rest, days in a row or call limits. Pick someone else, or have an admin change the rule. A credential block is different: it can be overridden for one person, one site and one date, with a recorded reason, on the person's page; see Credentials.
#Learn rules from history
Learn rules from history reads your past schedules and proposes rules that match them: how many people each site runs on each weekday, days in a row, rest after call, call spread, and people who nearly always work at one site.
Each proposal shows its evidence, how often the pattern held, and a strength: strong pattern, pattern or observed only. Proposals arrive in a draft pack. Accept, Edit… or Discard each one, then activate.
Three things to know first:
- It learns only from shifts that came from QGenda or an import, and shifts a person placed or edited. Shifts the generator placed are ignored. It needs at least 10 such shifts.
- A learned pack contains only what was found. When you activate it, it replaces the pack in force, so any rule that is not in it stops applying. Add the limits you want to keep with Add a rule before you activate.
- It is part of the Pro, Agency and Enterprise plans and the free trial. Editing rules by hand is in every plan.

Fill coverage grid from rules (14 days) writes accepted weekday staffing patterns into Coverage for the next 14 days. It works only when the pack in force has such patterns.
#Questions
#Can Staffedly read rules from a contract or a pasted policy?
No. Rules are learned from schedule history or entered by hand on this screen.
#Can a rule apply to one site or one person only?
Only Prefer a provider at a facility. The limits apply to everyone. Weekly maximums for one person are set on their page; see Providers.
#Who changed a rule, and when?
Every copy, edit and activation is in the Audit log.