Contributing
Use the toolchain pinned in .tool-versions. Read AGENTS.md before changing
the project. Work on a feature branch and open a pull request; do not push
directly to master.
For behavior changes, write a failing test, observe its failure, implement the change, and verify the result. Keep pure DNS validation, diffing, authorization, and protocol decisions separate from network/database effects. Use Req for HTTP and argument lists for external commands. Never construct shell commands from user input.
Run mise exec -- mix precommit before submitting. It checks Hex security
advisories before compilation, formatting, warnings, unused lock entries,
Credo, Sobelow, dependency vulnerabilities, and tests. Integration tests are
tagged :integration and run explicitly with mix test --only integration
against the development Compose stack. Missing services must fail the test,
not turn it into a skip.
Coverage for pure modules under lib/salt_dns/ must be at least 90%. The
coverage configuration excludes generated web/framework wiring, the
application supervisor, database repository, and mailer; it does not exclude
domain logic. Run mix coveralls to enforce the threshold.
Use only reserved example domains and generated or clearly marked TEST ONLY credentials. Test containers have no external network access at runtime. Installing dependencies and pulling/building images are separate setup steps. Never run tests against an existing DNS service or a real zone.
Keep commits small, describe what changed and why, and attribute agent-made
commits with a Co-Authored-By: line naming the agent. Pull requests must list
acceptance criteria and the tests that demonstrate each one, including any
unrun checks. Update CHANGELOG.md for user-visible changes.