Skip to content

fix(erp): bound retained runtime feedback across sources - #639

Merged
zzylol merged 52 commits into
mainfrom
fix/bounded-runtime-feedback
Sep 11, 2026
Merged

zzylol merged 52 commits into
mainfrom
fix/bounded-runtime-feedback

Conversation

@zzylol

@zzylol zzylol commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Runtime ERP feedback must remain bounded across sources and catalog generations. A per-key ring alone allows total retained metadata to grow indefinitely and can leave an older fit eligible after a rejected observation.

This change adds global key and serialized-byte budgets, evicts whole oldest keys, and invalidates previous evidence for a key when its latest payload is malformed or oversized. RPC acknowledgements count only retained records. Size accounting streams into a counter without allocating an encoded payload copy.

Before this PR: each new source could allocate another ring; rejecting its latest observation could preserve an older fit.

After this PR: the default store retains at most 1,024 keys and 16 MiB of serialized records. Invalid latest evidence removes the previous records for that key, allowing ERP consumers to take their existing fallback path.

Verification: six focused runtime feedback tests passed, including global eviction, byte limits, malformed/oversized invalidation, and disabled retention. Independent source review passed.

The byte budget measures serialized records, not process RSS. This is stacked on #638; it does not introduce continuous replanning. Performance measurements and screenshots are not applicable.

…-values

# Conflicts:
#	control_plane/src/query_plan/clickhouse_exact.rs
#	data_plane/src/query_engines/asap_clickhouse_query_engine/relational_adapter.rs
zzylol and others added 22 commits September 11, 2026 09:34
feat(precompute): execute immutable summary subDAGs
feat(erp): publish bounded materialization observations after finite completion
…rocess

Enable typed Array and Tuple SQL planning
…ectASAP/ASAPQuery-backend into fix/bounded-runtime-feedback
…orkflow

feat(erp): integrate bounded runtime observations into main
@zzylol
zzylol changed the base branch from feat/erp-online-observation to main September 11, 2026 16:53
@zzylol
zzylol marked this pull request as ready for review September 11, 2026 16:54
@zzylol
zzylol merged commit 538c08e into main Sep 11, 2026
1 of 2 checks 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