molecule-core/workspace-template/adapters/smolagents
Molecule AI Backend Engineer d226094a98 feat(security): denylist env sanitization + safe messaging for smolagents (#826, #827)
Add safe_env.py (denylist-based make_safe_env), send_message_wrapper.py
(label prefix, 2000-char cap, HTML entity escaping) and 33 pytest tests
covering all four security properties. Update __init__.py to re-export
safe_send_message alongside the existing allowlist-based make_safe_env.

Closes #826, closes #827

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 23:57:59 +00:00
..
__init__.py feat(security): denylist env sanitization + safe messaging for smolagents (#826, #827) 2026-04-17 23:57:59 +00:00
env_sanitize.py fix(security): allowlist-based env sanitization for LocalPythonExecutor (#826) 2026-04-17 21:54:11 +00:00
safe_env.py feat(security): denylist env sanitization + safe messaging for smolagents (#826, #827) 2026-04-17 23:57:59 +00:00
send_message_wrapper.py feat(security): denylist env sanitization + safe messaging for smolagents (#826, #827) 2026-04-17 23:57:59 +00:00