go-api · diff

git:20260813.87827b7 to git:20261020.7ba3794

14 added, 17 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
applyTo: "**/*.go,go.mod,go.sum,api/openapi/**/*.yaml"
---
# Go And API Review Instructions
- The Go server is pre-release; the Go version comes from `go.mod`. Canonical
- scoped sources for this glob:
- [`internal/storage/AGENTS.md`](../../internal/storage/AGENTS.md) (statements,
- transactions, identifier minting, authz persistence, `stmttest` contract
- tests) and [`api/openapi/AGENTS.md`](../../api/openapi/AGENTS.md) (wire
- snake_case gate, error-code catalog, pagination). Review pointers on top:
+ Canonical scoped sources for this glob:
+ [`internal/AGENTS.md`](../../internal/AGENTS.md),
+ [`internal/storage/AGENTS.md`](../../internal/storage/AGENTS.md) and
+ [`api/openapi/AGENTS.md`](../../api/openapi/AGENTS.md). Review heuristics on
+ top:
- - Review Go changes for `gofmt`, `go vet ./...`, and `go test ./...`.
- - Do not hand-edit `api/generated/**`; update `api/openapi/**` and regenerate
- with `moon run server:generate`. CI enforces drift through
- `server:check-generate`, and wire casing through
- `workspace:check-openapi-rules` — wrong casing fails silently at runtime,
- so treat those gates as part of the contract.
+ - Never ask an author to hand-edit `api/generated/**`; the fix goes into
+ `api/openapi/**` and `moon run server:generate`. CI checks drift with
+ `server:check-generate-pruned` and lints the spec, wire casing included,
+ with `server:openapi`. Wrong casing fails silently at runtime, so treat both
+ gates as part of the contract.
- Error responses follow the stable code catalog
([ADR 030](../../docs/adrs/030-error-model-mapping-and-reporting.md),
[`error-details-producers.md`](../../docs/design/api/error-details-producers.md));
- new endpoints must not invent ad-hoc error shapes.
- - Preserve clear boundaries between public API contracts in `api/` and server
- implementation in `internal/`.
- - Watch licensing: server implementation is AGPL-3.0-only by default, while
- `api/` is an MIT exception per [`LICENSING.md`](../../LICENSING.md).
+ flag a new endpoint that invents an ad-hoc error shape.
+ - Keep the public API contract in `api/` apart from the server implementation
+ in `internal/`: they sit on opposite sides of the licensing split in
+ [`LICENSING.md`](../../LICENSING.md).