Skip to content

feat(cost): rank complete streaming deployments - #336

Merged
zzylol merged 4 commits into
mainfrom
feat/cost-streaming-planner-integration
Sep 4, 2026
Merged

zzylol merged 4 commits into
mainfrom
feat/cost-streaming-planner-integration

Conversation

@zzylol

@zzylol zzylol commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Why

A streaming lifecycle must be ranked against raw recomputation as a complete alternative. Selecting a locally cheap lifecycle first can hide bootstrap, source-read, readout, retained-state, or physical-implementation costs.

What

  • Enumerate complete provider-owned physical alternatives for each summary candidate.
  • Cross product each physical alternative with every legal lifecycle combination.
  • Estimate and rank the complete horizon totals atomically against the same raw baseline.
  • Return the selected provider physical_plan_id together with lifecycle decisions.
  • Retain target and SummaryNode Rc values behind pointer-keyed bindings so allocator address reuse cannot alias evidence.

Correctness details

  • Ephemeral direct build performs a full snapshot build and source read for every evaluation; it has transient working state but no retained state.
  • Prepared delayed bootstrap charges its source read when the bootstrap actually occurs.
  • The raw physical DAG validates and charges every reachable scan independently, while allowing several scans of the same semantic source and ignoring unreachable decoy nodes.
  • Evaluation multiplicity comes from the same recurrence/horizon function used by physical costing.
  • Missing, conflicting, or incomparable evidence makes the complete alternative unavailable.

Validation

  • cargo test --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check

Stack: depends on #335; #337 documents the planner/downstream boundary.

@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from 0f77c4e to 071c2a6 Compare September 3, 2026 16:29
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch from fd470ab to 4e43888 Compare September 3, 2026 16:29
@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from 071c2a6 to 8e30f91 Compare September 3, 2026 16:45
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch from 4e43888 to bfbcde8 Compare September 3, 2026 16:45
@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from 8e30f91 to 555113c Compare September 3, 2026 16:50
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch 3 times, most recently from 1a24e1e to a549ae9 Compare September 3, 2026 17:05
@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from 1f80380 to 0e9f092 Compare September 4, 2026 00:35
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch from a549ae9 to fac7b09 Compare September 4, 2026 00:47
@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from 0e9f092 to d02bf12 Compare September 4, 2026 02:26
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch from fac7b09 to 529cccb Compare September 4, 2026 02:26
@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from d02bf12 to 5f71dee Compare September 4, 2026 03:00
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch from 529cccb to e5b16fe Compare September 4, 2026 03:04
@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from 5f71dee to 4cd0ee2 Compare September 4, 2026 03:29
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch from e5b16fe to f8bfc92 Compare September 4, 2026 03:31
@zzylol
zzylol force-pushed the feat/cost-streaming-summary-dag branch from 4cd0ee2 to 673e74a Compare September 4, 2026 04:01
@zzylol
zzylol force-pushed the feat/cost-streaming-planner-integration branch from f8bfc92 to 0c779e7 Compare September 4, 2026 04:02
@zzylol
zzylol changed the base branch from feat/cost-streaming-summary-dag to main September 4, 2026 11:27
@zzylol
zzylol merged commit c0fee40 into main Sep 4, 2026
3 checks passed
@zzylol
zzylol deleted the feat/cost-streaming-planner-integration branch September 7, 2026 15:51
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