harbor run -t openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0214harbor download openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0214Task: Implement the vc_agent module used by the tests
Goal Create a Python module at /app/vc_agent.py (as a single file module) that provides simple VC (Verifiable Credential) processing helpers expected by the tests. The module must expose two functions with the exact signatures and behavior described below and should be self-contained (no external dependencies).
What to implement
verify(credential: dict, verification_key: dict) -> bool
filter(credential: dict, filters: list) -> bool
Rationale The tests call:
Thus, the module must implement a minimal, deterministic verification heuristic and a small, targeted JSONPath-like evaluator that covers the four patterns above. The goal is to reproduce the expected behavior for the provided test data without implementing a full JSONPath engine.
Note