Repository navigation
site: publish the backend the resolver actually picks - #51
Merged
emuehlstein merged 2 commits intoDec 2, 2026
Merged
emuehlstein merged 2 commits into
emuehlstein merged 2 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug
tools/gen_radio_table.pykept its ownBLOCK_BACKENDSmap from capability block → write backend. When theradiofoundry_cpsblock was added, the generator was never taught about it, so the published table disagreed with the tool itself for three radios:baofeng_dm32_radiofoundrydm32_migrate.py"radiofoundry-cpsbaofeng_dm1701_radiofoundrydmrconfradiofoundry-cpsretevis_rt3s_radiofoundrydmrconfradiofoundry-cpsThe 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 callscodeplugger.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 asKNOWN_BACKENDS, a frozenset used to validate that a declared backend is a real backend name.site/radios.json,site/index.html, andsite/es/index.htmlregenerated;--checkis clean.Also
radios/baofeng_dm32_radiofoundry/capabilities.jsonnotes rewritten. Dropped "refuses to program the radio" and "NOT BENCH-VERIFIED". Now documents theradiofoundry_cpswrite path at offset0x700000,radio_type 6meaning 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:radiofoundry_cpsblock resolves to theradiofoundry-cpsbackendradiofoundry_cpsoutranksdmrconfwhere a radio declares bothsupported: false— the exact shape of this bug, guarded for every shipped radio407 passed, 1 skipped.