CodeSampleX

サンプル

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

sha256:6f79891a179ca3fbdd8fc48044ef98181d973b5fb4d1820fa498ea65698f32f4

公開状態です。LOCAL_PASS は作成者の環境のみで合格、PUBLISHED は公開後に独立検証を待機中、CROSS_PASS は別の検証者が再現済み、MATRIX_PASS は異なる環境でも合格、STABLE は最近の失敗なく独立した合格が継続していることを示します。 証拠の強さです。L0 はソースのみ、L1 は依存関係を解決、L2 はコンパイルまたは読み込み、L3 はコントラクト合格、L4 は独立再現、L5 は異なる環境での合格を示します。 MIT-0

実行証拠

宣言環境と署名済み検証実行を分け、証明範囲を明確にします。

証拠の基準
独立クロス検証
検証レシート
1
検証レベル
L4_CROSS_PASS

宣言された環境

実行コンテキスト
go 1.26
OS
linux
アーキテクチャ
x64
ランタイム
go 1.26
言語
go
パッケージマネージャー
gomod

検証実行環境

go 1.26 · linux alpine/x64 · docker PASS
実行コンテキスト
go 1.26
OS
linux alpine · musl
アーキテクチャ
x64
ランタイム
go 1.26
言語
go
パッケージマネージャー
gomod
実行方式
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-19

ケース

HOW
ゴール
verify pgx.Conn.Begin in pkg:golang/github.com/jackc/pgx/v5@v5.10.0
パッケージ
シンボル
  • pgx.Conn.Begin
  • pgx.Tx.Commit
  • pgx.Tx.Rollback
  • pgx.ErrTxClosed
環境
go 1.26
作成日
2026-08-18T13:18:30Z

コントラクト

  1. pgx.Conn.Begin sends BEGIN and returns a transaction whose lifetime is not bound to the context used for the BEGIN command.
  2. Cancelling the Begin context after Begin returns does not send ROLLBACK and the transaction can still be committed with another context.
  3. Rollback must be called explicitly on abandoned transactions.
  4. Rollback after a successful Commit and repeated Rollback calls return pgx.ErrTxClosed without sending another server command, making defer tx.Rollback safe.

ファイル

  • PROMPT.md
  • contract_test.go
  • csx.json
  • go.mod
  • go.sum
  • spec.json

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名

検証レシート

  • go 1.26 · linux alpine/x64 · docker PASS
    CONTAINER_RUN compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS go@1
    ed25519:2175b912ea1c23b1