Skip to content

feat!: replace the simulation check with four static checks (CAT-09) - #33

Merged
gavinying merged 1 commit into
mainfrom
static-checks
Nov 17, 2026
Merged

gavinying merged 1 commit into
mainfrom
static-checks

Conversation

@gavinying

Copy link
Copy Markdown
Contributor

CAT-09: the catalog no longer runs Modsim and Modpoll per product; encoding and decoding are tested once in modpoll's round-trip matrix (top-maker/modpoll#156, merged).

CI runs four static checks on every baseline Thing Model:

  • W3C WoT: Eclipse Thingweb Playground 1.4.0 (npm run wot), Thing Model schema and its additional assertions; JSON-LD checks are off because they fetch contexts (WOT-07 step 1).
  • Executable profile: modpoll-wot 0.7.0a4, which also checks each raw type's width against its register count.
  • Consistency: no overlapping points (identical aliases and different bits of one register excepted); minimum and maximum fit the raw type after the multiplier.
  • Simulation data: every readable point has a value that fits its type, range and multiplier exactly; changing values stay in range.

npm run check runs everything CI runs. 25 new unit tests show each static check rejecting the bad data it exists for. All 12 Thing Models pass all four checks.

Note: Playground 1.4.0 (2023) pulls dependencies that npm audit flags (2 critical, 5 moderate). It is a dev dependency run offline on this repository's own files.

CI no longer runs Modsim and Modpoll per product. Every baseline Thing Model
gets W3C WoT validation with Thingweb Playground (WOT-07 step 1), the
modpoll-wot executable profile, consistency checks (no overlapping points,
ranges that fit the raw type after the multiplier) and a range check of its
simulation data. npm run check runs everything CI runs.
@gavinying
gavinying merged commit 36f6fdd into main Nov 17, 2026
2 checks passed
@gavinying
gavinying deleted the static-checks branch November 17, 2026 17:24
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