Repository navigation
refactor(infra): remove unreachable firewall diagnostic fallback - #147882
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 3:25 AM ET / 07:25 UTC (Revision 3). ClawSweeper reviewWhat this changesRemoves an unreachable Windows firewall diagnostic result and adds two public-inspector tests preserving existing warning and unrestricted outcomes. Merge readiness✅ Ready for maintainer review Keep open: this is a coherent, behavior-preserving cleanup with renewed maintainer sponsorship. The cleanup remains absent from current main, and no actionable correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherDeep Gateway status checks inspect Windows firewall profiles and rules when the local Gateway uses LAN binding. The classifier turns that probe output into diagnostic messages and operator guidance. flowchart TD
A[Deep Gateway status] --> B{Local Windows LAN binding}
B -->|Yes| C[Read firewall profiles and rules]
B -->|No| D[Skip firewall inspection]
C --> E[Classify profiles and rule coverage]
E --> F[Diagnostic and operator guidance]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -10, Tests +39. Total +29 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing classifier as the sole diagnostic owner, with one terminal no-allow warning and the earlier unrestricted result preserved. Do we have a high-confidence way to reproduce the issue? Not applicable: no runtime defect is claimed; source inspection proves the removed fallback is unreachable. Is this the best way to solve the issue? Yes: unwrapping the guaranteed warning is a narrow simplification that preserves messages, precedence, probe behavior, and existing settings. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b2fefda199c6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Closing as standalone refactor-only work. I rechecked head The added tests characterize existing diagnostic behavior rather than validate a repair, so the maintenance and review cost is not justified under the current contribution priorities. |
|
Merged via squash.
|
* commit '8e6fe8e02ddb51bfec4e80071f0f2adcae4cf098': (47 commits) refactor: simplify Gateway health response parsing (#147834) fix: avoid Gateway stalls when renaming sessions (#147869) refactor(plugins): reuse worker optional-method validation (#147925) refactor(infra): remove unreachable firewall diagnostic fallback (#147882) fix(ui): open attached automations from session hovercards (#147749) refactor(reply): share usage-bar numeric coercion (#147863) fix(doctor): report warnings for keyed agent configs (#123058) perf(plugins): reuse complete registry comparisons (#147893) fix(workboard): await lifecycle sweep completion in tests (#147950) fix: reduce stalls when browsing large session inventories (#147911) refactor(onboard): share custom model definition (#147915) feat(ios): collapse completed chat work above replies (#148002) fix(voice-call): retain state runtime for deferred streams (#147689) test(qa): compare Telegram entities semantically (#147752) fix(plugins): preserve runtime scope for deferred CLI actions (#147688) test(qa): keep Slack progress marker visible (#147748) test(qa): finish channel picker prompts (#147730) test(tui): handle auth restriction prompt (#147729) fix(qa): retain onboarding prompts across redraw bursts (#147687) fix(qa): seed Teams ambiguous timeout deterministically (#147686) ...
* commit '069710f909f0a7158777d0fc0bf1eab84e20c699': (45 commits) refactor(infra): consolidate update campaign reset ownership (openclaw#146555) refactor: simplify Gateway health response parsing (openclaw#147834) fix: avoid Gateway stalls when renaming sessions (openclaw#147869) refactor(plugins): reuse worker optional-method validation (openclaw#147925) refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882) fix(ui): open attached automations from session hovercards (openclaw#147749) refactor(reply): share usage-bar numeric coercion (openclaw#147863) fix(doctor): report warnings for keyed agent configs (openclaw#123058) perf(plugins): reuse complete registry comparisons (openclaw#147893) fix(workboard): await lifecycle sweep completion in tests (openclaw#147950) fix: reduce stalls when browsing large session inventories (openclaw#147911) refactor(onboard): share custom model definition (openclaw#147915) feat(ios): collapse completed chat work above replies (openclaw#148002) fix(voice-call): retain state runtime for deferred streams (openclaw#147689) test(qa): compare Telegram entities semantically (openclaw#147752) fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688) test(qa): keep Slack progress marker visible (openclaw#147748) test(qa): finish channel picker prompts (openclaw#147730) test(tui): handle auth restriction prompt (openclaw#147729) fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687) ...
* commit '4ddb9ed21245eaca9f243e555a5ec070aaaf0dad': (113 commits) fix: avoid Gateway stalls when renaming sessions (openclaw#147869) refactor(plugins): reuse worker optional-method validation (openclaw#147925) refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882) fix(ui): open attached automations from session hovercards (openclaw#147749) refactor(reply): share usage-bar numeric coercion (openclaw#147863) fix(doctor): report warnings for keyed agent configs (openclaw#123058) perf(plugins): reuse complete registry comparisons (openclaw#147893) fix(workboard): await lifecycle sweep completion in tests (openclaw#147950) fix: reduce stalls when browsing large session inventories (openclaw#147911) refactor(onboard): share custom model definition (openclaw#147915) feat(ios): collapse completed chat work above replies (openclaw#148002) fix(voice-call): retain state runtime for deferred streams (openclaw#147689) test(qa): compare Telegram entities semantically (openclaw#147752) fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688) test(qa): keep Slack progress marker visible (openclaw#147748) test(qa): finish channel picker prompts (openclaw#147730) test(tui): handle auth restriction prompt (openclaw#147729) fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687) fix(qa): seed Teams ambiguous timeout deterministically (openclaw#147686) refactor(mcp): load OAuth only when credentials are needed (openclaw#147884) ...
What Problem This Solves
This scoped refactor is explicitly requested by the maintainer as part of the approved code-maintenance deliverable, continuing after the prior triage closure.
The Windows Gateway firewall classifier retains a final unrestricted result that cannot be reached. Its earlier unrestricted return already handles every active profile with no inbound blocking.
User Impact
Diagnostic codes, messages, precedence and probe behavior stay unchanged. Empty profile output still reports no allow rule; an unblocked active profile still returns the earlier unrestricted result.
Why This Change Was Made
Remove the unreachable fallback and unwrap the existing no-allow result. The local profile arrays are unchanged between the two conditions, so reaching the final branch guarantees its condition.
Production: −10 lines. Tests: +39 lines.
Evidence
dfdb12b3fcb194205248b4741924cea38bc3e990passed local whitespace checks and required P2 review with no actionable findings. The review sandbox exposed only the supplied diff; primary review supplied the complete owner, caller and dependency context. The staged classifier selected normal core lanes without executing them.32fdd19c465529e06699195caa0d00b801c817e7contains the reviewed source and tests. This run reused that original checkout, so it does not establish proof on the newer current-main parent.