Skip to content

Protocol v0.2: OpenRadlr feedback - #2

Merged
RalfLeonFasler merged 2 commits into
mainfrom
server-protocol-v0.2
Nov 7, 2026
Merged

RalfLeonFasler merged 2 commits into
mainfrom
server-protocol-v0.2

Conversation

@RalfLeonFasler

@RalfLeonFasler RalfLeonFasler commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Implements protocol v0.2 (OpenBikeNet/protocol#2), which resolves the feedback from the first app implementation (OpenRadlr). The feedback and the decision on each point are in docs/2026-11-07-feedback-from-openradlr.md.

  • presence: a join no longer starts the rate-limit clock (last_update, separate from the timeout's last), so an update right after a join is accepted
  • ws: rate_limited is still sent but does not count towards too_many_errors, so a backend with many riders can't be disconnected in a loop by one early tick. ping is answered with pong (with the ref). welcome.protocol comes from the new PROTOCOL_VERSION ("0.2")
  • protocol: names with Cc, Cf (except ZWJ), Co, Zl or Zp characters, or only whitespace, get invalid_value. The ranges are the same as in the schemas
  • obn-fake-app: riders are Fake 1…N (fake-1…N) so they don't read as an app's local bots

Builds on OpenBikeNet/protocol#2 (merged): the submodule points at its merge commit e00bdb6.

Test plan

  • make check (rustfmt, clippy -D warnings, cargo test --workspace): 67 tests green
  • New tests: update right after join is accepted; 30 rate-limited entries in one message don't close the connection; ping→pong with and without ref; pong matches its example; the new valid and invalid name examples parse or fail with invalid_value

🤖 Generated with Claude Code

RalfLeonFasler and others added 2 commits November 7, 2026 09:23
- A join no longer starts the rate-limit clock, so an update right after
  a join is accepted; rate_limited no longer counts towards
  too_many_errors.
- Reject names with Cc, Cf (except ZWJ), Co, Zl or Zp characters, or
  only whitespace.
- Answer ping with pong; welcome.protocol is now 0.2.
- Fake app riders are named Fake 1..N.
- Record the feedback and the decisions in docs/.
- Move the protocol submodule to the v0.2 spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RalfLeonFasler
RalfLeonFasler merged commit a7beab6 into main Nov 7, 2026
2 checks passed
@RalfLeonFasler
RalfLeonFasler deleted the server-protocol-v0.2 branch November 7, 2026 11:13
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