Contributing Guidelines
How to contribute to rumahl — development setup, conventions, checks, review and licensing.
01Welcome
Thanks for your interest in rumahl. This guide covers the development setup, the conventions this repository follows, how changes are reviewed, and how contributions are licensed.
02Ways to contribute
- Bug reports and proposals — open an issue with a clear reproduction or a concrete rationale.
- Code — fix bugs, implement features, improve tests.
- Documentation — README.md, ARCHITECTURE.md and docs/.
- Artwork — belongs in the rumahl/assets repository, not here (see Licensing).
03Development setup
See the developer guide at docs/development.md for the real Rust platform, SQLite accounts, React SSR/Vite and local HTTPS. Requirements: Linux or WSL2, the pinned Rust toolchain (rust-toolchain.toml), Node 22.12+ (or Node 24), pnpm 11.19.0 and OpenSSL.
pnpm --dir frontend install --frozen-lockfile
pnpm --dir frontend dev
04Architecture principles
rumahl OS is a local-first platform. Before changing code, read ARCHITECTURE.md. The platform-wide invariants matter more than any single feature:
- Core provides mechanisms, not products; core/ must not contain app-specific behaviour.
- Apps depend on capabilities, not concrete providers.
- Requesting a permission is not a grant.
- First-party apps use the same platform contracts as third-party apps.
- Resources are logical references, never host paths.
- Transport, persistence, authentication and UI concerns stay outside the domain core.
- Privileged OS operations are performed by isolated services.
Keep dependencies pointing toward the abstractions, not away from them.
05Branches and commits
Use short, typed branch names:
feat/<topic> fix/<topic> docs/<topic> ci/<topic> test/<topic>
refactor/<topic> perf/<topic> build/<topic> chore/<topic> security/<topic>
Commits follow Conventional Commits: <type>(<scope>): <summary>. The types are feat, fix, refactor, perf, test, docs, ci, chore, build and security. Write the summary in the imperative mood without a trailing period. Keep each commit focused; maintainers may ask you to split an oversized change.
06Sign-off and DCO
Every commit must be signed off (git commit -s). The sign-off confirms that you have the right to submit the contribution under the license applicable to the paths you changed (Developer Certificate of Origin 1.1). The dco CI job rejects a pull request if any of its commits is missing the sign-off.
git commit -s -m "fix: correct login redirect"
07Checks
Run the checks for the areas you touched before pushing:
# Rust
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --locked
# Frontend
pnpm --dir frontend lint
pnpm --dir frontend typecheck
pnpm --dir frontend test
pnpm --dir frontend build
# Licensing
reuse lint
CI additionally runs dependency, license (reuse), DCO and workflow checks.
08Tests
- Rust: unit tests next to the code, integration tests under */tests/.
- Frontend: *.test.ts / *.test.tsx files colocated with the code.
- Prefer exercising behaviour through the platform contracts rather than internal details.
09Dependencies
- Rust: Cargo.lock is committed. The policy in deny.toml denies wildcard version requirements; new dependencies must match the license allowlist.
- Frontend: pnpm-lock.yaml is committed and dependencies are pinned to exact versions.
- Do not add a dependency for something trivial. Discuss larger additions in the issue or pull request first.
10Licensing
rumahl uses SPDX / REUSE so that every tracked project file has a declared license. The path-to-license mapping lives in REUSE.toml and the license texts in LICENSES/. Code is Apache-2.0; artwork is governed by the separate, multi-license rumahl/assets repository; the name and logo are governed by the trademark policy.
- Every new file falls under an existing layer, or you add an annotation plus a LICENSES/ text.
- Third-party assets need a source URL and their real license.
- reuse lint must pass.
11Pull requests
- Keep one logical change per pull request; explain what and why, and link related issues.
- Make sure every commit is signed off and all checks pass.
- Expect review. Answer questions in your own words.
- Avoid unrelated refactors and reformatting in the same pull request.
- Maintainers merge; do not force-push over review comments without explanation.
12Labels
Pull requests and issues share one label set, defined in .github/labels.json. Pull requests are labelled automatically by changed path (.github/labeler.yml). Areas: backend, frontend, ci, dependencies, docs, assets, security. Components: core, auth, persistence, platform, buildroot, app-operations, app-packages, ui-contracts, frontend/shell, frontend/ssr, frontend/ui, frontend/contracts.
13Contact
Questions about the contribution process? Reach us at [email protected].