Uh oh!
There was an error while loading. Please reload this page.
fix(server): notify watchers after atomic policy commits - #2556
Conversation
Signed-off-by: Nave Cohen <nave@monday.com>
All contributors have signed the DCO ✍️ ✅ |
NaveCohenMonday
commented
Jul 30, 2026
I have read the DCO document and I hereby sign the DCO. |
drew
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
Validation: This concentrated server fix implements the confirmed watcher-notification defect in linked issue #2517 and stays within that issue's scope.
Head SHA: 28702360e622a60670c967098519e6ebb0185332
Review findings:
- No blocking findings remain. The notification is reached only after the atomic policy revision transaction commits, while failed writes, exhausted retries, and idempotent no-op requests return before it.
- The regression test covers delivery and exactly-once behavior for the affected same-policy/new-provenance path.
Docs: Not needed; this restores an existing internal watch notification invariant without changing a public API, CLI, configuration field, or documented workflow.
E2E: No test:* label is needed; the focused server unit test directly covers this in-memory notification hook.
Next state: gator:watch-pipeline
drew
commented
Jul 30, 2026
/ok to test 2870236 |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Notify sandbox watchers after an atomic
UpdateConfigpolicy revision commits.Without this notification, live
WatchSandbox(follow_status=true)consumers cancontinue showing stale sandbox state until another event occurs. Sandbox
supervisors poll
GetSandboxConfigindependently and are not affected by thisnotification gap.
Related Issue
Fixes#2517
Changes
put_policy_revision_atomicsucceeds.one committed revision emits exactly one watcher notification.
notify observers.
Testing
CARGO_INCREMENTAL=0 mise run pre-commitpassesFocused test:
Checklist