Skip to content

feat: verify a Thing Model through --report/--upload on a normal read - #137

Merged
gavinying merged 2 commits into
v2from
report-upload-flags
Nov 12, 2026
Merged

gavinying merged 2 commits into
v2from
report-upload-flags

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

Summary

Maintainer decision 2026-11-13, superseding #135's verify subcommand: verification is a by-product of reading a device, so it is triggered by flags on the normal read, not a new command.

  • --report FILE on a normal read switches to the verification semantics (each point once, read-only, no retries, timeout ≤10 s) and writes the report; - prints it.
  • Bare --report is interactive: asks where to save (default report-<date>.json), whether the values look right ([y]es/[n]o/[Enter] not checked — judged as confirm-all/reject-all over the points the device actually answered), and whether to continue when the read was incomplete.
  • --upload shows the report and uploads after confirmation (--yes skips questions); without a session the browser sign-in flow starts inline and the run continues. Ends with a thank-you.
  • --product removed with report schema 4 (modpoll-wot 0.6.0a1): the receiving service resolves the product from the model fingerprint (identical for a TM, its TD exports and unmodified forks), so local files, URLs and modiohub: references all report without it.
  • --confirm/--reject/--yes are refused without --report/--upload.

Verification

  • make check passes; pytest tests -m "not integration": 238 passed, 58 deselected, including the interactive save/judgment flow, the inline sign-in, and the new refusal cases.
  • End-to-end against local modsim 2.0.0a8: --report /tmp/r4.json --confirm all exits 0, all 37 points ok, and modpoll-wot validate-report (0.6.0a1) passes the schema-4 report with no product.

The verify subcommand is gone (the tools have no subcommand tradition):
--report FILE writes the verification report after a normal read switches
to the verification semantics (each point once, read-only, no retries,
bounded timeout). Bare --report asks interactively where to save (default
report-<date>.json), whether the values look right (judged as confirm-all
or reject-all over the answered points) and whether to upload; --upload
signs in inline with the browser flow when there is no session and prints
a thank-you afterwards. --product is removed with report schema 4
(modpoll-wot 0.6.0a1): the receiving service resolves the product from
the model fingerprint, which is identical for a TM, its TD exports and
unmodified forks. --confirm/--reject/--yes are refused without
--report/--upload.
# Conflicts:
#	docs/preview-notes.md
#	tests/test_login.py
@gavinying
gavinying merged commit 05c7785 into v2 Nov 12, 2026
6 checks passed
@gavinying
gavinying deleted the report-upload-flags branch November 12, 2026 23:33
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