Repository navigation
fix: keep folded socket owner in network scans - #177733
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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR follows the folded socket operation into exec-host across network scans and removes a deleted onboarding helper reference. Example: A PR adds
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs stale scan and QA references still present on current main, with no actionable patch defects found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGitHub changed-file metadata enters the CodeQL shard selector and sensitive-diff filter; selected source files then undergo function-scoped socket classification and a findings gate. flowchart TD
A[Changed file metadata] --> B[Shard selector]
B --> C[Network diff filter]
C --> D[CodeQL source scope]
D --> E[Socket owner classification]
E --> F[Findings gate]
Technical reviewBest possible solution: Keep the existing scan owners and propagate the moved operation's exact path and function consistently, as this PR does. Do we have a high-confidence way to reproduce the issue? Source establishes both failures: exec-host is absent from the current-main network selectors, and the QA catalog points to a deleted file; the PR also reports red-on-base routing and catalog checks. Is this the best way to solve the issue? This is the smallest complete cutover repair: it reuses existing selectors, preserves a function-scoped exemption, and extends the existing boundary tests without adding runtime machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b61b0809c637. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +12, Config 0, Other -1. Total +11 across 5 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 19, 2026, 5:23 PM ET / 21:23 UTC. |
|
Exact-head inherited-failure evidence for
The test blob is identical at the PR head and base: The complete paginated census has 201 check runs: 65 success, 131 conditional skips, one neutral CodeQL, these three failures, and one cancelled administrative auto-response. No product suite is cancelled or pending. Local source proof passed all 40 routing/findings cases, the QA documentation/code-reference case, targeted native types, typed lint, formatting, whitespace and all 14 suppression cases. Independent review found no actionable P0–P2 issue. No CI rerun, source repush, baseline relaxation, security exception, runtime change or Phase E change was used. Landing is through the campaign-authorized native inherited-failure admin exception, pinned to this exact head. Failed CI is not described as green. The inspected CI checkout is |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
After #177655 folded the private JSONL socket into exec-host, network CodeQL routing and classification still pointed at the deleted file. The onboarding QA catalog also retained a deleted remote-onboarding helper reference.
User Impact
No runtime or public API change. The authenticated exec-host socket remains covered by the network boundary scan, and onboarding QA references the surviving public owner.
Why This Change Was Made
Follow the same socket operation to its existing exec-host function in the scan scope, shard selector, sensitive-diff filter, and exact owner/function classification. No file-wide exemption or additional allowance is introduced. Remove the redundant onboarding reference; its surviving owner is already listed.
Best-effort tradeoffs accepted
None. No guard, security check, query severity, CI suite, runner setting, or execution limit is removed or relaxed. This is orphaned-reference propagation from #177655, not a new socket policy. Production runtime LOC delta: zero; this coherent bug-fix follow-up uses the campaign's bug-fix size exception.
Evidence
Red-on-base proof reproduced four routing failures (owner shard selection, raw socket diff detection, and both unavailable-patch cases) and the deleted onboarding QA reference. After the repair, all 40 routing/findings-gate cases passed (161.18s Vitest; 178.65s wrapper), and the existing QA documentation/code-reference case passed (29.35s wrapper). These execute the workflow's actual shell and jq filters, replacing only GitHub metadata I/O; the existing fail-closed and findings-gate cases remain intact.
Targeted native test types, focused typed lint, formatting, and git diff --check passed. The mandatory suppression audit passed all 14 cases (27.82s wrapper). Fresh independent review completed scoped-clean with no actionable P0-P2 findings; the author simplification pass retained only owner-reference propagation and its regression coverage. No runtime/import graph changes require cycle or SDK API migration.
Full workflow validation and CodeQL query compilation/semantic analysis remain hosted exact-head CI proof. Local workflow validation would acquire/build pinned actionlint and run the entire workflow inventory, outside this campaign's local CPU/build budget. The first lint invocation entered SDK artifact preparation and was stopped; the supported skip-prepare invocation passed against the already native-checked source graph. No broad local build, live service, or operator-state proof is claimed. Local checks use isolated HOME/OpenClaw/XDG paths, nice 10, and one worker serially. Hosted CI timing is pending.
Phase E is untouched. Runtime production LOC delta is zero; the complete five-file diff is +17/-6. Related: #177655.
Exact-head CI attribution
Run 39324918310, attempt 1, tests head
9f8fb61107ec4e98a9f00bdf91b7e3d17194a35ethrough merge7da3a4ce2a7ce61015cfa8f8e2d5941f0386b6b2(main parent1099ccc1713bda550cbbf04b97b3f6d4299b0415). The native inherited-failure admin exception is requested for the following baseline failures; failed CI is not called green.The failing file is untouched by this PR and its head/base blob is identical (
cb50eabba3e6638baad1a3860e8f602449757f75). Current main repairb6bd9e8bd0cad400b31a223a0c44f8494f5cfb87restores its missing import and records passing eight-case, native-type, and lint proof. The coordinator flake ledger and last six completed scheduled main inventories were inspected. Final aggregate and complete check accounting will be recorded in the landing evidence comment after all jobs finish. No CI rerun or source repush was used.