Skip to content

fix: keep folded socket owner in network scans - #177733

Merged
steipete merged 1 commit into
mainfrom
deslop/z25-46-retired-owner-scan-routing-20261015
Oct 19, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/z25-46-retired-owner-scan-routing-20261015

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

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 9f8fb61107ec4e98a9f00bdf91b7e3d17194a35e through merge 7da3a4ce2a7ce61015cfa8f8e2d5941f0386b6b2 (main parent 1099ccc1713bda550cbbf04b97b3f6d4299b0415). The native inherited-failure admin exception is requested for the following baseline failures; failed CI is not called green.

Failed job Observed failure Baseline proof
check-test-types-core-4 (118309190635) local-http-probe.test.ts:154 missing createDeferredCore; line 178 implicit-any callback Scheduled main run 39320267109, job 118292687907, reproduces both exact diagnostics.
check-lint-core-1 (118309190816) local-http-probe.test.ts:178 typescript/prefer-promise-reject-errors The same scheduled main run, job 118292687840, reproduces the exact diagnostic.

The failing file is untouched by this PR and its head/base blob is identical (cb50eabba3e6638baad1a3860e8f602449757f75). Current main repair b6bd9e8bd0cad400b31a223a0c44f8494f5cfb87 restores 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.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 19, 2026 21:06
@steipete
steipete requested a review from a team as a code owner October 19, 2026 21:06
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T21:10:26.765387Z 9f8fb61 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR follows the folded socket operation into exec-host across network scans and removes a deleted onboarding helper reference.

Example: A PR adds new Socket() to src/infra/exec-host.ts.

  • Before: The network shard selector and sensitive-diff filter omit that owner.
  • After: The network shard is selected and the added socket operation triggers full CodeQL analysis.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-verified, with meaningful workflow harness coverage and a passing hosted semantic gate; behavioral evidence remains harness and CI based.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored automation repair is outside the ordinary contributor proof gate; supplied routing coverage executes the workflow shell and jq filters, and the exact-head hosted network job passed semantic analysis and its findings gate.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers can miss network-sensitive changes in the moved socket owner, and onboarding catalog validation encounters a nonexistent source reference.
Reason: The maintainer-authored direction restores existing coverage and catalog integrity without introducing policy, public API, configuration, or runtime changes.

Regression provenance

Possible 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
Reviewed head: 9f8fb61107ec4e98a9f00bdf91b7e3d17194a35e

Before merge

None.

Findings

None.

Agent review details

How this fits together

GitHub 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]
Loading

Technical review

Best 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

  • Network scan scope and fast PR routing keeps the original intent (00d8d7e: Use a fast added-line PR scan while retaining full scheduled/manual CodeQL analysis; subsequent work retained fail-closed handling and exact contract escalation.)
  • Exact socket owner classification keeps the original intent (6e6a0e5: Classify the existing JSONL socket helper by its exact owner and function rather than exempting the file generally.)
  • Onboarding QA source references keeps the original intent (06b5f0b: Connect executable CLI onboarding coverage to its production owners, including remote setup.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +12, Config 0, Other -1. Total +11 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 13 1 +12
Docs 0 0 0 0
Config 3 4 4 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 5 17 6 +11

Labels

Label changes:

  • add P2: The owner move leaves a concrete network-scan coverage gap and a deterministic QA catalog failure, without changing shipped runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The owner move leaves a concrete network-scan coverage gap and a deterministic QA catalog failure, without changing shipped runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 19, 2026, 5:23 PM ET / 21:23 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Exact-head inherited-failure evidence for 9f8fb61107ec4e98a9f00bdf91b7e3d17194a35e (CI run 39324918310, attempt 1).

Failed job Attribution and proof
check-test-types-core-4 / 118309190635 local-http-probe.test.ts:154 TS2304 missing createDeferredCore, followed by line 178 TS7006. Scheduled main 39320267109 / 118292687907 has both identical diagnostics; CI's signature table classifies this as pre-existing.
check-lint-core-1 / 118309190816 Same untouched test, line 178, typescript/prefer-promise-reject-errors. CI's automatic signature table says unknown/incomplete, so the complete leaf log was compared manually with scheduled main job 118292687840: identical rule, location and message.
openclaw/ci-gate / 118321909936 Downstream aggregate of those two failed leaf jobs, not another product failure.

The test blob is identical at the PR head and base: cb50eabba3e6638baad1a3860e8f602449757f75. None of the five changed routing/reference files supplies its missing symbol; this PR changes no runtime/import graph. Main repair b6bd9e8bd0cad400b31a223a0c44f8494f5cfb87 restores the missing import with eight passing cases, targeted native types and lint. The coordinator flake ledger and all six latest completed scheduled main inventories were inspected.

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. security-fast, network routing/CodeQL and all four QA Smoke profiles pass. The administrative auto-response cancellation is not missing product proof.

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 7da3a4ce2a7ce61015cfa8f8e2d5941f0386b6b2, with ordered parents main 1099ccc1713bda550cbbf04b97b3f6d4299b0415 and the exact PR head; native admission must verify its tree and evidence before merging.

@steipete
steipete merged commit 725c926 into main Oct 19, 2026
208 of 213 checks passed
@steipete
steipete deleted the deslop/z25-46-retired-owner-scan-routing-20261015 branch October 19, 2026 21:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant