docs(design): model workload demand and summary lifecycle - #310
Open
zzylol wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
ASAPPlanner currently distinguishes one-shot consumers, fixed-interval repeating queries, and an ingest-rate proxy, but it does not model query predictability, queried time scope, data-at-rest versus continuous ingestion, demand uncertainty, or the lifecycle of summary state.
This matters because a summary operator is not inherently continuously maintained. The same exact or approximate summary may be built ephemerally for one invocation, prepared for a known future query, shared for a bounded period, or maintained incrementally.
What
Adds a design document that:
03e1c70;The ASAP-aware mapping design index links the new document.
Before this PR
The design could describe a root as one-shot or fixed-interval repeating and could derive update/evaluation rates, but it had no authoritative answer to:
Repeated query demand could also be confused with continuously ingesting data.
After this PR
The design treats those facts independently:
Identical query syntax can therefore receive different lifecycle alternatives under unpredictable one-time, scheduled one-time, repeated-at-rest, and repeated-continuous workloads.
Verification
git diff --checkpre-commitwas not available in the environment; this PR changes Markdown onlyScope and follow-up
This PR is design documentation only. It does not change public Rust types or planner behavior. The document leaves uncertain-demand objective policy, template equivalence, horizon ownership, runtime state ownership, time-scope classification, and empirical evidence freshness as explicit decisions requiring owners.