CodeSampleX

Sample

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

sha256:577a046740cea399d08f87d666f6c0c455d8e4259048131c30c91ef4062a5e18

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 windows 11 x64 go

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
Symbols
  • github.com/jackc/pgx/v5.RowToStructByNameLax
  • github.com/jackc/pgx/v5.RowToAddrOfStructByNameLax
  • github.com/jackc/pgx/v5.CollectExactlyOneRow
Created
2026-08-19T00:56:36Z

Contract

  1. pgx.RowToStructByNameLax scans matching columns into struct fields while leaving missing fields as zero values
  2. pgx.RowToAddrOfStructByNameLax scans matching columns into a pointer to struct
  3. pgx.RowToStructByName fails when struct fields are missing from row columns in strict mode
  4. pgx.CollectExactlyOneRow returns a single scanned struct when exactly one row is present
  5. pgx.CollectExactlyOneRow returns pgx.ErrNoRows when zero rows are returned
  6. pgx.CollectExactlyOneRow returns pgx.ErrTooManyRows when multiple rows are returned

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous