Skip to content

fix(vulnerability-remediation): default to claude-sonnet-5-5 before sonnet 4.5 retires - #1004

Open
pcbeingused33 wants to merge 1 commit into
OpenHands:mainfrom
pcbeingused33:fix/vuln-remediation-sonnet-5-5
Open

pcbeingused33 wants to merge 1 commit into
OpenHands:mainfrom
pcbeingused33:fix/vuln-remediation-sonnet-5-5

Conversation

@pcbeingused33

@pcbeingused33 pcbeingused33 commented Nov 28, 2026 •

Copy link
Copy Markdown

HUMAN:

He revisado el cambio de modelo por defecto de Sonnet 4.5 a Sonnet 5.5. Es necesario porque Sonnet 4.5 se retira hoy y el plugin de remediación de vulnerabilidades dejaría de funcionar con la configuración estándar. El código no envía temperature ni top_p, así que es compatible. Aprobado.


AGENT:

Why

Fixes #995

claude-sonnet-4-5-20250929 is the default model of the vulnerability remediation plugin and of the installed scan workflow. Anthropic retires it on 2026-11-30 and recommends claude-sonnet-5-5 (model deprecations), so runs that keep the default would fail from that date, unless a custom llm-base-url remaps the ID.

Summary

  • Replace the default with anthropic/claude-sonnet-5-5 in action.yml (default and description example), both copies of vulnerability-scan.yml (still byte-identical), the LLM_MODEL fallback and docstring in scan_and_remediate.py, and the README inputs table.
  • No parameter changes needed: with openhands-sdk 1.64.1 the script's LLM(...) config sends no temperature/top_p, and switches from thinking: {type: enabled, budget_tokens} to adaptive thinking for the new model on its own.
  • Following the issue triage, other plugins that also default to the retiring model (pr-review, qa-changes, release-notes) are not touched here.

Issue Number

#995

How to Test

Ran the real scan_and_remediate.py --remediate with LLM_MODEL unset, openhands-sdk/openhands-tools 1.64.1, a one-entry scan-results.json, and LLM_BASE_URL pointing at a local fake Anthropic Messages endpoint (no live API call). Request body, excluding messages, tools and system:

before: {'model': 'claude-sonnet-4-5-20250929', 'max_tokens': 16384, 'thinking': {'type': 'enabled', 'budget_tokens': 16383}}
after:  {'model': 'claude-sonnet-5-5', 'max_tokens': 16384, 'thinking': {'type': 'adaptive', 'display': 'summarized'}, 'output_config': {'effort': 'high'}}

The script exits 0 in both cases. pytest tests/test_sdk_loading.py tests/test_plugin_manifest*.py passes (46 tests), and claude plugin validate plugins/vulnerability-remediation passes with warnings. A workflow_dispatch run was not made, and the model has not been exercised against the live API.

Notes

The scheduled runs currently fail with a 401 (invalid x-api-key), a separate problem noted in the issue triage that this change does not address.


This change was prepared with AI assistance.

Jev-Fast-Audit

⚡ Jev fast audit · estimates · 0.23s · commit 28b6d48
Strongest signal: No primary concern selected.
Evidence: No primary concern to locate.
Coverage: complete supplied coverage; 8/8 hunks, 5/5 files.

All estimates and evidence
Estimate Likelihood / value Direct evidence
SQL injection 3.0% No direct hunk selected
Command injection 5.0% No direct hunk selected
Weakened authentication 3.0% No direct hunk selected
Weakened authorization 4.0% No direct hunk selected
Contract regression 11.0% No direct hunk selected
Data loss 3.0% No direct hunk selected
Sensitive data disclosure 4.0% No direct hunk selected
Unexpected data transfer 5.0% No direct hunk selected
Credential misuse 7.0% No direct hunk selected
Untrusted instruction authority 2.0% No direct hunk selected
Package source redirection 3.0% No direct hunk selected
Unverified remote execution 3.0% No direct hunk selected
Privileged environment access 3.0% No direct hunk selected
Security assessment bypass 3.0% No direct hunk selected
Prohibited workload 2.0% No direct hunk selected
Primary concern None selected; confidence 95.0% No primary concern to locate

…onnet 4.5 retires

Anthropic retires claude-sonnet-4-5-20250929 on 2026-11-30, so the plugin and the installed scan workflow would fail with their default model.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the type: fix A bug fix label Nov 28, 2026

This branch has not been deployed

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

Labels

type: fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heads-up: vulnerability-scan default model anthropic/claude-sonnet-4-5-20250929 retires Nov 30

1 participant