Skip to content

Start maintenance DAG execution at supplied materializations - #615

Merged
zzylol merged 4 commits into
mainfrom
fix/precompute-materialized-frontier
Sep 11, 2026
Merged

zzylol merged 4 commits into
mainfrom
fix/precompute-materialized-frontier

Conversation

@zzylol

@zzylol zzylol commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Ingest can already provide the state for a materialized SummaryAgg, but the maintenance scheduler still traversed its absorbed raw-input subtree first. A real ERP-selected KLL installation therefore failed on a Fallback node instead of storing its computed summary.

Add a materialized-input frontier to the generic operator registry. The scheduler validates placement and timing, then reuses the supplied state before visiting dependencies. Shared downstream branches reuse the same Arc. The production adapter resolves the frontier from the installed summary-definition binding; dependency/grouping checks also stop there.

Before: Fallback → SummaryAgg → readout tried to execute Fallback even after ingest had computed SummaryAgg. After: maintenance starts from the supplied SummaryAgg state and executes only downstream dependencies.

Verification: three scheduler tests and six maintenance-runtime tests passed. The ERP agent independently reran the real backend process: Planner-selected KLL k=32 and k=128, catalog installation, remote-write ingestion of two series, and warm per-series readout passed without query fallback. This is execution evidence, not a performance comparison.

Stacked on #613 and the merged maintenance fixes. This implements the materialized-input boundary; it does not add arbitrary SummaryAgg update expressions or synchronized multi-source execution. The broader repeated-dashboard process case independently reproduces a preexisting install validator mismatch between pane size and slide; its separate correction belongs to the ERP execution integration.

@zzylol
zzylol changed the base branch from refactor/shared-precompute-plan-contract to main September 11, 2026 00:23
@zzylol
zzylol merged commit 99d0a55 into main Sep 11, 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