Lab files for "Bound to a Call the Reviewer Never Saw: Testing Lelu's Authorization Engine for AI Agents" Tested with lelu-mcp 0.0.36 / engine v0.3.1 on Docker Desktop (Apple silicon). Everything runs inside one throwaway container. Run the commands from the folder that contains this lab/ directory. SETUP (configuration A: zero-config) docker build -t lelu-lab lab/ docker run -d --name lelu-lab -v "$PWD/lab:/lab" lelu-lab sleep infinity docker exec lelu-lab /lab/start.sh env.sh sourced by every script: finds the engine URL and key, defines authz '' and api METHOD PATH [json] STEPS ON CONFIGURATION A lelu-probe.sh step 2: the probe as suggested (fails: 401, then 400) docker exec lelu-lab bash -c 'source /lab/env.sh; /lab/lelu-probe.sh $BASE' docker exec lelu-lab bash -c 'source /lab/env.sh; /lab/lelu-probe.sh $BASE $KEY' lelu-probe-v2.sh step 2: corrected probe (same arguments, with the key) 03-names.sh step 4: action names vs arguments 04-confidence.sh step 5: one call, four self-reported confidence values 05-review.sh step 6: approve, then redeem three ways 05b-race.sh step 6: 25 concurrent redemptions ttl-test.sh step 6: approve, wait 16 minutes, redeem (slow on purpose) 05c-reviewer-view.sh step 7: what the queue shows for two different recipients 08-load.sh step 10: latency, then a burst into the rate limit SWITCH TO CONFIGURATION B (production-style settings) openssl rand -hex 16 > lab/reviewer.key docker rm -f lelu-lab docker run -d --name lelu-lab -v "$PWD/lab:/lab" \ -e CONFIDENCE_ALLOW_UNVERIFIED=false -e CONFIDENCE_MISSING_MODE=review \ -e LELU_AUDIT_BLOCK_ON_FULL=true \ -e LELU_REVIEWER_KEYS="alice:$(cat lab/reviewer.key)" \ lelu-lab sleep infinity docker exec lelu-lab /lab/start.sh STEPS ON CONFIGURATION B 04b-signal.sh step 5: bare number vs a made-up provider signal 06-reviewer-keys.sh step 8: who can approve once reviewer keys exist 07-policy-put.sh step 8: replace the policy with the agent's key (uses allow-all.yaml, restores the starter policy after) 09-flood.sh step 10: 1,500 identical review requests CONFIGURATION C (engine binary run directly, inside the same container) 11-rego.sh step 9: argument-aware rules from args.rego direct-run.sh step 11: 20,000 calls, count the audit log docker exec lelu-lab /lab/direct-run.sh drop false docker exec lelu-lab /lab/direct-run.sh block true docker exec -e RATE=0 lelu-lab /lab/direct-run.sh zero false (step 10) needs /lab/verifychain (below) VERIFYING THE AUDIT CHAIN (step 11) verifychain.go thin wrapper around the engine's own audit.VerifyChainReportAt. Build it inside a clone of the Lelu repository: git clone https://github.com/Lelu-ai/lelu.git docker run --rm -v "$PWD/lelu:/src" -v "$PWD/lab:/lab" -w /src/engine golang:1.27-alpine sh -c \ 'mkdir -p cmd/verifychain && cp /lab/verifychain.go cmd/verifychain/main.go && CGO_ENABLED=0 go build -mod=vendor -o /lab/verifychain ./cmd/verifychain' 10-tamper.sh damage copies of a clean log three ways and verify each. On configuration B, after steps 5 and 8: docker exec lelu-lab bash -c 'source /lab/env.sh curl -sS $BASE/.well-known/jwks.json > /lab/jwks.json cp ~/.lelu/audit-chain.json /lab/audit-chain.json /lab/10-tamper.sh /lab/lelu-engine.log /lab/jwks.json /lab/audit-chain.json' CLEAN UP docker rm -f lelu-lab && docker rmi lelu-lab The scripts write logs, keys and the verifychain binary into lab/. Delete what you don't want.