# Contributing to Halo Halo is actively developed and maintained by **White Circle**, and we want your bug reports, ideas, and pull requests. Halo is itself built with AI, and AI makes plausible-looking but ill-fitting contributions cheap to produce, so **contributions are gated**: a light process that keeps quality high and direction under maintainer control. Read this before opening an issue or PR; the full dev guide (build, test, docs) lives in [`agent-docs/contributing/README.md`](agent-docs/contributing/README.md). ## The gate (read first) 1. **Open an issue first.** Everything starts as an issue. Pick the right template: **Bug report** for a reproducible bug, **Feature request / proposal** to propose a change, **Question / support** for a usage or design question, **Documentation** for a docs error or gap. A maintainer may reject it, build it directly, ask for detail, or accept it as work to be done. 2. **Issues are the front door and the maintainer's work queue.** Anyone can open one via a template; maintainers triage. A proposal being accepted is what greenlights the work. 3. **Don't open a PR without an accepted issue and explicit approval.** A maintainer adds you to [`.github/APPROVED_CONTRIBUTORS`](https://github.com/whitecircle/halo/blob/allowlist/.github/APPROVED_CONTRIBUTORS) (kept on the `allowlist` branch) by commenting `/approve @your-handle` on an accepted issue. **PRs from anyone not on that list (and without write access) are auto-commented and closed.** A reaction, comment, branch, or draft does **not** reserve the work or approve your PR path. Land one PR and you're added automatically, so repeat contributors skip the gate. Once you're approved, reopen a PR the gate closed earlier, or ask on the issue and a maintainer will; the gate re-runs on reopen. 4. **Demand ≠ implementation.** Reactions and comments show interest; they don't guarantee implementation, priority, or maintainer attention. Good bug reports, well-argued proposals, and code you understand are all welcome. ## Halo Competition The gate applies as usual during the [Halo Competition](https://whitecircle.com/halo/competition), so an optimization you want merged into Halo starts as a Feature request / proposal issue. Competition submissions go through the competition platform, in the format your track's rules set ([Terms](https://whitecircle.com/halo/competition/terms), section 4.1). - A Halo bug or a question about Halo goes in an issue here. Tick the Halo Competition box at the top of the template and give the Halo version or commit you run, since your track's rules name the version a submission must use. A security vulnerability is the exception: report it privately, as [SECURITY.md](SECURITY.md) says. - Questions about the rules, teams, submissions or compute credits go to the organizers on the competition Discord or at halo@whitecircle.ai. A loophole in a track's benchmark, or a bug that changes a track's score, goes to them too and not into a public issue (Terms, section 5.2). - Issues and pull requests here are public, so every team can read what you post in them. ## The one rule **You must understand your code.** If you can't explain what your change does, how it behaves at the edges, and how it fits Halo's design, the PR is closed. **Using AI to write code is fine. Submitting code you don't understand is not.** The bar is comprehension and ownership, not avoidance of AI (see the README's *Built with AI*). If you used AI, **disclose it** in the PR (the template has a checkbox): the scaffold and the models. Coding agents working in this repo must respect this gate ([`AGENTS.md`](AGENTS.md), [`CLAUDE.md`](CLAUDE.md)). ## The engineering bar once you're approved Once your PR path is approved, the normal bar applies: - **[The gates](agent-docs/contributing/README.md#submitting-a-pr) pass** before you open the PR. A PR that changes a path listed in `.github/sensitive-paths` also needs the `sensitive` label, which a maintainer adds once the change is approved. - **Tests ship with behavior and must not be slop**: see the [test conventions](agent-docs/contributing/README.md#tests). - **Write the PR, its commits and any page for people in plain sentences**, as the [`voice` skill](skills/voice/SKILL.md) asks: the fact first, then what you ran. - **[Proof of value](agent-docs/contributing/README.md#proof-of-value)** for every change; the PR template has a checkbox per case. - **Keep it focused.** A diff over **~2,000 lines** is hard to review and will be deferred, so split it. - **Work from a fork.** Outside contributors have no push access here: fork the repo, clone your fork, branch off `main`, push to your fork, and open the PR against `whitecircle/halo`'s `main`. - **Every PR is squash-merged, and every commit in it must carry a verified signature** (SSH or GPG, the *Verified* badge), forks included: GitHub does not merge a PR while any of its commits lacks one. Merge commits and rebase merges are disabled, so a PR's commit structure is never preserved. One-time setup: add your SSH or GPG key to your GitHub account as a **signing key**, then `git config --global gpg.format ssh` (SSH keys only), `git config --global user.signingkey ~/.ssh/id_ed25519.pub` and `git config --global commit.gpgsign true`. Re-sign earlier commits with `git rebase --exec 'git commit --amend --no-edit -S' ` (the `main` commit the branch starts from) and force-push. ## Security Never commit `keys/`, `.env`, or `*.pem`. Report vulnerabilities **privately** through [`SECURITY.md`](SECURITY.md), never in a public issue. ## Code of conduct Participation in issues, PRs, and reviews falls under the [Code of Conduct](CODE_OF_CONDUCT.md) (Contributor Covenant).