Skip to content

docs: QSO logging to Wavelog (API v2) -- design v0.3, FR-LOG proposed, local test instance - #252

Merged
dc0sk merged 2 commits into
mainfrom
feat/wavelog-logging
Oct 27, 2026
Merged

dc0sk merged 2 commits into
mainfrom
feat/wavelog-logging

Conversation

@dc0sk

@dc0sk dc0sk commented Oct 27, 2026

Copy link
Copy Markdown
Owner

This PR is the design for logging QSOs from K4 Remote to Wavelog through its API v2, as DC0SK requested on 2026-10-27. No code yet; the building comes in follow-up PRs, one slice each.

In this PR:

  • docs/concept/wavelog-logging-plan.md, design v0.3. It includes the API facts, the reply classes, the queue, the token rules, the field mapping, the test plan, and the review of v0.1.
  • SRS 0.96, section R: FR-LOG-01…08, all proposed. There are six R3 waivers ("not yet implemented"), each to be removed when its slice lands.
  • tools/wavelog-test/: a throwaway local Wavelog in a rootless podman pod on 127.0.0.1. It installs by script and comes with a test user, a station location and two API v2 tokens. Setup and teardown were checked on a second instance built from nothing.

How the design was checked:

  • Probes against the local server, which settled what the docs leave open:
    • a duplicate comes back as 400 validation_error with details.duplicate, not 409;
    • a station location that isn't yours gives 403 forbidden;
    • the band isn't checked when a frequency is sent;
    • seconds are stored.
  • Independent review of v0.1 (Fable): revise (major), 11 findings, all taken.
    • The duplicate key is minute + call + band + main ADIF mode + location. A duplicate now counts as "already logged" only when an earlier try may have reached the server; otherwise the entry is held.
    • Errors are classified by error.code.
    • The queue is one file per entry with a single sender.
    • The token lives in a Secret type and one keychain account, with the URL in the config, and a test checks it never leaks.
    • The mapping now covers split, power in watts, Wavelog's band table, and ADIF mode pairs.
  • The review's write probes, all of which confirmed it.
  • DARC server (https://log.dclnext.darc.de/api/v2): its public status answers on both path forms, so it runs Wavelog 3.1.0 or later. It answers an unknown v2 path with 401, not 404, so "API v2 present" is decided by status alone.
  • Power: DC0SK has no KPA1500, so the K4's set power is what gets logged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ma4bQKqGNFTYyVSEKPcXRk

Simon Keimer and others added 2 commits October 27, 2026 10:44
…-LOG-01..08 proposed, local test instance

A local Wavelog (rootless podman, 127.0.0.1) scripted in tools/wavelog-test
(setup.sh, install.py, teardown.sh), checked from nothing on a second
instance. Probes against it and Wavelog's source settled what the API docs
leave open; an independent review of design v0.1 (revise, major) and its
write probes corrected the duplicate key (minute + call + band + main ADIF
mode + location), the error classes (by error.code), the queue layout (a
file per entry, one sender) and the token rules (a type, one account, a
test). Proposed, not built; six R3 waivers until each slice lands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ma4bQKqGNFTYyVSEKPcXRk
…ting, power without an amplifier

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ma4bQKqGNFTYyVSEKPcXRk
@dc0sk
dc0sk merged commit 6b905a5 into main Oct 27, 2026
5 checks passed
@dc0sk
dc0sk deleted the feat/wavelog-logging branch October 27, 2026 15:14
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