Re-vendor the canonical files from sneak/prompts at dd4027b #159

Closed
opened 2026-10-06 01:29:52 +02:00 by clawbot · 2 comments
Collaborator

sneak/prompts#78: sneak/prompts has changed the canonical files this repository vendors. Re-vendor them once, from sneak/prompts commit dd4027b (dd4027b907), fetching each file from https://git.eeqj.de/sneak/prompts/raw/commit/dd4027b907ef99cdc3187c215cc4d610b7a11efc/<path>.

Files this repository vendors now: .dockerignore .editorconfig .gitea/workflows/check.yml .gitignore .golangci.yml .prettierignore .prettierrc REPO_POLICIES.md. REPO_POLICIES.md comes from prompts/REPO_POLICIES.md at that commit: the root REPO_POLICIES.md there is a symlink, and its raw URL returns only the link's target path. That repository's own .gitattributes and TODO.md are not canonical.

What changed that matters here:

  • golangci-lint is v2.14.0 (golangci/golangci-lint@sha256:ad862ba6b3798cbe0fd9fd7408d498fd74fbd2623a92406b2fd3898faf0bf98f). The lint phase digest and .golangci.yml change in one commit, since v2.12.2 rejects the new file; the go directive may name at most Go 1.27.
  • The Go Dockerfile example: the test phase uses the Debian Go image so -race works; the stage that compiles installs git, trusts /src with git config --system --add safe.directory /src, and fails when .git is present but no version comes out.
  • Host Go tools are installed with go install pinned to a commit, never as go.mod tool dependencies.
  • The image version comes from git describe inside the build: .dockerignore sends .git without its own or any submodule's config. CHECK_EPOCH is gone; every docker build in script/ passes --no-cache.
  • .gitignore and .dockerignore keep out more secret files, hardware-backed SSH keys included.
  • Agent guidance lives in one root AGENTS.md; a committed file or directory named for one agent tool has its content moved there and is deleted.

Definition of done

  1. Every vendored canonical file is its copy at that commit, fetched rather than hand-edited, plus only the entries item 3 keeps. A canonical file the policies require and this repository lacks is added the same way.
  2. Dockerfile, Makefile and script/ follow REPO_POLICIES.md as of that commit, including the gate phases and the version step.
  3. This repository's own entries are carried forward: the deny entries of the test-support depguard rule in .golangci.yml, anchored host-built artifacts in .dockerignore, and its language's entries in .gitignore and .editorconfig, kept after the canonical content. .gitignore is a base each repository extends for its language: a Go repository keeps at least *.log, *.out, *.test and its binaries (prompts/CODE_STYLEGUIDE_GO.md), and its .editorconfig keeps tabs for *.go. (Corrected 2026-10-06: the first version of this item dropped those entries.)
  4. Findings the new files raise are fixed in the code in the same PR; no vendored file is loosened.
  5. make lint runs with no deprecation warnings, and make check passes.
  6. One reviewed PR against next. Closing this issue ticks this repository on sneak/prompts#78.

This also resolves #116: the canonical .golangci.yml disables gomodguard. The landing commit closes both.

Model: opus-5-5

https://git.eeqj.de/sneak/prompts/issues/78: `sneak/prompts` has changed the canonical files this repository vendors. Re-vendor them once, from `sneak/prompts` commit `dd4027b` (https://git.eeqj.de/sneak/prompts/commit/dd4027b907ef99cdc3187c215cc4d610b7a11efc), fetching each file from `https://git.eeqj.de/sneak/prompts/raw/commit/dd4027b907ef99cdc3187c215cc4d610b7a11efc/<path>`. Files this repository vendors now: `.dockerignore .editorconfig .gitea/workflows/check.yml .gitignore .golangci.yml .prettierignore .prettierrc REPO_POLICIES.md`. `REPO_POLICIES.md` comes from `prompts/REPO_POLICIES.md` at that commit: the root `REPO_POLICIES.md` there is a symlink, and its raw URL returns only the link's target path. That repository's own `.gitattributes` and `TODO.md` are not canonical. What changed that matters here: - golangci-lint is v2.14.0 (`golangci/golangci-lint@sha256:ad862ba6b3798cbe0fd9fd7408d498fd74fbd2623a92406b2fd3898faf0bf98f`). The lint phase digest and `.golangci.yml` change in one commit, since v2.12.2 rejects the new file; the `go` directive may name at most Go 1.27. - The Go `Dockerfile` example: the test phase uses the Debian Go image so `-race` works; the stage that compiles installs `git`, trusts `/src` with `git config --system --add safe.directory /src`, and fails when `.git` is present but no version comes out. - Host Go tools are installed with `go install` pinned to a commit, never as `go.mod` tool dependencies. - The image version comes from `git describe` inside the build: `.dockerignore` sends `.git` without its own or any submodule's `config`. `CHECK_EPOCH` is gone; every `docker build` in `script/` passes `--no-cache`. - `.gitignore` and `.dockerignore` keep out more secret files, hardware-backed SSH keys included. - Agent guidance lives in one root `AGENTS.md`; a committed file or directory named for one agent tool has its content moved there and is deleted. ## Definition of done 1. Every vendored canonical file is its copy at that commit, fetched rather than hand-edited, plus only the entries item 3 keeps. A canonical file the policies require and this repository lacks is added the same way. 2. `Dockerfile`, `Makefile` and `script/` follow `REPO_POLICIES.md` as of that commit, including the gate phases and the version step. 3. This repository's own entries are carried forward: the `deny` entries of the `test-support` depguard rule in `.golangci.yml`, anchored host-built artifacts in `.dockerignore`, and its language's entries in `.gitignore` and `.editorconfig`, kept after the canonical content. `.gitignore` is a base each repository extends for its language: a Go repository keeps at least `*.log`, `*.out`, `*.test` and its binaries (`prompts/CODE_STYLEGUIDE_GO.md`), and its `.editorconfig` keeps tabs for `*.go`. (Corrected 2026-10-06: the first version of this item dropped those entries.) 4. Findings the new files raise are fixed in the code in the same PR; no vendored file is loosened. 5. `make lint` runs with no deprecation warnings, and `make check` passes. 6. One reviewed PR against `next`. Closing this issue ticks this repository on https://git.eeqj.de/sneak/prompts/issues/78. This also resolves https://git.eeqj.de/sneak/mfer/issues/116: the canonical `.golangci.yml` disables `gomodguard`. The landing commit closes both. Model: opus-5-5
clawbot self-assigned this 2026-10-06 01:29:52 +02:00
Author
Collaborator

Plan, mfer-specific points for the brief above:

  • bin/tools (a Go module holding gofumpt and protoc-gen-go as tool dependencies, from #155) goes: the policy at dd4027b installs host Go tools with go install pinned to a commit. script/gofumpt and script/generate follow; protoc keeps its per-platform hash check in script/bootstrap.
  • Kept as this repository's own: the build, generate and fuzz targets, the static binary and CA certificates in the image, and the policy carve-outs the issue names.
  • The landing commit closes this issue and #116. #102 (Go 1.27) follows it.

Model: opus-5-5

Plan, mfer-specific points for the brief above: - `bin/tools` (a Go module holding `gofumpt` and `protoc-gen-go` as tool dependencies, from https://git.eeqj.de/sneak/mfer/pulls/155) goes: the policy at `dd4027b` installs host Go tools with `go install` pinned to a commit. `script/gofumpt` and `script/generate` follow; `protoc` keeps its per-platform hash check in `script/bootstrap`. - Kept as this repository's own: the `build`, `generate` and `fuzz` targets, the static binary and CA certificates in the image, and the policy carve-outs the issue names. - The landing commit closes this issue and https://git.eeqj.de/sneak/mfer/issues/116. https://git.eeqj.de/sneak/mfer/issues/102 (Go 1.27) follows it. Model: opus-5-5
Author
Collaborator

Built in #162. The canonical files from sneak/prompts dd4027b are vendored as fetched, with this repository's own entries after the canonical text in .dockerignore, .gitignore and .editorconfig. The Dockerfile has separate lint and test phases ahead of the build stage, and script/bootstrap replaces bin/tools with go install pinned to commits, at the same tool versions. The new linter and config raised nothing to fix in the code.

Model: opus-5-5

Built in https://git.eeqj.de/sneak/mfer/pulls/162. The canonical files from `sneak/prompts` `dd4027b` are vendored as fetched, with this repository's own entries after the canonical text in `.dockerignore`, `.gitignore` and `.editorconfig`. The `Dockerfile` has separate lint and test phases ahead of the build stage, and `script/bootstrap` replaces `bin/tools` with `go install` pinned to commits, at the same tool versions. The new linter and config raised nothing to fix in the code. Model: opus-5-5
Sign in to join this conversation.