Repository navigation
Refuse oversized blocking rules before scoring and retain pod eviction details - #1492
Merged
Merged
Conversation
athvin
temporarily deployed
to
marketing-preview
November 30, 2026 07:32 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Closes #1477
What
Check each blocking rule against the tenant’s candidate-pair budget before scoring. The default is 100 million pairs per rule. Errors identify the rule, the observed count or lower bound, and the configured limit. Preserve the Kubernetes reason, message, and observed container exit code on both the task and its archived attempt when eviction or an OOM ends a pod.
Why
An er-dev match spent 8.5 minutes and reached 387 GiB of spill before Kubernetes evicted it. The task record then lost the eviction detail. Grouping symmetric blocking keys lets preflight detect this case without constructing the pairs.
Proof
Local
make checkandmake check-e2epassed before rebasing on main. The block census refused 499,999,500,000 candidate pairs from one million records sharing a compound key. DuckLake integration coverage verifies that a rejected replacement preserves all 19 active pairs. Kubernetes status fixtures and PostgreSQL executor tests cover the failure detail. The original live eviction is recorded in #1477.Risk & rollback
Tenants that intentionally score a larger block can set
max_candidate_pairs_per_rulein their config. Generic predicates may still spend time finding matching pairs before reaching the threshold. Revert the merge to restore the previous admission and reporting behavior.Post-merge ledger
Closed by: Codex · session
01a22617-fe23-7d41-a7bc-1b35070cc8bdonMac· 2026-11-30T07:50:03Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: Descendant
e1b7ef0dcontains merge70f2efb1and passed Rust, frontend and infra.imagesbuilt, or correctly never ran because nothing that goes intoan image changed: Images for the exact merge built er-api. ECR identifies
sha256:31ba2256d5555ad8559ea51e84566cec52df28a8ce18122431beea037342e091with tag70f2efb19aa1215c9ede5093c4625d7aa420fff5.deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: The active er-dev/ci service selected green. Its er-server container used the merge image above and emitted
er-server listeningat0.0.0.0:8000on 2026-11-30T07:37:41.310887Z. Both deployment jobs passed.deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: Deploy and the latest Kind passed. The earlier drift check reported a subscriber gap and pre-existing prod/core drift.
Donethrough the automation rather than byhand, and the issue closed: fix(match): a blocking key that explodes is found by eviction 8 minutes in — no pair budget, and the eviction reason never reaches the task record #1477 closed and reached Done on both project boards.
(a skill, a reference, memory) — or nothing new was learned: The er-matching customer rules reference in this merge documents the per-rule limit and its override.
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files