stage_type no longer validated — starlark_hook presence determines automation. stage_mode collapsed from 4→3 values (form/delegated/ automated); "review" mapped to "form" on input for backward compat. Migration 018 converts existing rows. Review surface removed (~110 lines). 4 package manifests updated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Employee Onboarding
Automated employee provisioning with manager signoff and welcome notification.
Features
- Starlark automated stages —
db.insertfor provisioning records,notifications.sendfor alerts - Signoff gate — manager approval required (role-based), rejection reroutes to start
- Progressive fieldsets — Personal Info + Access Requirements
- ext_data tables —
provisionsandonboarding_log
Stage Flow
[new-hire-info] → [provision-accounts] → [manager-signoff] → [it-setup] → [welcome]
team automated (Starlark) review + signoff team automated
auto-advances reject → stage 0 auto-advances
Prerequisites
- Team must have a custom "manager" role (via Team Admin > Members > Team Roles)
- At least one team member with the "manager" role assigned
Starlark Hooks
on_provision(ctx)— Inserts provisioning record intoprovisionstable, notifies workflow starteron_welcome(ctx)— Logs completion toonboarding_log, sends welcome notification
Installation
curl -X POST $BASE/api/v1/admin/packages/install \
-H "Authorization: Bearer $TOKEN" \
-F "file=@packages/employee-onboarding"