Skip to content
This repository was archived by the owner on Nov 14, 2026. It is now read-only.

feat!: add point and model fingerprints and verification reports (WOT-02) - #1

Merged
gavinying merged 2 commits into
mainfrom
wot-02-fingerprints-reports
Nov 9, 2026
Merged

gavinying merged 2 commits into
mainfrom
wot-02-fingerprints-reports

Conversation

@gavinying

Copy link
Copy Markdown
Contributor

WOT-02 for the ModioHub verification loop. Release target: 0.3.0a1.

Changes

  • Point fingerprints pf1: SHA-256 of the canonical read mapping of each readable property: table, address, quantity, raw type, byte order with defaults filled in, codec, bit, packing, decimal-normalized multiplier, string byte length and DataSchema type. Names, descriptions, units, write Forms, endpoints and Unit IDs are excluded.
  • Model fingerprint mf1: hash of the sorted set of the model's point fingerprints. Statistics are keyed by mf1, so cosmetic edits and unmodified forks share their parent's statistics.
  • Verification report schema 1 (schemas/verification-report-1.json):
    • Records device ID, model SHA-256, mf1, model source, tool versions, transport, date, optional environment, and per-point read result and user judgment.
    • Any other field is rejected, so endpoints, Unit IDs, serial numbers and values cannot be sent.
    • The profile defines a "full read".
  • API and CLI:
    • New point_fingerprints, model_fingerprint and validate_report(report, model=...).
    • New modpoll-wot fingerprint and modpoll-wot validate-report [--model] commands.
    • project_point_table gains a fingerprint column.
  • Cross-language vectors: tests/fixtures/modsim.fingerprints.json.
  • Breaking: removes the preview-only derive_audit_tm, AuditArtifact and audit-tm-v1. modsim's test that uses them skips when they are absent. The modpoll:audit plan is unchanged.

Verification

  • mise run check passes: 84 tests, wheel build, and an installed-wheel smoke test that includes fingerprint and validate-report.

🤖 Generated with Claude Code

gavinying and others added 2 commits November 9, 2026 20:25
Fingerprint each readable point from its canonical read mapping so
verification statistics survive forks, renames and instance binding.
Add the verification report schema 1, `validate_report`, and the
`fingerprint` and `validate-report` commands, with shared vectors for
other implementations. Remove the preview-only `derive_audit_tm`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Key verification statistics by the set of readable point mappings, so
cosmetic edits and unmodified forks keep their parent's statistics.
Reports now carry the model fingerprint, and validation checks it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gavinying
gavinying merged commit 45fb6ee into main Nov 9, 2026
5 checks passed
@gavinying
gavinying deleted the wot-02-fingerprints-reports branch November 9, 2026 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant