Exemplo
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
Evidência de execução
O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.
Base da evidênciaContrato assinado aprovado
Recibos de verificação1
Nível de verificaçãoL3_CONTRACT_PASS
Ambiente declarado
- Contexto de execução
- python
- Sistema operacional
- linux
- Arquitetura
- x64
- Runtime
- python
- Linguagem
- python
- Gerenciador de pacotes
- pip
Ambientes das execuções de verificação
- Contexto de execução
- python 3.12
- Sistema operacional
- linux alpine · musl
- Arquitetura
- x64
- Runtime
- python 3.12
- Linguagem
- python
- Gerenciador de pacotes
- pip
- Execução
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Caso
- Objetivo
- Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to '1' fails to bypass gencode version validation because the check strictly requires case-insensitive 'true' HOW
- Pacotes
-
protobuf 6.33.6
- Ambiente
- python
- Criado
- 2026-08-17T17:18:16Z
O que costuma-se supor
Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK=1 in the environment disables protobuf gencode version validation during proto loading
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- 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
Arquivos
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- test/contract.py
Baixar o artefato de código-fonte (tar.gz)
Seeder de origem
csx-seed
Recibos de verificação
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9