Routing coverage UI: see coverage, pick areas, build + progress (owner page + editor overlay) #78

Open
opened 2026-11-06 12:28:36 +00:00 by maximus · 1 comment
Member

Routing coverage (BRouter rd5 + DEM + Valhalla) is currently France-only (Geofabrik PACA + IGN dept 06), so routes stop at the Italian border. Coverage extension is becoming routine; this is the UI for it.

Phases

  1. Pipeline (homelab-flux, in progress): apps/trail/coverage.yaml = regions (bbox, Geofabrik extracts, DEM source IGN/Copernicus GLO-30, probe routes); in-cluster rebuild pipeline dem -> rd5 -> brouter restart -> valhalla -> probe; status ConfigMap trail-coverage-status; CLI /root/wanderer-coverage.sh (--check / rebuild / probe / rollback). First region: liguria-piemonte-sw (lon 6.6-8.3, lat 43.5-44.6).
  2. trail-coverage service (homelab-flux): the only privileged part. Reads the status, proposes coverage.yaml changes as a homelab-flux PR (bot), starts a rebuild from fixed templates (narrow RBAC). NetworkPolicy: ingress from wanderer-web only; shared secret; never given to the preview.
  3. wanderer (this issue):
    • Owner-only page "Routing coverage" (allow-list env like TRAIL_ANALYZE_USERS): map of current coverage (coloured by DEM quality, probe routes green/red), pick area/tiles with size estimate, "Propose" (-> PR), "Build" (after merge) with live progress (steps, log tail, probe results). Server-side proxy to trail-coverage after the owner check.
    • Route editor, all users, read-only: faint coverage overlay + a hint when a waypoint is outside coverage (instead of the route silently stopping).
    • First test of both on the preview environment (#60).

Fork-only feature (not for upstream).

🤖 Generated with Claude Code

Routing coverage (BRouter rd5 + DEM + Valhalla) is currently France-only (Geofabrik PACA + IGN dept 06), so routes stop at the Italian border. Coverage extension is becoming routine; this is the UI for it. ## Phases 1. **Pipeline (homelab-flux, in progress):** `apps/trail/coverage.yaml` = regions (bbox, Geofabrik extracts, DEM source IGN/Copernicus GLO-30, probe routes); in-cluster rebuild pipeline dem -> rd5 -> brouter restart -> valhalla -> probe; status ConfigMap `trail-coverage-status`; CLI `/root/wanderer-coverage.sh` (--check / rebuild / probe / rollback). First region: liguria-piemonte-sw (lon 6.6-8.3, lat 43.5-44.6). 2. **`trail-coverage` service (homelab-flux):** the only privileged part. Reads the status, proposes coverage.yaml changes as a homelab-flux PR (bot), starts a rebuild from fixed templates (narrow RBAC). NetworkPolicy: ingress from wanderer-web only; shared secret; never given to the preview. 3. **wanderer (this issue):** - [x] Owner-only page "Routing coverage" (allow-list env like `TRAIL_ANALYZE_USERS`): map of current coverage (coloured by DEM quality, probe routes green/red), pick area/tiles with size estimate, "Propose" (-> PR), "Build" (after merge) with live progress (steps, log tail, probe results). Server-side proxy to trail-coverage after the owner check. - [x] Route editor, all users, read-only: faint coverage overlay + a hint when a waypoint is outside coverage (instead of the route silently stopping). - [ ] First test of both on the preview environment (#60). Fork-only feature (not for upstream). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Member

Status check 2026-11-12 (night run). Nothing has been sent outside our Forgejo.

Where the phases stand

  1. Pipeline: done. hf #923 (5b1d782e plus follow-ups). The first new region, liguria-piemonte-sw, was built, promoted and probed on 2026-11-06 (run 20261106-162443, coverage c886beba1b15). All 4 BRouter probes pass, including Sospel–Ventimiglia via the Roya, Breil–Tende–Limone and Menton–Sanremo. ConfigMap trail-coverage-status is current.
  2. trail-coverage service: done and running. hf #927 (5afc20db plus follow-ups). Pod trail-coverage-api is up in ns trail-coverage. From inside the pod, Forgejo answers (/api/v1/version 200). The FORGEJO_URL ... gaierror in the 2026-11-11 startup readiness line was transient. Proposals are still off: FORGEJO_TOKEN is empty, so POST /proposals answers 503 "not configured". This is by design until Bear does the setup (see below).
  3. wanderer UI: live since 2026-11-06. #79 went in via train #80, and the review fixes in #81. wanderer-web runs deploy-c78be3de, wired by hf a9d6c4c5 with TRAIL_COVERAGE_USERS = Bear only.
    • Owner page /settings/coverage (owner-only allow-list, server-side proxy)
    • Route editor overlay + outside-coverage hint for all users
    • Preview test (#60). This was skipped because the UI went straight to live. The wiring is now in hf #1051 (below).

Verified on live tonight (claude_test, not the owner)

t9_coverage.mjs → /root/tools/wanderer-shots/acceptance/out/t9-live.json:

  • PASS 9.1: /settings/coverage returns 403 with no map. Screenshot: /root/tools/wanderer-shots/acceptance/out/t9a-coverage-page-live.png
  • PASS 9.2: the owner API refuses claude_test (GET status 403, POST estimate 403). coverage.geojson returns 200 with 12 features.
  • PASS 9.3: there is no "Routing coverage" settings link for claude_test.
  • INFO 9.4: the editor coverage toggle is present and toggles. Screenshot: /root/tools/wanderer-shots/acceptance/out/t9b-editor-overlay-live.png

New t9c_coverage_hint.mjs (start near Albenga, by the east edge at lon 8.3) → /root/tools/wanderer-shots/acceptance/out/t9c-live.json:

  • PASS 9c.1: with the overlay on and no anchors, no hint shows. Screenshot: /root/tools/wanderer-shots/acceptance/out/t9c-editor-overlay-on-live.png
  • PASS 9c.2: an anchor inside coverage (8.215) shows no hint.
  • PASS 9c.3: an anchor at lon 8.373 (outside) shows "Outside routing coverage — routes may stop here", and the dashed coverage edge is visible. Screenshot: /root/tools/wanderer-shots/acceptance/out/t9c-editor-outside-hint-live.png
  • A first try put the anchor at 8.294, still inside, and correctly showed no hint.

No screenshot of the owner page with real data exists: claude_test is not the owner, and it must never go on the live allow-list.

Preview wiring (done tonight, preview still scaled to 0)

hf #1051, merged ff as 3cf7fb94 after green CI, gives wanderer-preview-web TRAIL_COVERAGE_URL and TRAIL_COVERAGE_USERS=claude_test, with no secret. The service stays unreachable from the preview (its netpol and the preview egress both block it), so the owner page renders its map, legend and the 503 message. The initial image is the live deploy-c78be3de, so no build is needed. Flux applied it, and I deleted the replicas-0 Deployment once so Flux recreated it with the env (checked: image deploy-c78be3de@sha256:ddf25304…, both env vars present).

Decisions made on Bear's behalf (also in /root/decisions-2026-11-12.md)

  • Preview wiring as above. The alternatives were kubectl set env (drifts from git) or skipping the preview, since the UI has been live since 11-06. I wired it because this is #79's checklist and it is the only way to see the owner page layout without Bear's account. Revert: revert hf #1051, then delete the replicas-0 Deployment again.
  • No preview up/down tonight. The alternative was feeding yes to the script's tty prompt. I didn't, because the typed yes is Bear's explicit interlock and it is now inside the script's 01:45-05:15 UTC busy window. There is also no batch to ship: the UI is already in prod.
  • #78 stays open. The alternative was closing it. I ticked only the two shipped checkboxes. Open: Propose answers 503 until a bot token exists (new credentials are Bear's), and the preview test is pending.
  • No new routing region built tonight. The issue names no next region after liguria-piemonte-sw, which is built and probed.

Needs Bear

  1. Proposals (bot token): first add a merge whitelist on jmz/homelab-flux main that excludes the bot. Then create a bot user (e.g. trail-coverage-bot) as write collaborator on homelab-flux only, with a write:repository token, stored as FORGEJO_TOKEN in apps/trail-coverage/secret.enc.yaml (README "Setup (Bear)" step 1).
  2. Preview run: /root/wanderer-preview.sh up <live web digest sha256:ddf25304…> (typed yes), then cd /root/tools/wanderer-shots/acceptance && WANDERER_TARGET=preview nice -n 10 node t9_coverage.mjs, then down (typed yes).
  3. Owner check by eye: open https://wanderer.bearoverse.com/settings/coverage as yourself. It should show the paca and liguria-piemonte-sw boxes, the DEM tiles and the green probe lines.

🤖 Generated with Claude Code

Status check 2026-11-12 (night run). Nothing has been sent outside our Forgejo. ## Where the phases stand 1. **Pipeline: done.** hf #923 (5b1d782e plus follow-ups). The first new region, `liguria-piemonte-sw`, was built, promoted and probed on 2026-11-06 (run `20261106-162443`, coverage `c886beba1b15`). All 4 BRouter probes pass, including Sospel–Ventimiglia via the Roya, Breil–Tende–Limone and Menton–Sanremo. ConfigMap `trail-coverage-status` is current. 2. **`trail-coverage` service: done and running.** hf #927 (5afc20db plus follow-ups). Pod `trail-coverage-api` is up in ns `trail-coverage`. From inside the pod, Forgejo answers (`/api/v1/version` 200). The `FORGEJO_URL ... gaierror` in the 2026-11-11 startup readiness line was transient. **Proposals are still off:** `FORGEJO_TOKEN` is empty, so `POST /proposals` answers 503 "not configured". This is by design until Bear does the setup (see below). 3. **wanderer UI: live since 2026-11-06.** #79 went in via train #80, and the review fixes in #81. wanderer-web runs `deploy-c78be3de`, wired by hf a9d6c4c5 with `TRAIL_COVERAGE_USERS` = Bear only. - [x] Owner page `/settings/coverage` (owner-only allow-list, server-side proxy) - [x] Route editor overlay + outside-coverage hint for all users - [ ] Preview test (#60). This was skipped because the UI went straight to live. The wiring is now in hf #1051 (below). ## Verified on live tonight (claude_test, not the owner) `t9_coverage.mjs` → `/root/tools/wanderer-shots/acceptance/out/t9-live.json`: - PASS 9.1: `/settings/coverage` returns 403 with no map. Screenshot: `/root/tools/wanderer-shots/acceptance/out/t9a-coverage-page-live.png` - PASS 9.2: the owner API refuses claude_test (GET status 403, POST estimate 403). `coverage.geojson` returns 200 with 12 features. - PASS 9.3: there is no "Routing coverage" settings link for claude_test. - INFO 9.4: the editor coverage toggle is present and toggles. Screenshot: `/root/tools/wanderer-shots/acceptance/out/t9b-editor-overlay-live.png` New `t9c_coverage_hint.mjs` (start near Albenga, by the east edge at lon 8.3) → `/root/tools/wanderer-shots/acceptance/out/t9c-live.json`: - PASS 9c.1: with the overlay on and no anchors, no hint shows. Screenshot: `/root/tools/wanderer-shots/acceptance/out/t9c-editor-overlay-on-live.png` - PASS 9c.2: an anchor inside coverage (8.215) shows no hint. - PASS 9c.3: an anchor at lon 8.373 (outside) shows "Outside routing coverage — routes may stop here", and the dashed coverage edge is visible. Screenshot: `/root/tools/wanderer-shots/acceptance/out/t9c-editor-outside-hint-live.png` - A first try put the anchor at 8.294, still inside, and correctly showed no hint. No screenshot of the owner page with real data exists: claude_test is not the owner, and it must never go on the live allow-list. ## Preview wiring (done tonight, preview still scaled to 0) hf #1051, merged ff as 3cf7fb94 after green CI, gives `wanderer-preview-web` `TRAIL_COVERAGE_URL` and `TRAIL_COVERAGE_USERS=claude_test`, with **no secret**. The service stays unreachable from the preview (its netpol and the preview egress both block it), so the owner page renders its map, legend and the 503 message. The initial image is the live `deploy-c78be3de`, so no build is needed. Flux applied it, and I deleted the replicas-0 Deployment once so Flux recreated it with the env (checked: image deploy-c78be3de@sha256:ddf25304…, both env vars present). ## Decisions made on Bear's behalf (also in /root/decisions-2026-11-12.md) - **Preview wiring as above.** The alternatives were `kubectl set env` (drifts from git) or skipping the preview, since the UI has been live since 11-06. I wired it because this is #79's checklist and it is the only way to see the owner page layout without Bear's account. Revert: revert hf #1051, then delete the replicas-0 Deployment again. - **No preview `up`/`down` tonight.** The alternative was feeding `yes` to the script's tty prompt. I didn't, because the typed yes is Bear's explicit interlock and it is now inside the script's 01:45-05:15 UTC busy window. There is also no batch to ship: the UI is already in prod. - **#78 stays open.** The alternative was closing it. I ticked only the two shipped checkboxes. Open: Propose answers 503 until a bot token exists (new credentials are Bear's), and the preview test is pending. - **No new routing region built tonight.** The issue names no next region after liguria-piemonte-sw, which is built and probed. ## Needs Bear 1. **Proposals (bot token):** first add a merge whitelist on `jmz/homelab-flux` `main` that excludes the bot. Then create a bot user (e.g. `trail-coverage-bot`) as write collaborator on homelab-flux only, with a `write:repository` token, stored as `FORGEJO_TOKEN` in `apps/trail-coverage/secret.enc.yaml` (README "Setup (Bear)" step 1). 2. **Preview run:** `/root/wanderer-preview.sh up <live web digest sha256:ddf25304…>` (typed yes), then `cd /root/tools/wanderer-shots/acceptance && WANDERER_TARGET=preview nice -n 10 node t9_coverage.mjs`, then `down` (typed yes). 3. **Owner check by eye:** open https://wanderer.bearoverse.com/settings/coverage as yourself. It should show the paca and liguria-piemonte-sw boxes, the DEM tiles and the green probe lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/wanderer#78
No description provided.