Skip to content

fix(test): resync suppression inventory line numbers after #139651 - #139747

Merged
steipete merged 1 commit into
mainfrom
fix/type-suppression-inventory-line-drift
Sep 6, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/type-suppression-inventory-line-drift

Conversation

@steipete

@steipete steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Problem

openclaw/ci-gate is red on current main for every PR: test/scripts/type-suppression-inventory.test.ts asserts an exact, hand-maintained list of @ts-expect-error file:line locations, and #139651 inserted a one-line comment above the it.concurrent.each block in src/infra/net/fetch-guard.socks.test.ts, shifting three of those markers down by one line without updating the ratchet.

Solution

Resync the three stale line numbers (363→364, 374→375, 377→378) to match the current source. Verified against the live scan: node --import ./scripts/tsx.mjs scripts/type-suppression-inventory.ts reports the same three markers at the new line numbers and nothing else changed in the suppression set.

Evidence

  • node scripts/run-vitest.mjs test/scripts/type-suppression-inventory.test.ts → 2 tests passed
  • No other findings changed between the pre- and post-fix inventory scan

it.concurrent.each's added comment in fetch-guard.socks.test.ts shifted
three @ts-expect-error markers down one line; the inventory ratchet
still asserted the pre-shift lines.
@clawsweeper

clawsweeper Bot commented Sep 6, 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.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 6, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 12:43 AM ET / 04:43 UTC.

ClawSweeper review

What this changes

Updates three expected TypeScript suppression locations so the repository inventory check matches the current proxy tests.

Merge readiness

✅ Ready for maintainer review

Keep open: pinned main still contains the stale expectations, and this focused repair preserves the inventory's enforcement. No actionable patch defects were found; the maintainer-authored, protected PR is not a cleanup candidate.

Priority: P3
Reviewed head: fe131488d31fb1951aafc2c14fc0fbc45e9275fb

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, source-verified correction with reported focused validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-author exemption applies to this test-only correction; reported scanner and focused-test results align with the inspected inventory mismatch.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-author exemption applies to this test-only correction; reported scanner and focused-test results align with the inspected inventory mismatch.
Evidence reviewed 6 items Introduced change preserves enforcement: The pinned introduction diff changes only three line coordinates. Suppression explanations, list membership, zero-any assertions, and exact comparison remain unchanged.
Main still needs the correction: Pinned main expects lines 363, 374, and 377, whereas its actual suppression comments occur at 364, 375, and 378, exactly matching the proposed values.
Scanner owns the location contract: The fully inspected scanner extracts suppression comments, records one-based source lines, and sorts findings before the test performs its exact comparison. This correction does not depend on changing Undici or Codex behavior.
Findings None None.
Security None None.

How this fits together

The type-suppression inventory scans repository TypeScript files and reports explicit exceptions to type checking. Its test compares those findings against an approved list to detect unintended changes.

flowchart LR
  A[Repository TypeScript files] --> B[Suppression scanner]
  B --> C[Locations and explanations]
  C --> D[Inventory comparison]
  E[Approved suppression list] --> D
  D --> F[Pass or report drift]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 3 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 3 0

Review metrics

None.

Technical review

Best possible solution:

Keep the strict suppression inventory synchronized with actual source locations without expanding exceptions or weakening detection.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: main's exact inventory comparison expects three coordinates that differ from the actual comments by one line; the focused test was not run during this read-only review.

Is this the best way to solve the issue?

Yes. Updating those coordinates repairs the demonstrated mismatch while retaining the existing suppression set and strict assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2d361a8cdbaf.

Labels

Label changes:

  • add P3: This is a mechanical test-inventory correction with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-author exemption applies to this test-only correction; reported scanner and focused-test results align with the inspected inventory mismatch.

Label justifications:

  • P3: This is a mechanical test-inventory correction with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-author exemption applies to this test-only correction; reported scanner and focused-test results align with the inspected inventory mismatch.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 5b7e42b into main Sep 6, 2026
128 checks passed
@steipete
steipete deleted the fix/type-suppression-inventory-line-drift branch September 6, 2026 04:49
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

fuller-stack-dev added a commit that referenced this pull request Sep 6, 2026
Carry the already-merged test-only corrections from #139651 and #139747
so the PR head and GitHub merge-ref use matching suppression line numbers.
No production behavior or suppression count changes.

Co-authored-by: Peter Steinberger <[email protected]>
fuller-stack-dev added a commit that referenced this pull request Sep 6, 2026
Suggested follow-ups now start in a normal session in the Control UI and
Gateway-backed TUI. Remove the placement menu and Git-only suggestion rule;
instruct the new session to ask before creating or switching to a worktree.
Retain existing RPC modes and rollback/ownership safeguards.

Verified plain folders and unavailable Git metadata through real session
creation, UI navigation with a mock Gateway, terminal flows, and inspected
before/after screenshots. Fresh local validation passed 166 tests, including
the unchanged upstream test corrections from #139651 and #139747.

Session context: https://team.openclaw.ai/beam/session-first-task-suggestions-openclaw-pr-7fb326346b7a

Release-note context: follow-up suggestions open a usable conversation without
requiring Git or a worktree first. Existing blocked sessions are unchanged.

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
…39651 (openclaw#139747)

it.concurrent.each's added comment in fetch-guard.socks.test.ts shifted
three @ts-expect-error markers down one line; the inventory ratchet
still asserted the pre-shift lines.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
…w#139731)

Suggested follow-ups now start in a normal session in the Control UI and
Gateway-backed TUI. Remove the placement menu and Git-only suggestion rule;
instruct the new session to ask before creating or switching to a worktree.
Retain existing RPC modes and rollback/ownership safeguards.

Verified plain folders and unavailable Git metadata through real session
creation, UI navigation with a mock Gateway, terminal flows, and inspected
before/after screenshots. Fresh local validation passed 166 tests, including
the unchanged upstream test corrections from openclaw#139651 and openclaw#139747.

Session context: https://team.openclaw.ai/beam/session-first-task-suggestions-openclaw-pr-7fb326346b7a

Release-note context: follow-up suggestions open a usable conversation without
requiring Git or a worktree first. Existing blocked sessions are unchanged.

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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