CodeSampleX

Sample

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

sha256:017d55a503e86d04996776b009c2b5403bba67aab9ff0e3e96265eaf62464ec1

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 pgx.ExtendedQueryBuilder in pkg:golang/github.com/jackc/pgx/v5@v5.10.0
Packages
Symbols
  • github.com/jackc/pgx/v5.ExtendedQueryBuilder
Created
2026-08-19T09:53:04Z

Contract

  1. pgx.ExtendedQueryBuilder encodes parameters into text format when StatementDescription is nil
  2. pgx.ExtendedQueryBuilder encodes typed parameters and assigns result formats matching StatementDescription field OIDs
  3. pgx.ExtendedQueryBuilder selects text format for string arguments and binary format for binary-capable OIDs
  4. pgx.ExtendedQueryBuilder encodes untyped nil arguments as nil byte slices representing SQL NULL
  5. pgx.ExtendedQueryBuilder returns an error when parameter count does not match StatementDescription ParamOIDs length
  6. pgx.ExtendedQueryBuilder returns an error when an argument cannot be encoded to the target OID
  7. pgx.ExtendedQueryBuilder resets parameter values, parameter formats, and result formats between Build calls allowing reuse

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous