Skip to content

feat(control-plane): compute ERP and analytical workload costs - #786

Open
zzylol wants to merge 1 commit into
test/promql-exact-function-coveragefrom
split/erp-workload-costs
Open

zzylol wants to merge 1 commit into
test/promql-exact-function-coveragefrom
split/erp-workload-costs

Conversation

@zzylol

@zzylol zzylol commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Compute ERP and analytical workload costs

Split from #761 so that #728's structural checks come before any costing. This PR contains only the ERP/analytical pricing layer; native execution, SDS binding and scoped accuracy evidence are in #761.

Stack: main → #763 → #765 → #761 → #728 → this PR → #780 → #742 → #775. Diagnostics #756 branch from this PR.

Before this PR

Deployment required complete provider quotes (workload_cost_evidence); without them, the snapshot compiler refused to deploy. ERP measurements informed only logical selection, and HLL readouts could never be certified.

After this PR

Without provider quotes, Backend computes complete workload costs for each physically compiled candidate from workload demand, applicable ERP measurements and analytical resource estimates, including native operator CPU, heap workspace and maintenance programs. cost_comparison reports each candidate's resource breakdown (automatic_cost) and model version. Complete provider quotes remain an optional override.

Accuracy admission stays separate from pricing: a candidate whose ERP accuracy admission fails is rejected before pricing, and missing or stale proof cannot be replaced by a favorable cost. Scoped evidence may carry a bounded classic-HLL confidence contract, which certifies backend-local Regular HLL readouts only.

Changes

  • workload_cost/automatic.rs: automatic workload resource model; select_candidates prices without quotes.
  • erp.rs, post_asap/cost_model.rs: ERP resource precedence over analytical estimates; HLL confidence model.
  • compiler.rs: HLL contract validation and backend-local binding; ERP resource costs survive confidence targets.
  • Planning endpoint and startup compile without quotes; docs describe the default automatic path.

Validation

The final tree equals the pre-split #728 head, so #780 and later PRs are unchanged.

🤖 Generated with Claude Code

Without provider quotes, compute complete workload costs for each
physically compiled candidate from workload demand, applicable ERP
measurements and analytical resource estimates, including native operator
CPU, heap workspace and maintenance programs. Report each candidate's
resource breakdown in cost_comparison; complete provider quotes remain an
optional override.

Reject candidates that fail ERP accuracy admission before pricing, and
accept a bounded classic-HLL confidence contract in scoped evidence for
backend-local Regular HLL readouts.

Split from #761 so #728's structural checks precede costing. The tree
equals the pre-split #728 head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant