CodeSampleX

Exemplo

verify pkg:maven/org.springframework/spring-webmvc@7.0.8

sha256:5618eba0d0102eea1b4a224363d2b80f5f0a93410f68732524f451965463e734

Estado de publicação. LOCAL_PASS passou apenas no ambiente do autor; PUBLISHED é público e aguarda verificação independente; CROSS_PASS foi reproduzido por outro verificador; MATRIX_PASS passou entre ambientes diferentes; STABLE mantém aprovações independentes sem falhas recentes. Força da evidência. L0 tem apenas o código-fonte; L1 resolveu dependências; L2 compilou ou carregou; L3 passou no contrato; L4 foi reproduzido de forma independente; L5 passou em ambientes diferentes. 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ência
Verificação cruzada independente
Recibos de verificação
1
Nível de verificação
L4_CROSS_PASS

Ambiente declarado

Contexto de execução
java 21
Sistema operacional
linux 2023 · glibc
Arquitetura
x64
Runtime
java 21
Linguagem
java 21
Gerenciador de pacotes
maven 3

Ambientes das execuções de verificação

java 21 · linux 2023/x64 · docker PASS
Contexto de execução
java 21
Sistema operacional
linux 2023 · amzn · glibc
Arquitetura
x64
Runtime
java 21
Linguagem
java 21
Gerenciador de pacotes
maven 3
Execução
container · docker

CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · maven-java@1 · 2026-08-19

Caso

HOW
Objetivo
verify pkg:maven/org.springframework/spring-webmvc@7.0.8
Pacotes
Símbolos
  • org.springframework.core.SpringVersion.getVersion
  • org.springframework.test.web.servlet.MockMvc
  • org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup
  • org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get
  • org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
  • org.springframework.test.web.servlet.result.MockMvcResultMatchers.content
  • org.springframework.web.bind.annotation.RestController
  • org.springframework.web.bind.annotation.RequestMapping
  • org.springframework.web.bind.annotation.GetMapping
  • org.springframework.web.bind.annotation.PathVariable
  • org.springframework.web.bind.annotation.RequestParam
  • org.springframework.web.bind.annotation.ExceptionHandler
  • org.springframework.web.bind.annotation.ResponseStatus
Ambiente
java 21
Criado
2026-08-18T12:52:06Z

Contrato

  1. assert SpringVersion reports 7.0.8 on the classpath
  2. assert MockMvc performs a GET request with @PathVariable and @RequestParam and matches the 200 OK body
  3. assert missing required @RequestParam resolves MissingServletRequestParameterException and returns HTTP 400 Bad Request
  4. assert custom ResourceNotFoundException is caught by @ExceptionHandler and mapped to HTTP 404 Not Found
  5. assert requests to unmapped route paths return HTTP 404 Not Found

Arquivos

  • PROMPT.md
  • csx.json
  • pom.xml
  • spec.json
  • src/Contract.java

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

anônimo

Recibos de verificação

  • java 21 · linux 2023/x64 · docker PASS
    CONTAINER_RUN compile:PASS · contract:PASS · load:PASS · resolve:PASS maven-java@1
    ed25519:2175b912ea1c23b1