Appearance
Modules
A module is one area of the product, such as leave or payroll. The kernel is always on. Everything else is a module that each tenant enables when it needs it.
A module:
- declares its commands, queries, events, consumed events, UI routes and MCP tools in a manifest (
module.toml); - owns one Postgres schema, created by its own migrations, with row-level security on every tenant-owned table;
- ships Cedar policies saying who may attempt each action and on which records;
- talks to other modules only through their commands, queries and events, never their tables;
- is compiled into the
orbitbinary behind a cargo feature named after it.
The GraphQL fields, MCP tools and CLI commands for a module are generated from its registered handlers. A module does not write any door code.
A module's migrations run in orbit migrate, once for the whole database, for every module compiled into the binary. Enabling a module for a tenant only flips its flag and makes its actions available to that tenant; it is refused until orbit migrate has run for the module. Disabling it hides it for that tenant and never deletes data (ADR 0004).
A module that holds personal data encrypts those fields with orbit-pii, and a module that stores files uses orbit-storage. See Personal data.
The modules on development, each behind a cargo feature of the same name:
| Module | What | Requires | User guide | Developer guide |
|---|---|---|---|---|
core | Organisation, employees, holiday lists, directory, employee documents | guide | README | |
leave | Leave types, periods, policies, requests, ledger | core | guide | README |
attendance | Shifts, check-ins, auto attendance, corrections, monthly sheet | core | guide | README |
inbox | Approval queue, notifications, decision emails | guide | README | |
agents | Person approval of sensitive MCP calls (ADR 0006) | guide | README | |
payroll | Duties, setup, runs, payslips, corrections, settlements, files, parallel runs | core | guide | README |
country-lk | Sri Lanka statutory rules (drafts until reviewed) | payroll | guide | README |
country-ca | Canada statutory rules (drafts until reviewed) | payroll | guide | README |
expenses | Expense claims, limits, receipts, approvals, direct payouts | core | guide | README |
recruitment | Openings, applicants, interviews, feedback, four-eyes offers | core | guide | README |
policies | Policies, versions, acknowledgements, tracker, reminders, announcements | core | guide | README |
lifecycle | Onboarding and exit checklists, exits, exit interviews, final settlement hand-off | core | guide | README |
relations | Grievances and disciplinary cases, visible to case handlers only | core | guide | README |
scim | SCIM 2.0 provisioning (ADR 0010) | guide | README | |
hello | A small sample | README |
Stub modules for Phase 4 (on hold): performance, learning, analytics, marketplace, assistant. Each has its own feature too, and --features full builds every production module. The stubs provide nothing yet, so they have no guide.
hello is the reference for writing a module: layout, manifest, migrations, handlers, lists, policies, events and personal data. The rule crates of leave and attendance are checked against golden vectors (modules/leave/tests/vectors/README.md, modules/attendance/tests/vectors/README.md).