# Completion latency under right censoring

This is an exact arithmetic worksheet for eight constructed finite cohorts.
It is not a storage benchmark, population estimate or confidence interval.

## Reproduce

Obtain bounds.py, cases.json, results.json, table.md and test_bounds.py from this
directory and keep them together. Python 3.10 or later; standard library only.

```sh
python3 -B bounds.py
python3 -B -m unittest -v test_bounds.py
python3 -B -O -m unittest -v test_bounds.py
```

The first command checks both generated files byte-for-byte. It does not write
them. The tests independently construct endpoint witnesses and cover the exact
1% boundary, variable censor times, ties and rejection of ambiguous timeout or
cancellation inputs. Only an intentional fixture/code revision should use
`python3 -B bounds.py --write`.

## Contract

Each request appears once in a fixed admitted cohort. Exact completions record
T=x; strictly right-censored observations record only T>c at the same unchanged
boundary. Client termination, response arrival and backend completion are not
interchangeable. Cancellation/retries may change the execution rather than merely
stop observation. Unknown completion times are continuous even though inputs use
integer microseconds. Never substitute a cutoff for a measured completion.

Quantiles use nearest rank ceil(pN), including censored requests in N. Results
encode an unbounded upper endpoint as null plus upper_unbounded=true, not a
numerical infinity. lower_inclusive distinguishes an attained minimum from an
open lower limit. A completed-only quantile is undefined when no completion exists.
Pointwise CDF bounds do not imply one history attaining the upper envelope at
every threshold.

See [method and proof](method.md), [source map](sources.json), [results](results.json)
and the [latency analysis](https://hesela.com/analyses/storage-latency-coordinated-omission/#censored-latency).

## Provenance and limits

Derived from Hesela research commit c8d20aa7de30603973b7ee679b543ae03868da77
(31 October 2026). Original inputs, generator and numerical results are unchanged.
results.json records the exact fixture and generator SHA-256 hashes.
No paper text or external dataset is redistributed. Sources explain censoring and
operational endpoints; the eight examples and their bounds are Hesela derivations.
No hardware timings, randomized simulation, independent peer review, missing-tail
fit or correction of never-issued requests is claimed.
