Skip to content

feat(workload): normalize query demand and data evidence - #312

Merged
zzylol merged 7 commits into
mainfrom
feat/workload-summary-lifecycles-300
Aug 31, 2026
Merged

zzylol merged 7 commits into
mainfrom
feat/workload-summary-lifecycles-300

Conversation

@zzylol

@zzylol zzylol commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Stacked on #300.

Why

Summary-maintenance lifecycle planning decides when materialized summary state
is created, retained, shared, updated, and retired. Those decisions require
normalized evidence about query recurrence and timing, requested latency and
accuracy, data arrival, and evidence freshness.

Before this PR

Planner inputs lacked enough explicit evidence to decide whether summary state
should be built for one query, prepared ahead of time, shared across reads, or
maintained as data arrives.

After this PR

A scheduled dashboard query becomes normalized requirements explicitly bound
to its plan root; SQL and PromQL share the same planner-facing model. This PR
only supplies the workload evidence. #316 uses it to enumerate the concrete
summary-maintenance lifecycle alternatives.

What and how

  • Models recurrence, accuracy, latency, predictability, and time selection.
  • Tracks freshness-aware ingestion, cardinality, and distribution evidence.
  • Adds explicit root-to-workload bindings.
  • Defines every public workload axis with concrete rustdoc examples.
  • Does not enumerate summary-maintenance lifecycle alternatives.

Verification

  • Workload and frontend unit suites
  • cargo test -p asap-types --doc
  • Workspace check, formatting, and clippy

Stack

Base: #300. Next: #316.

@zzylol
zzylol force-pushed the feat/exact-summary-composition-171 branch from b2d6151 to 5b33949 Compare August 29, 2026 22:47
@zzylol
zzylol force-pushed the feat/workload-summary-lifecycles-300 branch from e6f1dba to c4c6ceb Compare August 29, 2026 22:47
@zzylol zzylol changed the title feat(planner): plan workload-aware summary maintenance lifecycles feat(workload): normalize query demand and data evidence Aug 29, 2026
@zzylol
zzylol changed the base branch from feat/exact-summary-composition-171 to test/exact-composition-e2e August 29, 2026 22:48
@zzylol
zzylol force-pushed the test/exact-composition-e2e branch from 12b30fc to 4831b43 Compare August 30, 2026 18:21
@zzylol
zzylol force-pushed the feat/workload-summary-lifecycles-300 branch from c4c6ceb to d08292c Compare August 30, 2026 18:21
@zzylol
zzylol force-pushed the test/exact-composition-e2e branch from 4831b43 to bd898fd Compare August 30, 2026 18:30
@zzylol
zzylol force-pushed the feat/workload-summary-lifecycles-300 branch from d08292c to 98581cc Compare August 30, 2026 18:30
@zzylol
zzylol force-pushed the test/exact-composition-e2e branch from bd898fd to ec95e46 Compare August 30, 2026 18:35
@zzylol
zzylol force-pushed the feat/workload-summary-lifecycles-300 branch from 98581cc to a145f65 Compare August 30, 2026 18:35
@zzylol
zzylol force-pushed the test/exact-composition-e2e branch from ec95e46 to 91fc851 Compare August 30, 2026 18:46
@zzylol
zzylol force-pushed the feat/workload-summary-lifecycles-300 branch from a145f65 to 9a853f7 Compare August 30, 2026 18:46
@zzylol
zzylol force-pushed the test/exact-composition-e2e branch from 91fc851 to cc2e874 Compare August 30, 2026 19:03
@zzylol
zzylol force-pushed the feat/workload-summary-lifecycles-300 branch from 9a853f7 to fb430bf Compare August 30, 2026 19:03
@zzylol
zzylol force-pushed the feat/workload-summary-lifecycles-300 branch from fb430bf to ae3dfed Compare August 30, 2026 21:22
@zzylol
zzylol changed the base branch from test/exact-composition-e2e to feat/exact-summary-composition-171 August 30, 2026 21:22
Comment thread crates/asap-aware-mapping/src/recurrence.rs
Comment thread crates/asap-aware-mapping/src/recurrence.rs Outdated
Comment thread crates/types/src/workload.rs Outdated
Comment thread crates/types/src/workload.rs
Comment thread crates/types/src/workload.rs Outdated
Base automatically changed from feat/exact-summary-composition-171 to main August 31, 2026 14:01
@zzylol
zzylol merged commit 3afcba6 into main Aug 31, 2026
3 checks passed
@zzylol
zzylol deleted the feat/workload-summary-lifecycles-300 branch August 31, 2026 19:39
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.

2 participants