Skip to content

feat: v3.14.15-beta.10 - HNAP empty-answer retry, C3700 login and restart, translated errors - #237

Merged
kwschulz merged 33 commits into
mainfrom
feature/v3.14.15-beta.10
Nov 28, 2026
Merged

kwschulz merged 33 commits into
mainfrom
feature/v3.14.15-beta.10

Conversation

@kwschulz

Copy link
Copy Markdown
Collaborator

The tenth beta of the v3.14.15 line: an HNAP modem that stops sending data gets a fresh login in the same poll, the Netgear C3700 logs in and restarts, and error messages are translated.

What is in it

Behaviour changes to know about

  • HNAP: when the fresh login also gets no data, the poll reports the modem unreachable instead of no signal with zero channels. On a modem that allows one login at a time, the fresh login can sign out someone using the modem's web page, as a reload already does.
  • Every session clear now opens a new connection, not only new cookies.
  • An interval saved outside the new limits keeps working until Configure is saved again.
  • A parser.yaml uptime field without a valid format fails at config load.

Verification

  • make validate-ci exited 0 on 7ee40869, run by Claude; release.py ran it again before the bump.
  • CI on 7ee40869: five workflows green (Tests, CodeQL, hassfest, HACS, commit lint).
  • The seven HNAP catalog modems replay through the real collector and orchestrator against the mock server.
  • Not verified on hardware: the HNAP fresh-login retry. The only evidence is the Motorola MB8600 entity stops collecting data #236 reporter's diagnostics and their manual reload.

🤖 Generated with Claude Code

kwschulz and others added 30 commits November 20, 2026 17:13
The CBN detector copied the captured Username into username_value and
never emitted cipher_prefix or hw_model_fun. On a firmware whose
CBN_Encrypt adds the hardware model (SB8200 AC01) the generated config
sent the redacted username verbatim and the wrong envelope.

- cipher_prefix: the string literals CBN_Encrypt puts before the
  ciphertext, its model parameter as {hw_model}.
- hw_model_fun: the getter call before the login that answers <HwModel>.
- username_value: not copied when the script encrypts the username.
- A {hw_model} prefix with no such getter, or no script at all, is a
  warning rather than a guessed value.

Intake compare: fleet 89.72% unchanged; sb8200-cbn auth fields now
match. ONBOARDING_SPEC § CBN transport states the rules.

Related to #231

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

MIT's one condition is that the notice goes with every copy. The
published wheels carried only License-Expression: MIT (checked on
core 3.14.15b9) and the integration zip had no LICENSE.

- Core and Catalog keep a copy of the root LICENSE, which hatchling
  puts in the wheel (dist-info/licenses/) and the source distribution.
  Verified by building both packages.
- release.yml adds the root LICENSE to cable_modem_monitor.zip.
- tests/lib/test_license.py fails when a copy drifts from the root
  file or the zip step is removed.
- RELEASING.md § What ships where states it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HA's categories guidance allows a second category when the integration
"really is that too, in a way people would browse for"; monitoring is
the integration's job. routers_network stays first, the primary
category, where someone looking for a modem integration browses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The GitHub README's Related Solent Labs Projects names it, marked beta.
The Marketplace README stays as is until its 0.1.0 release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
S33v2, S33v3, MB8600, SB8200 (Form Login CBN) and C7000v2 declare a
restart action that no user has confirmed on v3.14 hardware; their
issue threads report none. Notes only, no config change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The badge counted prereleases, so it showed a beta beside core and
catalog badges reading the PyPI stable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
XB7: cookie_name "session" was never observed; the XB6, XB8 and XB10
captures and the RDK-B web UI set DUKSID. The value stays because the
confirmed setup ran with it. Notes tightened; the uptime note now
matches the capture.

XB6 and XB8: the upstream comment no longer claims the three-way
channel-type map is shared with the XB10. TDMA_AND_ATDMA is seen in
the XB7 capture and kept as the .jst platform's value set.

form_sjcl: AUTH_SJCL_SPEC links the #86 capture that holds
base_95x.js, and Known Gaps notes the catalog fixture lacks it. The
TG3442DE notes ask for a full-session capture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TG3442DE: sources.logout_action cites the #86 captures, where POST
/php/logout.php answers 200, and base_95x.js.

XB10: home_loggedout.jst destroys the session its DUKSID cookie names
(RDK-B web UI source), so the logout now declares requires_session.
Core skips only the pre-retry call made without a cookie.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every user-facing raise (actions, the Restart button, setup's
ConfigEntryError) now passes a translation_key from a new exceptions
section in strings.json, translated in all 12 languages; English text
is unchanged. The translation sync check covers the section, and a
new test keeps raises keyed, keys declared and placeholders intact.

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

An ID under the modem's prefix is an orphan only when no entity of any
integration owns it (no registry entry, no state), so another
integration's "Cable Modem ..." sensor is never purged. The preview
says only long-term statistics are cleared, the purge reports the IDs
the recorder no longer lists, and a batch timeout stops with that
count instead of failing partway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Over 44 sessions the skill never fired on a pasted HA log, a CI
"why did it fail" or a "user replied" notice. A UserPromptSubmit
hook adds a conditional reminder when a prompt looks like one; it
matched 52 of 1,150 recorded prompts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A type: uptime field with no format, an unknown preset or an unknown
placeholder now fails parser.yaml validation instead of passing raw
text through on every poll. ARCHITECTURE_DECISIONS records that the
uptime shape is a declared parameter with no default grammar in Core;
intake already derives it from the capture against the fleet's
formats. The stale parser.py uptime row in ONBOARDING_SPEC moves to
the parser.yaml table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dashboard frequency titles said "(MHz)" over sensors reporting Hz.
They now name no unit, and the chart axis shows the real one. Channel
frequency sensors suggest MHz on Home Assistant 2026.5+, where
FrequencyConverter exists; earlier versions refuse to add an entity
suggesting an unconvertible unit, so frequency stays in Hz there. A
registration test runs on both the floor and the pinned current HA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The poll and health check intervals accept 00:00:00 (off) or a time
inside their range (30 s to 24 h, 10 s to 24 h). The limits were defined
for v3.14 but never enforced: the check was dropped when the fields
moved to the duration picker, so every 3.14 release accepted any time.
The error is translated in all 12 languages.

Docs swept against current behavior: setup steps (add-modem menu,
Auto-detect, variant step), latency sensors that depend on the modem,
frequency units, button count, Reset Entities, bond notifications,
the dashboard example's channel-count entity IDs, the translation
guide's scope, SECURITY.md (credential storage, certificates,
timeouts, lockouts, report path) and the verification template.
CONTRIBUTING cites SmartBear for the review-attention claim the
Sadowski paper does not make.

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

The form_sjcl login and session-check POSTs now carry session.query_params
(Arris _n), as the firmware's ajax prefilter sends them; the login page
GET does not. The factory hands session.query_params to every auth
manager; only form_sjcl applies them (ADR rewritten).

The TG3442DE fixture is now one real session from #234 (login, every
status page, restart), replacing the synthetic composite. EncryptData and
encryptData were redacted to same-length non-secret hex, since they allow
offline password guessing; the notes declare it. Golden regenerated by
the orchestrated replay; detection.http_headers records the firmware's
Server: null.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CODE_OF_CONDUCT pointed reporters at a profile email that is not
public. Reports now go through GitHub's Report content and Report
abuse tools. Three unreferenced screenshot pairs (uncorrected errors,
upstream frequency, upstream power) are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Light and dark pairs for the dashboard status card, downstream power,
SNR, corrected errors, latency, the four setup screens and the
settings dialog, captured on v3.14.15-beta.9. The new first setup
screen (add modem, or add modem with custom config) gets its own
image in the GitHub README.

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

The GitHub README's image blocks rendered as raw inline HTML, so
screenshots flowed side by side; each picture and caption now sits in
its own paragraph.

Home Assistant raises "no longer has a state class" only for a sensor
that still has statistics stored (recorder update_statistics_issues),
not on the hourly statistics run. The v2.2 migration clears them at
upgrade, so TROUBLESHOOTING now says an upgrade shows no warning and a
warning means the statistics came back; the migration docstring is
corrected to match.

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

PyPI's badge reads the latest stable and cannot show a prerelease, so
the core and catalog badges become plain PyPI links. The release badge
counts prereleases again; core and catalog share its version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| Package | Old | New | Action | Reason |
|---------|-----|-----|--------|--------|
| homeassistant | 2026.11.2 | 2026.11.3 | bumped | ha-latest test pin |
| pytest-homeassistant | 2026.11.2 | 2026.11.3 | bumped | ha-latest test pin |

make ha-latest-test: 1522 passed on 2026.11.3. Quality scale rules
unchanged (54, hassfest 2026.11.3).

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

Firmware V2.02.18 answers Basic credentials without the XSRF_TOKEN
cookie with a 401, so setup reported "credentials rejected" with the
right password. Use challenge_cookie and cookie_name as the C6250 does;
source auth_config from the 2026-11-25 live capture.

Verified by @kwschulz on a local build of the 3.14.15-beta.10 branch,
reporting 3.14.15-beta.9 (HW C279T00-01, SW V2.02.18, uptime 116 days,
8 DS + 4 US locked, setup and first poll clean).

Adds modem.verified.json from the diagnostics; flips modem.yaml status
awaiting_verification -> confirmed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The detect_confirm description bolds {model}, and an unconfirmed
modem's display name ends in " *", which broke the bold and rendered
as "**Netgear C3700 ***". Backslash-escape markdown punctuation in the
name passed to that page.

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

A POST of buttonSelect=2 alone is answered 302 to /ErrorMsg.htm
("security token is expired") and the unit does not reboot. Pre-fetch
/RouterStatus.htm and post its form (endpoint_pattern RouterStatus,
the four hidden fields), as the C6250 does; live test on fw V2.02.18
answered 302 to /Reboot.htm and uptime reset.

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

The fixture was built from parsed fixtures and carried no headers, so it
could not show the XSRF_TOKEN challenge the modem requires. It is now the
maintainer's walk of a C3700 (2026-11-26, fw V2.02.18), sanitized with
har-capture 0.19.1's network-device patterns, which redact the
password-recovery answers and Device Name columns 0.19.0 missed. The pin
moves to ~=0.19.1 in pyproject and CI. The auth_config source cites the
capture, and the golden is regenerated from it (8 DS, 4 US, matching
modem.verified.json).

The PII hook's tagValueList safe list gains four Netgear firmware words
(username, changeme, readyshare, workgroup), each identical in the
pre-sanitization capture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The C3700 HAR was a page walk with no restart, so its restart test
replayed a synthesized answer. The restart POST from a 2026-11-27
recording of the same unit is transplanted whole as entry 236:
RouterStatus form fields with the page's id, answered 302 to
/Reboot.htm, and the unit rebooted. The fixture is a declared hybrid
(MODEM_INTAKE_WORKFLOW § Assembled fixtures), sanitized with
har-capture 0.19.1 under the walk's salt. The catalog audit now reads
hybrid, restart captured.

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

A restart's captured answer was served to any request at its path, so a
C3700 restart without the RouterStatus form id, which the firmware
refuses, still replayed the reboot answer and passed. A restart now has
to carry the query-parameter names its capture recorded, as a login
already does; values are never compared. A restart that shares the login
endpoint stays with the login rule. Thirteen catalog modems have a
captured restart and all replay unchanged.

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

Every HTTP action answered below 400 counted as success, so a C3700
restart refused with 302 to /ErrorMsg.htm reported success while the
modem did not reboot. An action may now declare refused.redirect: a 3xx
whose Location path contains it is a refused action, logged as result
"refused". It names the refusal, never the success page, so firmware
that moves its error page falls back to today's behaviour instead of
failing a working restart. Unset, nothing changes. The C3700 declares
/ErrorMsg.htm from its observed refusals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It tells users nothing; contributors find black in the pre-commit
config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The note's "24x8 channel bonding" came from the CM600 text it was
written from. NETGEAR's C3700 product page (Wayback 2014-03-19) lists
"Modem 8x4 CableLabs certified DOCSIS 3.0", which the maintainer's
diagnostics match (8 DS, 4 US).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entries of one firmware family share landing signals, and the
DetectionMatched log joined every candidate's list, so a Netgear reply
read "signals: XSRF_TOKEN, XSRF_TOKEN, XSRF_TOKEN". Detection itself
was unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kwschulz and others added 3 commits November 28, 2026 14:29
The loader reports any requested action the GetMultipleHNAPs answer
lacks, with the GetMultipleHNAPsResult token and the key names that
came back, never values. The collector logs HnapIncompleteResponse at
WARNING the first time a given answer is seen and DEBUG after, so a
report shows the modem's answer without debug logging. Signals and
retries are unchanged.

Related to #236

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a reused session, a GetMultipleHNAPs answer holding none of the
requested actions is a refused session: the collector logs
HnapSessionRefused and returns LOAD_AUTH, so the same-poll retry logs
in fresh. On a fresh session the same answer is LOAD_ERROR, the split
HNAP HTTP errors already follow. Partial answers are unchanged.

clear_session() now closes the requests.Session and builds a new one,
so every clear opens a new connection as a reload does.

Related to #236

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kwschulz
kwschulz merged commit 99f96b8 into main Nov 28, 2026
36 checks passed
@kwschulz
kwschulz deleted the feature/v3.14.15-beta.10 branch November 28, 2026 20:26
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