Sample
Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to '1' fails to bypass gencode version validation because the check strictly requires case-insensitive 'true'
sha256:dfa29773f51a13095a34100877c8730d91ab4f3d8016d6b0f0e058c87cca4256
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- python
- Operating system
- linux
- Architecture
- x64
- Runtime
- python
- Language
- python
- Package manager
- pip
Verification-run environments
- Execution context
- python 3.12
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- python 3.12
- Language
- python
- Package manager
- pip
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Case
- Goal
- Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to '1' fails to bypass gencode version validation because the check strictly requires case-insensitive 'true' HOW
- Packages
-
protobuf 6.33.6
- Environment
- python
- Created
- 2026-08-17T17:18:16Z
Commonly assumed
Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK=1 in the environment disables protobuf gencode version validation during proto loading
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to '1' fails to bypass gencode version validation because the check strictly requires 'true', continuing to raise VersionError on newer gencode
- Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to case-insensitive 'true' disables gencode validation and allows newer gencode to load without VersionError
- Importing gencode generated by a newer protoc version raises VersionError identifying the version mismatch
- Importing gencode generated by an older protoc version succeeds without error on a newer runtime
- Dynamic mutations to TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK take effect immediately on subsequent validation calls rather than caching on module import
Files
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- test/contract.py
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9