Skip to content

feat(modpoll-wot): verification report schema 5 with identity results (VER-01) - #149

Merged
gavinying merged 1 commit into
v2from
ver-01-report-5
Nov 14, 2026
Merged

gavinying merged 1 commit into
v2from
ver-01-report-5

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

Summary

The modpoll-wot part of VER-01: decision 6 of the ModioHub master plan (identity points) as a report contract.

  • Schema 5 (verification-report-5.json): schema 4 plus an optional per-point identity (match or mismatch). A point whose read is not ok cannot carry it. No other field changes.
  • Identity points are readable properties whose DataSchema declares const. identity_constants(model) lists them; identity_result(const, value) applies JSON Schema const equality (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, that identity appears exactly on the successfully read identity points.
  • const does not contribute to pf1 or mf1: marking identity points later keeps every fingerprint and earlier report valid (tested).
  • REPORT_VERSION is 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.
  • profile.md documents identity points; AGENTS.md of the package now names the v2 workspace instead of the old repository's main.

No version bump: the version is set when the next release batch is planned.

Verification

  • pytest -q --cov in packages/modpoll-wot: 141 passed, coverage 82.6 % (gate 80 %). ruff check passes.
  • Workspace: pytest packages/modpoll/tests packages/modsim/tests integration: 399 passed, 56 skipped.
  • The built wheel contains verification-report-5.json.

… (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.
@gavinying
gavinying merged commit 9dfe47e into v2 Nov 14, 2026
21 checks passed
@gavinying
gavinying deleted the ver-01-report-5 branch November 14, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant