Fix the population and window

Two ledgers each contain ten useful completions in the same ten-tick window. One gives five to tenant A and five to tenant B. The other gives ten to A and none to B. The aggregate total is identical, but it leaves out who received the useful work. All numbers in this example are authored synthetic data.[3][4]

The comparison starts with the population. A and B have equal entitlement and each offers ten comparable one-unit requests at tick 0. Each request has exactly one declared attempt. A tenant is eligible because it offered demand in the scoring window, regardless of admission or success. The window is [0,10): a completion at tick 10 is outside it.[3][4]

The balanced ledger has five correct completions per tenant at tick 6. In the skewed ledger, all ten A requests complete correctly at tick 6, while B’s complete at tick 12. The other requests in the balanced ledger also complete at tick 12. All twenty terminal records are retained in each case, with a declared observation end of tick 20. B has no useful completion inside the scoring window; this does not claim it never receives service.[3][4]

  • Keep the zero: [10,0] has J = 1/2. Removing the zero changes n and produces 1 for a different population.

Keep eligible tenants in the score

We use the index introduced by Rajendra K. Jain, Dah-Ming W. Chiu and William R. Hawe: J = (sum x_i)^2 / (n × sum x_i^2). Here x_i is a tenant’s useful completed units and n is the number of eligible tenants. For [5,5], J = 100 / (2 × 50) = 1. For [10,0], J = 100 / (2 × 100) = 1/2. Both ledgers still have ten useful completions.[1][3][4]

Dropping B because its in-window count is zero changes the population after seeing the outcome. The vector becomes [10], n becomes 1, and the same formula returns 1. That is equality within a one-tenant subset. It is not the score for the declared two-tenant population. The program saves this deliberately incorrect projection beside the full-population result.[3][4]

Rejection needs the same treatment. In another authored control, all ten B requests are rejected and A completes ten. B still offered demand, so the eligible vector remains [10,0]. By contrast, registered tenant C offers no requests in the idle-tenant control and is excluded under the stated eligibility rule. Registration, offered demand, admission and completion are different fields.[3][4]

Equality also needs an output total beside it. The [1,1] control has J = 1 while producing only two useful completions. For [0,0], the formula has a zero denominator and the program reports undefined. A no-demand case is separately undefined because there are no eligible tenants. Neither case is silently replaced with zero or one.[3][4]

The remaining controls retain incorrect outputs and completions exactly on the window boundary. Neither contributes useful work under this contract. Their full attempt rows remain in the saved result. Correctness is a fixture declaration here; the program is not checking a real response or implementing a scheduler.[3][4]

  • Show useful output too: [5,5] and [1,1] both have J = 1, with totals 10 and 2.

Useful completed one-unit requests inside [0,10), retaining every offered-demand tenant in the denominator.

Authored caseA / B usefulTotalJain index
Balanced5 / 5101
Skewed10 / 0101/2
Lower output1 / 121
All zero0 / 00Undefined
B rejected10 / 0101/2
B output incorrect5 / 051/2
B completes at tick 105 / 051/2
  • The idle-C control preserves the balanced result: C offered no demand and is excluded. The no-demand control has an empty eligible population and an undefined score.
  • Times and correctness labels are authored; all nine cases and every terminal attempt remain in the downloadable result.

Retain the original proof and credit

The standard-library program ran once on CPython 3.9.6 on 2026-11-25 UTC. It retained nine authored cases, 160 offered records and 160 terminal attempt records. Nine literal case expectations, six cross-case checks and eight selected malformed-ledger refusals passed. Exact fractions avoid rounding the index; source, fixture, protocol and full result are in the MIT package.[2][3][4][5]

Report the scoped result

For a shared-capacity benchmark, freeze the eligible population, work unit, entitlement rule and observation window before summarizing the outcomes. Show offered demand, per-tenant useful completions and aggregate output together. This example illustrates a reporting failure mode. It does not establish a service’s isolation, a universal fairness policy, measured GPU throughput or downstream training benefit.[1][3][5]

  • Freeze the tenant denominator and keep each zero-completion outcome in the benchmark record.

Sources

  1. Jain, Chiu and Hawe — A Quantitative Measure of Fairness and Discrimination for Resource Allocation in Shared Computer Systems — DEC TR-301 (1984) www.cs.wustl.edu
  2. fractions — Python 3.9 documentation — Python Software Foundation and Python contributors docs.python.org
  3. MIT proof and complete saved output data.nodus-compute.ai
  4. Saved result JSON data.nodus-compute.ai
  5. Source and saved-result provenance data.nodus-compute.ai
  6. Vector figure data.nodus-compute.ai