Bind physical-plan execution to the authoritative SummaryCatalog - #538
Merged
Merged
Conversation
zzylol
force-pushed
the
feat/precompute-summary-catalog
branch
from
September 9, 2026 23:04
9b92c18 to
a374c0d
Compare
zzylol
force-pushed
the
feat/query-summary-catalog-bindings
branch
from
September 9, 2026 23:04
09dbf09 to
84c1f16
Compare
zzylol
force-pushed
the
feat/query-summary-catalog-bindings
branch
from
September 9, 2026 23:07
84c1f16 to
c6033e2
Compare
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.
The backend previously carried SummaryCatalog metadata beside parallel runtime definitions, so a successfully installed catalog did not guarantee that SummaryStore instances or QueryPlan readouts used those descriptors. BackendPlan also duplicated ownership already split across precompute, transport, and query plans.
This change completes the catalog-backed physical-plan runtime. The control plane publishes one authoritative SDS catalog snapshot; PrecomputePlan, CollectorPlan, TransmissionPlan, and QueryPlan reference stable materialization IDs; and activation installs the same snapshot into SummaryStore. New SIDs resolve shared SummaryDescriptor and DataDescriptor values from that catalog, while legacy unset identities remain an explicit compatibility path. The backend exposes observed instance inventory from registered state and real in-memory pane coverage at
/api/v1/summary-inventoryfor lifecycle reconciliation.BackendPlan, its protobuf/install endpoint, duplicate validation, and stale runtime code are removed. Query planning now also consumes the merged ASAPPlanner recursive value-operation DAG, preserving summary children under Sort/Limit TopK and exact binary composition. The data plane executes those nodes through catalog-bound readouts and query-time combination, while unsupported children remain Prometheus fallback boundaries.
Validation:
cargo test -p control_plane --lib— 692 passedcargo test -p data_plane --lib— 1,015 passedcargo test -p asap_types— 63 passedcargo check --workspace --all-targets— passedcargo test -p data_plane --test backend_process_e2e --no-run— passedcargo fmt -p control_plane -p data_plane -p asap_types -- --check— passed