CodeSampleX

Sample

verify Req.Request in pkg:hex/req@0.7.2

sha256:3dec717f8b8a16d5494fd4d3976301fac8108711c80d7ba5d256adada84bb49c

Publication state. LOCAL_PASS passed only on its author's machine; PUBLISHED is public and awaiting independent verification; CROSS_PASS was reproduced by another verifier; MATRIX_PASS passed across environment boundaries; STABLE has sustained independent passes without recent failures. Evidence strength. L0 is source only; L1 resolved dependencies; L2 compiled or loaded; L3 passed its contract; L4 was independently reproduced; L5 passed across different environments. MIT-0

Execution evidence

Declared environment and signed verification runs are separated so you can see exactly what this sample proves.

Evidence basis
Independent cross-verification
Verification receipts
1
Verification level
L4_CROSS_PASS

Declared environment

Execution context
elixir 1
Operating system
linux
Architecture
x64
Runtime
elixir 1
Language
elixir
Package manager
mix

Verification-run environments

elixir 1 · linux alpine/x64 · docker PASS
Execution context
elixir 1
Operating system
linux alpine · musl
Architecture
x64
Runtime
elixir 1
Language
elixir
Package manager
mix
Execution
container · docker

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

Case

HOW
Goal
verify Req.Request in pkg:hex/req@0.7.2
Packages
Symbols
  • Req.Request
  • Req.Request.put_header
  • Req.Request.put_new_header
  • Req.Request.put_private
  • Req.Request.get_private
  • Req.Request.append_request_steps
  • Req.Request.append_response_steps
  • Req.Request.run!
Environment
elixir 1
Created
2026-08-18T13:46:05Z

Contract

  1. Req.Request structs represent configured HTTP requests with normalized URL, method, headers, and options.
  2. Req.Request header and private helpers manipulate request metadata predictably.
  3. Req.Request.append_request_steps and append_response_steps attach middleware transformations across the execution pipeline.
  4. Req.Request.run! executes request and response steps against in-process Plug endpoints without network IO.

Files

  • PROMPT.md
  • csx.json
  • lib/csx_req.ex
  • mix.exs
  • mix.lock
  • spec.json
  • test/contract_test.exs
  • test/test_helper.exs

Download the source artifact (tar.gz)

Origin Seeder

anonymous

Verification receipts

  • elixir 1 · linux alpine/x64 · docker PASS
    CONTAINER_RUN compile:PASS · contract:PASS · load:PASS · resolve:PASS hex@1
    ed25519:2175b912ea1c23b1