Attestable Builds

Attestable builds are a new approach to verifiable software distribution. Source code is compiled inside hardware-isolated environments that produce cryptographic proof linking binaries to their exact inputs.

POST /build/stream

Same as POST /build but streams progress updates via Server-Sent Events (SSE) instead of waiting for the full result.

Parameters

Same as POST /build — provide either source or repo_url.

Examples

From a git repo

curl -N -X POST https://kettle-anthropic-api-demo.lunal.dev/build/stream \
  -F "repo_url=https://github.com/AmeanAsad/comp-graph" \
  -F "ref=main"

From a ZIP upload

curl -N -X POST https://kettle-anthropic-api-demo.lunal.dev/build/stream \
  -F "source=@my-project.zip"

The -N flag disables output buffering so events appear in real time.

SSE Output

Progress events stream as they happen, followed by a final completion event:

data: {"type":"info","message":"Detected: cargo"}
data: {"type":"info","message":"Verifying Build Inputs"}
data: {"type":"info","message":"[1/4] Verifying git source..."}
data: {"type":"info","message":"[2/4] Hashing lockfile..."}
data: {"type":"info","message":"[3/4] Verifying dependencies..."}
data: {"type":"info","message":"[4/4] Verifying cargo toolchain..."}
data: {"type":"info","message":"Building Project"}
data: {"type":"info","message":"Build successful"}
data: {"type":"info","message":"Generating Provenance"}
data: {"type":"info","message":"Generating Attestation"}
data: {"type":"complete","result":{"build_id":"a1b2c3d4","status":"success",...}}