Skip to content

Risk Register

Note

Risks and technical debt gathered from the > [!danger] and risk callouts across the vault, with where each is discussed and what is planned. A new risk gets a > [!danger] callout in its own note and a row here (AGENTS > Hard rules rule 6). The first version was assembled on 2026-10-27 from the notes as they stand; no row has a probability or impact score, because none has been measured.

ID Risk Source Mitigation, and its state
R-01 One hung Python callback blocks every surface (single process, one loop) ADR-0003 Process Model, Process Model and Threading Conventions, the send entry point, thread helpers, a watchdog and a supervisor. None is built; the watchdog and crash recovery belong to 60 Quality (not written) Spec written 2026-11-17 (draft): a heartbeat, a stall named at 2 s, a systemd WATCHDOG=trigger and WatchdogSec=15 restart at 10 s, the registry written within 1 s of a change. Not built. See Crash Recovery and Watchdog.
R-02 Two input sources: tre dialogs and layer surfaces handle seat, focus and clipboard separately, so behaviour can differ TRE-REQ-001 Layer Surface Window Test both paths for clicks, focus and clipboard. Not yet tested together
R-03 The shell's own UI layer grows without limit ADR-0006 Shell Independent of Tesserae UI, ADR-0007 Shell UI Layer Keep it to what bars, popups, OSDs and widgets need (Building Blocks, V1 Widgets)
R-04 The expression language grows into a programming language that runs from a configuration file ADR-0008 Tesserae Expression Language Keep it to values and structure with a sandbox; owned by the TEL project
R-05 Two front-ends (TDL and Python) must give the same result, so every feature is built and tested twice ADR-0007 Shell UI Layer, Python Builder A parity test per feature; not yet designed
R-06 The shell edits user files (it injects the UID), so a bug can damage a file the user wrote ADR-0007 Shell UI Layer Back up before the first write; the rebuild-from-UIDs rule helps recovery (Settings File)
R-07 A top surface and a Plasma panel share KWin's Above layer, so a Bar may not win Surface Types > Fullscreen and maximised windows (decided 2026-10-27), ADR-0012 Keeping the Shell Above Plasma Panels Do not rely on stacking in v1; opt-in KWin rule; test on KWin 6.8.1
R-08 A fullscreen window does not cover overlay surfaces; the shell needs a KWin script to detect fullscreen ADR-0012 Keeping the Shell Above Plasma Panels A small KWin script reports fullscreen to the shell; install and enable step is a delivery item; KWin scripting API may change
R-09 A KWin window rule changes the user's desktop settings ADR-0012 Keeping the Shell Above Plasma Panels Opt-in, shown to the user, written as one group, removable; never automatic
R-10 A seam between separate surfaces that move together (up to one frame) Surface Types > Risks, Frame > Hosted melding (decided 2026-10-27) Hosted melding draws a melded entry in the Frame's surface; measure the remaining cases in testing
R-11 Placing a Panel against another surface is computed by the shell, and can lag the target by up to a frame Panel > Attachment geometry (decided 2026-10-27) Recompute on every target move; measure
R-12 Coupling to tre: the shell needs 0.5.9 or later, and tre's API can change Vault Reference > The projects, 80 Requests Check live docs before citing; engine requests for gaps; version check at start
R-13 Third-party dependencies (dbus-fast, loguru, TEL; jsonschema was dropped from run time, ADR-0020) go unmaintained or break on a new Python ADR-0009 D-Bus Client Library, Logging with Loguru, JSON Schema and Editor Support Pin and test per release; jeepney is the D-Bus fallback
R-14 Python 3.14 as the minimum narrows where the shell installs ADR-0007 Shell UI Layer > UIDs and the registry (2026-10-25) Accepted by the maintainer (2026-10-25)
R-15 The Frame's input region can reach the 256-rectangle cap, and a 4K Frame with many joins is untested Frame > Integration tre coarsens the bands; test after the v1 build. Measured 2026-11-06 on KWin at 1080p: the ring is cheap and idle (Frame > Measured on KWin (maintainer, 2026-11-06)); 4K and many joins are still untested
R-16 Shadow margins add buffer memory to every surface with a shadow, and shadows must stay out of the hit shape ADR-0010 Surface Shadows Compute the margin from the shadow; test the hit shape; measure at Frame size
R-17 The design is KWin-first; protocol and layer behaviour on other compositors is untested ADR-0001 Shell Surface Strategy, V1 Scope Deferred to the testing phase; other compositors are not v1
R-18 A corrupt or moved registry loses identities Settings File, ADR-0007 Shell UI Layer > UIDs and the registry (2026-10-25) Rebuild each record from the UID in its file, with a warning; the rules for the rebuilt record are open
R-19 User Python runs in the shell's process with the user's rights, so a bad module can read files or hang the shell Module Contract The security model is not written (60 Quality); keep modules to the documented context; whether to sandbox is not decided Spec accepted and posture A built 2026-11-17 (tess-shell PR #63): trusted code, controls 1 to 8, the user-facing statement in the guide and README; a performance test of a process per module (Module Process Test) is being built. Open: path allow-list, sibling imports, DEBUG content (Security Model questions 4 to 8). See Security Model.
R-20 A shell language of our own (TDL) needs a parser, errors, formatter and editor support, and loses the YAML language server's help; its grammar could grow into a scripting language ADR-0014 Shell File Language, ADR-0011 JSON Schema for Shell Files TDL is structure-only with expressions in TEL (accepted 2026-10-29); the same shell compared in Shell File Syntax Comparison; no language server in v1, a highlighting grammar is open
R-21 A monitor chosen by Index: (position in the compositor's output array) can change to another screen on hot-plug, wake or reboot ADR-0014 Shell File Language > Consequences Decided 2026-10-29: Monitor also accepts Connector: and Description:; Settled for KWin 6.8.2 on 2026-11-06: with Index config, unplugging HDMI-A-1 made Main and Side swap screens, so Index follows the screen order as D74 built it; Connector and Description do not move (M3 Build Log). Closed
R-22 A Terminal block could start a process from a configuration file Block Reference > Terminal Proposed: TDL has no Command key; a module's Python attaches the process; post-v1
R-23 The shipped icon sets carry Apache 2.0 (Material Design Icons, with "some icons" under their own licences) and MIT (Material Line Icons) notices that must be redistributed Block Reference > The Icon Set Files (2026-11-01) Licence texts and spdx fields are in the icon folder (2026-11-01); ship both texts in the package and keep a per-icon list if Pictogrammers' exceptions need it (delivery notes)
R-24 A looping animated icon keeps its window redrawing at the display rate, and tre has no occlusion handling, so a hidden window keeps redrawing (about 30% of a core for one icon on software drawing; GPU not measured) TRE-REQ-008 SMIL Animation in SVG Nodes > Built in tre (Reported 2026-11-02) v1 ships only static icons; before mli ships, stop loops on hidden or collapsed surfaces, cap the number of loops, and ask tre for a sample-rate cap; tre's occlusion fix (#246, local branch) pauses hidden windows; on KWin the freeze did not reproduce, and one looping icon cost 4.0% of a core on RADV; the open gap is tre #247 (timers and call_soon wait while every window is hidden)
R-25 Global shortcut registration through org.kde.KGlobalAccel has not been tried from a non-KDE (Python) client, so the launcher key may not register or may not show in System Settings Global Shortcuts > What the Service Offers (Read 2026-11-02), ADR-0005 Global Shortcuts The commands work with no registration (tesserae-shell toggle launcher from a KDE custom shortcut); a throwaway-component test needs the maintainer's permission (Global Shortcuts > Open Questions); the GlobalShortcuts portal is the fallback (Portals)
R-26 An unsandboxed shell needs a portal app id that matches an installed .desktop file, or portal calls such as BindShortcuts can fail Portals > Identity of an Unsandboxed Caller The package ships io.github.mindderivative.TesseraeShell.desktop and the shell calls Register first; a delivery item, not yet written
R-27 While every Wayland window is hidden, tre's timers and call_soon wait (tre #247), and the shell's reveal path (KWin script, shortcut, control call) reaches the loop through call_soon, so a shell whose surfaces are all hidden might not reveal them TRE-REQ-008 SMIL Animation in SVG Nodes > Built in tre (Reported 2026-11-02), Process Model and Threading Reported by tre 2026-11-02, not reproduced by the shell; on KWin hidden layer surfaces keep frame callbacks, so the case may not arise; ask tre whether #247 covers layer surfaces, and test with all Bars hidden when the code exists
R-28 A Bar with a Gap reserves zone plus margin: Height 32 and Gap 8 reserve 48, not 40 Bar > Mapping to tre Measured on KWin 6.8.2 and sway (2026-11-04); the maintainer kept the rule, so the Gap shows on both sides of the Bar; the docs say 48. Closed unless a compositor differs
R-29 A change to one window made in another window's callback is not drawn until something else wakes the loop (tre), so a Panel hidden or shown from a click on the Bar looked stale on KWin TRE-REQ-012 Draw a Window Changed in Another Window's Callback, Panel > Hide and Show (Decided 2026-10-27) Worked around: the shell queues a wake after every change to a window, with a test that fails without it. The kept-surface hide route is the default again (2026-11-06). TRE-REQ-012 is released in tre 0.6.2, so the workaround can go once the shell runs on it (2026-11-07). Closes when the shell is on 0.6.2 or later and the workaround is removed
R-30 A shadowed Popup's transparent margin takes clicks and keeps the popup about 30 px from the screen edge on KWin; Escape does not close a popup; the top-Bar placement is 4 px off the button Popup > Found on KWin (maintainer, 2026-11-06), TRE-REQ-007 Popup Body Geometry, TRE-REQ-014 Popup Input Region Closed 2026-11-07. Escape closes a popup (D65); placement, gap, edges and flip pass with tre 0.6.3's PopupWindow(geometry=) (D93); the shadow margin passes clicks through since tre 0.6.5's PopupWindow(input_region=) (TRE-REQ-014 Popup Input Region, D99). The maintainer confirmed on KWin, 2026-11-07: "shadows have click through now and works well"
R-31 The Frame's melded-Panel animation looked poor on KWin: the join was a 90 degree angle while sliding and then a chamfer, the join edge slightly pixelated, a dock overlaid a neighbouring button, and content sat top and left (maintainer, 2026-11-06) Frame > Found on KWin: the look is not good enough (maintainer, 2026-11-06), Frame > KWin Retests and the Join Choice (maintainer, 2026-11-07), M3 Build Log D84, D85, D95, D97, TRE-REQ-015 Linear-Light Edge Blending Mostly fixed. The second look on 2026-11-07 passes ("much better"); all five join options were compared on KWin and the maintainer chose PARAM as the default, SMIL second. Open: the border looks about 10 to 15 % thinner on the rounded parts, exact geometry and coverage (D97), cause tre's sRGB edge blend. tre answered TRE-REQ-015 on 2026-11-08: an engine-wide linear option is possible but large; the maintainer chose an interim, a shell-side fill shader that blends the Frame band in linear light. Built 2026-11-10 (code session's report, D112, commit f34bcd9): Debug { Frame_Blend: SRGB \| LINEAR }, default SRGB; in its sway numbers the shader recovers about 60 to 65 % of the deficit (TRE-REQ-015 Linear-Light Edge Blending > Option 2 built (code session's report, 2026-11-10)). The code session reports (2026-11-11, not confirmed here) that LINEAR is now the default after the maintainer's KWin confirmation of borders and peek hover, click and drag, with two bugs fixed (D114, D115 in the M3 Build Log). The maintainer judges it on KWin at 1.0 and 1.5. Closed 2026-11-13. The maintainer judged the shader on KWin on 2026-11-12 ("great with LINEAR on all tests and variants, exactly what I wanted", D114; peek hover, click and drag good, D115) and he confirmed in chat on 2026-11-13 that it passes at scale 1.0 and 1.5, that LINEAR is the permanent solution and the default, and that the Frame look all looks good now. The engine-wide option is not pursued
R-32 The Frame and Panels did not switch with the Plasma light and dark theme in the final KWin pass (maintainer, 2026-11-08). The M3c Frame "Theme" line had passed on 2026-11-06 M3 Build Log M3 Final KWin Pass, B1 Closed 2026-11-08. The code session reports it found hard-coded colours in the demo config and fixed the generator (peer message, not checked in the vault). The maintainer confirmed in chat on 2026-11-08 that M3 is completed, which includes the final pass
R-33 A physical monitor hot-plug (cable plugged or pulled while powered) is never tested on real hardware: the maintainer will not do it, because of the risk of an electrical surge ruining a monitor (2026-11-17). Hot-plug and output changes are tested only on virtual outputs M7 Brief, Hand Checks Open, accepted. Mitigation: the sandbox adds and removes virtual outputs in KWin (kwin_wayland --virtual) and sway and checks that surfaces close and return; the maintainer's own tests on his real monitors are the only real-hardware evidence. Earlier, in the M3c hot-plug check of 2026-11-08, he did not unplug a cable: he did a hard power-off and power-on of the monitor and recorded that instead (M3 Build Log, "Result (maintainer, 2026-11-08)"). On 2026-11-17 he repeated and widened it: he switched monitors off and on and removed and restored their power, and everything worked as expected, with the shell coming back when the monitor was turned on and when power was plugged in (his report, 2026-11-17: two monitors; the shell version was not stated); no test, kit or session ever asks him to plug or pull a monitor cable or power