CodeSampleX

Ejemplo

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

sha256:5618eba0d0102eea1b4a224363d2b80f5f0a93410f68732524f451965463e734

Estado de publicación. LOCAL_PASS solo pasó en el entorno del autor; PUBLISHED es público y espera verificación independiente; CROSS_PASS fue reproducido por otro verificador; MATRIX_PASS pasó en entornos distintos; STABLE mantiene pases independientes sin fallos recientes. Fuerza de la evidencia. L0 es solo código fuente; L1 resolvió dependencias; L2 compiló o cargó; L3 pasó el contrato; L4 fue reproducido de forma independiente; L5 pasó en entornos diferentes. MIT-0

Evidencia de ejecución

Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.

Base de evidencia
Verificación cruzada independiente
Recibos de verificación
1
Nivel de verificación
L4_CROSS_PASS

Entorno declarado

Contexto de ejecución
java 21
Sistema operativo
linux 2023 · glibc
Arquitectura
x64
Runtime
java 21
Lenguaje
java 21
Gestor de paquetes
maven 3

Entornos de las ejecuciones de verificación

java 21 · linux 2023/x64 · docker PASS
Contexto de ejecución
java 21
Sistema operativo
linux 2023 · amzn · glibc
Arquitectura
x64
Runtime
java 21
Lenguaje
java 21
Gestor de paquetes
maven 3
Ejecución
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
Paquetes
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
Entorno
java 21
Creado
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

Archivos

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

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

anónimo

Recibos de verificación

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