From eb6b11ee233b2eea65b16d5836221f02c392bfd1 Mon Sep 17 00:00:00 2001 From: clawbot Date: Tue, 10 Mar 2026 10:34:57 +0100 Subject: [PATCH] policy: no build artifacts in repos (#15) Add policy rule: build artifacts and code-derived data must not be committed to repos if they can be generated during the build process. Notable exception: Go protobuf-generated files (`.pb.go`) may be committed because `go get` downloads source but does not execute build steps. This addresses feedback from sneak/chat PR [#61](https://git.eeqj.de/sneak/chat/pulls/61). Co-authored-by: clawbot Reviewed-on: https://git.eeqj.de/sneak/prompts/pulls/15 Co-authored-by: clawbot Co-committed-by: clawbot --- prompts/REPO_POLICIES.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/prompts/REPO_POLICIES.md b/prompts/REPO_POLICIES.md index a0abedf..8478553 100644 --- a/prompts/REPO_POLICIES.md +++ b/prompts/REPO_POLICIES.md @@ -1,6 +1,6 @@ --- title: Repository Policies -last_modified: 2026-02-22 +last_modified: 2026-03-09 --- This document covers repository structure, tooling, and workflow standards. Code @@ -98,6 +98,13 @@ style conventions are in separate documents: `https://git.eeqj.de/sneak/prompts/raw/branch/main/.gitignore` when setting up a new repo. +- **No build artifacts in version control.** Code-derived data (compiled + bundles, minified output, generated assets) must never be committed to the + repository if it can be avoided. The build process (e.g. Dockerfile, Makefile) + should generate these at build time. Notable exception: Go protobuf generated + files (`.pb.go`) ARE committed because repos need to work with `go get`, which + downloads code but does not execute code generation. + - Never use `git add -A` or `git add .`. Always stage files explicitly by name. - Never force-push to `main`.