A partial bill can reverse a cost-efficiency ranking
Three useful outputs divided by a 2-credit subtotal look better than three outputs divided by a settled 6-credit bill. A pending charge can reverse that comparison.
The outcomes are complete; the bill is not
In this authored example, A and B each finish four attempts in the same invented [0, 10) tick window. Three outputs are accepted and one attempt fails. B's fictional bill is fully settled at 6 credits. A has a settled subtotal of 2 credits, while the charge for its failed attempt is pending.
The subtotal ratio makes A look higher: 3/2 versus B's 3/6 = 1/2. But 2 is not A's complete cost. Both arms have complete outcome records; the missing evidence is financial settlement.
Nodus authored the attempts, accepted outcomes, ticks, charges and settlement states. One local CPython 3.9.6 invocation evaluated these ledger rules and exact arithmetic on December 2, 2026 UTC. It did not run the workloads or observe a provider bill. This article reuses that saved execution without a rerun.
One pending charge permits opposite rankings
For one scenario, explicitly assume that the failed attempt's pending charge lies in [2, 8] fictional credits. These are author-declared bounds. Pending status alone provides neither bound.
A's complete cost then lies in [2 + 2, 2 + 8] = [4, 10]. With a positive denominator, increasing cost decreases useful output per credit. The assumed efficiency interval is [3/10, 3/4]. B's settled efficiency, 1/2, lies inside it.
A hypothetical 2-credit settlement makes A's complete cost 4 and its efficiency 3/4. An 8-credit settlement makes the cost 10 and efficiency 3/10. A 4-credit settlement makes the totals tie at 6. No probability or confidence level is attached to these alternatives.
The separate unbounded scenario provides no valid pending-charge bound. Its cost and efficiency intervals remain unknown, and the reducer withholds the settled point comparison. It does not assume zero or invent a provider cap. Even equal assumed endpoints remain an assumption until settlement.
Keep the failed attempt in the denominator
Each main ledger contains the same four required attempt IDs, four terminal outcome rows and four charge rows. The accepted attempts carry charges of 1, 1 and 0. The fourth attempt fails and still has its own charge. The full reducer refuses a ledger that drops that failed attempt's charge.
These six rows are alternative authored ledgers, not six observed bills. The settlement completions are hypothetical possibilities for the same pending-charge problem. Every row has three useful units per ten invented ticks. That separate wall-clock ratio stays at 3/10; the ticks are not a timing measurement. All costs below use FICTIONAL_CREDIT.
| Ledger | Settled subtotal | Pending charge | Complete cost | Useful outputs / cost | Point comparison with B |
|---|---|---|---|---|---|
| B, fully settled | 6 | None | 6 | 1/2, settled | Baseline |
| A, unbounded pending charge | 2 | Unknown; no declared bounds | Unknown | Unknown | Withheld |
| A, bounded pending charge | 2 | Author assumes [2, 8] | [4, 10], assumed | [3/10, 3/4], assumed | Withheld |
| A, low settlement completion | 4 | None | 4 | 3/4, settled | A higher |
| A, equal settlement completion | 6 | None | 6 | 1/2, settled | Tie |
| A, high settlement completion | 10 | None | 10 | 3/10, settled | A lower |
Reproduce the arithmetic
Save this exact arithmetic excerpt as arithmetic_excerpt.py and run python3 -I -B arithmetic_excerpt.py with Python 3.9 or later. It requires only the standard library. It reproduces the subtotal contrast, the assumed interval and the three hypothetical settlements.
The excerpt is arithmetic only. It does not implement the complete ledger-coverage, metadata or refusal checks. It was statically parsed for the original article and has not been separately executed. The thirty-three-check claim below belongs to the full original reducer, not this excerpt.
from fractions import Fraction
useful = 3
settled_A = 2
pending_A = (2, 8) # Author-assumed bounds, not provider evidence.
settled_B = 6
low_cost = settled_A + pending_A[0]
high_cost = settled_A + pending_A[1]
print("A, unsafe subtotal ratio:", Fraction(useful, settled_A))
print("A, assumed cost interval:", (low_cost, high_cost))
print("A, assumed efficiency interval:",
(Fraction(useful, high_cost), Fraction(useful, low_cost)))
print("B, settled efficiency:", Fraction(useful, settled_B))
for pending_settlement in (2, 4, 8):
total = settled_A + pending_settlement
print("A, hypothetical settled total and efficiency:",
total, Fraction(useful, total))
# An absent bound supplies no finite cost interval.
# Do not turn pending settlement into a point score.
Python's fractions module represents these integer-based ratios exactly. No rounding is needed for the interval endpoints or the tie.
Reconcile settlement and comparison scope
The full reducer admits a settled point ratio only when every required charge is settled and complete cost is positive. A zero denominator remains undefined. Any pending line without valid declared bounds blocks a finite total-cost interval. Comparisons require the same currency/unit tag, observation window, workload contract, useful-unit definition and required attempt manifest.
The retained original run passed 33 selected checks: six main summaries, eighteen controls and nine comparisons. Fourteen controls expect refusal for missing or duplicate coverage, invalid charges, unfinished or out-of-window outcomes, invalid bounds, or false useful credit. Four comparison checks reject mismatched currency, window, workload or useful-unit scope. Other controls keep a zero-cost ratio undefined, charge failed work, retain equal bounds as pending and let one unbounded line block a finite interval. These are finite checks, not exhaustive validation.
A real useful-output-per-settled-dollar claim needs complete financial records and accepted outcomes for the same scope. A status label or a self-authored cap is not that evidence. Keep the settled subtotal, unsettled liabilities, independently justified bounds and the withheld comparison distinct until reconciliation is complete.
Limits and original credit
This model assumes nonnegative charges, one charge per declared attempt, a fixed useful-unit definition and a complete author-declared charge scope. It excludes extra fees, credits, refunds, taxes, shared allocations, retries, currency conversion and changes outside the fixed window. A complete fixture manifest does not authenticate a complete provider invoice.
FICTIONAL_CREDIT has no dollar value or exchange rate. Local execution cost was not measured. This example provides no hardware throughput, idle-capacity utilization, production reliability, economic advantage, competitor ranking or training result. Matching toy metadata does not establish a real matched benchmark.
Nodus authored the synthetic ledgers, reducer and explanation. Python's standard library supplies the rational arithmetic; no claim of novel mathematics is made. Original source attribution: Nodus Data Labs. The code, fixtures and associated text retain the original MIT license below.
Code license
MIT License
Copyright (c) 2026 Nodus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
About the author
- Founder @ Nodus Compute
Comments
Join the discussionNo comments yet. Be the first to comment.