Skip to content
SIRJAHIBENTLEY
All work
Independent PrototypeWorkforce Rotation

RotationOS

An independent prototype exploring workforce assignment, rotation planning, capacity simulation and constraint solving for logistics operations.

Prototype status. Independent work with synthetic data. Not affiliated with, endorsed by or deployed at any company. No performance claims are made.

01 · Problem

Shift leads in high-volume logistics often build rotations by hand in spreadsheets. Balancing skills, ergonomic rotation, training goals and fluctuating volume is a combinatorial problem people solve under time pressure, inconsistently.

02 · Context

RotationOS is a self-directed exploration of how a planning tool could make those trade-offs explicit. It uses synthetic, generic data only. It is not affiliated with, endorsed by or deployed at any employer, and it contains no real facility layouts, metrics or worker data.

03 · Constraints

  • Hard constraints: certifications per station, maximum consecutive time on high-strain tasks, headcount per area.
  • Soft constraints: cross-training goals, preference fairness and minimizing mid-shift moves.
  • The planner remains in control: the system proposes, a human approves.
  • Must run on modest hardware with plans generated in an interactive time window.

04 · Architecture

PROTOTYPE · SYNTHETIC DATA ONLYPlanner UIReact · TSPlanning APIFastAPIConstraint modelHard + soft rulesCapacity simulatorVolume scenariosPlans & rulesPostgreSQLChange logApproval history

05 · Alternatives considered

Greedy heuristics only

Fast and explainable, but degrades as constraints interact. Retained as a fallback seed for the solver.

Mixed-integer / CP-SAT solver

Chosen. Expresses hard and soft constraints declaratively and can explain infeasibility.

ML-predicted assignments

Rejected for core planning: opaque and dependent on historical data the prototype deliberately avoids.

06 · Decision rationale

  • Declarative constraints let operations teams read and change rules without changing code paths.
  • Weighting soft constraints makes fairness versus efficiency an explicit, adjustable choice.
  • Separating the simulator lets planners explore volume scenarios without changing the live plan.

07 · Trade-offs

  • Solver time grows with problem size; time-boxing returns the best plan found, not a proven optimum.
  • Rule modeling requires upfront domain discovery; agreeing on the rules is harder than writing the code.

08 · Security

  • Designed for role-based access: planners, approvers and read-only viewers.
  • No personal data in the prototype; a real deployment needs data minimization and appropriate workforce consultation.
  • Every approved plan change is recorded in an append-only log.

09 · Testing approach

  • Property-style tests assert that hard constraints hold across randomized synthetic rosters.
  • Golden scenarios cover known-feasible and known-infeasible inputs.
  • Usability walkthroughs cover the approve and override flow.

10 · Implemented vs. planned

Implemented

  • Constraint model for stations, skills and rotation limits
  • Planner UI with drag-to-override
  • Synthetic data generator

Planned

  • Capacity simulator UI
  • Plain-language infeasibility explanations
  • Multi-shift handover view

11 · Next steps

  • Harden infeasibility explanations
  • Add scenario comparison
  • Publish a technical write-up of the constraint model

12 · Stack

TypeScriptReactPythonFastAPIConstraint solver (OR-Tools class)PostgreSQL

Next case study

Private AI Workspace