Skip to content

Your first pull request ​

You will take one small change from your machine to a merged pull request: a branch, the same checks the CI runs, signed-off commits, and a description a reviewer can trust. Small fixes come straight here; a feature or a change to a standard starts with an issue (see Ways to contribute).

Before you begin 20 minutes, most of it the checks

  • Node 20 or later, and git.
  • Google Chrome, for the browser tests.
  • On a Mac, zsh (already there), for the engine's tests.
  • A fork of the repository on GitHub.
  1. Get the code

    Clone your fork and install the dependencies. Nothing here signs in or changes your machine outside the folder.

    Terminal
    sh
    git clone https://github.com/<you>/alta-os.git
    cd alta-os
    npm install
    git checkout -b fix-the-thing
  2. Make the change

    Keep it to one concern. Three rules catch most first pull requests:

    • The standard comes first. If your change is about what a chart, a quest or a universe can say, read its page under Reference › Standards. A new field or rule is a change to a standard.
    • Tests use fakes. Tests run with a temporary home folder, the fake programs of the repository and WORLD_SANDBOX=1. Never write to a real ~/.openclaw or ~/.config/alta, and never weaken a fake to make a test pass.
    • Two languages. A text a player or an author reads exists in English and in French ("tu").

    Generated files (the reference pages of these docs, the JSON schemas) are regenerated, never edited by hand: npm run docs:gen. Do not edit CHANGELOG.md: it is written at release time.

  3. Run the checks

    These are the checks the CI runs. Run them before you push: a reviewer asks for their output.

    Terminal
    sh
    npm run build
    npx tsc --noEmit
    npx vitest run
    npm run check:content
    npm run docs:build
    zsh engine/tests/run.sh
    npx playwright test --trace off

    check:content runs alta lint on every file of the repository; docs:build fails on a dead link or a stale generated page. The browser tests start two local servers: if their ports are taken, pick two free ones with WORLD_E2E_PORTS=8841,8842 npx playwright test --trace off.

  4. Sign your commits off

    Every commit carries a Signed-off-by line: with it you state, under the Developer Certificate of Origin, that you wrote the change or have the right to submit it. A check refuses a pull request whose commits are not signed off.

    Terminal
    sh
    git commit -s -m "Explain what changed and why"

    The name and address come from your git configuration: use the ones of your GitHub account. Forgot it on the last commit? git commit --amend -s --no-edit, then push again.

  5. Open the pull request

    Push the branch and open the pull request on GitHub. The template asks for five things:

    1. What problem this solves, and the issue it closes (Closes #123).
    2. What changed, in a few lines.
    3. Evidence: the commands you ran and the end of what they printed; a screenshot for anything a person sees.
    4. The standard you read, and whether you changed one.
    5. Sign-off: the box that says every commit is signed off.

    If you changed a published package (the SDK, the UI components, the CLI), add a changeset with npm run changeset; the CI reminds you.

What happens next ​

A maintainer of the area reviews it (see How decisions are made). Changes to security-sensitive code (the executors, the sign-ins, the server's HTTP and secrets code, the engine installer, the CI files, the lock file, the fakes) need a second maintainer. An automated reviewer may comment when a maintainer asks for it: it gives advice, it never approves or merges. Pull requests are squash-merged.

Written with an AI assistant? Welcome, under the same bar: you are the author, you read every line, and the evidence shows the checks you ran yourself.

What's next

Alta OS is open source (MIT).