Fix nullability of Network browse results handler arguments #889
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.33) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 143 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.297
Real PR Conversation Timeline
1 comments
"Review active on #889"
general
weight: 0.35
madsmtm
nw_browser_browse_results_changed_handler_tsits insideNW_ASSUME_NONNULL_BEGIN, soobjc2-networktyped its old and new results asNonNull<NWBrowseResult>. Network passes NULL as the old result when a service appears and as the new result when it disappears, which is whynw_browse_result_get_changestakes both as_Nullable.I saw it with a Bonjour listener and browser on macOS 26.7.1, iOS 26.6.2 and iPadOS 26.6.2, where every added and removed result handed the closure a NULL
NonNull. I reported the header's annotation to Apple as FB25452730.The translation config had no way to change the nullability of a block typedef's parameters, so
typedef.<name>.arguments.<index>now takes the same overrides as function arguments, and the Network config uses it for the two results. The handler now takes*mut NWBrowseResultfor both. The regenerated file is on theupstream/network-browse-result-nullabilitybranch of myobjc2-generatedfork.This fixes the nullability half only. The typedef still cannot be built from a closure, since its trailing C
boolis notEncodeArgument, the limitation discussed in #752.