Brume · Docs
Dev environment

Contribute to Brume

Set up the shared environment, validate a change, and open a pull request that follows Brume conventions.

In brief

The devcontainer gives every contributor the same environment. The Makefile controls setup, execution, and checks; licenses and Git hooks frame what enters the pull request.

Open the shared environment

The shortest path is the devcontainer: in VS Code, open the repository, then "Reopen in Container". Everything is provisioned there — Python venvs, frontend and docs dependencies, PostgreSQL, Git hooks, editor settings. The environment is described in detail in .devcontainer.

Without a devcontainer, you need Python 3.12, Node 22, uv, pnpm (via corepack enable), Docker, and make.

Add every durable requirement to its source, never by hand inside your container:

  • system package or CLI: .devcontainer/Dockerfile;
  • idempotent setup or wiring: .devcontainer/post-create.sh;
  • extension, editor setting, or port: .devcontainer/devcontainer.json.

Keep your personal aliases and state in ~/.home/dotfiles/: they concern only you and must not enter the shared image.

Run the local cycle

Initialize the repository and database. make help displays the complete command surface. bootstrap installs dependencies, creates .env, and enables the hooks. up uses the devcontainer PostgreSQL service or starts a pgvector container on the host. migrate applies migrations.

make help
make bootstrap
make up
make migrate

Start the application. dev starts the backend on port 8000 and the frontend on port 3000.

make dev

Validate your branch. test runs the core and ee backend suites. lint checks Ruff and ESLint; format applies Ruff and ESLint --fix. typecheck runs tsc --noEmit on the CE frontend. doctor checks the toolchain and repository.

make test
make lint
make format
make typecheck
make doctor

`make test` is not green today

The suites carry pre-existing failures inherited from the monorepo-to-open-core migration. This is known debt, documented in CONTRIBUTING.md: don't try to clear it before contributing. Validate your change with a targeted test on the behavior you touch, make sure you add no new failure, and report in the pull request any discrepancy you observed without causing it.

Respect license boundaries

The preamble of the LICENSE file, at the repository root, is authoritative:

  • core/, edges/, deploy/ and other Brume content without a more specific notice use the AGPLv3 (AGPL-3.0-only), with the section 7(b) attribution term;
  • ee/ uses the source-available, proprietary Brume Enterprise License;
  • docs/ uses CC BY-SA 4.0.

Preserve the applicable license and notices when copying or moving an item between these areas. In the backend, core never imports brume_ee; the only loading point is the load_edition_extensions try-import in core/src/brume/editions.py.

Prepare a clean commit

Write a conventional, imperative subject, such as fix(core): handle empty ledger. Add no AI-attribution trailer.

Two hooks enforce this, and make bootstrap enables them by pointing core.hooksPath at .githooks/. The commit-msg hook removes known forms, then rejects any remaining AI-attribution trailer. The pre-push hook checks every outgoing commit and blocks affected history — if you need to rewrite, git push --force-with-lease triggers a fresh check.

Propose a change

For a substantial change, open an issue first, describe the need, and align on the approach before writing code. Branch from main, keep the branch focused, add useful tests, and complete the pull request template, linking the issue in it (fixes #<issue_number>).

Your first pull request triggers the CLA signature: one click, and every later contribution is covered. You keep your copyright — the CLA is a license, not an assignment.

If your contribution targets the Enterprise edition, continue with Enable the Enterprise Edition in the devcontainer. This subpage describes the opt-in progression from Community.

On this page