CodeSampleX

Sample

verify golang.org/x/sync/syncmap.Map in pkg:golang/golang.org/x/sync@v0.22.0

sha256:790af6712925de14871c37b6dff75594fa6d129fee8ec89b8da639a4bd86fc09

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
1
Signing keys that built it
1
Declared environment linux 24 · ubuntu · glibc 2.39 x64 go

Verification-run environments

Environment Contract Stages Run
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1golang:1.26-alpine@sha256:28d89ee9cc0f…
2026-08-27

Case

HOW
Goal
verify golang.org/x/sync/syncmap.Map in pkg:golang/golang.org/x/sync@v0.22.0
Packages
Symbols
  • golang.org/x/sync/syncmap.Map
Created
2026-08-27T22:02:28Z

Contract

  1. syncmap.Map Store stores key-value pair and Load retrieves it
  2. syncmap.Map Load on nonexistent key returns ok=false
  3. syncmap.Map LoadOrStore returns existing value if present without modifying
  4. syncmap.Map LoadOrStore stores and returns new value when key is absent
  5. syncmap.Map LoadAndDelete deletes key and returns previous value and loaded=true
  6. syncmap.Map Delete removes key from map
  7. syncmap.Map Swap replaces value and returns previous value
  8. syncmap.Map CompareAndSwap conditionally replaces value when old matches
  9. syncmap.Map CompareAndDelete conditionally deletes key when old matches
  10. syncmap.Map Range iterates over entries and stops when callback returns false
  11. syncmap.Map safely handles concurrent reads and writes from multiple goroutines

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