Repository navigation
feat: add staged rollout for rule-pack updates - #1279
Merged
mijinummi merged 1 commit intoOct 18, 2026
Merged
Conversation
Ship a candidate rule-pack version to a growing, deterministic cohort of tenants in gated stages, with automatic rollback when a stage's candidate scan failure ratio breaches its gate. - Cohort membership from SHA-256(pack, candidate version, tenant): stable across processes, monotonic across stages, rotating between releases. - Allow/deny lists, pause/resume/rollback, forced advance requires a reason. - Per-scan pins keep retries on the same rule-pack versions; the pin fingerprint belongs in scan-result cache keys. - Unregistered packs are unmanaged, so existing scan paths are unchanged. - Kill switch (RULE_PACK_ROLLOUT_ENABLED=false) withdraws candidates instantly while honouring existing pins. - Tenant-scoped pins; channel writes use optimistic concurrency; outcome counters use an atomic store primitive so concurrent workers never lose increments. - In-memory and file stores, Prometheus metrics with bounded labels, and sanitized structured logs that never include store errors or content. - Fixtures: realistic Soroban AMM repository rollout and a frozen cohort assignment regression snapshot. - Docs: docs/RULE_PACK_STAGED_ROLLOUT.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@rhemy-arc Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
7 tasks
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.
Ship a candidate rule-pack version to a growing, deterministic cohort of tenants in gated stages, with automatic rollback when a stage's candidate scan failure ratio breaches its gate.
Closes #1270
Closes #1269
Closes #1267
Closes #1268