<!-- Generated by website/scripts/sync-docs.mjs from CONTRIBUTING.md. Edit that file, not this one. -->

# Contributing

> Every page of this site: https://dyokto.github.io/mustbreak/llms.txt

Bug reports and patches are welcome. For a suspected vulnerability in mustbreak, use the [security policy](https://dyokto.github.io/mustbreak/security/), not a public issue.

## Getting set up

Go 1.26+ is the only prerequisite for the unit tests. `make e2e` also needs docker on Linux (or a local dex binary, see `e2e/run.sh`).

```bash
git clone https://github.com/dyokto/mustbreak
cd mustbreak
make test
```

## Before you open a pull request

```bash
make lint   # must report 0 issues
make test   # must pass
make vuln   # must be clean
```

CI runs the same three, plus the e2e run against two dex builds.

## What gets merged

- One commit per logical change. Commit messages in English, conventional-commits style.
- A case is one file, `internal/cases/mbNN.go`, holding one `check.Case`, and is listed in `internal/cases/all.go`. Its `Spec` names the sections it checks, and the check does what those sections say at the level they say. Where the text names no error code, any refusal passes.
- Every case comes with a test against the fixtures in `internal/fixture`: the compliant fixture passes, and each refusal the case checks has a knob that turns it off and makes the case fail. A case that no knob can fail does not test what it claims.
- No evidence is never a pass. If the target never fetched, never answered, or the control attempt failed, the result is `error` (or `skip` when the target lacks the feature or the profile lacks what the case needs).
- `--json` (`mustbreak.results/v1`) and the `--fail-on` exit code are an API.
