Repository navigation
feat: verify a Thing Model through --report/--upload on a normal read - #137
Merged
Merged
Conversation
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
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
Maintainer decision 2026-11-13, superseding #135's
verifysubcommand: verification is a by-product of reading a device, so it is triggered by flags on the normal read, not a new command.--report FILEon a normal read switches to the verification semantics (each point once, read-only, no retries, timeout ≤10 s) and writes the report;-prints it.--reportis interactive: asks where to save (defaultreport-<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.--uploadshows the report and uploads after confirmation (--yesskips questions); without a session the browser sign-in flow starts inline and the run continues. Ends with a thank-you.--productremoved 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 andmodiohub:references all report without it.--confirm/--reject/--yesare refused without--report/--upload.Verification
make checkpasses;pytest tests -m "not integration": 238 passed, 58 deselected, including the interactive save/judgment flow, the inline sign-in, and the new refusal cases.--report /tmp/r4.json --confirm allexits 0, all 37 points ok, andmodpoll-wot validate-report(0.6.0a1) passes the schema-4 report with no product.