You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: link to a third-party SecurityAnalyzerBase implementation (ACGS rules) in the security guide? #1035
The SDK security guide (sdk/guides/security.mdx) shows how to write a custom analyzer by subclassing SecurityAnalyzerBase ("Custom Security Analyzer Implementation"). I maintain a small community package that
does this, openhands-acgs (Apache-2.0, https://github.com/acgs-ai/openhands-acgs).
It rates each action with declarative ACGS rules:
ACGSSecurityAnalyzer.security_risk(action) returns HIGH when a blocking rule matches, when a rule asks for
human review, or when the action cannot be evaluated, and LOW otherwise. analyze_action adds the verdict,
the rule IDs and the reason as SecurityAnalysis.details, never argument values.
It is a pydantic model like the built-in analyzers, so it is saved and restored with persisted conversations.
Because an analyzer only rates risk, the package documents that it is a risk signal plus confirmation, not a
hard block. With the default NeverConfirm() policy, a HIGH action still runs. The recommended setup is
therefore:
resolve_confirmation calls reject_pending_actions when any pending action is denied. It is tested offline with
a real LocalConversation and TestLLM against openhands-sdk 1.54.0 and 1.59.0, on Python 3.12 to 3.14.
Question: would a one- or two-sentence link to it be welcome, for example at the end of "Custom Security
Analyzer Implementation"? Something like:
For a community example, see openhands-acgs, which rates actions
with ACGS rules and rejects denied actions while the conversation waits for confirmation.
If links to third-party packages do not belong in this guide, or should live in OpenHands/extensions instead,
that is fine. I would not open a PR before you say where, if anywhere, it fits. The package is not affiliated with
or endorsed by OpenHands.
Activity