pa-02 — Execution

Prerequisites

  • Go ≥ 1.25 (stdlib only, offline).

One-shot

cd pa-02-api-design && bash scripts/verify.sh

Per-language workflow (Go)

cd pa-02-api-design/src/go
go test -race -count=1 ./...      # compat rules, idempotency, cursors
go run ./cmd/apidemo

Package map

FileWhat
apicontract/compat.goprotobuf-style schema compatibility check + HasBreaking CI gate
apicontract/idempotency.goidempotency-key store (run-once, no-cache-on-failure, TTL)
apicontract/cursor.goopaque, tamper-evident pagination cursors
cmd/apidemoa compat check, idempotent retries, and a cursor round-trip + tamper

See GUIDE.md for the deep dive.