CodeSampleX

Sample

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

sha256:4d68834ba0389cc4355311f974ff606aed9dc2bf17514346753cd044a055676c

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:20:03Z

Contract

  1. pgx.RowToStructByName maps database columns to struct fields matched case-insensitively or overridden by db struct tags
  2. pgx.RowToAddrOfStructByName scans database row columns into a newly allocated struct pointer
  3. pgx.RowToStructByNameLax allows scanning when the destination struct has more fields than the database row result set
  4. pgx.RowToAddrOfStructByNameLax scans database row columns into a pointer to struct with lax field count matching
  5. pgtype.Point decodes PostgreSQL point coordinates (x,y) from text and serializes to driver.Value
  6. pgtype.Box decodes rectangular coordinate pairs (high-x,high-y),(low-x,low-y) and encodes to driver.Value
  7. pgtype.Circle decodes center coordinates and radius <(x,y),r>
  8. pgtype.Polygon decodes closed polygonal vertex loops
  9. pgtype.Hstore scans key-value pairs from text format distinguishing string values from SQL NULL values
  10. pgtype.Bits decodes PostgreSQL bit strings preserving exact bit length and byte encoding

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous