Skip to content

site: publish the backend the resolver actually picks - #51

Merged
emuehlstein merged 2 commits into
mainfrom
openclaw/github-publication-6583dcfd6f69701a8e8891ef437e29ee
Dec 2, 2026
Merged

emuehlstein merged 2 commits into
mainfrom
openclaw/github-publication-6583dcfd6f69701a8e8891ef437e29ee

Conversation

@emuehlstein

Copy link
Copy Markdown
Contributor

The bug

tools/gen_radio_table.py kept its own BLOCK_BACKENDS map from capability block → write backend. When the radiofoundry_cps block was added, the generator was never taught about it, so the published table disagreed with the tool itself for three radios:

radio site said resolver actually picks
baofeng_dm32_radiofoundry not supported — "no USB, use RadioFoundry's dm32_migrate.py" radiofoundry-cps
baofeng_dm1701_radiofoundry dmrconf radiofoundry-cps
retevis_rt3s_radiofoundry dmrconf radiofoundry-cps

The DM-32UV row was the worst of it: the site told people codeplugger could not write the radio while codeplugger was writing it.

The fix

derive_backend() now calls codeplugger.catalog.programming_path() instead of re-deriving the answer. The resolver is the single authority, so a future backend cannot silently desync the site. The old map survives only as KNOWN_BACKENDS, a frozenset used to validate that a declared backend is a real backend name.

site/radios.json, site/index.html, and site/es/index.html regenerated; --check is clean.

Also

radios/baofeng_dm32_radiofoundry/capabilities.json notes rewritten. Dropped "refuses to program the radio" and "NOT BENCH-VERIFIED". Now documents the radiofoundry_cps write path at offset 0x700000, radio_type 6 meaning the board declared no radio type, and BENCH-VERIFIED 2026-12-01 — semantic verify, since padding and VFO_A rewrites make a byte compare useless on a correct write.

Tests

Four added to tests/test_site_radio_table.py:

  • a radiofoundry_cps block resolves to the radiofoundry-cps backend
  • radiofoundry_cps outranks dmrconf where a radio declares both
  • no writable radio is published as supported: false — the exact shape of this bug, guarded for every shipped radio
  • where a row does name a backend, it matches the resolver

407 passed, 1 skipped.

emuehlstein and others added 2 commits December 1, 2026 15:47
The radio table generator carried its own block->backend map. When the
radiofoundry_cps write block was added, the map was never taught about
it, so the published table disagreed with the tool for three radios:

  baofeng_dm32_radiofoundry   published unsupported; codeplugger writes it
  baofeng_dm1701_radiofoundry published dmrconf; resolver picks radiofoundry-cps
  retevis_rt3s_radiofoundry   published dmrconf; resolver picks radiofoundry-cps

derive_backend() now asks codeplugger.catalog.programming_path() instead
of re-deriving, so a future backend cannot silently desync the site. The
leftover map is kept only as a frozenset of valid backend names.

DM-32UV RadioFoundry notes updated: bench-verified 2026-12-01 over the
radiofoundry_cps path at offset 0x700000, semantic verify (padding and
VFO_A make a byte compare useless).

407 passed, 1 skipped.
OpenClaw-Publication: a271cdd6-62d4-8087-b956-1d2e9327bbe7
@emuehlstein
emuehlstein merged commit 1efc3b3 into main Dec 2, 2026
2 checks passed
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