fix(ops): block concentrated district pending spikes in auto-publish - #357
Open
rudrakshbhandari wants to merge 2 commits into
Open
fix(ops): block concentrated district pending spikes in auto-publish#357rudrakshbhandari wants to merge 2 commits into
rudrakshbhandari wants to merge 2 commits into
Conversation
Catch Gujarat-style reporting corrections that stay under the 20% state threshold by adding an absolute pending floor and a single-district concentration gate for lower-court publish-pending sweeps.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 880847a01e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Preview ready: https://mvhppzh383.ap-south-1.awsapprunner.com Service: |
Walk the union of previous and current district maps so NJDG add, rename, and drop events still trip the concentrated-district review path.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Summary
>100kcases and>5%) so large sub-20% state moves still require human review.>40%district swing,≥25kabs,≥50%of state delta) wired through publish-pending via the latest published snapshot's district map.README.md.Live follow-up already done
run_3943381e-9ba0-4510-a857-bc81d778baceaspublication_e402ffc3-eaec-48da-9ee0-e58c4ae5ae82./v1/states/gujarat/statsnow showspendingCases=1602737from that run.Test plan
npx vitest run tests/auto-publish-gate.test.ts tests/auto-publish-runner.test.ts tests/publish-pending-runner.test.ts