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

feat: verification report schema 4 with optional product - #6

Merged
gavinying merged 1 commit into
mainfrom
report-schema-4
Nov 12, 2026
Merged

gavinying merged 1 commit into
mainfrom
report-schema-4

Conversation

@gavinying

Copy link
Copy Markdown
Contributor

Summary

  • New verification-report-4.json: reportVersion 4, product removed from required (kept as an optional, pattern-checked property). The receiving service resolves the product from the model fingerprint — mf1 is identical for a TM, its TD exports and unmodified forks, so schema-4 reporting covers local files, URLs and modiohub references without --product.
  • validate_report accepts schema 3 and 4, selected by reportVersion; unknown versions raise ReportError.
  • Fixture regenerated as schema 4 without product; new tests cover version-3 compatibility, unknown-version rejection and invalid-present-product rejection.
  • Version 0.6.0a1.

Consumer plan: modiohub ingest resolves product by fingerprint (accepting both versions), then modpoll drops --product and ships interactive --report/--upload.

Verification

  • mise run check passes; pytest: 117 passed.

The receiving service resolves the catalog product from the model
fingerprint (mf1 is identical for a TM, its TD exports and unmodified
forks), so tools no longer need to name the product: --product goes away
and local files, URLs and modiohub references all report without it.
Schema 3 reports that carry product remain valid, and a present product
must still match the product-id pattern. Version 0.6.0a1.
@gavinying
gavinying merged commit 8e79412 into main Nov 12, 2026
5 checks passed
@gavinying
gavinying deleted the report-schema-4 branch November 12, 2026 23:08
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