Naming conventions
Section titled “Naming conventions”This page is for builders naming the parts of an application. Most things in OSOS have two names: a name people see, in Arabic and English, which you can change whenever you like; and a normalized name, a short English machine name that queries, reactions, expressions, packages and the API use to find the thing. The first is a label. The second is an address — change it and everything that used the old address stops finding it. So decide normalized names once, on the design sheet, before you build.
What the platform enforces
Section titled “What the platform enforces”These are rules, not advice — a name that breaks them is refused or changed for you:
- Characters. A normalized name uses English letters, digits and the
underscore (
_). It must not start with a digit. - Length. From 3 to 128 characters.
- Generated names. When you type a name, the normalized name is generated from
the English name: lower case, with every space or other character turned into
an underscore — Job Application becomes
job_application. - Arabic is never used. Arabic letters typed into a normalized name are turned into underscores. Always type the English name first, or type the normalized name yourself.
- Reserved words are refused for entities and fields — programming words such as new, class, default, if or return.
- Unique. No two entities can share a normalized name. An entity’s display name must be unique within its module.
- Fixed at creation. The normalized name of a module and of an entity cannot be changed after it is created. You can still rename what people see.
See Identifiers and normalized names for how normalized names differ from the random identifiers the platform assigns.
The recommended convention
Section titled “The recommended convention”The following is the official recommendation for every OSOS application:
| Rule | Example | Not |
|---|---|---|
English snake_case: lower case, words joined by underscores | support_ticket | SupportTicket, supportTicket |
| Name the thing, not where or how it is used | job_application | hr_form_2, portal_request |
| Singular for entities — the entity is the kind, each record is one | support_ticket, employee | support_tickets_list |
| No environment, version, date or person in a name | customer_support | customer_support_test, tickets_v2, ahmad_tickets |
| Whole words; abbreviate only what the business abbreviates | registration_deadline | reg_dl |
| The same word for the same thing across the application | start_date on every entity | start_date, begin_dt, opened_on |
| Fields that point at a record are named after what they point at | assigned_to, vacancy, product | user_ref_1 |
Display names
Section titled “Display names”Display names are what people read, in both languages. They can change, so make them clear rather than short:
- Views — say the audience and the purpose: My tickets, Incoming requests — support desk, All jobs (HR).
- Queries — say what they select: Open jobs, Closed tickets, Tickets waiting over two days.
- Workflow steps — name the stage or the role that acts: Help Desk, Manager Approval, Job review. Name actions as verbs the owner chooses: Approve, Return for changes, Send Solution.
- Reactions — write them as When … then …: When the ticket reaches Help Desk, notify the desk. The Recruitment tutorial does this well: Notify the job’s creator when the job is approved.
Keep modules independent
Section titled “Keep modules independent”The official recommendation: do not point a reference field from one module at an entity in another module. A direct reference ties the two modules together — deleting, moving or packaging one then needs the other. When one module needs another’s data or behaviour, use a deliberate seam instead:
| Seam | Use it when |
|---|---|
| A proxy virtual entity in your module | You need to list, pick or show the other module’s records — see Virtual entities |
An External custom action, called with Execute Custom Action Since 1.8 | One event here must make one thing happen there — see Reactions & automation |
Announce Event and On Event Announced Since 1.8 | One event here may interest several listeners, now or later |
Name the seam for the contract it carries (staff_directory for a proxy of
Employees), and write down which module owns it.
Worked example: names for the two tutorials
Section titled “Worked example: names for the two tutorials”The tutorials keep the normalized names the platform generates, which is fine for learning. For a production application, this is what the convention gives:
| Thing | Generated from the English name | Recommended |
|---|---|---|
| Customer Support module | customer_support_system | customer_support |
| Support Tickets entity | support_tickets | support_ticket |
| Ticket number field | ticket_number | ticket_number |
| Assigned to field | assigned_to | assigned_to |
| Recruitment module | recruitment_system | recruitment |
| Jobs entity | jobs | job |
| Job Application service | job_application | job_application — already right |
| Registration deadline field | registration_deadline | registration_deadline |
| Years of experience required field | years_of_experience_required | required_experience_years (or keep the generated one — both are clear) |
The generated names are already valid snake_case; the changes are about the
singular and dropping words that add nothing. Make them when you create the
module and entity: afterwards their normalized names are fixed.
Anti-patterns
Section titled “Anti-patterns”- Accepting whatever was generated from a hurried name.
new_entity_1stays forever. Type the English name you mean before you confirm. - Typing the Arabic name first. The normalized name becomes underscores and is refused or replaced. Type English, then add the Arabic display name.
- Encoding the environment or the version.
tickets_testmoves to production in a package and keeps its name. - Renaming field normalized names after go-live. Reactions, queries, expressions and integrations that used the old name stop working. Rename the display name instead.
- A reference field into another module. Use a proxy entity or a custom action.
Related pages
Section titled “Related pages”Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27