Repository navigation
feat(modpoll-wot): verification report schema 5 with identity results (VER-01) - #149
Merged
Merged
Conversation
… (VER-01) An identity point is a readable property whose DataSchema declares const, such as a meter code or a module name. Schema 5 adds the optional per-point identity result (match or mismatch): a tool compares the value it reads with the constant locally and reports only the result. A failed read carries no identity, and with the model validate_report requires it exactly on the successfully read identity points. const stays out of the point and model fingerprints, so marking identity points later keeps every fingerprint and earlier report valid. identity_constants(model) lists the identity points and identity_result(const, value) applies JSON Schema const equality, so every tool decides a match the same way. REPORT_VERSION (now 5) is exported; schemas 3 and 4 still validate, and consumers move to 5 in POLL-06 and VER-02.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The modpoll-wot part of VER-01: decision 6 of the ModioHub master plan (identity points) as a report contract.
verification-report-5.json): schema 4 plus an optional per-pointidentity(matchormismatch). A point whose read is notokcannot carry it. No other field changes.const.identity_constants(model)lists them;identity_result(const, value)applies JSON Schemaconstequality (137 equals 137.0, booleans never equal numbers, strings compare exactly), so every tool decides a match the same way. The value itself never enters the report.validate_report(report, model=...)additionally requires, for schema 5, thatidentityappears exactly on the successfully read identity points.constdoes not contribute topf1ormf1: marking identity points later keeps every fingerprint and earlier report valid (tested).REPORT_VERSIONis now 5 and exported (it was a stale, unexported 3). Schemas 3 and 4 still validate. Producers and the website switch to 5 in POLL-06 and VER-02, so nothing changes for consumers until then.AGENTS.mdof the package now names thev2workspace instead of the old repository'smain.No version bump: the version is set when the next release batch is planned.
Verification
pytest -q --covinpackages/modpoll-wot: 141 passed, coverage 82.6 % (gate 80 %).ruff checkpasses.pytest packages/modpoll/tests packages/modsim/tests integration: 399 passed, 56 skipped.verification-report-5.json.