Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 4.3 KB

CONTRIBUTING.md

File metadata and controls

78 lines (57 loc) · 4.3 KB

Contributing to BluePilot

BluePilot is a Ford-focused fork of sunnypilot, which is a fork of openpilot. It steers and controls the speed of real cars, so the priorities are safety, stability, quality and features, in that order (SAFETY.md).

Development is coordinated on GitHub and on the BluePilot Discord. The project's website is bluepilot.dev.

Before you write code

  1. Find the right repo. BluePilot is four repos, and Ford steering and Ford car code live outside this one. The routing table at the top of AGENTS.md says where a change belongs and which branch to target.
  2. Ask first for anything large. Open an issue or ask on Discord before a new feature, a new process, new third-party code or a change to driving behavior. A small, tested fix needs no discussion.
  3. Send upstream fixes upstream. A bug in sunnypilot's or openpilot's own code is fixed there, and reaches BluePilot with the next sync.

Two pages to read once:

  • How BluePilot is put together: the layers, the UI, the portal, and where to start for common changes.
  • AGENTS.md: the working rules for people and AI agents: where code goes, how to change an upstream file, the tests, and the mistakes that have already cost someone a PR.

Pull requests

Open pull requests against bp-dev and fill in the template. The setup guide is in tools/.

To update a pull request, merge bp-dev into your branch. Don't rebase or force-push: pull requests are squashed on merge, and a force-push breaks the review comments.

Everything on GitHub is public. Keep VINs, home or work locations (addresses, coordinates, maps or video near them), license plates, Wi-Fi names and any key or token out of pull requests, issues and screenshots.

A pull request that gets merged has:

  • One purpose. Every changed line serves it. A feature and an unrelated fix are two pull requests.
  • A description that says why, what changes for users who leave the feature off, and how it was tested.
  • All six required checks green: build release, static analysis, unit tests, process replay, install smoke, bluepilot-hooks. A fork's checks start after a maintainer approves the run.
  • A ## Validation checklist at the end of the description, listing the six checks and any device or drive check, with only the passed ones ticked.
  • Evidence for driving changes: the route, the car, the device, and what the logs show. Say plainly what was and wasn't driven. A change to what the car does is off by default unless it fixes existing behavior.
  • A device check for UI changes, naming the device. The comma 3X and the comma four run different UI code.

What doesn't get merged:

  • Style-only changes and reformatting of code that isn't otherwise being changed.
  • Large pull requests. Past a few hundred lines, split it.
  • Pull requests without one clear goal.
  • Changes to upstream's files that could live in BluePilot's own folders, or that belong upstream.
  • Risk that outweighs the gain: an improvement that would cost more to validate than it is worth. A failing test merged first lowers that cost.
  • Code the author can't explain, however it was written.

Using AI tools

AI tools are welcome under the AI policy: understand and test everything you submit, and disclose AI help with an Assisted-by: line in the commit message.

One exception: BluePilot does not accept code written by Gemini models other than Gemini 4 Neon, because of their hallucination rate. Those models can still write text for people, such as a pull request description or documentation.

Contributing without code

  • Report bugs in GitHub issues with your car, model year, device, BluePilot version and, for a driving problem, the route.
  • Test a new build before it is released and report what you find. Owners of Fords the maintainers don't drive are the only way those cars get checked.

Thanks

BluePilot exists because comma and sunnypilot publish their work. Improvements that help every car belong upstream with them.