Skip to content

External references, pinned config corpus and an example library - #228

Merged
discostu105 merged 1 commit into
mainfrom
external-resources
Oct 31, 2026
Merged

discostu105 merged 1 commit into
mainfrom
external-resources

Conversation

@discostu105

Copy link
Copy Markdown
Owner

External sources for development: the official Loxone documents as pinned links, the public config corpus as a reproducible manifest, and a browsable library of real configs we may redistribute.

References (docs/references.json, tools/fetch-refs.py)

  • Links only, never the files: Loxone's PDFs carry no license to redistribute them. Each pinned entry has a sha256; tools/fetch-refs.py downloads into refs/ (gitignored), and --check reports DRIFT when Loxone republishes a document.
  • The current editions are 17.0 (Communicating with the Miniserver, Structure File, User Management). The stable /datasheets/ URLs our docs linked serve the older 16.0 editions.

Corpus (crates/loxone-config/tools/corpus-manifest.json)

  • Every one of the 149 files with its source (GitHub pinned to a commit), sha256 and license. fetch-corpus.py reproduces the corpus exactly (verified from scratch); --discover rewrites the manifest.
  • Fixes a name collision that lost KNX/HB_SS23.Loxone. Files with XML comments are skipped: Loxone Config never writes them, so a tool rewrote the file.
  • Licenses: 2 MIT, 1 BSD-3, 42 AGPL/commercial (lox-cli), and everything else unlicensed, Loxone's or unknown.

Example library (crates/loxone-config/examples/library/)

  • Nibe heat pump gateway (MIT) and Smarteon Loxcall (BSD-3): redacted with loxl scan --redact, each with SOURCE.md (repository, commit, original sha256, every change), the upstream LICENSE, the decompiled logic/ and an SVG per page. tests/library.rs keeps the views current.

Fixes found on the way

  • loxl scan missed the document's phone (Tel, 42 corpus files) and creator name (Creator, 67 files), so --redact copies kept both.
  • The corpus tests were skipped silently because three docs named LXIR_CORPUS/LXC_CORPUS. They also ignored lowercase .loxone files.

Corpus workflow (weekly, on demand, and on PRs that touch the manifests): fetch, verify, corpus tests, reference drift. Its corpus job will be red until #224 and #225 are fixed. Those failures predate this PR (#224) or were hidden by the collision (#225). The byte roundtrip passes on all 149 files.

Follow-ups: #224, #225, #226 (decompile prints a stale Def and a wire on the same connector as a duplicate argument), #227 (our own scenario configs made under Wine).

https://claude.ai/code/session_01Ms544e9qZbdt68PptKTFo5

- docs/references.json + tools/fetch-refs.py: the official Loxone documents
  (Communicating with the Miniserver 17.0, Structure File 17.0, User
  Management, ...) and community sources as links with pinned sha256;
  downloaded into refs/ (gitignored), --check reports drift. The
  /datasheets/ aliases serve the older 16.0 editions.
- tools/corpus-manifest.json: the public corpus pinned (GitHub at a
  commit, sha256, license); fetch-corpus.py reproduces it (149 files) or
  --discover rewrites it. Fixes a name collision that lost
  KNX/HB_SS23.Loxone; skips tool-rewritten files with XML comments.
- examples/library/: Nibe gateway (MIT) and Smarteon Loxcall (BSD-3),
  redacted, with SOURCE.md, LICENSE, decompiled view and page drawings;
  tests/library.rs keeps the views current.
- loxl scan: the document's Tel and Creator are personal data (42 and 67
  corpus files carry them).
- Corpus tests read lowercase .loxone too; docs name LOXL_CORPUS (three
  still named LXIR_/LXC_CORPUS, so the tests were skipped).
- Weekly Corpus workflow: fetch, verify, corpus tests, reference drift.

Claude-Session: https://claude.ai/code/session_01Ms544e9qZbdt68PptKTFo5
@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.53%. Comparing base (4c36d02) to head (1acacd8).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #228      +/-   ##
==========================================
+ Coverage   71.14%   71.53%   +0.38%     
==========================================
  Files         120      120              
  Lines       40267    40268       +1     
==========================================
+ Hits        28647    28804     +157     
+ Misses      11620    11464     -156     
Files with missing lines Coverage Δ
crates/loxone-config/src/cli.rs 48.24% <ø> (+3.06%) ⬆️
crates/loxone-config/src/scan.rs 92.42% <100.00%> (+0.05%) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@discostu105
discostu105 merged commit b8545be into main Oct 31, 2026
8 of 9 checks passed
@discostu105
discostu105 deleted the external-resources branch October 31, 2026 15:54
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