This folder provides a reusable conformance harness for framework adapters.
adapter_contract.py: required adapter interface (Protocol + decision types)pytest_adapter_harness.py: pytest test template for adapter security conformanceopenclaw_contract.py: OpenClaw/ClawBot-specific gateway security contractpytest_openclaw_harness.py: OpenClaw/ClawBot conformance tests (gatewayUrl + token boundary)community_attack_vector_schema.json: schema for community-submitted attack vectorscommunity_attack_harness.py: runner for validating community attack submissions
- In your adapter repo, vendor/copy this folder (or install it as a test dependency).
- Implement
adapterfixture in the pytest harness. - Ensure your adapter routes all sink execution through:
evaluate(...)authorize_execution(...)
- Run:
pytest -q tests/test_mvar_adapter_conformance.pyMake this conformance suite mandatory for adapter release pipelines.