[2.8] Detect and record old→new Meshtastic identity links

Aperta
#440 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, database

Direzione di ricerca

Start with the MeshtasticIdentityLink model and the MtRawPacket.from_int field, which must stay unchanged. Detection rules cover auto-linking on a predicted id, suggested links from MAC evidence in OTA NodeInfo, and flagging when two active nodes share a key. The work depends on pskillen/meshflow-api#439 and #463, so check those first. Done means idempotent re-runs, correct downgrade handling, a signal on link creation, and tests for the auto, suggested, rejected and downgrade paths.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement meshtastic-2.8

Part of pskillen/meshflow-api#437 (Meshtastic 2.8.x support). Code: ID-2 · Priority: Must · Size: M

Summary

Add a MeshtasticIdentityLink model (old node, new node, evidence, confidence, state: auto / suggested / confirmed / rejected).

  • Auto when a newly seen node's from equals the predicted id of exactly one existing node with the same key.
  • Suggested on MAC evidence: OTA NodeInfo macaddr M with int(M[2:6]) == old_num, or mac_addr == M. Covers full-erase cases.
  • Names, hw model and location are hints only.
  • Keep both rows; never rewrite MtRawPacket.from_int. Emit a signal on link.

Acceptance criteria

  • Idempotent; re-running detection creates no duplicates
  • Handles downgrade (2.8 → 2.7) without corrupting links
  • Flags (doesn't link) when two active nodes share a key
  • Tests for auto, suggested, rejected and downgrade paths

Depends on: pskillen/meshflow-api#439 (ID-1), pskillen/meshflow-api#463 (FX-1)

Lingua principale
Python
Stelle
1
Fork
0
Merge medio
23h 9m
PR unite (30g)
15

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pskillen/meshflow-api

Tutte le issue di pskillen/meshflow-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.