Context
Several legal companies shared a factory floor but not a system. Accounting, HR, and inventory each had a private version of “what happened today.”
System boundary
In scope
- company
- plant
- inventory
- manufacturing orders
- accounting
- HR
- role-based RTL admin
Out of scope
machine PLC control
Architecture
Company is the tenancy root. Manufacturing and inventory are operational. Accounting and HR consume operational postings; they do not invent stock movements.
- Company
- Manufacturing
- Inventory
- Accounting
- HR
- Company is the tenancy root
- Accounting consumes stock events
- Company
- Manufacturing
- Inventory
- Accounting
- HR
Counts from the published record. They describe structure, not a measured result.
How do the system domains relate?
tenancy
- serviceCompany
operations
- processManufacturing
- storeInventory
consumers
- interfaceAccounting
- interfaceHR
- CompanyManufacturing
- CompanyInventory
- CompanyAccounting
- CompanyHR
- ManufacturingInventory
- InventoryAccounting
Critical flows
A manufacturing order consumes inventory under a company
output increases stock
accounting receives a posting
HR remains orthogonal except where labor is booked to the order.
Stages
Decisions
Company before plant
Legal entity is not a filter on a god table. Documents belong to a company.
Inventory is operational fact
Accounting posts follow stock events. Reversing a journal does not restock a warehouse.
RTL is a first-class UI
Arabic administration is not a mirrored afterthought. Dashboards are designed in RTL.
When it fails
| Condition | Detection | Response |
|---|---|---|
| Cross-company stock write | Tenancy guard | Reject; audit |
| Negative inventory without policy | Balance check | Block order complete |
| Accounting period closed | Period lock | Queue posting to next open period with explicit date |
Infrastructure
- Application servers
- database per environment
- backups
- role matrix
- Arabic locale pack
Outcome
One operational system for multiple companies on a shared floor, with accounting and HR as consumers of operational events.
Current state
In production under a private engagement. This record is the public, anonymized projection.