Skip to content

feat(modpoll-wot): typed top-level interface, boundary guards and pinned actions (WOT-05) - #141

Merged
gavinying merged 5 commits into
v2from
wot-05-public-interface
Nov 14, 2026
Merged

gavinying merged 5 commits into
v2from
wot-05-public-interface

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

Summary

WOT-05 as reviewed on 2026-11-12, first and second batch except Trusted Publishing and the merged release guard.

  • modpoll-wot 0.7.0a1: exports MAX_BYTES, load_document, type_width and __version__ from the package and ships py.typed. validate_report rejects dates that are not on the calendar (2026-02-31), as the ModioHub upload already did. Group.byte_order is documented as always BE_BE until the next breaking release. README gains the install commands and the current repository history.
  • modpoll and modsim import modpoll-wot only from its top level, pin modpoll-wot==0.7.0a1, and drop the untyped-import ignores and the parse_parameters probe. modsim's strict mypy passes against the typed package.
  • Boundary tests, each in the package it constrains: modpoll-wot loads no Modbus, MQTT or network client library (import and source checks); modpoll and modsim never import each other and reach modpoll-wot only through its top level.
  • Gates: ruff in all three packages (the few existing findings fixed); modpoll-wot requires 80% coverage (now 82%); a hypothesis property test shows scaled_raw inverts the value modpoll computes.
  • CI: every third-party action pinned to a commit SHA with the tag as a comment; release install checks refresh modpoll-wot's index so one published minutes earlier resolves.

No release in this PR: modpoll and modsim keep their versions until the next batch.

Verification

  • modpoll-wot 125 passed (coverage 82.39%), modpoll 263 passed / 51 skipped, modsim 156 passed / 5 skipped.
  • make check for modpoll and modsim, mise run check for modpoll-wot, actionlint.

🤖 Generated with Claude Code

gavinying and others added 5 commits November 14, 2026 10:54
…tes (WOT-05)

modpoll-wot 0.7.0a1 exports MAX_BYTES, load_document, type_width and
__version__ from the package and ships py.typed. validate_report now rejects
dates that are not on the calendar, such as 2026-02-31, as the ModioHub
upload already did. modpoll and modsim import only from the top level and
drop their untyped-import ignores and the parse_parameters probe.
Group.byte_order is documented as always BE_BE until the next breaking
release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-05)

modpoll-wot proves it loads no Modbus, MQTT or network client library and
that scaled_raw inverts the value modpoll computes (hypothesis). modpoll and
modsim prove they reach modpoll-wot through its top level only and never
import each other. All three run ruff; modpoll-wot also requires 80%
coverage, as modpoll does. The few existing ruff findings are fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… installs (WOT-05)

Every third-party action is pinned to the commit its tag pointed to, with the
tag kept as a comment. The release install checks refresh modpoll-wot's index
so a modpoll-wot published minutes earlier resolves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…odpoll-wot 0.7.0a1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit ran black over every modpoll-wot test by mistake;
modpoll-wot is not formatted by black.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gavinying
gavinying merged commit 673a6ed into v2 Nov 14, 2026
24 of 25 checks passed
@gavinying
gavinying deleted the wot-05-public-interface branch November 14, 2026 03:10
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