AGENTS.md
Splotch & Blot contributor instructions
Application and dependencies
- Linux-first Go/GTK4 application; entry point:
cmd/native. Always use-tags gtkfor native tests and builds. - See
docs/ARCHITECTURE.mdfor the file map, state ownership and raster edit lifecycle before changing tool or document behavior. - Use the approved gotk4 binding pinned in
go.mod. Ask before adding another outside Go library or a libadwaita binding. - Keep packaging-specific module pins isolated from the native
go.mod.
Build and test
- Follow
docs/DEVELOPMENT.mdand the relevantpackaging/{deb,appimage,arch}/README.mdbefore changing a build recipe. - Native development requires compatible Go, C and GTK4 development tools.
.deband AppImage artifacts use their documented Podman build environments; runtime experiments belong in separate test environments. - Machine-specific environment choices and restrictions belong in private
checkout instructions, such as
.ez-agent/AGENTS.md, not these public rules. Honor those restrictions: build commands do not authorize installing host packages, creating containers/VMs, or accessing other machines. - Verify real desktop behavior as well as automated tests. Use
SPLOTCH_BLOT_INDEPENDENT=1when another window may have unsaved work. - GUI regression tests that inject input belong on a dedicated test display (for example the documented Xvfb harness), never an unrelated live desktop.
- Do not commit generated executables, package files, or
dist/contents. Keep private agent configuration out of source archives and build contexts.
Documentation and releases
- Keep
README.mduser-facing: purpose, features, availability, compatibility and links. Detailed usage belongs indocs/USAGE.md; development instructions indocs/DEVELOPMENT.md; packaging details beside the recipes. - Do not present build proofs as public releases or infer desktop/GPU support merely from a successful build. Record tested behavior and outstanding issues.
- Release source bundles must come from the release's tagged Git commit, not a
working-tree copy. Follow
packaging/release/README.md. v1.0.0is the historical first-version baseline;v1.0.1is the first binary release. Do not move published tags or push/publish without user authorization.
Issues and pull requests
Most changes go through the GitCafe issue and pull-request workflow:
- Opening an issue first is optional; use it to record a problem or agree on a plan before coding.
- Open a pull request for each change. Keep it a draft while it is being planned or is incomplete.
- Mark the pull request ready for review only when it is complete and validated.
- Merging happens by pushing the merge to
mainfrom Git (prefergit merge --no-ffso the PR branch boundary stays visible), then pushing. GitCafe's issue/PR state may reconcile asynchronously from the push; treat the pushed Git history as authoritative and do not perform or wait on service-side merge actions.
Agent-authored issue and PR descriptions, comments, replies, and reviews must
clearly identify themselves as AI-authored and end with
Agent signoff -- AI (<actual provider/model>), naming only verified model
identities.
Commit attribution
- Preserve contributor authorship when applying submitted patches; do not replace it with a local default identity.
- End each AI-assisted commit message with a
Coded by AI --line naming only the models actually used for that commit. Do not infer models from earlier commits; ask when model identity is unknown. For commits without AI-written code, describe the AI contribution accurately instead of claiming AI coded it.