CodeSampleX

Sample

github.com/gin-gonic/gin v1.12.0: Context.IsAborted, Context.AbortWithStatusJSON, Context.Abort

Verified sample for golang github.com/gin-gonic/gin v1.12.0: Context.IsAborted, Context.AbortWithStatusJSON, Context.Abort. The contract ran on go 1.26 …

sha256:d19aeb89f2009fa9c9de5fcec594981e414e323e6525ad81b9c43640782b3439

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
2
Signing keys that built it
1
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: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