Skip to content

Execute shared exact dashboard readouts from the selected workload DAG - #516

Merged
zzylol merged 4 commits into
mainfrom
feat/bound-exact-dashboard
Sep 8, 2026
Merged

zzylol merged 4 commits into
mainfrom
feat/bound-exact-dashboard

Conversation

@zzylol

@zzylol zzylol commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Why

Complete the backend-local SUM/COUNT dashboard execution slice without a second semantic optimizer. Stacked on #515; upstream dependency: ProjectASAP/ASAPPlanner#356.

Before this PR

Nested SUM/count-over-time expressions and division fell back. SUM state discarded its observation count, preventing shared SUM/COUNT readouts.

After this PR

A registered SUM, observation COUNT, and sample-weighted mean share one raw producer. QueryPlan preserves exact reductions and default-match arithmetic from the selected post-ASAP DAG. Unknown legacy counts, unsupported expressions and incomplete windows fail closed. Distributed observation-count readouts remain explicitly unavailable until Collector conformance is demonstrated.

Verification

644 control-plane library tests; exact dashboard production-process test and existing compatibility matrix pass. The dashboard test checks uneven per-instance counts, two services, labels/timestamps, duplicate Remote Write ingestion, range steps and unaligned-window fallback. New unit tests cover count merging, scalar orientation, missing/ambiguous matches and zero denominators. A failing-then-passing regression also verifies fallback for non-additive entity reduction, different operand grouping/windows, shifted selectors and unsupported instant/temporal combinations. No independent review or automatic merge.

Scope

Native SUM/count accumulator packing is a physical implementation of Planner-selected operations, not a new semantic fusion rule. Workload cost comparison and distributed runtime acceptance remain separate migration gates.

@zzylol
zzylol changed the base branch from feat/workload-shared-selection to main September 8, 2026 19:14
@zzylol
zzylol merged commit aedb9e9 into main Sep 8, 2026
1 check passed
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