CodeSampleX

Sample

verify gin.Context.IsAborted in pkg:golang/github.com/gin-gonic/gin@v1.12.0

sha256:d19aeb89f2009fa9c9de5fcec594981e414e323e6525ad81b9c43640782b3439

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
3
Verification level
L4_CROSS_PASS
Declared environment go 1.26 linux x64 go 1.26 go gomod

Verification-run environments

Environment Contract Stages Run
go 1.26 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 SKIPPED compile:FAIL · contract:SKIPPED · load:SKIPPED · resolve:PASS
CONTAINER_RUN · golang@1
2026-08-19
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 SKIPPED compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL
CONTAINER_RUN · golang@1
2026-08-20
go 1.26 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1
2026-08-20

Case

HOW
Goal
verify gin.Context.IsAborted in pkg:golang/github.com/gin-gonic/gin@v1.12.0
Packages
Symbols
  • gin.Context.IsAborted
  • gin.Context.AbortWithStatusJSON
  • gin.Context.Abort
  • gin.Context.Next
Environment
go 1.26
Created
2026-08-18T13:38:21Z

Contract

  1. assert Context.IsAborted returns false before any abort invocation
  2. assert AbortWithStatusJSON marks Context.IsAborted as true and returns 401 status
  3. assert aborted context prevents execution of downstream middleware and route handlers
  4. assert non-aborted request completes successfully with IsAborted remaining false

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous