---
name: middleware-reproducibility
description: Use when keeping Middleware experiments repeatable across clouds, clusters, and versions for revisions months later. Records deployments, quotas, and prices. Does not package.
---

# Middleware reproducibility

Use this for the long tail: a major revision is judged on tasks done on a system that must still exist.

Call: https://middleware-conf.github.io/2027/call-for-papers/

## Deployment as a file

Everything needed to create the experiment from an empty account: infrastructure code with pinned versions, images by digest, configuration with secrets removed, the order of steps, quotas needed, region, and time to deploy. If a console click was needed, write it as a step with a screenshot, and automate it next week.

```bash
E=exp/$(date -u +%Y%m%dT%H%M%SZ); mkdir -p "$E"
git rev-parse HEAD > "$E/commit"; git diff > "$E/dirty.patch"
kubectl get nodes -o wide > "$E/nodes" 2>/dev/null || true
kubectl get pods -A -o jsonpath='{range .items[*]}{.spec.containers[*].image}{"\n"}{end}' 2>/dev/null | sort | uniq -c > "$E/images" || true
kubectl version -o json > "$E/k8s.json" 2>/dev/null || true
docker version --format '{{json .}}' > "$E/docker.json" 2>/dev/null || true
env | grep -viE 'key|token|secret|pass' | sort > "$E/env"
date +%s > "$E/start"
```

Look at `images`: anything tagged `latest` is a hole. The filter on `env` removes names that look secret. Read the file before sharing it.

## Cloud facts

Instance type, zone, date, price, spot or not, neighbours unknown. Clouds change silently, so interleave systems and repeat on another day. Keep the bill: cost figures come from it.

## Service versions

Managed services have no version you control. Record date, announced version, and a fingerprint run that you repeat. If it moves, earlier results and later ones are two sets.

## Run line

```text
run | deployment hash | system under test | load trace + seed | fault schedule | duration, cut | raw files | price | note | valid by rule
```

Fault schedules are data. "We killed a pod" is not repeatable. "At t=120 s SIGKILL to leader, at t=180 s 200 ms delay on eth0 of n3" is.

## Models and agents

Model name and date, engine version, flags, batch settings, tokenizer, decoding, seeds if any, and prompts. For tool calls: recorded replies, so that reruns need no outside service.

## For the revision

Tag the submission. Write for each claim the command and expected time. Once, before submission, destroy and recreate everything from files. The first time always fails. Better in May than in January.

## Privacy

Production traces: what was removed, who approved, until when. If used, the ethics section is probably required.

## Output

```text
[Middleware record] recreated from empty account on <date>, hours <n>
[Images] by digest <n of n>, latest <none>
[Fault schedules] files <n>
[Managed services] fingerprint drift <x>
[Runs] <n>, two days, interleaved · [Bill] kept
[Claims -> command] <n of n> · tag <x>
```

## Reverify each cycle

- Dates until which the testbed must be rebuildable.
