Skip to content

refactor(doctor): reuse legacy vLLM parameter detection - #157453

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/vllm-legacy-thinking-params
Sep 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/vllm-legacy-thinking-params

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Maintainer-requested consolidation of duplicated legacy vLLM parameter detection in Doctor.

User Impact

No user-visible change. Legacy configuration detection and update behavior remain unchanged, including owned aliases whose values are null or false.

Why This Change Was Made

Reuse the existing detection policy for provider and model parameters. Preserve alias precedence, record validation, model-array short-circuiting, and all migration writes.

Evidence

@vincentkoc vincentkoc self-assigned this Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 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 commands Command implementations size: XS labels Sep 24, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 24, 2026 17:47
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 24, 2026, 3:00 PM ET / 19:00 UTC (Revision 2).

ClawSweeper review

What this changes

Doctor reuses its existing legacy vLLM Qwen parameter detector for provider and model entries and adds tests for present null and false aliases and absent aliases.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open. Current main and the latest release still contain the duplicated detection logic, and the proposed substitution appears behavior-preserving. The required installed-upgrade validation failed before the package swap completed.

Priority: P3
Reviewed head: 7c335ea34a93ab454d8e5ff8e9a017df8544761b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused refactor has useful characterization and no identified patch defect, while installed-upgrade validation remains unresolved.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its tests exercise the registered legacy-issue finder, and the PR reports a staged candidate migration rehearsal; the separate published-updater installed-upgrade gate failed before the package swap completed. No stored-data format or migration write changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its tests exercise the registered legacy-issue finder, and the PR reports a staged candidate migration rehearsal; the separate published-updater installed-upgrade gate failed before the package swap completed. No stored-data format or migration write changes.
Evidence reviewed 9 items Introduced refactor: The pinned PR delta replaces two duplicate record-and-alias checks with calls to the existing detector; migration writes are unchanged.
Detection contract: The shared detector validates the params record and checks alias ownership, which also detects aliases whose values are null or false.
Boundary tests: Three new cases exercise the registered legacy-issue finder for null, false, and absent aliases. Existing migration tests cover provider and model writes.
Findings None None.
Security None None.

How this fits together

Doctor checks existing OpenClaw configuration during repair, startup, and updates. Its legacy rules identify retired vLLM Qwen parameters so the shared migration can move them to model compatibility settings.

flowchart LR
A[Existing configuration] --> B[Doctor legacy rules]
B --> C{Legacy Qwen alias present?}
C -- Yes --> D[Report legacy path]
D --> E[Shared migration]
E --> F[Model compatibility setting]
C -- No --> G[No legacy issue]
Loading

Before merge

  • Resolve merge risk (P1) - The exact candidate has not completed an installed upgrade driven by the published updater: its global package swap timed out before upgrade-time behavior with existing configuration could be verified. The failure is not established as caused by this patch.
  • Complete next step (P2) - Investigate the published updater's global install and rollback timeout, then obtain the required successful published-driver-to-candidate installed-upgrade result for this head before merge.
Agent review details

Security

None.

PR surface

Source -4, Tests +37. Total +33 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 6 -4
Tests 1 37 0 +37
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 39 6 +33

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Complete installed-upgrade validation (recommended)
    Investigate the published updater's package-swap timeout and obtain a successful published-driver-to-candidate installed upgrade for this head before merge.

Technical review

Best possible solution:

Keep one alias-detection policy in Doctor while preserving the existing migration writer, alias precedence, and configuration backups.

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

Not applicable: this is a behavior-preserving refactor. The PR reports passing before-and-after characterization fixtures, not a defect reproduction.

Is this the best way to solve the issue?

Yes. Reusing the existing detector is a narrow way to remove duplicate policy without changing migration writes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0603d46c1b76.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a small internal consolidation with no claimed user-visible behavior change.
  • merge-risk: 🚨 compatibility: Doctor runs these detection rules against existing configuration during upgrades, and the required installed-upgrade validation remains incomplete.
  • 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 MEMBER-authored PR is exempt from the external-contributor proof gate. Its tests exercise the registered legacy-issue finder, and the PR reports a staged candidate migration rehearsal; the separate published-updater installed-upgrade gate failed before the package swap completed. No stored-data format or migration write changes.

Evidence

What I checked:

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Trace the published updater's package-swap timeout and complete the required installed-upgrade check for this head.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-24T17:55:24.092Z sha 7c335ea :: blocked before merge. :: none

@vincentkoc
vincentkoc merged commit cbec2cb into main Sep 24, 2026
315 of 318 checks passed
@vincentkoc
vincentkoc deleted the refactor/vllm-legacy-thinking-params branch September 24, 2026 21:23
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

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

Labels

commands Command implementations merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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