State Machine
The SPECS document lifecycle is modeled as a state machine with 9 states and 16 transitions. Each document (ticket) moves through these states from creation to final approval — or is rejected, put on hold, or sent back for revisions along the way.
Actions & Transitions
There are 11 actions that drive the transitions between states in the SPECS document lifecycle. Each action is restricted to a specific role (Executor or Manager) and may produce side effects.
Roles & Permissions
The SPECS system uses two roles to enforce the document lifecycle: Task Executor and Task Manager. Permissions are checked on every action call, and unauthorized calls return 403 Forbidden.