Avoid unused EventBus debug work #479
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 338 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #479"
general
weight: 0.35
rupayon123
Summary
emit()call.Closes #294
Validation
QT_QPA_PLATFORM=offscreen uv run --frozen pytest tests/models/events -q— 51 passed.ty check pandaplot/models/events/event_bus.py— passed.git diff --check— passed.EXE001findings for non-executable scripts with shebangs (scripts/audit_positional_args.py,scripts/build_installer.py); neither file is changed.Requested measurements and review follow-up
This is a log-noise cleanup. These synthetic timings do not establish an application-wide speedup.
Python 3.12.13 on macOS-27.0.1-arm64-arm-64bit. Median of 5 timeit repeats of 20,000 emits with a six-key payload and zero or one synchronous no-op subscriber. A counting logging handler discards output; file/console I/O and real GUI usage are not measured. The pre-change implementation is from the parent of 6499431; the after implementation is 6499431 (the new test-only commit does not change it).
| Level | Subscribers | Before µs/emit | After µs/emit | DEBUG records before → after |
|---|---:|---:|---:|---:|
| INFO | 0 | 2.551 | 0.307 | 0 → 0 |
| INFO | 1 | 1.230 | 0.432 | 0 → 0 |
| DEBUG | 0 | 5.910 | 3.484 | 2 → 1 |
| DEBUG | 1 | 7.017 | 7.350 | 3 → 3 |
The timing samples were noisy (for example INFO/no-subscriber before ranged from 1.043 to 4.463 µs/emit), and DEBUG/one-subscriber was slightly slower after the change. The dependable result here is one fewer record per no-subscriber emit at DEBUG and avoiding the keys list with DEBUG disabled. This is a synthetic record count, not an application-session log trace.
Changed the regression test to use
caplog.set_level("INFO", logger="EventBus"), which restores the shared logger on teardown. Fresh validation: 51 event tests passed; Ruff passed on both changed files; ty passed on the event-bus module; diff check passed. Repository-wide Ruff still reports the two unchanged EXE001 script permissions findings listed above. Full application and device testing remain unrun. Remote tests require maintainer approval.