docs: Redis wording, stale /health example and undocumented in-memory peer mesh

Open
#27 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start with docs/FEDERATION_TLS.md, docs/API.md, .gitignore, and the running health payload and peer registration script named in the issue. Compare the docs and ignore rules with the stated running behavior and consolidated tree, then update them to meet all five acceptance criteria. Done when markdownlint-cli2 reports 0 issues and the Rust suite passes.

Written by the indexing model from the issue text.

Description

area::node effort::s impact::medium priority::low source::auto status::review type::docs

Problem

sonaraim-node documentation still describes Redis and a stale node identity, and it does not warn that the peer mesh is held in memory. An operator who restarts a node and follows the docs ends up with a node that silently does not federate.

Evidence (read-only audit, 2026-12-04)

  • docs/FEDERATION_TLS.md:19 — "Redis and gossip UDP traffic stay inside the private network"; the datastore is Valkey since #26 (src/valkey_store.rs, VALKEY_URL with legacy REDIS_URL fallback).
  • docs/API.md:29-41 — the GET /health example returns "http_bind": "0.0.0.0:8040" and "p2p_listen_addr": "/ip4/0.0.0.0/tcp/4001", while the running node binds HTTP on :8031 and gossips over /ip4/0.0.0.0/udp/9031/quic-v1; the example also omits valkey_last_error, which /health exposes and which the deployment verifies is null.
  • docs/API.md §POST /v1/p2p/peers / GET /v1/p2p/peers does not state that the mesh is in memory: after any node restart the peers must be registered again (deploy/scripts/register-federation-peers.sh in the coordinator), otherwise replication stops without any error.
  • .gitignore diverges from the consolidated tree in alfonsodg/sonaraim (this repo still ignores .kiro/).

Expected vs actual

  • Expected: the docs name Valkey, show a /health payload that matches the running node (including valkey_last_error), and state that peer registration is volatile and must be repeated after restarts.
  • Actual: the docs name Redis, show a stale bind/gossip example without valkey_last_error, and say nothing about the volatile mesh.

Acceptance criteria

  1. No document in this repository describes Redis as the running datastore; the legacy REDIS_URL fallback stays documented where it is real.
  2. The GET /health example matches the running payload, including valkey_last_error and a QUIC/UDP p2p_listen_addr.
  3. The peer endpoints document that the mesh is in memory and must be re-registered after every node restart.
  4. .gitignore matches the consolidated tree in alfonsodg/sonaraim.
  5. markdownlint-cli2 reports 0 issues and the Rust suite stays green.
Dominant language
Rust
Stars
0
Forks
0
Avg merge
4m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from alfonsodg/sonaraim-node

All issues in alfonsodg/sonaraim-node

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.