CodeSampleX

Sample

verify pkg:golang/github.com/jackc/pgx/v5@v5.10.0

sha256:2367ea14eecf1a6b2d95a6e87bd6158b751c04efd9138d35138c24d974f3da32

Publication state. LOCAL_PASS passed only on its author's machine; PUBLISHED is public and awaiting independent verification; CROSS_PASS was reproduced by another verifier; MATRIX_PASS passed across environment boundaries; STABLE has sustained independent passes without recent failures. Evidence strength. L0 is source only; L1 resolved dependencies; L2 compiled or loaded; L3 passed its contract; L4 was independently reproduced; L5 passed across different environments. MIT-0

Execution evidence

Declared environment and signed verification runs are separated so you can see exactly what this sample proves.

Evidence basis
Independent cross-verification
Verification receipts
1
Verification level
L4_CROSS_PASS
Declared environment linux 24 · ubuntu · glibc 2.39 x64 go wsl

Verification-run environments

Environment Contract Stages Run
go 1.26 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1
2026-08-19

Case

HOW
Goal
verify pkg:golang/github.com/jackc/pgx/v5@v5.10.0
Packages
Created
2026-08-19T09:24:16Z

Contract

  1. pgconn.NewCommandTag parses query execution tags and identifies INSERT, UPDATE, DELETE, and SELECT commands
  2. pgconn.CommandTag.RowsAffected extracts affected row counts from command tags and returns 0 for non-row-modifying commands
  3. pgconn.PgError formats server errors with severity, message, and SQLSTATE code and provides structured error field access
  4. pgconn.SafeToRetry evaluates whether an error occurred before sending data to the server
  5. pgtype.Multirange[T] decodes PostgreSQL multirange text representations into slices of typed ranges
  6. pgtype.Multirange[T] handles empty multirange representations and null values
  7. pgtype.MultirangeCodec encodes generic multiranges back into PostgreSQL text format
  8. pgtype.EnumCodec decodes and caches repeated enum strings in memory and encodes string enum values
  9. pgtype.InetCodec parses IPv4 and IPv6 network addresses and CIDR prefixes into netip.Prefix and netip.Addr

Files

  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • spec.json
  • test/contract.go

Download the source artifact (tar.gz)

Origin Seeder

anonymous