Skip to content

Plan: per-observation route type — backfill and neighbor-builder use the transmission's first route type #289

Open

Description

@dborup

Found in a post-merge review of #190 and confirmed by reading master 34f672c6. This issue asks for a plan first, not code.

The same payload can be heard as both DIRECT and FLOOD. One transmission row then covers observations with different route types (route_mask records that). The resolved-path backfill (code) and the neighbor-builder (code) still read t.route_type, which is the route type of the first reception. That can store a wrong relay (DIRECT treated as FLOOD: path[last] is not the transmitter) or drop a real neighbour edge (FLOOD treated as DIRECT). The review reproduced both directions.

Plan should answer

  • Where does each observation's own route type come from today? Is it in raw_hex per observation, in path_json, or nowhere?
  • Does the fix need a schema change, such as an observations.route_type column with an ingest write and a backfill? What does it cost at the observation counts deployments have (millions of rows)?
  • Which consumers must switch: backfill, neighbor-builder, server-side resolve, analytics?
  • A migration and rollback plan, and tests for both reproduction directions.
  • Can a cheap interim guard limit the damage? For example, skip attribution when route_mask shows both DIRECT and FLOOD.

Activity

  1. added
    enhancement
    type:spike
    on Oct 6, 2026
  2. added a commit that references this issue on Oct 6, 2026
  3. dborup commented on Oct 6, 2026

    @dborup
    OwnerAuthor

    M1 merged via #308 (298609e06e4e4c3ed6bdc37661abd176ee97bc68): the resolved-path backfill and the neighbour builder now use each observation's own route type. M2 (repairing already-written resolved_path rows) is still open, so this issue stays open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtype:spike

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions