Adapt main fixes to DEV ownership of split MQTT intake, private projections, lean Compose, and on-demand charts. Preserve deployed migration identities and standalone owner sessions.
* fix(stats): drop the observer-regions dimension and alert on stale snapshots (#282)
The 7-day observer-regions aggregation was the slowest chart query (55.5 s isolated, 60-120 s under load); its budget overrun aborted all 17 snapshot queries and froze charts from 2026-11-24 until the budget was raised. Removes the dimension end to end, moves the feed region filter onto the live observer endpoint, and adds meshcore_stats_chart_snapshot_age_seconds plus a StatsChartSnapshotStale alert.
* test(e2e): assert live observer line survives an old chart snapshot (#282)
The removed observer-region cards were the old fixture anchor; the surviving invariant is that /stats/observers/live keeps the activity line current while the chart snapshot is stale.
---------
Co-authored-by: gadgethd <ben@ukmesh.com>
- remove duplicate YAML key left by the deleted Mosquitto alerts
- probe mesh-health-check's real /api/bootstrap endpoint
- app/website nginx trust only their own Anubis edge
- use the default POSTGRES_USER for the tagger DB
- drop the unused Mosquitto 1883 listener and CORS/doc drift
- delete compose.phase4.yml and docker-compose.infra-client.yml (no live path)
- delete unmounted health-check app.js/styles.css and three unreferenced scripts
- drop the retired ML env block and duplicate receipt key
- document OWNER_COOKIE_SECRET and GRAFANA_ADMIN_PASSWORD, fix example CORS
- remove the non-existent mosquitto-exporter scrape job and alerts
- delete the duplicate nginx .mjs location and stale proxy addresses
Durable packet path growth averages 35,944 rows/day over the last seven days
(range 28,397-39,486 over the last fortnight), so the 30,000/day ceiling was a
standing warning rather than a signal.
packet_paths is a compression-only target with no retention by design
(dataLifecycle.ts); capacity is guarded by the host disk rules. Raising the
ceiling to 60,000/day keeps a 1.7x regression signal for dedupe failures and
replay storms without breaking the data-lifecycle invariant.
Adds promtool coverage for both sides of the threshold.
The gauge is exported by every process (backend plus all workers) and reports 0
where no collector is registered, so the previous selector on job=meshcore-backend
matched nothing and absent() held PrivacyGenerationUnhealthy firing permanently.
That masked genuine privacy drift and paged roughly six times a day.
Select the health worker instead, matching the role convention already used by
PacketPathsGrowthHigh, and set the four promtool cases to the same identity.
absent() inherits only the selector's equality matchers, so the fail-closed case
expects job and role but no instance.
- /readyz returns only database and MQTT state; owner-ACL generations,
reconciliation errors and workload identity stay on the local-only surface
- an invalid network scope on a public WS upgrade returns 400 instead of
throwing out of verifyClient
- POST /alerts requires a bearer token (fail-closed) and both in-repo senders
send it; Alertmanager reads its token from a provisioned file
Audit: backend/src/index.ts:GET-readyz.publishes-owner-authorization-and-analysis-internals
ws.verifyclient.invalid-network-scope-uncaught-exception
backend/src/workers/alert-receiver.ts:POST-alerts:unauthenticated-alert-ingest-to-operator-webhook
* Fix analysis state, worker observability, feed layout and maintenance (#113)
* fix(analysis): restore tested retired workload policy
* fix(owner): prewarm last-hop cache with bounded progress reporting
* fix(metrics): use real link worker heartbeat for queue alerts
* fix(feed): measure virtual rows and preserve scroll anchors
* fix(ops): reject Compose metadata drift before replacement
* fix(maintenance): archive inactive nodes across roles and bridge states
* docs(review): record validation and heartbeat audit findings
* fix(maintenance): retain private identities during stale cleanup
* fix(ops): consume Compose service output before adoption checks
* test(owner): cover prewarm scheduling recovery and shutdown
* test(e2e): isolate server ports and Vite dependency caches
* test(feed): cover empty filters and arrivals at the top
* test(map): budget two cold bootstraps in mode persistence check
* docs(review): record continuation regressions and final verification
* fix(alerts): match queue heartbeats to their scrape reporter
* test(feed): preserve packet anchors across scroll-mode changes
* test(owner): verify incremental prewarm cache refreshes
* fix(maintenance): preserve packet privacy fence during public cleanup
* fix(maintenance): recheck inactive sightings before archive and delete
* fix(owner): serve fresh cache hits during background prewarm
* test(map): give each viewport its own startup budget
* test(map): load valid terrain and coverage tiles in local fixtures
* fix(metrics): export unknown heartbeat when Redis initialization fails
* test(path): control worker-pool deadlines independently of thread startup
* test(e2e): await owner and map readiness before state assertions
* test(feed): check fractional viewport and spacer invariants
* docs(review): record green expanded verification checkpoint
* fix(maintenance): acquire visibility before node locks and skip busy rows
* test(maintenance): retain concurrent RF-only activity in native fixtures
* fix(owner): replace regrouped last-hop buckets during refresh
* test(owner): verify warm regrouping with actual last-hop SQL
* test(maintenance): retain concurrently committed node consent
* test(maintenance): avoid a waiting consent-trigger deadlock
* test(feed): verify responsive anchoring in Firefox and WebKit
* docs(review): reconcile completed checks and remote CI evidence
* docs(review): correct checkpoint wording
* test(maintenance): verify privacy fences on native PostgreSQL
* test(health): verify link heartbeat publisher lifecycle
* docs(review): record stop-signal handoff and remaining verification
---------
Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
* fix(feed): preserve scroll anchors across scroll-mode flips
React 19.3 fires the window scroll listener before React commits its new
row range, so updateViewport could overwrite the last known content offset
with the new-mode artifact (0) before the anchor-preserving layout effect
ran — dropping the feed to the top on a responsive resize.
Detect the scroll-mode flip (internal container <-> document scrolling) in
updateViewport and transfer the last known content offset into the new mode
before the anchor effect evaluates.
Verified: feed-virtualizer e2e (both viewports) and the full public-desktop
suite under react 19.2.8 and 19.3.0.
* fix(#553): sync replace-container test harness
* test(ops): sync replace-container harness with adoption + infra flows (#553)
Union of both branch evolutions: Compose adoption drills (check-compose-adoption
staging, MOCK_ADOPTION_* modes, adoption/long-service/overlay cases) plus the
infra-compose staging and timescaledb resolver drill assertions. Fixes the
Workers-and-Compose gate failing on this PR.
Verified locally: 16/16 drills pass.
---------
Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
Co-authored-by: hermes-gadget <284726080+hermes-gadget@users.noreply.github.com>
- Lazy path resolver: geographic hop reconstruction from path_hashes without
pre-training data; fixes observer self-hash trimming bug
- ACL watcher worker: auto-provisions Mosquitto ACL entries when PUBLISH is
denied for a known user; eliminates the recurring gnomemoe ACL removal issue
- connectionMonitor: increase historical scan to 50 MB; fix OOM by streaming
lines instead of buffering; fixes missed backfill on restart
- Feed page: replace path-beta with lazy paths; add clickable node markers
showing name and public key; observer column nowrap; summary text unclipped
- PacketFeed: GRP-only message store protected from ADV eviction; scroll to
bottom on new message; 24-hour message backfill on initial load
- getRecentMessages: separate DB query for last 50 GRP messages last 24h
- getPacketDetail: new endpoint for full packet detail including observations
- Grafana/Loki/Promtail observability stack with Docker log collection
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>