Changes should preserve the root import path and the contracts in docs/compatibility.md. Public behavior belongs in the root package; implementation-only helpers stay under internal/.
Before opening a pull request, run:
go test ./...
go test -race ./...
go vet ./...
go mod tidy -diffFor API changes, run scripts/check-api.sh against the pull request base and include the exact incompatible report under .github/api-changes/ when the change is intentional. Add or update an external-package test when changing the root façade, and update the public API or support documentation when a contract changes.
Use Conventional Commits. Pull requests are squash-merged, and CHANGELOG.md is generated by release-please from their titles and is not edited by hand, so the title of a feat, fix, perf, deps or revert pull request is its release note; other types, such as docs, chore and ci, are not listed (changelog-sections in release-please-config.json). Keep commits focused, explain persistence or concurrency trade-offs in the pull request, and do not commit generated credentials, local state files, or DevTools exports containing sensitive data.