Identify event bus messages by type and id in error text #25448
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 233 lines diff across 2 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.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25448"
general
weight: 0.35
HadhemiDD
What does this PR do?
BaseMessagedefines__str__as its type and id, e.g.BatchFinished 'batch-01', so messages formatted into logs and error text, includingMessageProcessingError,OrchestratorHookErrorandProcessorHookError, no longer carry their full repr.repr()keeps the dataclass default, and a message can define its own if it needs to.When an
on_errorhandler re-raises the error it received, which is the default, the orchestrator logs that error once instead of as both the raised and the wrapped error.Motivation
A gatherer failure in a Dispatcher run logged a single line containing the full
BatchFinishedrepr (20 jobs, every step of each) twice:The line was hard to read and filled the log event with values parsed out of the repr text. With this change it reads:
Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged