Skip to content

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 orbit binary 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:

ModuleWhatRequiresUser guideDeveloper guide
coreOrganisation, employees, holiday lists, directory, employee documentsguideREADME
leaveLeave types, periods, policies, requests, ledgercoreguideREADME
attendanceShifts, check-ins, auto attendance, corrections, monthly sheetcoreguideREADME
inboxApproval queue, notifications, decision emailsguideREADME
agentsPerson approval of sensitive MCP calls (ADR 0006)guideREADME
payrollDuties, setup, runs, payslips, corrections, settlements, files, parallel runscoreguideREADME
country-lkSri Lanka statutory rules (drafts until reviewed)payrollguideREADME
country-caCanada statutory rules (drafts until reviewed)payrollguideREADME
expensesExpense claims, limits, receipts, approvals, direct payoutscoreguideREADME
recruitmentOpenings, applicants, interviews, feedback, four-eyes offerscoreguideREADME
policiesPolicies, versions, acknowledgements, tracker, reminders, announcementscoreguideREADME
lifecycleOnboarding and exit checklists, exits, exit interviews, final settlement hand-offcoreguideREADME
relationsGrievances and disciplinary cases, visible to case handlers onlycoreguideREADME
scimSCIM 2.0 provisioning (ADR 0010)guideREADME
helloA small sampleREADME

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).

Orbit by SkySync Tech. Licensed under AGPL-3.0.