ShiftCircle

Rules admin and rules approver guide

← User guide

ShiftCircle has no separate user-administration role: the demo users are fixed. “Admin” here means the two people who look after the rules.

A rules admin edits, builds and submits a draft. A rules approver reviews it, approves it and publishes it.

How rules work

Every shift change, assignment, proposal and draft plan is checked against the published rule set. The answer is one of three:

The rules are kept as tables:

Each table row is also shown as a plain sentence. It updates as you type, and after Build and check it is the same sentence the server keeps with the row.

Rest between shifts with U-02 changed to 14 hours: the plain sentence reads "After a D8, E8, N8, A12, P12, D12 or N12 shift, an officer needs at least 14 hours off within 24 hours"

Rules admin: change a rule

  1. Open Rules and press Start a draft.
  2. Edit the table values. Answer Why is this change needed?
  3. Press Save the draft at any time.
  4. Press Build and check. The checklist “Before draft v{n} goes live” then shows:
    • whether the values are valid and the rules compile;
    • how many test scenarios passed;
    • a dry run: how many officers, in which units, get a different result under the changed rule, for example “1 officer in Unit A goes from Pass to Warn under U-02”.

    The checklist after Build and check: 6 of 6 scenarios pass, and the dry run reads "1 officer in Unit A goes from Pass to Warn under U-02"

  5. Press Submit for approval. Unsaved edits are saved and built first.

Rules approver: review and publish

  1. Open the submitted version and read its checklist and dry run.
  2. Press Approve. Then Publish makes it the rule set every check uses from now on.

You can’t approve or publish a version you created; the screen says “You created this version. Another approver must review it.” Every step is recorded in the audit log.

Who may do what

  Rules admin Rules approver Everyone else
Read the rules Yes Yes Supervisor, auditor
Start, edit, build, submit a draft Yes No No
Approve, publish No Yes (not their own) No

See docs/09-access-control.md for the full table.

What you can’t do here

Change schedules or plans. A published rule change applies to every later check, including the planner’s draft edits and the commit re-check.