Display Manager technical notes
Display Manager is an unreleased digital signage and operational display platform in active development (Milestones M0–M3 complete), with no announced release date or price. These notes describe the stack, package format, cryptographic boundaries and architecture of the current build.
Desktop apps, shared rendering and acyclic layout
The platform is written in C# on .NET 10 using Avalonia 11.3 with compiled XAML bindings, CommunityToolkit.Mvvm and constructor-injected services via Microsoft.Extensions.DependencyInjection. View models hold all state and commands without referencing Avalonia UI controls or Entity Framework contexts, and the solution enforces a strict acyclic project graph: wire and package DTOs live in leaf project DisplayManager.Contracts, pure domain entities and tree/DAG/tier rules in Core, archive validation and ECDSA P-256 signing in Packaging, EF Core SQLite persistence and blob storage in Data, and the embedded Kestrel host in Host.
Reusable Tier 0–2 visual controls (Tier0TickerControl, Tier1CharacterGridControl and Tier2StaticCanvasControl) live in DisplayManager.Rendering, referencing only Contracts and Avalonia. Both the Multi-Display Emulator and the standalone Menu Board Designer reference Rendering for identical live previews while desktop applications never reference each other.
Progressive tiers and the .pwdisp / .pwtarget format
Remote Displays follow a progressive capability scale — Tier 0 (plain-text/ticker MCU), Tier 1 (coloured character grid), Tier 2 (static 2D graphics with styled text, vectors and raster images) and Tier 3 (full video and motion) — where a Tier K display natively supports Tiers 0..K. Authors create explicit tier variants inside a single .pwdisp ZIP archive; the Display Server never auto-converts across tiers and instead selects max(variantTier <= displayTier), strips unused variants and assets, and blocks displays that have no compatible variant. Schedules are never embedded inside .pwdisp files.
For Stage 2 delivery to Remote Displays, Tiers 0 and 1 receive flat, uncompressed cJSON-compatible JSON with a detached 64-byte raw IEEE P-1363 (r||s) ECDSA P-256 signature (zero ZIP decompression on microcontrollers; capped at 64 KiB for Tier 0 and 512 KiB for Tier 1). Tiers 2 and 3 receive a stripped, server-signed .pwtarget ZIP containing only the selected variant and its referenced assets. Every archive passes two-phase validation before acceptance: zip-slip, symlink, entry-count (512), compression-ratio (100:1 above 1 MiB) and size caps, strict archive completeness, exact byte-length and SHA-256 checks, strict JSON (JsonUnmappedMemberHandling.Disallow, depth 16), media magic-byte checks and pre-decode image header bounds (ImageDimensionGuard, capping decoded images at 16,384 px per side and 16,777,216 total pixels).
Zero-XML Strict Vector JSON and the Menu Board Designer
Neither the Display Server nor any Remote Display ever parses XML or SVG. Instead, the standalone offline Menu Board Designer (DisplayManager.Designer.MenuBoard) compiles standard .svg artwork from Inkscape, Illustrator or Figma into Multi-Layer Strict Vector JSON (assets/vectors/*.json) at authoring time using SvgToStrictVectorCompiler. XML parsing enforces DtdProcessing.Prohibit, XmlResolver = null, a 4 MiB file cap, max nesting depth 64, 4,096 XML elements, 8,192 traversal visits and 512 <use> expansions, flattening transforms, basic shapes, gradients and clip paths into validated SVG 1.1 path commands while stripping scripts, filters and external URIs.
Every compiled vector is checked immediately against StrictVectorValidator (capped at 2 MiB, 512 layers, 128 clip paths and 8,192 path commands). Customer menu projects save atomically as bounded .pwmenu.json files, generate Tier 0, Tier 1 and auto-paginated Tier 2 variants with live WYSIWYG preview, load customer ECDSA P-256 .pfx/.p12 signing certificates (bounded to 64 KiB with EphemeralKeySet and PackageDesignerSigningEku enforcement), and export atomically verified .pwdisp packages.
SQLite persistence, embedded Kestrel host and realtime channels
The Display Server stores its fleet tree (Root → { Displays, Unallocated }), composable Schedule and Realtime Channel acyclic DAGs, package registry and trust store in local SQLite via Entity Framework Core (short-lived IDbContextFactory contexts, AsNoTracking() reads, PRAGMA foreign_keys = ON, WAL mode, forward-only migrations and mandatory online SQLite backup before pending migrations). Raw .pwdisp archives and generated target payloads live in a content-addressed SHA-256 filesystem blob store with atomic writes.
DisplayManager.Host embeds an ASP.NET Core 10 Kestrel minimal API (using Microsoft.AspNetCore.App with no UI dependencies) over mutual TLS. Upstream applications publish and clear live updates via POST/DELETE /v1/realtime/channels/{channelId}/updates (64 KiB body cap, monotonic sequences, +5 minute future-skew guard and 24-hour TTL cap). Downstream Remote Displays use /v1/displays/me/heartbeat, sync, payload and Server-Sent Events (events) with live CRL checks and per-display/global subscriber caps. A File Drop adapter exports server-signed payloads to pickup folders, and an in-memory serial stub bus exercises RS-485/RS-232 workflows ahead of physical serial framing.
Two-stage ECDSA P-256 custody and chained server federation
A private Display Network CA issues ECDSA NIST P-256 certificates with strict Extended Key Usage (EKU) separation: PackageDesignerSigningEku (...59999.1.1) for Stage 1 .pwdisp signing, DisplayServerPayloadSigningEku (...1.2) for Stage 2 payload and federation signing, RemoteDisplayClientEku (...1.3) for displays, UpstreamRealtimeClientEku (...1.4) for live publishers, and ChildDisplayServerEku (...1.5) for chained servers. Watched folders require a valid Stage 1 signature; manual import defaults to signed with an explicit SHA-256-pinned unsigned override.
Chained Child Display Servers connect outbound to a Parent Server over HTTPS / mTLS + SSE using /v1/federation/children/me/{heartbeat,sync,packages,events}, presenting ChildDisplayServerEku and validating the Parent’s server certificate against live revocation snapshots. Parent servers forward multi-tier .pwdisp archives wrapped in FederationPackageSignatureEnvelope headers; Child servers store parent-assigned Schedules and Channels as locally read-only entities (blocking local publisher writes with HTTP 403) that can be auto-assigned to Displays or composed as local Sub-Schedules and Sub-Channels. Persisted OriginServerId and HopChain provenance across composed DAGs enforces MaxFederationHops = 8 and rejects multi-hop cycles immediately.
Multi-Display Emulator and planned milestones
DisplayManager.Emulator spawns concurrent virtual Tier 0–3 displays sharing the exact Stage 2 signature verifier, verified local cache, offline simulation and TTL staleness logic without referencing Data, Host or Server. An automated xUnit suite (341 tests) exercises real temporary SQLite files, adversarial archive and SVG fixtures, loopback Kestrel mutual-TLS/SSE and multi-hop federation pipelines, and headless Avalonia UI views.
Milestone M4 will add the Tier 3 video playback engine, framed RS-485 / RS-232 serial packet delivery with CRC and chunked ACK/retransmit, reference Tier 0 C/C++ microcontroller firmware (cJSON + mbedTLS), and production .NET 10 Raspberry Pi and Mini PC display runtimes. Milestone M5 will add an optional DisplayManager.Bridge.IoTDashboard adapter speaking IOTDashboard.Server’s /v1/bridge mutual-TLS protocol with strict process and database isolation.