Skip to content

Share validated source-window cohorts for derived maintenance - #661

Merged
zzylol merged 3 commits into
feat/automatic-immutable-maintenancefrom
feat/derived-window-cohorts
Sep 11, 2026
Merged

zzylol merged 3 commits into
feat/automatic-immutable-maintenancefrom
feat/derived-window-cohorts

Conversation

@zzylol

@zzylol zzylol commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

CP compilation and installation duplicated the source-window checks for immutable derived state. This adds one shared validator returning borrowed existing materialization definitions, so both paths use the same window contract without a new serialized DTO.

The contract accepts matching explicit full stored windows, including full-window sliding, and rejects missing sliding origins, shifted windows, mismatched slides, duplicate sources, derived sources, and lossy pane layouts. Window selection remains Planner-owned. Existing installation/runtime limits remain in place until multi-source completion and execution are implemented.

Before: equivalent window checks were scattered across compiler and installation code. After: the shared cohort view can also support the next batch-input consumer while preserving explicit source identities and window parameters.

Validation: all 99 shared-types tests pass, including borrowed identity, multiple source definitions, and fingerprint changes for origin/slide/layout. Focused CP integration and the final explicit/legacy origin regression pass. Legacy nonoverlapping definitions retain their existing matching absent-origin behavior. No new runtime or performance claim.

@zzylol
zzylol marked this pull request as ready for review September 11, 2026 18:05
@zzylol
zzylol merged commit 5b17eda into feat/automatic-immutable-maintenance 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