Skip to content

Mock evaluators

This repository ships two plainly fake advisory evaluators for demos and smoke runs: Mock Evaluator A (mock-evaluator-a) and Mock Evaluator B (mock-evaluator-b). They check nothing. Each one writes a card-only result for the first trial in the evidence manifest, and the card says it is demo data.

They moved here from livingproof-evaluator in #147. Their ids, cards, refusal and exit codes did not change.

Declaring them

Declare a mock at a release tag of this repository, like any other evaluator:

- Living-Proof-Labs/verification-reports-action@<tag>/mock/mock-evaluator-a.json
- Living-Proof-Labs/verification-reports-action@<tag>/mock/mock-evaluator-b.json

The descriptor's package is verification-reports-action. The verifier installs this repository at that tag, and the wheel holds only the module livingproof_evaluator_mock.

What they do

Kind advisory, grading none
Arguments --mock a\|b {evidence_manifest} --out {result}
Result livingproof-evaluator-result/1.3.0, one card, no grade
Exit 0 a result was written
Exit 2 refused: the observation's bytes do not match the manifest's digest

Tests

tests/test_mock_evaluators.py checks the descriptors and results against the contract schemas of livingproof-evaluator, installed at a pinned release tag as a test dependency. tests/test_mock_evaluators_on_mock_robot.py runs each mock on the mock robot's evidence and compares the result with tests/fixtures/mock-results.