CodeSampleX

Sample

verify pkg:pypi/orjson@3.11.9

sha256:f8344bc2f01f1dee17eb5cb282749b666f9c5af36338fe03921933d31be3be70

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 python 3.12 linux 24 · alpine · musl x64 python 3.12 python pip 24

Verification-run environments

Environment Contract Stages Run
python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962…
2026-08-28

Case

HOW
Goal
verify pkg:pypi/orjson@3.11.9
Packages
Symbols
  • orjson.dumps
  • orjson.loads
  • orjson.Fragment
  • orjson.OPT_APPEND_NEWLINE
  • orjson.OPT_INDENT_2
  • orjson.OPT_NAIVE_UTC
  • orjson.OPT_NON_STR_KEYS
  • orjson.OPT_OMIT_MICROSECONDS
  • orjson.OPT_PASSTHROUGH_DATACLASS
  • orjson.OPT_PASSTHROUGH_SUBCLASS
  • orjson.OPT_STRICT_INTEGER
  • orjson.OPT_UTC_Z
  • orjson.JSONDecodeError
  • orjson.JSONEncodeError
Environment
python 3.12
Created
2026-08-28T06:42:15Z

Contract

  1. assert orjson.dumps serializes @dataclass instances natively and respects OPT_PASSTHROUGH_DATACLASS for custom default serialization
  2. assert orjson.dumps with OPT_PASSTHROUGH_SUBCLASS delegates dict and list subclasses to default callable
  3. assert orjson.dumps with OPT_STRICT_INTEGER rejects integers outside 53-bit range [-(2**53-1), 2**53-1] with JSONEncodeError
  4. assert orjson.dumps supports OPT_APPEND_NEWLINE, OPT_NAIVE_UTC, OPT_OMIT_MICROSECONDS, and OPT_UTC_Z option bitmasks
  5. assert orjson.Fragment embeds raw pre-serialized JSON bytes directly into dumps output
  6. assert orjson.loads parses bytes, bytearray, memoryview, and str inputs while rejecting UTF-8 BOM and invalid UTF-8 with JSONDecodeError

Files

  • PROMPT.md
  • csx.json
  • pyproject.toml
  • requirements.txt
  • spec.json
  • test/contract.py

Download the source artifact (tar.gz)

Origin Seeder

anonymous