Governance, contribution, and releases
Design-system ownership, SOLID boundaries, evidence, bilingual contribution, versioning, and release acceptance.
One system, explicit owners
Section titled “One system, explicit owners”Omni’s system connects brand decisions, semantic tokens, actual Vue components, and workflow guidance.
Documentation must describe these boundaries rather than introduce a parallel implementation.
docs/OMNI_DESIGN_SYSTEM.md records the reference lock and release contract.
AGENTS.md establishes security, data integrity/audit, maintainability, and performance priorities, in that order.
This governance model is policy; assign real reviewers in each contribution rather than inventing named owners here.
| Surface | Authority | Required coordination |
|---|---|---|
| Brand direction | Approved reference lock and brand decisions | Brand owner and product reviewer |
| Application tokens | packages/ui-shared/src/styles/main.css | Shared UI owner and affected applications |
| ERP component APIs | frontend/src/components/ui | Component owner and consuming modules |
| Shared-package components | Their owning package exports and source | Package owner; no assumed ERP compatibility |
| Usage documentation | Bilingual docs-site content | Domain, language, and accessibility reviewers |
| Executable examples | Actual component stories with isolated providers | Component owner and test reviewer |
SOLID in design-system work
Section titled “SOLID in design-system work”| Principle | Practical boundary | Reject |
|---|---|---|
| Single responsibility | A button manages interaction presentation; a service owns persistence | A button that posts invoices directly |
| Open/closed | Extend through deliberate variants, slots, or policy interfaces | A growing list of module-name conditionals in a primitive |
| Liskov substitution | Replacements preserve observable props, events, focus, and disabled behavior | A lookalike that emits different values silently |
| Interface segregation | Keep input, help, and workflow contracts small and explicit | One universal component with unrelated payroll and CRM options |
| Dependency inversion | Workflow code depends on clear service/query contracts | Generic UI importing concrete domain repositories |
Composition is preferred to deep inheritance or page-specific copies.
Not every component must be pure: DataTable already integrates history and permissions.
Document that dependency boundary honestly and provide appropriate isolated providers when testing it.
Move pure financial rules to the domain layer; do not duplicate calculations in a story or formatter.
Reusable visual behavior must not replace server-side permissions, transaction integrity, or audit guarantees.
Contribution sequence
Section titled “Contribution sequence”- State the user decision, affected roles, tenant scope, and failure modes.
- Inspect the reference component, existing consumers, tests, and relevant instructions.
- Decide whether this is documentation correction, composition, primitive extension, or domain behavior.
- Record the chosen reference traits and reject competing visual directions explicitly.
- Define props/events/states, localization, keyboard behavior, and migration impact before coding.
- Implement with real contracts; isolate illustrative fixtures from production paths.
- Add or update tests and both language pages in the same change.
- Run relevant gates and publish an evidence record with unresolved limitations.
Do not add a new dependency just to reproduce behavior already owned by a shared component. When a dependency is justified, review licensing, accessibility, maintenance, runtime cost, and integration boundaries. Use the repository’s Bun workflow and let the tooling owner coordinate version and lockfile changes. Do not independently upgrade a documentation integration while another owner is migrating the toolchain.
Evidence vocabulary
Section titled “Evidence vocabulary”| Label | Meaning | Required evidence |
|---|---|---|
| Policy target | Required intended behavior | Rationale, owner, acceptance criteria |
| Observed implementation | Found in a named source or rendered state | Path/revision or route, inspection date |
| Tested | A specified behavior passed a specified check | Command or manual procedure, environment, result |
| Known gap | Requirement not yet met or verified | Impact, affected states, owner, next review |
| Exception | Deliberate temporary departure | Rationale, safeguards, expiry/review condition |
Do not promote “source contains focus code” into “screen-reader tested”. Do not promote “axe passed a story” into “the application conforms to WCAG”. If an implementation and guide disagree, record the discrepancy and fix the appropriate owner; do not hide it in prose.
Versioning and migration policy
Section titled “Versioning and migration policy”Treat removed props, changed event payloads, changed defaults, and keyboard-contract changes as potentially breaking. For versioned packages, classify changes using the package’s release policy and semantic-versioning expectations. For monorepo-only changes, record the revision and migrate all affected consumers in the same coordinated change. The project is in development: a breaking improvement is allowed, but an incomplete migration is not a quality strategy. Avoid indefinite compatibility aliases; if a temporary bridge is necessary, name its owner and removal condition.
Token changes can alter contrast, density, screenshots, and printed output without a TypeScript error. Review semantic color changes across light/dark themes and tenant overrides, not only one specimen. Documentation corrections should explain changed guidance when users could otherwise follow an unsafe old procedure. Maintain paired Indonesian and English slugs and update related-page links together.
Release checklist
Section titled “Release checklist”| Gate | Evidence to retain | Release risk if omitted |
|---|---|---|
| API and types | Vue typecheck and affected package checks | Broken consumers or incompatible shared APIs |
| Behavior | Colocated unit and interaction tests | Regressed loading, selection, focus, or emitted values |
| Documentation | Astro check/build, link and locale-parity checks | Broken MDX, missing translations, unusable navigation |
| Stories | Static build with isolated providers | Hidden production requests or examples that cannot load |
| Accessibility | Automated checks plus manual keyboard and assistive-tech review | False assurance from incomplete automation |
| Visual states | Light/dark, narrow viewport, zoom, forced colors, reduced motion | Unusable edge states despite a polished default |
| Domain safety | Relevant permissions, transaction, audit, and domain tests | Financial or privacy regression outside the visual layer |
Run backend-specific gates only when the change touches their scope; never report unrun gates as passing. For documentation-only work, syntax checking is useful but does not replace the integration owner’s full build. Record unavailable tools or blocked checks explicitly with the remaining release responsibility.
Release record example
Section titled “Release record example”Record the change purpose, revision, owner, affected components, routes, locales, and token roles. List commands actually run and their results; list manual scenarios with browser and assistive technology. State known gaps, compatibility changes, data-handling implications, and rollback or forward-fix approach. An example record must never contain production tenant data, credentials, or real financial fixtures. Avoid a green “approved” label until the assigned reviewers have actually accepted the evidence.
Acceptance criteria
Section titled “Acceptance criteria”- Ownership is explicit and no duplicate token or component authority is introduced.
- API changes migrate affected consumers and preserve or intentionally revise documented behavior.
- Both languages describe the same current contract, limitations, and safe workflow.
- Tests distinguish simulated examples from real integration evidence.
- Accessibility claims match the exact tested scope and do not imply certification.
- Release gates, skipped checks, exceptions, and unresolved gaps have accountable owners.
- Contributions improve long-term security, integrity, clarity, and maintainability rather than hiding risk.