← Harness Engineering From First Principles

The Economics of Reliability

Report cost per independently verified completion, including failed runs and human review effort.

Two harness configurations each complete a hundred maintenance attempts. The first has the smaller model invoice. The second costs more per request but returns more independently verified patches and needs less human repair. Which is cheaper? Without a denominator, a failure account and a declared boundary for human effort, the question has no answer.

Reliability has an economic structure because every accepted outcome depends on work that can fail: generation, tool execution, evaluation, recovery and sometimes review. A lower unit price can produce a higher cost per useful result. A stricter harness can appear less successful because it refuses to call uncertain work accepted, while preventing expensive downstream errors. This chapter makes those tradeoffs explicit without treating safety as a quantity that a high score can buy away.

Evidence status. Provisional technical draft. All example costs, counts and calculations are hypothetical. No current product price, energy estimate or measured reliability rate is asserted. The accounting design and E28 are PROPOSED. Existing R05 evaluation principles and Chapters 17–18 supply the evidence discipline; no economic study has run. EXPERIMENT PENDING.

28.1 Choose the decision before choosing the cost measure

An operator deciding whether to reuse existing local hardware asks a different question from a service buying new capacity. A researcher comparing model-call efficiency asks a different question from a team budgeting human review. There is no single denominator that makes those decisions equivalent. Define the decision horizon, task distribution, cost boundary and required quality before calculating a ratio.

The simplest account is realized marginal cash: actual provider and service charges for every attempted task. It is useful and incomplete. A fuller account includes setup, fixed infrastructure, model adaptation, evaluation development, operations and human effort under declared rates. Keep these components separate so readers can recompute the decision for their own environment instead of accepting one opaque total.

Distinguish measured amounts from allocations. A run’s token count may be observed, its monetary conversion may depend on a dated tariff, and its share of hardware cost may be an accounting assumption. Label all three. Unknown provider usage stays unknown, not a free failed call. A billing reconciliation can later revise the cost observation through a new record version without rewriting the original run history.

This is where the economic orchestration strand connects to the rest of the book. Context reduction, fewer duplicate tools, better recovery, selective history and model routing can all affect cost. None deserves credit until its full route to an independently checked outcome is counted, including the machinery that made the saving possible.

28.2 Define a verified completion without hiding the dimensions

For an experiment’s primary economic endpoint, define a verified completion as task PASS and execution ACCEPTED under registered criteria. Keep separate counts for task FAIL, REVIEW, UNKNOWN and execution rejection/incompletion. The conjunction is useful for a service-level denominator; it does not replace the richer evidence.

A correct proposed patch with unacceptable execution may retain task truth but not count as an accepted service completion. A cleanly executed wrong patch also does not count. An appropriate abstention can count as task success only where the registered task requires or permits that outcome. Otherwise a policy that abstains on everything could manufacture a cheap apparent success rate by changing the definition.

Count every attempted task in the cost numerator, including failures, refusals, uncertain outcomes and infrastructure errors. Frozen exclusion rules can define a secondary analysis, but they cannot quietly remove one arm’s expensive failures. Report both intention-to-run results and any justified sensitivity view. The same rule applies to candidate development costs when the question concerns lifecycle economics.

If there are zero verified completions, cost per completion is undefined or unbounded for the stated account, not zero. Report the attempted cost and absence of accepted output directly. If acceptance is unknown for some tasks, do not round them into successes to stabilize the ratio. Uncertainty about the denominator is part of the result.

28.3 A cost ledger needs categories and units

Use a ledger keyed to run, attempt, operation and policy identity. Its rows separate model input/output charges, tool/runner work, retrieval and indexing, coordination, evaluation, human review and recovery. Each row records its unit, source, availability, price/conversion identity and whether the value is observed, estimated or unknown.

Avoid double counting. A hosted generation charge may already include some provider infrastructure; do not add an invented duplicate compute cost to the same cash account. Conversely, a local route’s absence of an API invoice does not imply zero resource use. Separate cash and resource accounts rather than mix whichever values make a route look favourable. The chosen account must be consistent across arms.

Human effort requires a measurement protocol. Distinguish active review minutes from wall time waiting for a queue. Record task and reviewer identity, whether reviewers see arm labels, and which actions count as ordinary review versus correcting an output. Apply a declared rate only when calculating the corresponding labor-cost view. Do not imply that a hypothetical hourly rate was observed on this project.

Failure and recovery deserve their own categories. A retry that fixes the task still consumed the failed attempt. A duplicate effect can require reconciliation and compensation beyond another model call. An unresolved effect creates exposure that may not have a reliable currency estimate; report it separately rather than assign a convenient small penalty and let the optimizer trade it away.

28.4 Worked example: the smaller invoice loses the complete comparison

The following invented cohort has 100 attempted tasks per arm, with identical registered criteria and no exclusions. Configuration L spends 100 currency units on models/tools and produces 60 verified completions. Configuration H spends 180 and produces 90. The narrow cost ratios are 100/60 ≈ 1.67 and 180/90 = 2.00 per verified completion. On that account L looks cheaper, while H produces more accepted output.

Now include measured review effort in the hypothetical scenario: L requires 300 active minutes and H 60, valued for this illustrative decision at 0.5 currency units per minute. Labor additions are 150 and 30. Complete cohort costs become 250 and 210; cost per verified completion becomes 250/60 ≈ 4.17 and 210/90 ≈ 2.33. The ordering reverses because the earlier account excluded a cost the decision-maker cares about.

This is arithmetic, not evidence that stronger models always save labor. Reviewers may differ, task mixes may differ and H may hide an error the evaluator fails to detect. The study must independently measure those quantities and report uncertainty. A ratio of aggregate totals also answers a population-level question; averaging individual per-task ratios can produce another result and requires an explicitly chosen estimand, especially when some tasks have no completion.

Neither arm has satisfied every attempted task. If the service requires all tasks completed, include the downstream strategy for the remaining 40 or 10 tasks, with its actual costs. Do not assume they disappear. If unresolved tasks are legitimately escalated to people, that is a service outcome and cost to report under its own criteria. A cheap automated phase can simply move work outside an artificially narrow accounting boundary.

28.5 Reliability changes expected rework, under assumptions

For a simple explanatory model, suppose each independent attempt costs c and succeeds with probability p, retries have the same distribution and no additional fixed cost, and attempts continue until success. Then expected attempt count is 1/p and expected cost is c/p. This derivation is useful because it exposes its assumptions. Real retries on one stubborn task are often correlated and bounded; a budgeted harness cannot assume an unlimited geometric process.

With hypothetical c=2 and p=0.5, the model gives expected cost 4. With c=3 and p=0.9, it gives 3.33. A more expensive attempt can have lower expected completion cost under those assumptions. The formula does not estimate this book’s models, justify unlimited retries or account for permanent failures. Chapter 17’s finite budget and unknown usage rules remain in force.

A more realistic finite service model names conditional transitions: initial attempt, detector result, optional repair, independent validation, human escalation or unresolved stop. Estimate costs and outcomes at those transitions from protected observations. Do not multiply marginal success rates as though dependent checks were independent. A model and verifier sharing a premise can fail together more often than an independence calculation predicts.

This transition model is another graph-shaped description, but it does not establish a graph executor’s superiority. A table of states and conditional paths can calculate the same expected account. The E14 representation study still asks whether a richer implementation improves correctness, recovery or modification cost over the simpler one on identical semantics.

Deriving the simple expectation exposes why it often fails

Let E be expected attempts in the unbounded independent model. One attempt is always made; with probability 1−p, the process starts again in the same state. Thus E = 1 + (1−p)E, so pE = 1 and E = 1/p for p>0. Multiplying by constant attempt cost gives c/p. If p=0, the model has no finite completion expectation. The algebra is exact only for the assumptions stated, not an empirical reliability model.

A bounded two-attempt process is different. The second attempt occurs only after the first fails, so expected attempt count is 1+(1−p) under the same illustrative independence assumption. Its success probability is 1−(1−p)². With p=0.5, that gives 1.5 expected attempts and 0.75 success probability, leaving a quarter unresolved. A harness cannot report every task completed at c/p while actually permitting only two attempts. Any human fallback or further recovery adds another transition and cost to the service model.

In practice the second attempt is conditioned on the first failure and often sees its evidence, so its success probability need not equal p. Estimate that conditional path from independent observations or leave it unknown. This prevents a seemingly rigorous economic forecast from being only a multiplication of unrelated marginal benchmark rates.

Unknown costs create accounting uncertainty, not just sampling error

Suppose a cohort has known charges K and an unresolved provider request. K is the observed known portion, not the total cost. If a qualified external reservation supplies a valid exposure ceiling U, the account may report a bounded range under that contract. If no such bound exists, do not invent U from a local token estimate after the fact. State that the full upper cost is unresolved and qualify any cost-per-completion claim accordingly.

This uncertainty differs from a confidence interval over sampled task variation. A precise bootstrap interval around incomplete charges can still be precisely wrong about the invoice. Report billing completeness, unknown task acceptance and sample uncertainty separately. Later usage reconciliation creates a revised account, with references to the earlier unknown state and the newly available billing evidence.

The same distinction applies to unmeasured human work. If review effort was not timed, label it missing or scenario-valued. A sensitivity table using several declared labor rates can illuminate a decision, but it cannot turn absent time observations into measured labor savings.

28.6 Verification has value only for properties it actually checks

Suppose an added check costs v and reduces a particular class of downstream failure. Its economic value depends on detection sensitivity, false alarms, avoided harm and response cost. A check that rejects good outputs can consume review capacity and trigger needless repairs. A check that never fires may be either excellent or useless; seeded positive and negative cases establish what its silence means.

The simple baseline uses the minimum qualified deterministic checks required by the task. A richer arm adds a semantic reviewer or a second independent evidence path. Compare the incremental cost and the specific errors caught, with evaluator identities and shared sources recorded. Calling the added model independent because it has a different name does not establish a different failure distribution.

Some checks enforce nonnegotiable constraints. Authorization, required evidence preservation and safe handling of unknown effects are not optional penalties to remove when an estimated benefit looks large. Economic optimization takes place inside the admissible design space. A study can compare qualified enforcement alternatives, but cannot claim a permissive unsafe arm is economically superior without separately stating that it violates the required service contract.

Other checks are genuinely optional. Sampling additional reviews may improve error detection at a cost. Register the sampling rule, eligible population and decision consequence. If it is tuned from confirmation errors, the next estimate needs newly sealed evaluation material. The same development/confirmation boundary applies to economic thresholds as to model prompts and retrieval weights.

28.7 Fixed costs, amortization and the volume question

A harness can cost more to build and less to operate. Let F be an additional fixed engineering/qualification cost and s the hypothetical per-task saving over a qualified baseline. Under a simplified constant volume model, break-even requires N × s > F. If F=1,000 and s=0.5 in hypothetical units, more than 2,000 tasks are needed to recover that fixed cost. This is a scenario calculation, not a forecast of future demand or achieved savings.

Amortization must not conceal repeated adaptation. If the selector is retuned every week, each cycle has new development, validation and potentially review costs. If an ECK candidate is never promoted, its evaluation still consumed resources. Allocate those costs under a rule registered for the deployment horizon. Reporting only the successful candidate’s final inference cost selects away the price of finding it.

Show sensitivity to task volume, labor valuation and realized quality. An apparently robust saving can disappear if only a fraction of the expected task population falls inside the policy’s qualified scope. Likewise, a local route can be economical at steady utilization and unattractive for rare tasks requiring new hardware. These are distinct decision contexts, not contradictory results.

Keep assurance maintenance visible. Dependency updates, model drift, new task classes and changed broker configuration can require renewed qualification. A one-time successful experiment does not make future operation free of verification obligations. The economic account should identify which ongoing checks sustain the reliability claim.

28.8 E28: compare complete routes to useful outcomes

The research question is whether a richer reliability/routing policy reduces cost at matched independently verified quality, or improves quality at a matched cost target. Choose one as the registered primary estimand rather than report whichever looks better. A plausible primary hypothesis is lower total cost per verified completion at a required quality/nonregression level. The alternative is that added checks and coordination cost more than the rework they avoid.

Arms are a strongest development-selected qualified static route, the candidate complete route, and a registered ablation of one optional mechanism while retaining all required safety gates. Use the same task/fixture groups, output criteria and independent final evaluator. If model/context/verification change together, label the result a system comparison; use a factorial extension for attribution only when the combinations and resource budget are preregistered.

Independent variables are route and declared task stratum. Dependent variables include joint verified completion, separate verdict dimensions, total attempted cash/resource cost, active review effort, rework, elapsed latency and unresolved exposure. Record observed versus allocated versus unknown amounts. Register tariffs/conversions, setup amortization, caps, human timing protocol, predeclared labor rates and arm-label blinding, stopping rules and exclusion handling before runs.

Use independent task/repository clusters for uncertainty and retain repetitions within those clusters. Estimate the registered ratio or frontier from complete cohort totals with an appropriate cluster-aware interval method, not a ratio of selectively successful calls. Sample size and precision targets are development-calibrated registration requirements, not numbers supplied by this manuscript without data.

Support requires the primary cost/quality criterion and required safety gates. A lower invoice with worse unqualified output does not satisfy a matched-quality claim. A wide ratio interval is inconclusive; zero verified completions preclude a finite completion-cost claim. Threats include evaluator blind spots, labor measurement bias, censored failures, changing prices and opaque provider billing. EXPERIMENT PENDING.

28.9 Alternatives to one headline ratio

A useful frontier check includes at least one deliberately simple qualified configuration and the strongest development-selected static route. If every candidate point contains the same expensive verifier, the study cannot say whether its cost is justified independently of routing. A registered optional-verifier ablation can ask that question, while mandatory authority and evidence checks remain in every eligible arm. Keep the distinction between a system-level economic result and attribution to one mechanism.

Compare like decision horizons. A one-off experiment may legitimately charge all setup against a small cohort. A long-running service may spread qualified setup over a declared expected volume, with sensitivity for lower volume. Neither account is automatically fraudulent, but the denominator and assumptions must be visible. Selecting the most favourable horizon only after seeing the candidate’s costs is another form of post-hoc optimization.

Finally, a route may be dominated on average and still be the only admissible option for a protected task class. Do not remove that class from the service just to improve aggregate economics. Report coverage and the cost of satisfying its constraints, or explicitly narrow the claimed service domain before evaluating it.

A cost-quality frontier displays configurations that are not dominated on the registered metrics. It can show that one route serves low-cost work and another serves high-reliability work without pretending a single scalar objective fits every user. The frontier itself needs uncertainty; small noisy differences do not establish stable dominance.

A service-level table can be clearer where constraints are hard: which routes meet required data locality, verification, deadline and cost ceilings, then what each eligible route costs. An inadmissible cheap route is excluded before ranking. This keeps the authority and safety requirements intelligible to the operator who must approve deployment.

Report marginal and lifecycle accounts together when the difference matters. A new routing policy can have excellent marginal economics and an unfavorable short-horizon lifecycle cost. Conversely, a reusable qualified evidence pipeline can support several future studies, but do not allocate its entire cost away on hypothetical future beneficiaries merely to make today’s study positive.

The honest conclusion may be that the simpler harness is the better economic choice. Retain that result with its task scope and assumptions. Engineering progress can mean removing a mechanism whose complexity does not earn its cost, while preserving the authority and evidence boundaries that make the remaining system trustworthy.

28.10 Implementation and integration consequences

An uncertainty method must respect the denominator it estimates. Resampling independent repository/task clusters is different from resampling every model call as though each were another user task. A task with six failed calls and one success does not contribute seven independent completion observations. Keep its entire cost/outcome path together under the registered unit. Where too few independent groups exist, report the precision limitation instead of presenting many calls as a large study.

Near-zero completion counts make ratios unstable. Some resampled cohorts may have no verified completions at all. The analysis plan must specify how those cases are represented and which interval method is appropriate; dropping them merely because the ratio is inconvenient biases the comparison. Report component totals and completion intervals alongside the ratio so the source of instability remains visible.

A proposed candidate estimator is the ratio of complete cohort cost totals to verified-completion totals, with paired independent-cluster resampling and separate component/completion intervals. Register the specific interval method, cluster definition and zero-denominator rule; zero-completion resamples remain non-finite outcomes and are never dropped. If the regime cannot support a finite informative interval, report the components and that limitation rather than select a convenient estimator after seeing results. Validate the chosen method on development-only synthetic edge cases before freezing confirmation analysis.

Cost and quality are correlated within tasks. Hard tasks can be both more expensive and less likely to pass, particularly under escalation. A paired analysis that retains that relationship is more informative than independently combining a mean cost estimate with a success rate from another dataset. This is also why marginal model benchmarks cannot be pasted into a complete-route economic forecast without a stated transfer assumption.

The registered primary criterion can remain unmet even when several secondary metrics improve. Lower latency, fewer tokens or better prose may be useful observations, but they do not replace a promised reduction in cost at matched verified quality. Preserve them as secondary evidence and decide on a new policy question before a new confirmation study.

The required implementation is an accounting extension to the common event/evidence system, not an isolated spreadsheet that reconstructs cost from final answers. Bind each charge to the route, run and operation that incurred it, and reconcile late usage with immutable versions. Verify billing categories against provider reports where available; do not claim invoices from session statistics alone.

The evaluation interface should expose sufficient data for alternative declared accounts without letting the candidate rewrite raw costs. Independent reviewers need failed attempts and unknowns as well as successful artifacts. Human review measurements need a traceable but appropriately protected record. None of these mechanisms is implemented or measured by writing this chapter.

Economic orchestration remains one component of the book. It depends on reliable execution, bounded context, honest evaluation, governed experience and reversible policy admission. Those mechanisms now need an application boundary where tasks are initiated, approvals are requested and evidence is presented without inventing a second runtime. Chapter 29 describes that proposed boundary behind Mission Control.

Previous: Chapter 27: Multi-Model Routing Without Benchmark Leakage.

Next: Chapter 29: A Harness Behind Mission Control: Interfaces and Evidence.