You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(event-governance): close enforcement silent-failure gaps from review
Multi-agent review surfaced that the branch hardened three DB read/persist
paths against throttles but left the actual enforcement writes swallowing
them — defeating the ceiling/approval guarantees the branch existed to fix.
- cancel_task and async require_approval now rethrow retryable infra errors
(throttle/5xx) so the FanOut record retries instead of silently letting a
task run past its cost ceiling / skip its approval gate; benign conditional
failures on the approval path are classified and swallowed as INFO
- lift isRetryableInfraError into shared retryable-error.ts (approval module
consumes it without a circular import)
- release the idempotency marker when an enforce action rethrows, so the
retried record can re-claim and re-run rather than being deduped away
- observe_only mode no longer fires notify/escalate side effects — gate the
whole action block on enforce (was only guarding nudge/approval/cancel)
- inject_nudge rethrows retryable errors too
- parseEventRules (TS + Python) logs dropped malformed rules instead of
silently vanishing a ceiling rule; Python now requires id AND on (no more
KeyError on missing on)
- add turn_count_gte to the inline BlueprintEventRule.when.aggregate type
- drop severity 'critical' from schema + both type mirrors (the agent
PolicyEngine only knows low/medium/high)
- remove dead evaluation-filter branch in bgagent rules eval
Tests: async require_approval (enforce + observe), inject_nudge truncation,
idempotency dedup skip, cancel terminal-status guard, retryable-release-and-
rethrow, unknown-pack 422, and a new event-rule-pack-resolver suite covering
inline/pack merge + override. cdk 2297 pass, agent + cli green.
0 commit comments