I'm addressing the issues detailed here for the se...
# proj-sdk
q
I'm addressing the issues detailed here for the security analyzer: https://github.com/OpenHands/software-agent-sdk/issues/819 My proposed solution is to always include the
security_risk
field in tools whether or not the llm analyzer is configured. this will add a small token cost to every llm call but should hypothetically solve every problem outlined in the github issue above. the solution will also prevent breaking prompt caching when toggling confirmation mode
c
We actually discussed about this multiple times -- the reason we want to disable it is because some open-source model doesn't work well in predicting these fields...
c
I'm not sure about requiring it... I see a lot, that GPT-5 in the agent will "forget" about that field when context is higher
That too
q
I making it so that 1. if the analyzer is enabled and the model doesnt provide a risk, we send back an agent error event so it can fix itself; this should help with powerful models like gpt-5 forgetting to pass a risk param 2. for weaker models we have to disable llm analyzer regardless since its too weak; however the risk field will still exist in the tool and in the event the llm fails to send a value we’ll safely ignore
the idea being we verify whether security risk is required at runtime (either ignore or require) but if we examine the schemas theyre always consistent
c
Hmm, lemme think about it a bit 🤔 I think as long as we have a way to disable the risk param, we should be ok
yeah, after reading through the issue and description, it does make sense to me nod Although i imagine it will cause issues if we want to switch to using third-party analyzer (eg greyswan) and then we will essentially have two sets of analyzers both working (cc @wide-doctor-37830 and @limited-student-10747 for comments)
w
Might be a waste of tokens, but I don't think it'll be a problem to have both running at once. We'll be able to prioritize one over the other pretty easily.
l
Yeah, I’d prioritize working over saving tokens for now, and then we can reconsider later if we take a different direction
q
https://github.com/OpenHands/software-agent-sdk/pull/1052 always include
security_risk
in tool schema for agent
c
left some comments
q
left a reply basically we can't perform a security audit for a trace without having the supplementary event type