The frontier answers one bounded question:
Which tested agent configuration is the lowest-cost candidate that stays within a predeclared harmful-transition tolerance on the same fingerprinted tasks?
The unit of comparison is a paired task identity, not an aggregate dashboard window.
The reference and every candidate must contain exactly the same task IDs, SHA-256
input digests, and rubric versions. Missing or changed tasks and planned arms return
INCOMPLETE; the tool never silently drops an unmatched failure.
python3 -m agent_economics frontier \
examples/compute-frontier/manifest.json \
--output-dir /tmp/agent-economics-frontier
The output directory contains:
frontier.md, a review-ready decision record;frontier.json, the machine-readable result; andfrontier.svg, a dependency-free cost-quality plot.The manifest names the complete experiment family before comparison:
{
"schema_version": 1,
"experiment_id": "synthetic-support-budget-frontier-v1",
"reference_arm": "premium-8-step",
"arms": {
"balanced-4-step": "arms/balanced-4-step.json",
"cheap-2-step": "arms/cheap-2-step.json",
"premium-12-step": "arms/premium-12-step.json",
"premium-8-step": "arms/premium-8-step.json"
},
"max_breakage_rate": 0.05,
"min_cost_reduction_rate": 0.25,
"confidence_level": 0.95,
"bootstrap_samples": 5000,
"seed": 20260722,
"min_paired_tasks": 150,
"task_manifest": "task-manifest.json",
"task_manifest_digest": "8ab1d32aff8ff1d42fa3d7fecff28bc36548dd1c9905b972a0ed701c874298d4"
}
Do not remove a candidate after seeing its result. The target nominal familywise error budget is computed from the complete planned candidate count.
The plan references one shared task manifest with a SHA-256 input digest and rubric
version per task_id. Each arm is a normalized JSON evidence bundle with:
task_id;task_id;direct_cost_usd for every non-priced event, including 0.0 when the event is
explicitly free or included; andAn absent non-model cost is unknown, not free. Frontier evaluation fails closed on that ambiguity.
A harmful transition is a task where the reference outcome is acceptable and the candidate outcome is unacceptable. The estimand is the absolute rate of this joint event in the full paired task population, not the rate conditional on reference success. For each candidate, the tool computes an exact one-sided Clopper-Pearson upper bound.
The report also shows the descriptive conditional breakage rate among tasks the reference accepted:
absolute breakage = harmful transitions / all paired tasks
conditional breakage = harmful transitions / reference-acceptable tasks
The absolute upper bound governs v1 eligibility because the frozen policy defines
harm per attempted task across the deployment workload. Conditional breakage does
not change the v1 decision. It makes the denominator visible because a weak
reference can mechanically suppress the absolute rate. If there are no
reference-acceptable tasks, the conditional rate is undefined and reported as
N/A.
This matters when no regressions were observed. With a small sample, the upper bound remains large; zero observed failures is not treated as zero risk.
Effective cost includes:
model and tool spend + human review + remediation + incident loss
The tool resamples paired task rows with a fixed seed and computes a one-sided lower percentile bound for the candidate’s cost-reduction rate. Pairing preserves shared task difficulty between the candidate and reference.
The target nominal familywise alpha is divided across both quality and cost tests for every planned candidate. The exact quality endpoint receives this adjustment; the percentile-bootstrap cost endpoint remains approximate and includes Monte Carlo error. Plans must provide at least 20 expected resamples in the adjusted lower tail. Economic totals use accurate floating-point summation. Derived decision endpoints and machine-readable floats are canonicalized to 12 significant digits after calculation so supported Python runtimes produce the same portable artifacts. This precision is finer than the displayed report precision and is part of the method. A candidate is eligible only when:
SCALE;The selected arm is the lowest observed full-cost arm among eligible tested candidates. The tool does not interpolate an untested continuous budget threshold.
The same frozen candidate family is used to establish eligibility and to choose the minimum observed mean cost. Multiplicity-adjusted endpoints address simultaneous threshold clearance under the stated method, but they do not debias the selected winner’s cost estimate or establish that its observed rank will persist in a new population. Treat the selected arm’s cost magnitude and rank as post-selection exploratory evidence until they are checked on a held-out confirmation set, through nested selection and evaluation, or in an independent frozen replication.
The frontier can say which tested configuration satisfied a declared rule on one frozen matched dataset. Without randomized or counterbalanced assignment it reports a paired association, not a causal effect. It does not validate the outcome rubric, guarantee production generalization, or certify future provider behavior.