You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2026. It is now read-only.
Parent epic: #738
Depends on: #739, #746
Admission requirement: apply docs/awcms-mini/21_module_admission_governance.md before implementation.
Context
Many derived applications need reusable organization primitives: legal entity, department, branch, cost center, warehouse, operational location, or program unit. These are business/operational scopes inside a tenant; they are not tenant records and must not weaken tenant isolation.
This should be an optional reusable business-foundation capability, not a mandatory Core dependency and not an ERP implementation.
Objective
Add an optional, tenant-scoped organization-structure module with legal entities, typed organization units, effective-dated hierarchies, operational locations, and assignments exposed through capability ports.
Scope
Complete module-admission decision/ADR before scaffold and confirm category, owner, lifecycle, and offline compatibility.
Add tenant-scoped legal-entity records with minimal neutral metadata, status, effective dates, and stable identifiers.
Add configurable organization-unit types and units with effective dates.
Add versioned/effective-dated parent-child hierarchy records with no-cycle validation and history preservation.
Add operational-location records and location-to-unit relationships; geospatial coordinates remain optional and validated.
Add effective-dated party/user assignments to units and optional positions/responsibilities without implementing HR/payroll.
Parent epic: #738
Depends on: #739, #746
Admission requirement: apply
docs/awcms-mini/21_module_admission_governance.mdbefore implementation.Context
Many derived applications need reusable organization primitives: legal entity, department, branch, cost center, warehouse, operational location, or program unit. These are business/operational scopes inside a tenant; they are not tenant records and must not weaken tenant isolation.
This should be an optional reusable business-foundation capability, not a mandatory Core dependency and not an ERP implementation.
Objective
Add an optional, tenant-scoped organization-structure module with legal entities, typed organization units, effective-dated hierarchies, operational locations, and assignments exposed through capability ports.
Scope
Security and integrity requirements
tenant_id,ENABLE+FORCE RLS, tenant-first indexes, default-deny permissions, and least-privilege roles.Out of scope
Acceptance criteria
bun run modules:dag:check,bun run api:spec:check,bun run security:readiness, tests, build, andbun run checkpass.