Shift scheduling
A roster calendar that shows shift planners what starts on each local date.
One rule of a roster app, with the reason for it written down beside it. A shift that starts Monday at 22:00 belongs to Monday, because that is what the night crew calls it. The notes that say so are entries in the model, linked to the requirement and the operation they explain, so whoever builds or reviews that operation gets them with it.
- Who
- Shift planner
- Rules
- 1
What must hold
The rules of this model, in its own words, and the step that keeps each one.
Requirements traceability
1 / 1 satisfied (100%)- OVERNIGHT-DATEGroup overnight shifts under their start date in the shift site's local time — from [scheduling#Record:ContextNote[OvernightShift]]✓ Operation:ListShiftsForDate
Use it with your agent
Connect AIM to the agent you already use, then ask it to start your own version:
Read the AIM context "Shift scheduling" at https://intentmodel.org/registry/reference/scheduling/ and start our own version of it for our team.
Browse the model
Shift scheduling
Facets by type
File
AGENTS.md
Agents
Read the repository's ../../specification.md first. This example is one of the whole models the specification shows in §2. The .aim files under aim/ are the authority.
software
Shift scheduling
Summary
A roster calendar that shows shift planners what starts on each local date.
Requirements
- OVERNIGHT-DATE — Group overnight shifts under their start date in the shift site's local time — from [scheduling#Record:ContextNote[OvernightShift]]
Persona
ShiftPlanner
A person who reviews the roster for a site.
Access
Operation
ListShiftsForDate
Lists the shifts for a calendar date at a site.
Input
siteId: string required
date: date requiredEnsures
- Return the shifts whose local start date at the requested site matches the requested date — satisfies · OVERNIGHT-DATE.
Record
ContextNote
An explanation or example that helps someone build or review the scheduling app.
Schema
id: string required unique key
body: string required min(1)
relatedNote: ref(scheduling#ContextNote.id)
explainsRequirement: modelref(Requirement)
explainsOperation: modelref(Operation)Knowledge
SchedulingContext
The conventions and examples behind the shift calendar.
Bindings
- binds:
entries:scheduling#Record:ContextNote
entries
Scheduling context
ContextNote
NightCrew
- explainsRequirement: Group overnight shifts by start date · OVERNIGHT-DATE
Text: body
The crew plans a handover around the evening the shift starts.
ContextNote
OvernightShift
- relatedNote: Night crew handovers · scheduling#Record:ContextNote[NightCrew]
- explainsOperation: List shifts for a date · ListShiftsForDate
Text: body
The crew calls a shift that starts Monday at 22:00 and ends Tuesday at 06:00 “Monday night.” A planner looking for that handover checks Monday's roster.
File
README.md
Shift scheduling
One rule of a roster app, with the reason for it written down beside it. A shift that starts Monday at 22:00 belongs to Monday, because that is what the night crew calls it. The notes that say so are entries in the model, linked to the requirement and the operation they explain, so whoever builds or reviews that operation gets them with it.
python3 ../check.py ../schedulingThe .aim files under aim/scheduling/ are the model. Files that end in .entries.aim hold what the collection records, and a line that ends in — from: proposed by <name>, <date> is a suggestion nobody has confirmed yet.
For developers: packages, files and how to check them
About this example
python3 ../check.py ../scheduling
The .aim files under aim/scheduling/ are the model. Files that end in .entries.aim hold what the collection records, and a line that ends in — from: proposed by <name>, <date> is a suggestion nobody has confirmed yet.