Skip to content
tcurtsingerPublic

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mistr

Mistr is an installable desktop radar application for inspecting live storms without tile-bound playback or ambiguous data state. It acquires public NEXRAD data, decodes and normalizes radar sweeps in Rust, transfers a compact binary representation across Tauri IPC, and renders GPU-resident observations in a custom MapLibre WebGL layer.

The map remains fully interactive while playback behaves like a bounded game loop: recent observations already resident on the GPU can advance without requesting or repainting hundreds of radar tiles.

Status

Alpha selected-site radar. The normal interface is radar-first: choose a NEXRAD site, inspect reflectivity, play or scrub its bounded recent-observation loop, and see the measured time and numeric age of the frame that actually painted. Windows is the Alpha release platform; the shared Tauri application remains compatible with a later macOS build.

The underlying engine has passed the historical Phase 0 through 6 feasibility gates on the primary Windows workstation, including 20-frame GPU-resident playback, bounded live Level II acquisition, strict Level III N0S decoding, and visible-first WebGL context recovery. Those phase records remain as engineering evidence rather than product UI.

National radar remains an internal, phased milestone rather than a visible feature. Merged Phase 1 supplies the shared source coordinator. The active National Phase 2 branch adds fixed-host NOAA MRMS acquisition, strict GRIB2/PNG numeric decoding, value-aware overview generation, and PackedGrid v1 transfer only through a hidden diagnostic. It does not include a National renderer, timeline, history product, or source control.

Every launch opens current radar for the restored camera (National for a wide view, the covering Site when zoomed in), and a fresh profile opens National over the whole country. No bundled archive scan is shown; the pinned KTLX archive loop is used only by diagnostics. The single searchable picker exposes the 155 operational WSR-88D sites qualified against the fixed live provider, including Alaska, Hawaii, Guam, and Puerto Rico. Test, TDWR, decommissioned, and provider-absent identifiers are excluded. After current live radar paints, Mistr loads up to 19 safe preceding volumes into a chronological GPU-resident loop, then requests exact-next future volumes. Retained frames are reused, only the added frame is uploaded, and the oldest is evicted at the bound. See Bounded Rolling Live History for the exact ownership contract, Alpha UI and Live-Site Hardening for the catalog decisions, and Visible-First Startup and Recent Backfill for the startup correction.

Reflectivity uses the classic NWS colors, drawn as NWS draws them: one solid color per 5-dBZ band, fully opaque from 5 dBZ, with nothing drawn below 5 dBZ. Native measured dBZ remains available to inspection. The existing map graph keeps matte water, local streets, buildings, railways, water names, and secondary places below radar; only the coastline and large-lake shores, county, state, and country boundaries, major routes and their identifiers, towns from z8, villages from z10, and important labels remain above it, each line over a dark casing. Only the ocean and large lakes are outlined; ponds, rivers, reservoirs, and split water polygons are not, because their vector-tile seams change with zoom. Motorway, trunk, and primary segments share a continuous style instead of swapping visibility and weight at hard zoom boundaries. Far regional views retain coherent interstate and U.S.-highway networks while state and unnetworked routes fade in with the detailed source graph. This preserves legibility without globally lowering radar opacity, adding another provider, or claiming meteorological clutter classification. See Radar Rendering Quality.

Start with the product definition, design system, current Alpha state, and documentation index.

Local development

Prerequisites:

  • Windows 11 with the Microsoft Edge WebView2 runtime
  • Node.js 24
  • Rust stable with the MSVC target
  • Microsoft C++ Build Tools required by Tauri
npm ci
npm run verify
npm run fixture:download
npm run tauri:dev

Build local Windows installers with:

npm run tauri:build

The unsigned NSIS and MSI outputs are local build artifacts under src-tauri/target/release/bundle/; they are not committed to the public repository.

Alpha release-readiness checks are intentionally separate from the historical engine gates:

npm run test:alpha:readiness
npm run test:alpha:soak
npm run test:alpha:installers
npm run test:alpha:clean-machine
npm run test:alpha:sleep-wake

The sleep/wake check waits for a real user-triggered Windows sleep cycle and reconnects its diagnostic channel after wake. The clean-machine command requires Windows Sandbox or an equivalent clean Windows 11 environment. See Alpha Release Readiness for the exact evidence and remaining unsigned-package decision.

Downloaded radar data and generated diagnostics are intentionally ignored by Git. No AWS credentials are used: source observations come from fixed public Unidata NEXRAD and NOAA MRMS endpoints.

Engineering validation

The numbered phase checks below preserve the reproducible evidence used to qualify the radar engine. They are not user-facing product modes.

Phase 1 decoder check

After npm run fixture:download, produce the Mistr diagnostic with:

cargo run --locked --manifest-path src-tauri\Cargo.toml --bin mistr-decode -- fixtures\cache\KTLX20240520_230512_V06 --product reflectivity --json artifacts\phase-1\rust-reflectivity.json --text artifacts\phase-1\rust-reflectivity.txt

The independent Py-ART procedure is documented in scripts/oracle/README.md. Reviewed, public-data-only reference reports are committed under fixtures/expected/phase-1/; arbitrary local diagnostics remain ignored.

Phase 2 wire checks

Generate the committed cross-language golden vector:

cargo run --locked --manifest-path src-tauri\Cargo.toml --bin mistr-wire -- --golden --output fixtures\expected\phase-2\packed-sweep-v1.bin --json fixtures\expected\phase-2\packed-sweep-v1.json

After npm run fixture:download, encode and validate the real Phase 1 KTLX sweep without committing its bulk output:

cargo run --release --locked --manifest-path src-tauri\Cargo.toml --bin mistr-wire -- --archive fixtures\cache\KTLX20240520_230512_V06 --product reflectivity --output artifacts\phase-2\ktlx-packed-sweep-v1.bin --json artifacts\phase-2\ktlx-wire-report.json

The accepted byte layout is documented in PackedSweep v1, and the packaged-runtime evidence is in the Phase 2 report.

National Phase 2 acquisition and PackedGrid diagnostic

Run the real release/WebView2 diagnostic with:

npm run test:national:phase2:packaged

It discovers and strictly decodes the latest 30 exact CONUS MergedBaseReflectivityQC_00.50 observations, validates each factor-4 PackedGrid v1 working set, proves that a 30-observation extension stays below the radar memory target without changing schema or renderer model, transfers the newest manifest and all chunks through the existing global two-credit broker, and restores the unchanged Site diagnostic loop. The command exposes no normal product control. Downloaded observations and the generated report remain ignored.

The small cross-language fixture and independent multi-season numeric oracle are committed under fixtures/expected/national-phase2/. Regenerate the oracle only in the ignored .oracle-venv with npm run oracle:national; the script downloads large NOAA samples only into fixtures/cache/.

Phase 4 packaged playback gate

After downloading the 20 public fixtures, run the real release/WebView2 4K gate:

npm run test:phase4:packaged

The runner performs two 1,000-transition interaction scenarios and five atomic loop replacements per scenario. It also performs 19 incremental history updates, forced bounded eviction, oldest/newest scrubbing, and a real WebGL context reset before each hot-path workload. Before stabilized heap sampling, it waits for MapLibre's public idle signal and then performs the existing two explicit garbage collections; thresholds are unchanged. Its ignored evidence is written under artifacts/phase-4/. The contract and results are documented in the resident playback decision, rolling-history decision, and Phase 4 report.

Phase 5 live gate

Run the release/WebView2 live acquisition, site-supersession, exact-next two-observation history, direct-scrub, and 4K GPU-paint gate with:

npm run test:phase5:packaged

Run a source-only observation probe without the WebView with:

cargo run --release --locked --manifest-path src-tauri\Cargo.toml --bin mistr-live-probe -- --site KTLX --fresh --timeout-seconds 900 --output artifacts\phase-5\live\KTLX.json

The probe uses anonymous fixed-host HTTPS only. Raw chunks, executables, provider responses, and packaged screenshots remain ignored; the reviewed latency dataset contains only bounded public metadata and hashes. See the real-time decision and Phase 5 report.

Phase 6 N0S and recovery gate

Download/verify the fixed public Level III and IEM references, then run two packaged WebView2 cold-start passes:

npm run fixture:verify:phase6
npm run test:phase6:packaged

This exercises real WebGL context loss/restoration, visible-first then loop rehydration, minimize/restore, offline resident playback, DPR 1/2 rendering, explicit N0S product labels, and restart. Detailed runtime artifacts remain ignored. See the Phase 6 decision and Phase 6 report.

Public-repository rules

  • Never commit credentials, environment files, signing certificates, local debug bundles, or downloaded radar archives.
  • Keep test-data provenance and checksums in fixtures/manifest.json; keep the bytes in fixtures/cache/.
  • Run npm run public:check before every commit.
  • Treat output under diagnostics/, artifacts/, and benchmark-results/ as private until reviewed.

See SECURITY.md for reporting and handling security issues.

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages