Skip to content

fix: skip rejected and dry-run requests in activity policies - #522

Merged
kevwilliams merged 2 commits into
mainfrom
fix/activity-policy-outcome-guards
Oct 1, 2026
Merged

kevwilliams merged 2 commits into
mainfrom
fix/activity-policy-outcome-guards

Conversation

@kevwilliams

Copy link
Copy Markdown
Contributor

Activity policies recorded rejected requests and dry runs as real changes, and some rules errored on JSON Patch or Status bodies, sending events to the DLQ.

  • Every create, update, patch and delete rule now requires a 2xx response and skips ?dryRun=.
  • Request and response shapes are guarded before deep field access.
  • Tests mirror the activity processor and fail against main.

Replaying 30 days of production audits: 376 false activities removed, no successful request lost, no summary changed.

Write rules now match only 2xx, non-dry-run requests, and guard request and response shapes so JSON Patch and Status bodies no longer error. Adds tests that mirror the activity processor.
@kevwilliams
kevwilliams requested a review from a team as a code owner October 1, 2026 00:45
scotwells
scotwells previously approved these changes Oct 1, 2026
ecv
ecv previously approved these changes Oct 1, 2026
@kevwilliams
kevwilliams dismissed stale reviews from ecv and scotwells via 48ba7e5 October 1, 2026 02:58
@kevwilliams
kevwilliams requested review from ecv and scotwells October 1, 2026 03:25
@kevwilliams
kevwilliams merged commit 9d511d4 into main Oct 1, 2026
15 checks passed
@kevwilliams
kevwilliams deleted the fix/activity-policy-outcome-guards branch October 1, 2026 18:06
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.

3 participants