π OpenHands: AI-Driven Development
chore: mark security/ and resolver/ as Legacy V0 (#13062)
Engel Nyst25076ee44c8a
diff --git a/openhands/resolver/interfaces/azure_devops.py b/openhands/resolver/interfaces/azure_devops.pyindex 94d15d7296..8cddc8c92d 100644--- a/openhands/resolver/interfaces/azure_devops.py+++ b/openhands/resolver/interfaces/azure_devops.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import base64import refrom typing import Anydiff --git a/openhands/resolver/interfaces/bitbucket.py b/openhands/resolver/interfaces/bitbucket.pyindex 3799f7f6bc..db9dae2caa 100644--- a/openhands/resolver/interfaces/bitbucket.py+++ b/openhands/resolver/interfaces/bitbucket.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import base64from typing import Anydiff --git a/openhands/resolver/interfaces/forgejo.py b/openhands/resolver/interfaces/forgejo.pyindex 44830a7b7a..bb7ffa5478 100644--- a/openhands/resolver/interfaces/forgejo.py+++ b/openhands/resolver/interfaces/forgejo.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from __future__ import annotationsfrom typing import Anydiff --git a/openhands/resolver/interfaces/github.py b/openhands/resolver/interfaces/github.pyindex 74add2f99f..7e62c7dc27 100644--- a/openhands/resolver/interfaces/github.py+++ b/openhands/resolver/interfaces/github.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from typing import Anyimport httpxdiff --git a/openhands/resolver/interfaces/gitlab.py b/openhands/resolver/interfaces/gitlab.pyindex 26130fcb44..e8a0ec2ee9 100644--- a/openhands/resolver/interfaces/gitlab.py+++ b/openhands/resolver/interfaces/gitlab.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from typing import Anyfrom urllib.parse import quotediff --git a/openhands/resolver/interfaces/issue.py b/openhands/resolver/interfaces/issue.pyindex c491acfd89..d57ce22412 100644--- a/openhands/resolver/interfaces/issue.py+++ b/openhands/resolver/interfaces/issue.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from abc import ABC, abstractmethodfrom typing import Anydiff --git a/openhands/resolver/interfaces/issue_definitions.py b/openhands/resolver/interfaces/issue_definitions.pyindex a3b5b24c42..cf1125fe59 100644--- a/openhands/resolver/interfaces/issue_definitions.py+++ b/openhands/resolver/interfaces/issue_definitions.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import jsonimport osimport rediff --git a/openhands/resolver/io_utils.py b/openhands/resolver/io_utils.pyindex ce87bc625c..563d1c51ee 100644--- a/openhands/resolver/io_utils.py+++ b/openhands/resolver/io_utils.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import jsonfrom typing import Iterablediff --git a/openhands/resolver/issue_handler_factory.py b/openhands/resolver/issue_handler_factory.pyindex 6369392a02..f1e38e35b0 100644--- a/openhands/resolver/issue_handler_factory.py+++ b/openhands/resolver/issue_handler_factory.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from openhands.core.config import LLMConfigfrom openhands.integrations.provider import ProviderTypefrom openhands.resolver.interfaces.azure_devops import AzureDevOpsIssueHandlerdiff --git a/openhands/resolver/issue_resolver.py b/openhands/resolver/issue_resolver.pyindex c5559ac828..68abc4bc1b 100644--- a/openhands/resolver/issue_resolver.py+++ b/openhands/resolver/issue_resolver.py@@ -1,5 +1,12 @@# flake8: noqa: E501+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import asyncioimport dataclassesimport jsondiff --git a/openhands/resolver/patching/apply.py b/openhands/resolver/patching/apply.pyindex 65db16c21a..69e14c9d21 100644--- a/openhands/resolver/patching/apply.py+++ b/openhands/resolver/patching/apply.py@@ -1,5 +1,12 @@# -*- coding: utf-8 -*-+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import os.pathimport subprocessimport tempfilediff --git a/openhands/resolver/patching/exceptions.py b/openhands/resolver/patching/exceptions.pyindex 494d2b061a..08171587da 100644--- a/openhands/resolver/patching/exceptions.py+++ b/openhands/resolver/patching/exceptions.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0class PatchingException(Exception):passdiff --git a/openhands/resolver/patching/patch.py b/openhands/resolver/patching/patch.pyindex 684a8a953c..8e9162627a 100644--- a/openhands/resolver/patching/patch.py+++ b/openhands/resolver/patching/patch.py@@ -1,4 +1,11 @@# -*- coding: utf-8 -*-+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import base64import reimport zlibdiff --git a/openhands/resolver/patching/snippets.py b/openhands/resolver/patching/snippets.pyindex 1c90f573df..9272a6f115 100644--- a/openhands/resolver/patching/snippets.py+++ b/openhands/resolver/patching/snippets.py@@ -1,5 +1,12 @@# -*- coding: utf-8 -*-+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import osimport refrom shutil import rmtreediff --git a/openhands/resolver/resolve_issue.py b/openhands/resolver/resolve_issue.pyindex cdd6d64943..a13ae2866d 100644--- a/openhands/resolver/resolve_issue.py+++ b/openhands/resolver/resolve_issue.py@@ -1,5 +1,12 @@# flake8: noqa: E501+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import asynciofrom openhands.resolver.issue_resolver import IssueResolverdiff --git a/openhands/resolver/resolver_output.py b/openhands/resolver/resolver_output.pyindex 9394783ff0..5f853711ad 100644--- a/openhands/resolver/resolver_output.py+++ b/openhands/resolver/resolver_output.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from typing import Anyfrom litellm import BaseModeldiff --git a/openhands/resolver/send_pull_request.py b/openhands/resolver/send_pull_request.pyindex 23a7958b5f..c59b95c998 100644--- a/openhands/resolver/send_pull_request.py+++ b/openhands/resolver/send_pull_request.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import argparseimport jsonimport osdiff --git a/openhands/resolver/utils.py b/openhands/resolver/utils.pyindex cc92223937..62475da897 100644--- a/openhands/resolver/utils.py+++ b/openhands/resolver/utils.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import loggingimport multiprocessing as mpimport osdiff --git a/openhands/resolver/visualize_resolver_output.py b/openhands/resolver/visualize_resolver_output.pyindex ca0717d840..c0c954ffed 100644--- a/openhands/resolver/visualize_resolver_output.py+++ b/openhands/resolver/visualize_resolver_output.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import argparseimport osdiff --git a/openhands/security/analyzer.py b/openhands/security/analyzer.pyindex cb79f799ce..45f7c7fe9c 100644--- a/openhands/security/analyzer.py+++ b/openhands/security/analyzer.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from typing import Anyfrom fastapi import Requestdiff --git a/openhands/security/grayswan/analyzer.py b/openhands/security/grayswan/analyzer.pyindex 7a6b288849..926e4710bf 100644--- a/openhands/security/grayswan/analyzer.py+++ b/openhands/security/grayswan/analyzer.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0"""GraySwan security analyzer for OpenHands."""import asynciodiff --git a/openhands/security/grayswan/utils.py b/openhands/security/grayswan/utils.pyindex 22820a69dc..9989cd6208 100644--- a/openhands/security/grayswan/utils.py+++ b/openhands/security/grayswan/utils.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0"""Utility for converting OpenHands events to OpenAI message format."""from typing import Anydiff --git a/openhands/security/invariant/analyzer.py b/openhands/security/invariant/analyzer.pyindex 4808db9e7a..bba78e4ace 100644--- a/openhands/security/invariant/analyzer.py+++ b/openhands/security/invariant/analyzer.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import reimport uuidfrom typing import Anydiff --git a/openhands/security/invariant/client.py b/openhands/security/invariant/client.pyindex 64fcecce3d..e6d9f4c13f 100644--- a/openhands/security/invariant/client.py+++ b/openhands/security/invariant/client.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0import timefrom typing import Anydiff --git a/openhands/security/invariant/nodes.py b/openhands/security/invariant/nodes.pyindex d276406bd1..53d25e4402 100644--- a/openhands/security/invariant/nodes.py+++ b/openhands/security/invariant/nodes.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from typing import Any, Iterablefrom pydantic import BaseModel, Fielddiff --git a/openhands/security/invariant/parser.py b/openhands/security/invariant/parser.pyindex 01875e099b..b0b6af6b83 100644--- a/openhands/security/invariant/parser.py+++ b/openhands/security/invariant/parser.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from pydantic import BaseModel, Fieldfrom openhands.core.logger import openhands_logger as loggerdiff --git a/openhands/security/invariant/policies.py b/openhands/security/invariant/policies.pyindex 113d2f9265..f5410fcd87 100644--- a/openhands/security/invariant/policies.py+++ b/openhands/security/invariant/policies.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0DEFAULT_INVARIANT_POLICY = """from invariant.detectors import semgrep, secrets, CodeIssueraise "Disallow secrets in bash commands [risk=medium]" if:diff --git a/openhands/security/llm/analyzer.py b/openhands/security/llm/analyzer.pyindex 1e886ca405..de8542b8c6 100644--- a/openhands/security/llm/analyzer.py+++ b/openhands/security/llm/analyzer.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0"""Security analyzer that uses LLM-provided risk assessments."""from typing import Anydiff --git a/openhands/security/options.py b/openhands/security/options.pyindex d0b1691f5c..d077297284 100644--- a/openhands/security/options.py+++ b/openhands/security/options.py@@ -1,3 +1,10 @@+# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026+# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.+# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:+# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk+# - V1 application server (in this repo): openhands/app_server/+# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.+# Tag: Legacy-V0from openhands.security.analyzer import SecurityAnalyzerfrom openhands.security.grayswan.analyzer import GraySwanAnalyzerfrom openhands.security.invariant.analyzer import InvariantAnalyzer