CodeSampleX

Sample

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

sha256:f2a1159b9cf80c017a1f190e6447f0368fd3273bd899b650470e85b655b74f7c

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
Symbols
  • pgx.NamedArgs
  • pgx.NamedArgs.RewriteQuery
  • pgx.QueryRewriter
  • pgx.StrictNamedArgs
  • pgx.StrictNamedArgs.RewriteQuery
Created
2026-08-19T02:53:06Z

Contract

  1. assert pgx.NamedArgs rewrites named parameter placeholders into positional placeholders and extracts values in order of appearance
  2. assert pgx.NamedArgs reuses identical positional parameter index for repeated named parameters and dedupes extracted arguments
  3. assert pgx.NamedArgs distinguishes PostgreSQL @@ text search operators and preserves them without parameter replacement
  4. assert pgx.NamedArgs ignores @ characters contained within quoted string literals
  5. assert pgx.NamedArgs maps missing map keys to nil parameter values bound to corresponding positional placeholders
  6. assert pgx.NamedArgs ignores unused map keys without error
  7. assert pgx.StrictNamedArgs returns an error when map contains unused parameter keys
  8. assert pgx.NamedArgs returns unchanged SQL and empty args slice for queries without named parameters

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