Summary
Add regression tests for restricted pickle loading in semantic cache.
Why
The legacy pickle path includes a restricted unpickler; tests should verify malicious/global class loads are rejected.
Tasks
- Add tests for allowed builtins and disallowed classes in
nexum_ai/tests/
- Confirm failures do not crash cache initialization
- Verify cache falls back to safe empty state on invalid payload
Acceptance Criteria
- Security-sensitive paths are covered by tests
- Invalid payloads do not execute arbitrary code
- CI passes on Python test suite
Summary
Add regression tests for restricted pickle loading in semantic cache.
Why
The legacy pickle path includes a restricted unpickler; tests should verify malicious/global class loads are rejected.
Tasks
nexum_ai/tests/Acceptance Criteria