Amazon Ergo 1.0 · Heavy

feat-workflow-engine-add-in-hook-for-producing-occurrences-from-the-stateful-det-sentry

Sentry · Python · S · 30–99 lines · 3 files

The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Opus 5.5.

Gold bugs found
2 of 2
Comments published
2
Comments matching a bug
2
Comments not matching
0
Cost of this PR
$1.860

Published comments (2)

highbugsrc/sentry/incidents/grouptype.py:11-12

MetricAlertDetectorHandler is abstract and cannot be instantiated — Any `Detector` with type `metric_alert_fire` now crashes in `process_detectors` because `MetricAlertDetectorHandler` is abstract and raises `TypeError` on instantiation. Implement its abstract methods or keep the placeholder on `DetectorHandler` until the stateful implementation exists.

mediumbugtests/sentry/workflow_engine/processors/test_detector.py:244-275

Mock occurrence helper ignores value, weakening propagation tests — Wrong or swapped per-group values would still pass because `build_mock_occurrence_and_event` ignores `value`. Include `value` in `IssueOccurrence`/`event_data` and update call sites to use each group's actual value.

Gold bugs found (2)

highMetricAlertDetectorHandler subclasses StatefulDetectorHandler without implementing its abstract methods, so instantiating it for metric alert detectors raises TypeError where it previously returned an empty-result handler.
mediumThe mock occurrence builder ignores its value argument, so tests (e.g. group_2 expected with 6 while the packet carries 10) pass regardless of which value is passed to build_occurrence_and_event_data.

Gold bugs missed (0)

None.