Skip to content

chore: add interrupted tool result recovery hook to web-security#1

Open
GangGreenTemperTatum wants to merge 2 commits intomainfrom
ads/web-security-interrupted-tool-result-hook-r2
Open

chore: add interrupted tool result recovery hook to web-security#1
GangGreenTemperTatum wants to merge 2 commits intomainfrom
ads/web-security-interrupted-tool-result-hook-r2

Conversation

@GangGreenTemperTatum
Copy link
Copy Markdown

Summary

  • add a capability-level hook for web-security that recovers when the model emits [Response interrupted by a tool call result.]
  • remember the last tool outcome and feed it back to the agent with a bounded retry budget
  • fix the web-security test suite so bbscope imports from the current repo layout and async marks only apply to async tests

Validation

  • python3 -m pytest capabilities/web-security/tests -q
  • pre-commit run --files capabilities/web-security/capability.yaml capabilities/web-security/hooks/interrupted_tool_result.py capabilities/web-security/tests/test_interrupted_tool_result_hook.py capabilities/web-security/tests/test_bbscope.py capabilities/web-security/tests/test_credence.py

@GangGreenTemperTatum GangGreenTemperTatum changed the title Add interrupted tool result recovery hook to web-security chore: add interrupted tool result recovery hook to web-security May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant