Galaxy Shell / docs
Docs / Interface and features

Theme packs: Office, Galaxy and Ninja

openspec/changes/theme-packs/design.md · Edit on GitHub ↗

On this page

Theme packs: Office, Galaxy and Ninja

Doc status: partly landed. Landed: phase 0 (the radii of the entry, the radius and motion tokens of the theme files, the motion preset module, the pinned tokens of the protected surfaces; 2026-11-11) phase 1 (Galaxy, the shape, except the nested captures of task 3.4; 2026-11-12) and phase 2 (motion on the web side; 2026-11-12), and phase 4 (the picture: the wallpaper of the entry, wallpaperByTheme, the migration and the skyline effect, except the nested proof of task 6.2; 2026-11-13). Phase 3 (task 5.3 open) is tracked in tasks.md. Not landed: phases 4b, 5 and 6. Checked 2026-11-13.

Status: specification with phases and acceptance criteria, after one adversarial review of the plan on 2026-11-11. Phase 0 landed the same day and changed the contract text of ui-themes.md, profile-ui-themes.md, css-structure.md and motion.md with it; no other phase is built. The current contract of the window themes stays ui-themes.md, of the animation motion.md, and of the compositor effect packages themes.md. Where this doc and those differ, those win until a phase below lands and updates them in the same commit.

1. What the owner asked (2026-11-11)

  • "eu gostaria de separar o tema office e o tema galaxy com transições próprias, me ajude a criar a especificação dos dois temas e seus efeitos, inclusive no tema office podemos talvez usar umas imagens de prédios, ou coisas mais simples, no tema galaxy eu quero redefinir a UI para ficar bem glassmorphic e feitas com containers arredondados, como o padrão da apple, sóo que bem full arredondado".
  • "eu queria desenvolver mais temas, pensei em um que fosse baseado no Japão e ninjas, pensei na janela tendo uma transição bem da hora nesse sentido".
  • On the look of that theme, with two reference pictures (a dark teal HUD and a flat cyan poster): "O layout shinobi na verdade é mais um cyber samurai, exemplo de UI seria algo mais assim".
  • On the close of that theme: "Pode ser algo parecido com o corte da katana, na verdade estava pensando em um movimento rápido onde a janela pula na frente de forma rápida e algumas expressões de velocidade são feitas em desenho, tava pensando em algo mais abstrato, não sei explicar, me ajude a refinar".

Answers to the questions of that day:

Question Answer
Galaxy replaces Vidro (glass) or is new Replaces it
Imagery of Office A drawn skyline (vector, tinted by the profile color)
Wallpaper and transitions follow the theme Yes, and a choice of the user by hand wins and stays

2. The problem today

A window theme (uiTheme) decides the layout and the materials of the system surfaces, and little else. From the inventory of 2026-11-11:

  • No transition changes with uiTheme. Every timing is a base token (--motion-fast 120 ms, --motion-base 180 ms, --ease-standard, host/theme.css), a JavaScript constant (partSpring and opacityRamp of ui-src/host/ui/motion.jsx, the notification cards, the 300 ms card zoom of host/workspace-zoom.js), a Rust constant (the reveal of 700 ms in window_finish.rs, the thumbnail of 280 ms) or a value of the compositor effect package and of motion_timing.
  • What the compositor gets from the theme is glass only: whether the surfaces have blur, and the bar material (blur, refraction, rim). No timing, no effect, no radius.
  • Neither theme file sets a radius. The six role tokens (--radius-tiny 4, --radius-item 8, --radius-control 10, --radius-surface 16, --radius-sheet 20, --radius-pill 999) are the same in both. The core fixes 16 px for the protected glass panels (web-panels.cjs) and for the application windows (compositorWindowRadius of core/profile-color.js).
  • A theme cannot bring an image. Only three tokens take url(), as data: only, and every rule that paints them is off under material-solid. The wallpaper (wallpaperEffect, wallpaper.png) is separate from the theme.
  • Minimize, restore, the showing of a protected panel and of the Start menu, and the change of theme itself have no animation.

So today a theme is a skin. The owner asks for a theme to be a character: its own shape, its own material, its own way of moving and its own picture.

3. A theme pack

A theme pack is one entry of core/ui-themes.js with more fields, plus the files that the entry names. It stays a closed list in the checkout: only the protected settings choose it, through /api/ui-theme, as today. This spec adds no route, no agent tool and no panel id.

Axis What it holds Where it lives
Layout taskbar or bars (unchanged) the entry
Material solid or glass, shadows, veils (unchanged) host/ui-themes/<id>.css
Shape the radius role tokens host/ui-themes/<id>.css
Shape panelRadius, windowRadius (what the compositor clips) the entry; the core sends them
Motion --motion-* and --ease-* tokens host/ui-themes/<id>.css
Motion the variants of the Motion parts ui-src/host/ui/motion-presets.js, one per theme
Effects workspace transition, window close, later window open a built-in package native/smithay/themes/<id>
Picture the default wallpaperEffect the entry

Rules of the pack:

  1. One choice, one character. Choosing a theme applies all its axes. There is no separate selector of "motion style" or "corner style".
  2. The wallpaper follows, the hand wins. A theme names a default wallpaperEffect. When the user picks another one in Papel de parede while a theme is active, that choice is stored for that theme (wallpaperByTheme[<id>]) and comes back whenever the theme does. A profile wallpaper.png keeps replacing the effect in every theme, as today. Details in section 7.
  3. The profile color is not part of the pack. It stays the user's, in every theme (color-palette.md). A theme may name a suggested color in its description; it never sets one.
  4. Built-in packages only, from a read-only root (below).
  5. Protected surfaces take nothing from a pack. The approval dialogs, the change review card, the lock screen and recovery keep their fixed palette, and they must also keep their shape and timing. Today that is not true: the lock and recovery pages use var(--radius-control), and the approval dialogs animate with --motion-base and --ease-standard, all of which a pack would change. Phase 0 pins them (section 8). The exclusions of motion.md, What does not use Motion, hold in every theme. No theme adds dragging between overview cards.
  6. Reduced motion is the same in every theme, and the same as today. With prefers-reduced-motion or workspace_motion reduced, every pack gives what the system gives now: no transform, the opacity behavior that each part already has (a message neither moves nor fades), and no compositor event (the skips of window-effect-slots.md).
  7. A shader that exists is not a validated effect (themes.md). Each effect below is exploratory until the owner accepts it in the live session.
  8. The camera timing stays the user's. motion_timing (cameraMs, cameraEasing, closeMs) is not part of a pack: the owner decided on 2026-11-10 that it is edited in a profile file, the command replaces the whole timing, and closeMs reaches only the built-in black-hole close. A pack sets the length of its own events in its package.

How a built-in package reaches the compositor

Today theme_select resolves an id under one root only, the profile themes directory (AGENT_NATIVE_THEMES_DIR or ~/.config/agent-native-os/themes), and nothing reads native/smithay/themes/ at run time. That directory is writable by anything that runs as the user, and the owner decided on 2026-11-10 that a package draws on application windows only after the approval of the protected host. So a pack cannot be "a folder that the core copies into the profile".

The change this spec needs in the compositor:

  • A second, read-only built-in root: the native/smithay/themes of the release that is running. A new typed command selects a built-in package by id from that root only. The existing select keeps resolving the profile root only.
  • The ids of the built-in root are reserved. create_theme already refuses a slug equal to a folder of native/smithay/themes; the same check refuses a profile folder of that name on select. A user who already has a profile theme called office, galaxy or ninja keeps the folder on disk and can no longer select it under that name; the release notes say so.
  • Approval story: a built-in package is distribution code. It reaches the checkout through the same review as any source change (the change review card for the agent, a commit for a developer) and is compiled with the release. That is the approval; no dialog is shown when a theme is chosen. This exception is for the built-in root only and is no path for create_theme or for a profile folder.
  • One source of truth: uiTheme of the profile state. The core sends the built-in selection at each connection to the compositor (login, core restart), as it sends motion_timing and visual_style, and the compositor does not write it to active-theme.json. A package chosen by hand on the control socket (scripts/smithay-effects.py select) holds until the next theme change or core connection.
  • A package approved through create_theme generates only overview-f9 passes, which no product view draws. It stays what it is today and does not replace the pack (open question 2).

The motion vocabulary

Each theme gives a value to the same events, so a table of one theme is comparable to another.

Event Drawn by Exists today Needs
Control feedback CSS tokens yes, same in every theme tokens in the theme file
Popup, tooltip Motion yes, opacity and scale only a variant per theme
Protected panel in CSS no animation see below
Notification card Motion yes, fixed a variant per theme
Message entry motion/mini yes, fixed a variant per theme
Window close compositor package slot window-close (manifest v4) one package per theme
Window open compositor fixed reveal of 700 ms slot window-open (not built)
Workspace switch compositor package workspaceTransition settings (v3) one package per theme
Overview card zoom Web Animations fixed 300 ms, radius 16 reads the theme tokens
Minimize, restore none no a new slot, out of this spec
Theme change none stylesheet swap section 7

Limits that shape the tables below:

  • Motion variants, not two constants. renderPopup animates only opacity and scale. A slide or an unroll is a new variant of that function, and Base UI keeps a closing popup mounted only while its opacity animates, so every variant keeps an opacity track. Each of the runtimes with Motion (the chat and the panels) reads the active theme from a computed custom property of the theme sheet (--ui-theme-id) when a part mounts, so a theme change needs no reload.
  • Protected panels. A glass panel blurs its whole window rectangle, and its page stays loaded while the host shows and hides the window. So a transform on main would leave the blur behind it, and a CSS animation would play once, at load. In this spec a panel entry exists only on a solid panel, as a CSS animation that the panel runtime starts again at each show (visibilitychange). A glass panel has no entry until the alpha-shaped glass covers the panels (glass-alpha-mask.md, phase 4) or the compositor animates the window; neither is part of this spec. The Start menu of Office is translucent, so it counts as glass here.
  • Notification popups keep having no layout animation (their window fits main at once); only the history list closes its gaps.
  • No overshoot in the compositor. The easing of a workspace transition and of the camera takes coordinates of 0 to 1. A spring that passes its target exists only on the web side.
  • The theme takes the close ("O tema vence", owner, 2026-11-13). While the black-hole wallpaper reports a live sink, the window-close pass of the active theme draws (at the placement toward the sink) and the black hole is only the wallpaper; a theme with no close pass, as Office, keeps the built-in black-hole close. The wallpaper list says so next to that choice in Ninja and Galaxy.
  • A close pass has a cost for everyone who has one. The snapshot cache runs only while a close slot is active: up to eight windows of 1024x768, refreshed ten times a second. A large window is drawn from a downscaled snapshot, so an effect that enlarges it looks soft.

4. Office

Character: a tidy desk. Solid things with edges, which appear and leave without ceremony. Nothing bounces, nothing glows. The motion says "done", not "look".

Axis Value
Id, name office, Office (default, unchanged)
Layout taskbar, the 48 px bar of the Windows 10-style picture (unchanged, positioning only)
Material solid; only the taskbar and the Start menu translucent (unchanged)
Shape tiny 2, item 4, control 4, button 4, surface 6, sheet 8; panelRadius 6, windowRadius 6
Shadows none (unchanged)
Picture skyline (new wallpaper effect, below)

Motion:

Event Office
Tokens --motion-fast 90 ms, --motion-base 140 ms, --ease-standard cubic-bezier(0.2, 0, 0, 1)
Popup, tooltip scale 0.98 to 1 with no bounce, opacity 90 ms; out in 80 ms
Protected panel in solid panels rise 8 px in 140 ms; the Start menu has none (translucent)
Notification card slides in 12 px, 140 ms, no spring
Message entry rises 8 px, 140 ms, no stagger
Window close none: the window closes at once, as today without the black-hole wallpaper
Window open the reveal as today; with the slot, a short fade and scale, 160 ms (phase 6)
Workspace switch flat slide, 180 ms, no depth, card radius 6
Overview card zoom 200 ms, from radius 6

Office ships no window-close pass. A fade of 120 ms is not worth turning the snapshot cache on for every user of the default theme, and "it is simply gone" fits the character.

The skyline wallpaper

A new value skyline of wallpaperEffect, drawn by a module of the wallpaper page like the others (host/wallpaper-crystals.js, -nebula.js), so it needs no image file, no new CSP entry and no licensed photograph:

  • Three to four layers of building silhouettes in flat tones of the profile palette, the far layer lightest, over a vertical gradient of the sky. The shapes come from a seeded generator, so the same profile draws the same city, and each output gets a continuous strip.
  • It is a dark picture in both modes, as every wallpaper: the luminance cap of 0.09 holds in the legibility regions that the chat reports, and everywhere while they are unknown (color-palette.md, hex-crystals-wallpaper.md), through the same capLuminance of host/wallpaper.js. Dark mode is night; light mode is a blue hour, a lighter dark. The lit windows in the accent color are small and sparse, and they dim inside those regions.
  • The window lights do not blink; at most one changes every few seconds.
  • No camera on the Grid. On a Canvas workspace the layers take the parallax that the nebula takes, within the same bounds.
  • With reduced motion the picture is static.
  • When the output is too small for the layers to read, the module draws plain geometry: the gradient and flat shapes with no buildings.

5. Galaxy

Character: glass floating in space. Everything is a rounded capsule with depth behind it, and on the web side it moves like something with a little mass: it eases in, passes its mark slightly and settles.

Galaxy replaces Vidro. The id becomes galaxy; a stored uiTheme: "glass" reads as galaxy (uiThemeOf), so a profile that chose Vidro keeps a glass theme. The name Galaxy already names the family of the space wallpapers (themes/galaxy.md), whose page says today that it "does not introduce a new runtime theme package"; phase 1 changes that sentence.

Axis Value
Id, name galaxy, Galaxy
Layout bars: the top bar and the centered pill
Material glass over the blur of the compositor; refraction 1, rim 1 (unchanged values)
Shape tiny 8, item 16, control 16, button 999, surface 28, sheet 32; panelRadius 28, windowRadius 24
Shadows the edge highlights of today; no new outer shadow (a panel window ends at its surface)
Picture nebula

Shape rules, which make "full arredondado" hold together instead of looking inflated:

  1. Single-line controls are capsules. A new role token, --radius-button, holds 999 in Galaxy and the value of --radius-control in the other themes. Buttons, single-line inputs, chips, tabs, the search field and the switch use it. A capsule keeps a horizontal padding of at least half its height, so a long Portuguese label does not run into the curve.
  2. Boxes are not capsules. --radius-control stays a box radius (16 in Galaxy), because the shared parts map it to rounded-lg, which the popover, the select list, the textarea and the number field use: at 999 they would become ovals that clip their content. Phase 1 moves each shared part to the token of its role and updates the kitchen sink in the same change.
  3. Containers are concentric by token. The values are chosen so that a group inside a surface with the standard padding of 12 px takes --radius-item: 28 - 12 = 16. The sheet (32) is for the largest floating objects, the chat and the composer. The application windows stop at 24: the compositor allows 32, and above 24 the corner cuts into the content of applications that draw to their edge.
  4. Lists do not round each row. A row is flat; its hover and selection mark is a capsule inset by 4 px, and the focus ring follows that mark, not the row.
  5. One blur layer per stack. A popup over a glass panel is more opaque instead of blurring again, as today.

What blocks the shape today, and what the phase changes:

  • The core appends body[data-glass="true"] main { border-radius: 16px } to the CSS of every protected glass panel when the registry loads, and declares their glass with radius 16. The rule becomes border-radius: var(--radius-panel) (the alias exists in theme.css), and the declared radius comes from panelRadius of the entry, clamped to half the smaller side of the window, so the blur and the surface agree on a small panel. A test keeps the entry and the token equal. The glass rectangle of the compositor takes up to 64 px.
  • The application windows take windowRadius: 16 in every theme. The core sends the value of the entry in visual_style (0 to 32).
  • The bar pill already measures its radius from CSS, up to half its height.
  • The card zoom of the overview starts from a literal 16 px; it reads the theme.
  • The top bar stays a full-width strip in this spec. A floating capsule with a margin would change its declaration (margin, width: fill, exclusive), the work area of every window and the parity file native/smithay/testdata/host-declarations.json. That is a layout change and is open question 4.

Motion:

Event Galaxy
Tokens --motion-fast 140 ms, --motion-base 240 ms, --ease-standard cubic-bezier(0.22, 1, 0.36, 1)
Popup, tooltip scale 0.9 to 1 on a spring (visualDuration 0.28, bounce 0.25); opacity 120 ms; out in 120 ms
Protected panel in none (glass panels, see the limits above)
Notification card drops 16 px on the spring; in the history the others close the gap on the same spring
Message entry as today (16 px, bounce 0.2, stagger 40 ms)
Window close package galaxy: the window contracts to a point of light at its center that fades, 360 ms; with the black-hole wallpaper the pass still draws ("O tema vence")
Window open the reveal as today; with the slot, a point of light grows into the window, the close in reverse, 320 ms (phase 6)
Workspace switch the depth transition (the settings of Studio as the start), 320 ms, card radius 28
Overview card zoom 320 ms, from radius 28

The opacity ramp stays at 120 ms or less on every glass surface (rule 5 of motion.md): the character comes from scale and position, not from long fades.

6. Ninja

Character: floating islands of smoked glass with corners cut at 45 degrees over a photograph of Japan, sober and industrial ("cyberpunk discreto"): graphite and smoke, ivory text, one accent for focus and two fixed signal colors. Things are still, then they are somewhere else, and what the move leaves behind is a streak of light. No character is drawn, no weapon, no mascot: the theme is frames, cuts, lines and color.

History of the direction. On 2026-11-11 the owner named the theme Shinobi and corrected a first reading (ink on paper) toward a "cyber samurai" HUD: "O layout shinobi na verdade é mais um cyber samurai, exemplo de UI seria algo mais assim". On 2026-11-13 the owner settled it in question boxes (recorded in architecture-decisions.md, The third theme is Ninja, by commit 1368c70f of branch theme-open-4b, which reaches main with phase 4b), and those answers win over the 2026-11-11 text where they differ:

  • The theme is Ninja, id ninja, in every name; the effect names Shunshin (close), Fusuma (workspace switch) and neoedo (wallpaper) stay.
  • The direction is the owner's concept board (floating islands with 45-degree cuts, multicolour accents, glass with blur, vivid wallpapers) and two geometry references. The HTML mockup v3 was accepted for the top bar and the window frames ("Sim, barra e janelas"). The board and the mockup are not committed; this section states what the build takes from them.
  • The top bar is three separate islands, left, center and right, each as wide as its content, with no bar between them: "só vamos mostrar a barra onde tem conteúdo". This arrangement belongs to Ninja only.
  • Later the same day the owner sent concept board v3 (fb08bccc-image.png, not committed) and settled it, replacing the three palettes: one palette for the theme, Mint #4FE3C2 (focus, selection, active state), Coral #FF7B72 (actions, interaction highlight), Âmbar #F2B84B (attention, warnings, status), Marfim #EAE7DD (main text), Grafite #1C1F24 (surfaces, bars, panels) and Fumaça #0E1116 (background, glass, shadow). No palette choice in Settings. The profile color replaces the mint; coral and amber stay fixed.
  • The variants of the board are ambiances, four photographs on the same visual system: Urbana (dia), Natureza (montanha), Noturna (cidade) and Hirosaki (cherry blossoms at night), downloaded with the owner's OK under CC BY 4.0 and CC BY-SA 4.0, each with an optional light animated layer that stops under reduced motion.
  • A light version with the same geometry for the light mode; the board shows only the dark one, so its colors are proposed below and shown to the owner in a capture before they settle.
  • The window header: the title tab in the accent with a slash, square controls and a coral close.
  • The theme is listed as experimental in Settings until the owner accepts it.

What changed against the 2026-11-11 plan: the material is glass, not solid plates; the accent is the profile color with two fixed signal colors and fixed neutrals; the top bar is three islands instead of a full-width bar; the scanline texture (--surface-texture) is dropped, because glass already has its grain; the display face waits for a font file that the owner approves (below).

Axis Value
Id, name ninja, Ninja, marked experimental in Settings until the owner accepts it
Layout bars, with the top bar drawn as three islands (below) and the centered pill as a fourth
Material glass over the blur of the compositor, a darker smoked veil than Galaxy; no outer glow
Shape every container radius 0, corners cut at 45 degrees (the chamfer, below); panelRadius 0, windowRadius 0
Color the palette of the theme (below): the profile color as accent 1 (mint by default), coral and amber fixed, graphite neutrals
Picture neoedo, the photograph of the chosen ambiance (Urbana by default)
Mode follows the light and dark mode of the system; the light version is proposed below

The palette

The values are part of the theme entry in core/ui-themes.js, so the core is the one source of truth: accent (the default accent, Mint #4FE3C2), accents (the fixed accents 2 and 3, Coral #FF7B72 and Âmbar #F2B84B) and neutrals (the fixed neutral roles of each mode). They are inputs, not tokens that a part reads.

Role Dark (board) Light (approved by the owner, 2026-11-13)
Background Fumaça #0E1116 #ECE9E1
Surface Grafite #1C1F24 #F7F5EF
Control, hover #262A30, #2E333A #E2DED3, #D8D3C6
Text, muted Marfim #EAE7DD, #A9A69D Grafite #1C1F24, #555A61
Border #3A3F46 #C9C4B7
Glass veil Fumaça, 62% #EAE7DD, 80% (--glass-veil-strength)
Top bar islands Fumaça plate, Marfim text #EAE7DD plate, Grafite text
Text on glass Marfim (--glass-ink white) Grafite (--glass-ink, --color-on-wallpaper)
Accent 1 the profile color, or Mint its light tone (3:1 on the light plates)
Accents 2 and 3 Coral, Âmbar their light tones (3:1 on the light plates)

How it becomes tokens:

  • The roles. While Ninja is the theme the core builds the stylesheet of the theme (paletteStylesheet of core/server.js, through themePaletteCSS of core/profile-color.js, in the layer shell-profile, after shell-ui-theme): the accent roles from accent 1 through the tone recipe of a profile color, then the fixed neutrals of the entry over the tinted ones, so the surfaces stay graphite whatever the accent. Accent 1 is the profile color when the user chose one (profileColor.chosen, or a stored color other than the default) and Mint otherwise. The light mode also turns the text drawn on the glass dark: the frosted tint of the chat window reads --glass-ink (white in theme.css, the text color in the light mode of Ninja), and the light neutrals set --color-on-wallpaper and the top bar tokens, because the glass of that mode is light. A Matugen wallpaper palette stays stored and is not applied while Ninja is on (the neutrals and the photographs are the theme).
  • The three accents. The core appends --theme-accent-1 (focus, selection, active), --theme-accent-2 (Coral: actions, interaction highlight), --theme-accent-3 (Âmbar: attention, warnings, status) and --theme-on-accent, for light and dark mode, and --ui-theme-ambiance (the ambiance id, read by the wallpaper). In dark mode an accent keeps its exact value when it already has 3:1 against the dark plates; otherwise, and in light mode, its lightness moves until it keeps 3:1 against the plates as a line. --theme-on-accent keeps 4.5:1 on all three. In Office and Galaxy theme.css declares the three tokens as var(--color-accent), so a part that reads them is unchanged there. design-tokens.test.js scans host/ui-themes/*.css too, and the frame part sets no inline color, length or duration.
  • The compositor. visual_style takes accent 1 (the same choice as the roles) and, since phase 4b, the ink of the active mode; the color of the cache key of sendVisualStyle is that accent.
  • The agent. set_profile_color keeps working: in Ninja the color is accent 1. Its description says so, and that the surfaces and the two signal colors are fixed.
  • The ambiance. The protected route /api/ui-theme takes an optional ambiance beside theme, valid only when that theme has ambiances; the profile state keeps uiThemeAmbiance, a map from a theme id to an ambiance id, checked with own-property checks against both closed lists, as wallpaperByTheme is. An unknown or planted value reads as the first ambiance. Changing it re-sends the stylesheet revision, so the wallpaper reads the new ambiance. Settings shows the four ambiances under the theme while Ninja is on. No new route, no agent tool, no MCP entry.

The top bar: three islands

The bars layout keeps its windows: one top bar window across the output and the centered pill. What changes in Ninja is how the top bar draws:

  • The three groups that the top bar already has (top-bar-start: workspace dots and metrics; top-bar-center: date, clock and the bell; the indicators: tray, the panel launchers among them the desktop actions, network, Bluetooth, battery, volume and the quick settings with the power icon) become three islands, each as wide as its content. Between them the bar window is transparent: no plate, no line, no blur.
  • Each island is 44 px high, 4 px below the top edge of the output; the left and right islands are 12 px from the side edges and the center island is centered on the output. The core declares the top bar window 52 px high with exclusive 52 in Ninja, both from the entry field topBarHeight (40 when absent), ninja.css sets --top-bar-height: 52px, and each declaration token records the height so refreshGlass declares the bar again when it changes. The rule "Only the core chooses the bar height" (ui-themes spec) gains this value, and native/smithay/testdata/host-declarations.json keeps the 40 px declaration of the other themes.
  • Shapes: the left island is a parallelogram, both ends slanted at 45 degrees over the full height (the owner asked on 2026-11-13 for the outer end to be a full diagonal instead of the small corner cut of the mockup, which read as a rounded corner); the center island is a trapezoid, wider at the top, both ends slanted; the right island mirrors the left. The outer padding of a side island is half its height plus 16 px, so its first and last controls clear the slant. A ring of 2 px follows the whole outline, a gradient from one accent through the edge tone to another. Along each slant, inside the shape, three thin stripes in the three accents (the "///" hatch); the center island has two on each side. Inside, because any alpha outside the shape would turn into glass under the alpha mask.
  • The glass behind each island has its exact shape: the top bar already gets its glass from the alpha channel of its buffer (glass-alpha-mask.md, phase 4), so the cut and the slants clip the blur too. Nothing between the islands has alpha, so it gets no glass. There is no glow outside a shape: any alpha there would turn into glass.
  • The transparent gaps keep taking clicks, as the rounded corners of a bar do today; a click in a gap does nothing. Windows never sit under the gaps, which are inside the exclusive zone.
  • Contextual actions. Every control of the Galaxy top bar is in an island, with the same label, the same key in its tooltip and accessible name and the same target output (contextual-actions.md); the islands change no order and hide no action. The pill keeps its actions too, and on an older compositor the indicators move to the bottom bar as today (legacy of bars.jsx). When an island does not fit, the overflow of today applies (the capacity handles of the metrics and of the tray), so the center island never overlaps a side island: the side islands give way first, and on an output narrower than the three islands at their minimum the center island moves to the free space between them. A test asserts that every action of the top bar and of the pill is visible and operable in Ninja on a 1280 px output, in Grid and in Canvas, where the Grid-only and Canvas-only actions differ.
  • Each output draws its own islands, as each output draws its own top bar today.
  • The pill (the conversation bar) is a fourth island at the bottom, with both bottom-side corners cut at --chamfer. Its glass is a declared rectangle, not yet the alpha mask (phase 4 of glass-alpha-mask has not reached the pill), so in Ninja it declares radius 0 and its cut is the small --chamfer: the two triangles of the cut show the blurred wallpaper without the veil. That is a known limit, listed for the owner, until the alpha mask covers the pill; the same holds for the protected panels below.
  • The bottom bar as two islands (owner, 2026-11-13, option B of three mockups, "Duas ilhas"): in Ninja the bottom bar draws two parallelograms, both ends slanted, side by side with a gap: the workspace tabs in one, the controls (chat, new conversation, actions, the Grid/Canvas switch, organize) in the other. The tabs are parallelograms too; the active tab is a plate filled with the first accent and the text in --color-on-accent, the others a faint plate of the text color. The tabs island has the gradient ring from the first accent to the third; the controls island has the edge ring and two hatch stripes inside its right slant. The bar window is transparent between and outside the islands, so its glass must come from its alpha, as the top bar's does: the bottom bar declares the alpha glass on a compositor that reports capabilities.bottomBarAlphaGlass, only for a theme with bottomIslands (Ninja), and then the host reports no glass rectangle for it. On an older compositor the islands keep the declared rectangle of today, so the gap and the cut triangles show the blur without the veil, the known limit of the pill. The actions, their order, labels, keys and targets do not change (contextual actions), and the tabs keep their widths, overflow and the sliding indicator of today, without Motion.
  • In light mode the islands are a light smoked glass with dark text, and the ring and the hatch keep the accents of the light mode.
  • Under reduced transparency, forced colors or the solid material the islands are opaque plates of --color-surface with their ring and cut, and the gaps stay transparent (no plate, so no glass either).

The chamfer and the frame part

A corner cut at 45 degrees is what makes this theme, and CSS has no property for it. It is a new shared part of the component library, Frame (ui-src/host/ui/frame.jsx), not a rule repeated per component:

  • Tokens: --chamfer (8 px: controls, tabs, the pill), --chamfer-surface (14 px: panels, popups, the chat) and --chamfer-wide (22 px: the second corner of a window frame). They are 0 in the base theme.css, so in Office and Galaxy the frame is an ordinary box. A surface shorter than four times its cut uses --chamfer. The frame clamps every cut with min() to --chamfer-max (32 px) and to a quarter of the box, so a profile copy that sets a huge cut cannot cut a settings or quick settings panel away.
  • Which corners: a surface cuts the top-right corner with --chamfer-surface and the bottom-left with --chamfer-wide, as the window frames of the mockup; a button cuts its bottom-right corner with --chamfer; a segmented choice cuts the right end of each segment. Four cut corners on everything reads as a stop sign.
  • The cut is a clip-path polygon with the tokens inside calc(), and the 2 px ring along it is drawn by the frame itself (a layer inside the clip with an even-odd polygon inset by the ring width, compensated at 45 degrees), because a CSS border is clipped away at the cut. The ring is a gradient from the accent of the surface through the edge tone to a second accent; an inactive surface draws it in the edge tone alone.
  • The title tab. A surface with a title (a protected panel, the settings, the chat when it shows one) can carry the tab of the mockup: a plate in the accent of the surface above the top edge at the left, its right end slanted at 45 degrees, the title in small spaced capitals in --theme-on-accent, followed by the hatch. The title is real text, read once by assistive technology; the tab and the hatch are hidden from it. Under the tab the surface keeps its header row. The tab exists only where --chamfer-surface is not 0, so Office and Galaxy show their surfaces as today.
  • The accent of a surface. Fixed per role so the desktop shows all three accents: the chat takes accent 1, the settings and the protected panels accent 2, the notification cards and the popups accent 3. The application windows take one of the three from their application id (compositor, below).
  • The new part follows the library of shadcn-migration: it is a part of ui-src/host/ui/, with the semantic tokens only, beside the shadcn parts.
  • Circles stay circles. "Radius 0" is for containers. --radius-pill keeps its value, so a switch thumb, a slider thumb, a radio and an avatar stay round, and a radio never reads as a checkbox.
  • Focus. A clip removes an outline outside the control and a box-shadow ring, and the focus color is the accent, the same as the ring. In Ninja the frame draws the focus inside the shape, through one shared token: two lines, the text color of the surface and its background color, so it reads on a glass surface and on an accent fill alike, at 3:1 or more.
  • Forced colors and more contrast. Under forced-colors: active and prefers-contrast: more the frame drops the clip, the tab and the hatch and is a box with a real 1px solid CanvasText border and a Highlight outline for focus, as the other forced-colors rules of the host do.
  • The windows of the bars and of the panels are transparent outside the shape, as they already are outside a rounded corner: the wallpaper shows in the cut, and the cut triangle still takes clicks, as a rounded corner does today. A scrollbar inside a cut surface ends before the cut.
  • The protected panels declare their glass as a rectangle (radius 0) until the alpha mask covers them; their cut triangles show the blurred wallpaper without the veil (the limit of the pill above).
  • The conversation lives in the ShadowRoot, where :root rules do not reach. The chamfer of a message bubble is the inherited token, read by the seed style.css with a fallback of 0. A profile that replaced its style.css keeps square bubbles until it adopts the token.
  • The protected surfaces of rule 5 take no chamfer, no tab, no hatch and none of the three accents: the approval dialogs, the change review card, the lock screen and recovery keep their fixed palette and pinned shape. They render shared parts (the Button), so a CSS scan alone cannot prove it: the protected roots pin --chamfer, --chamfer-surface, --chamfer-wide and --frame-ring-width to 0, --theme-accent-* to their fixed accent and --font-family-display to the system face, as phase 0 pinned the radii, and the shared-part test of protected-surfaces.test.js gains these tokens and checks the computed values of a Button and a Frame rendered inside each protected root.
  • The kitchen sink. The project has no kitchen sink page. This phase adds one, a page of the browser harness (web-shell/scripts/test-ui-browser.js serves it; it is not shipped to users), that shows every shared part and the frame with and without its tab in each theme, each mode. The pixel assertions of this phase run on it.

The application windows

The application windows draw their own decorations (client-side) and the compositor clips them and draws the finish rim (visual_style). Ninja gives them the language of the mockup in two parts:

  • The cut and the ring, in this phase (after phase 4b). visual_style gains an optional window shape, chamfer with the two cut sizes (14 and 22 px, the corners of the frame part) besides the corner radius, and the three accents of the theme. The finish clips the window to the cut and draws its rim along the cut, a 2 px gradient from the accent of the window to the edge tone; the accent of a window is one of the three, from a stable hash of its application id, so two terminals share their color. The focused window has the full ring; an unfocused one the edge tone. A compositor without the capability keeps the rounded clip, and the core sends the shape only to one that reports it. This is a shape of the existing finish, not a new effect, and the protected shell surfaces never get it. The two uncut corners keep the corner that the application draws itself (GTK rounds it), and the ring follows it; the owner accepted this until the custom window frames land (2026-11-13).
  • The title tab and the hatch on application windows need a frame drawn in web technology per application window, with the application's title ("custom window frames", agent-direction.md): that is a separate change, listed as an open item for the owner. Until it lands the application windows have the cut and the ring and no tab.

Type and ornament

  • Labels: section headers, the tab titles and small labels are capitals with wide letter spacing, set by CSS (text-transform), so a screen reader gets the ordinary words; numbers (metrics, the clock) use tabular numerals. Both are tokens of the theme file over the faces the system already ships.
  • The display face (cut letters, as NINJA on the board) stays part of the theme, at --text-display (24 px) or larger, in a panel title, a settings section title and the welcome of an empty conversation, never in body text, labels, buttons, the conversation or the clock. A new token --font-family-display holds it; in theme.css and until the file lands it is the face of the system, so nothing changes where it is read. The file is a binary with a free license that allows bundling (SIL OFL or the like) and needs the owner's choice, as the wallpaper images do; when it arrives it brings: its license text in vendor/interface/host/fonts/, a unit test of its character map (every accented letter of Portuguese and the digits), the exception in the rule on binaries of AGENTS.md and agent-operations.md, a static route of core/route-table.js, the @font-face written by the core from the entry (displayFont, never from a theme file), font-src 'self' for the chat, bar and panel documents (the panels get their own policy constant, recovery keeps protectedPageCsp), and font-display: optional. No rule of a protected surface reads --font-family-display, and a test proves that showing each of them starts no font request. A profile copy of a theme still refuses @font-face.
  • Ornament: the hatch, the ring and a thin segmented bar for a level (volume, brightness, a metric), drawn by the frame and by the existing parts, hidden from assistive technology, never showing text that looks like data.

The close: Shunshin (瞬身, "body flicker")

The owner described a window that jumps forward fast, with speed drawn around it. Refined into three beats, 280 ms in all, drawn by one window-close pass in the rectangle of the window plus its margin (the slot draws up to 8 times the window through --margin and --scale, cropped to the output). In this character the speed is drawn in light:

Beat Time What the eye gets
1. Tame (溜め) 0 to 50 ms The window sinks: scale 1 to 0.97 and slightly darker, and its edge lights in the accent. The breath before the move.
2. Dash 50 to 130 ms The window lunges at the viewer: scale 0.97 to 1.10 on a hard ease-out. Its image splits into two color ghosts a few pixels apart and smears along the direction of the move, and thin lines of light (集中線, focus lines) shoot from the edges of the frame toward its center. By 130 ms the window is gone: it does not fade, it is cut off.
3. Zanzō (残像) 130 to 280 ms What is left is light, not the window: one thin diagonal slash across where it stood, and four to six thin horizontal streaks, as lines of a display that lost its signal. The slash thins from one end to the other and the streaks go out one by one.

How it is built on the slot with the version 2 block of phase 4b:

  • The beats are curves of ordinary parameters: --scale, --smear (length of the stretch), --split (distance of the color ghosts), --lines (strength of the focus lines), --slash (progress of the slash) and --glow (brightness of the marks). Each parameter has one curve, so "sink, then lunge" is one linear() curve of --scale through 0.97 to 1.10, as the black-hole-close package shapes its own.
  • The marks are procedural: a window-close pass binds no texture. Their angle and the places of the streaks come from the seed of the event (--seed), so two closes do not match. They are drawn in the accent of the block (--accent, accent 1 in Ninja) with a thin edge in the text color (--ink), so they read over a light desktop too.
  • The cut at 130 ms is made in the shader from the progress of the event. The reserved --opacity multiplies the whole pass, marks included, so it cannot make the cut.
  • --scale enlarges the quad of the pass, marks included; the shader draws the marks in the coordinates of the resting window.
  • The source is sampled with repetition, and with a margin the window occupies only the middle of the quad. The split and the smear sample at an offset, so the shader maps and clamps its coordinates to the window, or the far edge of the window wraps in.

Limits and risks, which the owner judges on the screen, not on paper:

  • The window is drawn from a snapshot of at most 1024x768, so a maximized window enlarged to 110% looks soft for those 80 ms (the color split hides some of it).
  • The pass draws above the application windows and below the protected shell.
  • Several closes in a row. Each closed window starts its own event, up to eight at once, so closing a group would repeat the slash several times a second. A close that starts within a third of a second of another draws no marks and no split: the window sinks and is cut. The compositor marks such a close with seed.z 1 in the block (the same on every output). The slash is thin, and the marks never cover more than a small part of the output.
  • A lunge toward the viewer is exactly what reduced motion turns off: with reduced motion there is no compositor event and the window closes at once (rule 6).

Three variants were weighed; Shunshin was built as the proposal, and the owner chose it after seeing it move in the nested session (2026-11-13):

  • Shunshin (above): the jump forward plus the marks. Closest to what the owner described.
  • Issen (一閃, "one flash"): no jump. One line of light crosses the window and the two halves slide apart. The katana cut; more literal, less abstract.
  • Zanzō only: the window vanishes at once and two or three outlines of it in the accent trail toward the viewer and fade. The quietest, and the one that hides the soft snapshot best.

The rest of the set

Event Ninja
Tokens --motion-fast 80 ms, --motion-base 140 ms, --ease-standard cubic-bezier(0.16, 1, 0.3, 1)
Popup, tooltip boots: the plate fills from its cut corner (clip-path, 120 ms) with the opacity track; out in 80 ms
Protected panel in glass panels have no entry (section 3, Limits); the pill and the islands do not animate
Notification card a cut plate with an accent bar on its leading edge; slides in 12 px in 120 ms, no spring
Message entry appears in place with a 2 px rise, 100 ms; no stagger
Window open the reveal as today; with the slot, the Shunshin close in reverse: a mint diagonal slash reveals the window, about 200 ms (owner, 2026-11-13; phase 6)
Workspace switch Fusuma: the workspaces slide like doors, flat, 160 ms on the hard ease-out, with a 2 px line of light in the accent on the leading edge of the arriving workspace. No depth
Overview card zoom 180 ms, radius 0

The line of the Fusuma is not a setting of the workspace transition: its settings are a scale, a blur, a gap, a radius and a dim. The line is new shader code in the card pass of the package, and it reads the accent that phase 4b appends to that block, and the leading edge from axis_alpha.w, which step 5b sets on the vertical stage of the arriving card only. Step 5a shipped the flat slide of 160 ms with no line and no close pass; step 5b added both.

Glitch is used once, in the dash of the close. Nothing else flickers, jitters or scrambles text, apart from the rain and the petals of the wallpaper, which are on the picture, not on the interface.

The neoedo wallpaper

A new value neoedo of wallpaperEffect, the default of Ninja, drawn by a module of the wallpaper page (host/wallpaper-neoedo.js) like the others. It draws the photograph of the ambiance that --ui-theme-ambiance of the theme sheet names (read again at each new sheet), and urbana in another theme.

Id Name Photograph (Wikimedia Commons) Author, license Animated layer
urbana Urbana (dia) Shinjuku Gyoen National Garden and NTT DoCoMo Yoyogi Building, Tokyo, Japan Basile Morin, CC BY-SA 4.0 none
natureza Natureza (montanha) Kanagawa: Mt. Fuji and the sea of Chigasaki in twilight Makoto_Lab, CC BY 4.0 none
noturna Noturna (cidade) Tokyo Tower, Minato City David Kernan, CC BY 4.0 light rain
hirosaki Hirosaki (noite) Cherry blossoms along the moat of Hirosaki Castle at night 掬茶, CC BY-SA 4.0 petals
  • The files. vendor/interface/host/wallpapers/ninja/<id>.webp, 3840x2160 (cropped to 16:9 from the center), WebP at quality 80, every metadata block (EXIF, GPS, XMP) stripped. Budget: at most 2 MB per image and 5 MB for the set; a test checks both, and the dimensions. Beside them ATTRIBUTION.md names, for each file, the title, the author, the source page, the license with its link and the changes (cropped, resized, re-encoded); the share-alike images keep their license. AGENTS.md and agent-operations.md name these files as an exception to the rule on binaries. The core serves them as static routes of the wallpaper page, whose policy already has img-src 'self'.
  • Two layers. The photograph as a texture (cover-fitted, with the parallax margin) and the light animated layer of the table, drawn by the fragment shader over it. The animated layer is sparse, stops when the wallpaper is suspended and is absent under reduced motion, where the picture is still.
  • Fallback. Until the image has loaded, or when it fails, the module paints a still scene from the theme accents with a seeded generator, so the wallpaper is never empty.
  • Legibility. The luminance cap of 0.09 holds inside the legibility regions that the chat reports, and everywhere while they are unknown, through the shader cap with regionCap, as for skyline; outside those regions the photograph keeps its color. The animated layer dims inside them too. Light mode draws the same photograph.
  • No camera on the Grid; on a Canvas workspace the photograph takes the parallax that the nebula takes, within the same bounds.

7. The change of theme, and the wallpaper of each theme

Today the stylesheet swaps when the replacement loads, the bar windows open or close, and the panels are declared again. A pack also changes radii, the wallpaper and the compositor package, so the swap is ordered so that no half-state shows:

  1. The core validates the id, under the same conditions as today (refused during a lock).
  2. The built-in package of the new theme is checked before anything else changes. A package that fails keeps the old theme whole, and the route answers the error.
  3. The core then saves the value and sends, in this order: visual_style (window radius), the built-in package, the declarations (refreshGlass with the panel radius), the wallpaper effect of the theme.
  4. The pages take the new sheet at their next revision poll, as today.

The wallpaper:

  • wallpaperByTheme is a map of the profile state from a theme id to an effect id. Both are checked against their closed lists with own-property checks, so a key such as __proto__ is refused, as uiThemeOf already does.
  • A manual choice through /api/wallpaper-effect writes the entry of the active theme. The route keeps its body check and its token; no new route appears.
  • A theme change applies wallpaperByTheme[<id>], or else the default of the entry, through the same function as the route, so the black-hole sink is released, the camera is notified and the wallpaper page gets its event.
  • Migration: a profile whose wallpaperEffect key exists chose it by hand; that value becomes the entry of its current theme. A profile with no key takes the default of its theme.
  • The effect list exists twice (the core and host/wallpaper.js); they gain skyline in phase 4 and neoedo in phase 5.

A cross-fade between two themes is out of this spec. It would need both sheets alive in each of the five runtimes, and a theme is changed rarely.

8. Phases and acceptance criteria

Each phase is one publishable change with its gates (agent-operations.md, Workflow and checks). It updates in the same commit the contract text it touches:

Code that names glass and must follow the rename: scripts/check-host-skew.py (it reads host/ui-themes/glass.css, and a wrong answer of that gate stops a maintenance), test/ui-themes.test.js, test/profile-ui-themes.test.js, test/profile-preservation.test.js and experiments/portability-probe/benchmark-smithay.py.

Phase 0: the pack contract, no visual change. Landed 2026-11-11. The entry gains panelRadius and windowRadius; the theme files gain the radius and motion tokens, with the values of today; motion-presets.js holds one preset equal to today's constants (the shared parts and the notification cards; the message entry and the pins stay in ui-src/app.jsx, which cannot import a module); the core reads the radii from the entry (the visual_style window radius, the declared glass of the panels and of the top bar, and the rule injected into the protected panels, which now reads var(--radius-panel)); the protected surfaces get pinned tokens (--protected-radius-*, --protected-motion-*, --protected-ease-standard), defined outside the layer shell-ui-theme, and the core refuses a declaration of one in a profile stylesheet. The entry field wallpaper, --radius-button, --ui-theme-id, --chamfer, --chamfer-surface and --font-family-display are not part of phase 0: each arrives with the phase that reads it (wallpaper in phase 4; --radius-button in phase 1; --ui-theme-id in phase 2; the chamfer and display tokens in phase 5), so no token exists that nothing reads.

  • ui-themes.test.js requires the radius and motion tokens in every theme file, and an entry without the new fields fails; it keeps panelRadius and --radius-surface equal and refuses a theme file that sets a --protected-* token.
  • Verified once by hand with a headless probe on 2026-11-11, on both themes: the computed radius and timing of the tokens and of every protected surface are identical before and after. This is not a repeatable test.
  • protected-surfaces.test.js scans the rules of the approval dialogs, the review card, the lock page and recovery, and refuses a reference to a theme radius or motion token; css-rules.test.js refuses a --protected-* declaration and @property; protected-surfaces.test.js also fails when a shared part or a Button size that reads a theme radius can render in them unpinned.
  • The declaration tests read panelRadius and windowRadius from the entry, still 16.

Phase 1: Galaxy, the shape. glass becomes galaxy with the alias; the shape values of section 5; the new role token --radius-button (the shared button part reads it, 10 px in the other themes); the shared parts move to the token of their role; the kitchen sink shows them.

  • A profile with uiTheme: "glass" opens in Galaxy; /api/ui-theme takes galaxy and refuses glass as a new value.
  • The profile copy: Galaxy starts from its own seed in <profile>/ui-themes/galaxy/. An existing <profile>/ui-themes/glass/ stays on disk, untouched and unused, so nothing of the user is overwritten; profile-preservation.test.js proves it.
  • Browser: no shared part clips its content at the new radii (popover, select list, textarea, number field, tabs, a button with a label of 40 characters), in light and dark mode.
  • Nested captures, one and two outputs: each protected panel, the bars, the chat and the popups show the radii of the table, and the blur behind a panel has the same corner as its surface, on the smallest panel too.
  • panel-glass-contrast.test.js still passes, and check-host-skew.py exits 0.

Phase 2: motion on the web side, Office and Galaxy. The theme files carry their own tokens, and the sheet names the theme in --ui-theme-id, which each runtime with Motion reads when a part mounts; the Motion parts take the variant of the active theme; the solid panels get their entry at each show; the card zoom of the overview (host/workspace-zoom.js, 300 ms and 16 px today) reads its duration and radius from the theme.

  • Unit tests assert the variant objects of each theme (durations, bounce, distances). The harness reads the WAAPI animations of the message entry per theme; the springs of the m parts run in JavaScript and are asserted through their variant, not through the browser.
  • With reduced motion both themes give today's result, by the existing reduced-motion checks.
  • The checks of motion.md that guard the approval dialogs, the review card and the bar tabs still pass; no new surface gets Motion; the protected-surface test of phase 0 passes with the new token values.
  • A solid panel shown twice plays its entry twice; a glass panel plays none.

Phase 3: the built-in root and the packages of Office and Galaxy. The read-only root and its command in the compositor; native/smithay/themes/office (workspace transition only) and /galaxy (workspace transition and close); the order of section 7; the core sends the selection at each connection.

  • Rust gates through the preparer. Unit tests: a built-in id resolves only from the built-in root; a profile folder of the same name is never loaded by the built-in command and is refused by select; a create_theme slug equal to a built-in id stays refused.
  • A theme whose package fails the check leaves the previous theme, package and wallpaper in place.
  • After a core restart in a test environment the compositor holds the package of uiTheme.
  • Ignored GPU tests draw the Galaxy close at fixed progress values, as the tests of the existing close packages do, and the snapshot reports its length.
  • Nested proof, reported as nested: a window closes and a workspace switches in each theme; with the black-hole wallpaper the Galaxy pass still draws ("O tema vence").

Phase 4: the picture. The entry field wallpaper (the default wallpaperEffect of a theme), wallpaperByTheme, the migration, the skyline effect, and the note in the wallpaper list that the black hole takes the close of a theme.

  • Changing theme changes the wallpaper; picking another by hand and changing theme twice brings the hand-picked one back; leaving a theme whose wallpaper is the black hole releases the sink.
  • A planted __proto__ or unknown id in the map is refused.
  • skyline draws in light and dark mode with three profile colors, on one and two outputs, static under reduced motion; a test of the module proves the luminance cap in a reported legibility region.

Phase 4b: what the Shinobi effects need from the compositor. Compositor only. It depends on nothing of phase 4 and can land any time before phase 5; landing it before phase 3 lets the Galaxy close be written against the final layout.

  • The uniform block of a close pass is fixed and full today (96 bytes: the frame, the event and sixteen parameters), and a shader that declares another layout does not compile. The block grows by three vectors appended after the parameters: the seed of the event, the accent and the text color (144 bytes). That is version 2 of the window-close ABI; the three existing packages keep compiling and draw the same, because nothing before the new vectors moves.
  • The block of the workspace transition (four vectors today) gains the accent in the same way.
  • The names --seed, --accent and --ink become reserved parameter names.
  • visual_style carries the accent and the text color of the active mode besides the tones it carries today, and the core sends it again when the mode changes.

Acceptance: a Rust unit test on the bytes of each block; the existing GPU tests of the close packages and of the workspace transition pass unchanged; a new GPU test draws a pass that reads the seed and the colors, with two seeds and two color sets giving different pixels; the ABI tables of themes.md state the new layout and sizes.

Phase 5: Ninja. Built in three publishable steps; each runs the gates and updates the contract text it touches.

Step 5a, the web side. The entry ninja with its accent, accents, neutrals, ambiances, wallpaper: "neoedo", panelRadius 0, windowRadius 0 and topBarHeight 52; uiThemeAmbiance and the ambiance field of /api/ui-theme; the stylesheet of the theme (accent 1, the fixed accents and the neutrals of each mode) with the tokens --theme-accent-1..3, --theme-on-accent and --ui-theme-ambiance; the tokens --chamfer, --chamfer-surface, --chamfer-wide (0 in the base) and --font-family-display (the face of the system in the base); host/ui-themes/ninja.css and its profile seed; the Frame part with the cut, the ring, the inset focus, the title tab and the hatch, used by the shared parts, the panels, the popups, the notification cards and the chat; the kitchen sink page; the three islands of the top bar and the pill; the exclusive 52 of the top bar; Settings (the theme listed as experimental, the ambiance choice); the Motion variants; neoedo with the four photographs, their attribution file and the binary exception, the animated layers and the painted fallback, in both effect lists and in the list of hex-crystals-wallpaper.md; the built-in package native/smithay/themes/ninja with the flat Fusuma slide only (published together with the entry: without the package /api/ui-theme refuses Ninja). uiTheme becomes office, galaxy or ninja in the short rule of AGENTS.md.

  • The gates of phases 0 to 4 hold with three themes (ui-themes.test.js, the motion and protected-surface tests, profile-preservation.test.js, check-host-skew.py).
  • /api/ui-theme takes {theme: "ninja", ambiance: "noturna"} and refuses an unknown ambiance, an ambiance for a theme without ambiances and any other key; a planted __proto__ or unknown id in uiThemeAmbiance reads as urbana; the stored profileColor is unchanged after a round trip through Ninja.
  • A unit test of the stylesheet of the theme: with Ninja on, accent 1 is the chosen profile color, and Mint when none was chosen, never a Matugen palette; the neutrals are the fixed ones of each mode whatever the accent; each of the three accents keeps 3:1 as a line and --theme-on-accent 4.5:1 on each, in light and dark mode; in Office and Galaxy the three tokens equal --color-accent.
  • design-tokens.test.js, extended to host/ui-themes/*.css, passes; the frame part sets no inline color, length or duration.
  • Harness (the kitchen sink page), by pixel assertions in light and dark: the ring follows the cut; a filled button, an input, a tab and a list row each differ between focused and unfocused inside the shape; no shared part loses content to the cut, with a label of 40 characters and with a scrollbar in a popup; a switch thumb and a radio are round; the frame is an ordinary box with no tab in Office and Galaxy. Under forced colors the frame has no clip, no tab, a real border and an outline for focus.
  • The top bar in Ninja: a 52 px window with three islands and transparent gaps; every action of the top bar and the pill visible and operable, with its label and key in its tooltip and accessible name, on a 1280 px and a 1920 px output, in Grid and in Canvas; the islands never overlap; a theme change from Galaxy declares the bar again at 52 and back at 40. The protected-surface test proves, by the computed values of a Button and a Frame inside each protected root, that no approval dialog, review card, lock page or recovery shows a cut, a theme accent or the display face.
  • A profile copy with --chamfer-surface: 9999px leaves a settings panel visible (the clamp).
  • neoedo: a module test of the luminance cap in a reported legibility region; the animated layer is absent under reduced motion and in the ambiances without one; the image of the ambiance is the texture once it loads, and the painted fallback stands in before and after a failure; a test checks the size budget, the dimensions, the absence of metadata and that ATTRIBUTION.md names every file.
  • Unit tests assert the Motion variants of Ninja, as phase 2 does for the others.
  • Nested captures (reported as nested proof): dark and light, one and two outputs, each ambiance, showing the islands, the pill, a panel with its tab, a popup and the chat. The light capture goes to the owner before the light colors settle. The owner approved them on 2026-11-13 from that capture: veil #EAE7DD at 80%, surfaces #F7F5EF on #ECE9E1, text Grafite #1C1F24.

Step 5b, the compositor (after phase 4b is on main). The Shunshin close and the Fusuma line in the Ninja package; the window shape chamfer and the three accents of visual_style, with the capability, and the finish that cuts application windows and rings them in the accent of their application.

  • Ignored GPU tests draw the close at one progress value inside each beat (for example 25, 90 and 200 ms) and at the end, over a light and a dark snapshot, with two seeds giving two different slashes and two color sets giving different marks; a second close started 100 ms after the first draws no marks; the snapshot reports 280 ms. The Fusuma switch is drawn at a fixed progress with its line in the accent.
  • Rust unit tests: visual_style with and without the shape and the accents parses, the capability is reported, a window clipped with the cut has no pixel in the cut triangles, and the accent of a window is the same for two windows of one application. The existing GPU tests of the finish pass unchanged with the rounded shape. The core sends the shape only to a compositor with the capability (a test of core/smithay.js).
  • The Rust gates through the preparer; nested proof of a close, a switch and a cut window in dark and light mode.

Step 5c, the display face, when the owner approves a font file. The face with its license, route, policy and exception.

  • The unit test of its character map passes; it shows in a panel title with the accented letters of Portuguese; with the font route failing, the same text shows in the face of the system and stays; showing the approval dialog, the review card, the lock page and recovery starts no font request; a profile copy with @font-face is still refused.

The theme stays listed as experimental in Settings until the owner accepts it (task 8.5), which needs the live session and the real GPU.

Phase 6: window open. Depends on the window-open slot (phase 5 of window-effect-slots.md) and on the open decision of whether a slot replaces the fixed reveal (architecture-decisions.md). Then each package gains its open event.

What needs the owner, in the live session and on the real GPU: the feel of every spring and of the Ninja close in motion (a nested capture is a still picture at 30 frames a second), the frame cost of skyline and neoedo against crystals, the cost of the close passes, and a second monitor. Nested proof is reported as nested proof.

Phases 4b and 6: decisions for the build (2026-11-13)

The owner's answers are in architecture-decisions.md, Window open slot, the black-hole close and the GPU budget. The adversarial round on this plan (2026-11-13) settled the rest:

  1. ABI v2, one block for close and open. struct Params { frame: vec4f, event: vec4f, values: array<vec4f, 4>, seed: vec4f, accent: vec4f, ink: vec4f }, 144 bytes: the 96 bytes of v1, then seed at 96, accent at 112, ink at 128. seed.x holds a per-event u32 bit-cast (bitcast<u32>), seed.y the same mapped to [0, 1); colors are linear RGB with alpha 1. The buffer is always 144 bytes; a v1 shader that declares 96 bytes still binds (a binding may be smaller than its buffer), so the shipped and profile packages keep working. The validator does not derive a size from the shader: the compiler always binds the 144-byte layout, and a v1 shader that declares 96 bytes binds against it. A window-open pass uses the same block: event.x is the open progress.
  2. Workspace transition. The four vectors (80 bytes today with the frame) gain accent appended; byte tests for both blocks.
  3. Reserved names. --seed, --accent and --ink are refused as plain parameters; the 16 parameter limit is unchanged. A profile pack that used them is refused at load with a diagnostic; accepted, no shipped pack uses them.
  4. visual_style and skew. The compositor reports capabilities.visualStyleInk (true). Rust takes an optional ink (fallback: white on a dark mode, near black on a light one, from the background luminance). The core adds ink only on a compositor with the capability; validVisualStyle and sameVisualStyle accept the key set with and without ink. The core derives accent and ink from the active mode of the profile color (light or dark, Matugen palette when there is one) and adds the mode to the cache key of sendVisualStyle, so a mode change resends the style.
  5. Open clock. The reveal clock becomes per window and starts at the map, when the application creates the window (owner, 2026-11-13, "Q1 b"): the duration is fixed then, from the open pass of the active theme, else 700 ms. A window that opens off camera, on a hidden workspace or under the overview spends its open there and shows in its final state when it is first seen. A theme change or a reload mid-open keeps the duration and the pass of that window. The clock starts at the first committed buffer; "creates the window" means that, since there is no pixel before it. REVEAL_BITS widens to 11 or 12 so that an open of up to 1500 ms fits (amended 2026-11-13, replacing "keeps its 10 bits"). The workspace preview signature and the wallpaper suspend read the per-window progress.
  6. Open pass. Drawn from the live surface at its current placement each frame (the Canvas screen placement with its scale, per output with that output's viewport), event.zw the current size, progress from the elapsed time; a resize during the open follows. A failure (pipeline or target) falls back to the reveal for the remaining time. Not drawn: declared windows (bars, chat, shell), windows that cover an output (real full screen, the Grid maximize). Amended 2026-11-13: a window whose open falls in a workspace transition, the overview, the lock, the canvas lens, warp, a hidden workspace or off camera, a covering or full-screen window, or reduced motion has its clock marked spent and shows final; it does not resume (a behavior change that also applies to the Rust reveal, in its own step). A theme open applies to main windows (not meta.shell, no parent_window); dialogs take the base open and never a theme open. Eight opens draw a pass at once (a global cap fixed at the map; above it the Rust reveal), with the 8M pixel viewport of plain_close. The pass source is the finished window and its shape comes from its alpha. The speed of motion_timing scales only the base open and the base close, by closeMs / 400 (owner, 2026-11-13); the passes of Galaxy, Office and Ninja keep their own length, and there is no openMs. window-open needs manifest version 5.
  7. Black-hole precedence. The close pass of the active theme draws while the sink is live: the test hook theme_over_sink goes, and the tests that pinned the built-in close under the sink change to the new rule. The placement still goes to the sink (black_hole::placement, the target lease) and the pass draws at the sink placement; its duration is the pass duration, as without the sink. A theme with no close pass keeps the built-in close.
  8. Snapshot. capabilities.windowEffectSlots becomes ["window-close", "window-open"] and effects.windowEffects.open is reported. A package with only an open pass (Office) is valid.

Phase 6: the base pack and the open of each theme

Planned 2026-11-13 from the code of that day and amended the same day after an adversarial round and the owner's answer on the motion speed. The few points that are still not settled are listed at the end of this section.

What the code has today.

  • The open is not a package. A window gets an Opening clock in its user data at the first committed buffer (window_finish::mapped, called from the commit handler), and the finish shader draws the reveal from reveal.progress over a fixed REVEAL_MS of 700. The reveal is the noise-threshold dissolve of finish_shade in finish-core.wgsl (an organic noise field against a threshold that goes from -0.10 to 1.10, an edge glow along the threshold and a contour, in the accent of visual_style); the rim is a separate part of the same function. The clock is shared by hidden workspaces, the workspace preview signature (scene.rs) and the wallpaper suspend (wallpaper_suspend.rs), and its end is tied to REVEAL_MS in several places (the clamp of Reveal::elapsed, the end marker and damage_since of the finish element, the 10-bit tick). Declared windows and windows that cover an output get no reveal. The reveal does not look at reduced motion, the lock, the overview, a workspace transition, a hidden workspace or the camera today.
  • The close has two parts. The built-in close is the black-hole shader of Rust (black_hole.wgsl, 400 ms, scaled by closeMs), drawn only while the wallpaper reports a live sink; with no sink and no theme pass a window closes at once. A theme window-close pass draws instead of it, sink or not, since the owner decision "O tema vence" (plain_black_hole.rs keeps both paths; Galaxy and Ninja ship a pass, Office does not). A close skips shell windows and windows with a parent (meta.shell, parent_window).
  • native/smithay/themes/ is the read-only built-in root (galaxy, office, ninja, plus the studio example). A package there is selected by id through theme_select_builtin; the ids of its folders are reserved, so a profile select refuses them. The core sends the selection of uiTheme at each connection. PlainThemes holds one active theme with at most one window-close pass. The window-close ABI is already version 2 (144 bytes: seed, accent, ink).
  • native/smithay/effects/black-hole-close is the built-in close already written as a package (400 ms, --sink, --sink-curve, --scale), the translation of black_hole.wgsl.

The base pack

base is a built-in package at native/smithay/themes/base/, beside galaxy, office and ninja, with its own theme.json, effects/open and effects/close (CSS and WGSL, the same files as any package). It holds the default of every window effect, so the code of a default can change without touching the compositor logic.

  • Not a theme. base has no entry in core/ui-themes.js, so no setting, route, panel or list shows it, and uiTheme can never name it. The id base is refused everywhere, also when there is no built-in root to read it from: theme_select_builtin base, the profile select and create_theme refuse it by name, not by looking for a folder. The core has the same guard: FALLBACK_BUILT_IN in web-shell/core/theme-create.js lists studio, office and galaxy only, so it gains ninja and base, and the tests of the shipped ids (theme-create.test.js, the Rust is_builtin_id tests) are extended with both. The compositor loads base by itself from the built-in root at the same moments it loads the active theme (start, theme_select_builtin, reload), compiles it in the same transaction, and keeps the last good one if a compile fails.
  • What moves into it.
    • The default open: the reveal of today as a window-open pass. The noise-threshold dissolve, its edge glow and its contour are written again in effects/open/effect.wgsl, in the accent of the ABI v2 block, 700 ms. The pass takes the finished window as its source (corners, rim and cut already applied, no reveal) and takes its shape from the alpha of that source, so the dissolve stays inside the corners and the cut; the block gains no radius (no ABI v3).
    • The default close: the drawing of the black-hole close, effects/close taken from native/smithay/effects/black-hole-close (the same shader, 400 ms). Built in 6d with no reserved parameter: the CSS curves of the package approximate the placement within 2 px, which would break the parity of 2/255, so the compositor places the rectangle with black_hole::placement and the pass only bends and fades the snapshot.
  • What stays in Rust, and why.
    • The Rust reveal (the reveal code of finish_shade) and the Rust black-hole close (black_hole.wgsl) stay as the last fallback, used only when a pass or its pipeline fails, when its renderer is gone, when the cap of opens is full or when no base loads. They are not removed, because a failed pass must still show the window.
    • The rule "the base close applies only while the wallpaper reports a live sink" stays in Rust (plain_black_hole::sink), with the sink target, the lease and the placement toward the sink (black_hole::placement). Today a window with no sink and no theme pass closes at once, and a base pass that always drew would change that. These are not a manifest condition; the placement of a base flight is the Rust one, and a theme pass reads the sink through the reserved --sink and --sink-curve.
    • The skips, the per-window clock, the cap and the time scale of the base passes decide whether and how long a pass runs, not how it looks.
  • Precedence, per slot. For each of window-open and window-close: the enabled pass of the active theme; else the pass of base; else the Rust fallback. The level is chosen when the effect starts (the first committed buffer for an open, the destruction for a close) and is pinned with the effect, as a close flight pins its pass today, so a reload or a theme change mid-effect does not move it. A pass that fails while it runs: an open takes the Rust reveal for the remaining time; a base close takes the Rust black-hole close only while a sink is live, else nothing; a theme close ends at once with no effect, as before phase 6 (its flight keeps the placement of the theme and never travels to the sink, so it has no Rust flight to fall to). A window mapped before the first theme select of the session uses base, and base missing, the Rust reveal.
  • The motion speed of the profile scales only the defaults (owner, 2026-11-13, question box; docs/architecture-decisions.md, The open clock, the base pack and the userland principle). The base open and the base close take closeMs / 400 as the factor of their length (closeMs is 150 to 1000, so 0.375 to 2.5, and a longer close time is a slower default; the progress of the pass runs at the inverse, 400 / closeMs; the scaled base open is clamped to the 80 to 1500 ms bound). The factor is read when the effect starts. The pass entry knows that it is a base pass (source: base) and only then applies the factor; the Galaxy, Office and Ninja passes keep the length that their theme sets. There is no openMs field in motion_timing.
  • A profile copy of base follows the rule of profile copies of the other packages (agent-operations.md, Profile copies of UI themes): the first use copies the distributed seed into the profile, the copy has its own identity, it is edited whole and atomically after reading it, an invalid copy keeps the last good one, and the seed and the recovery snapshot (original) are never overwritten; a copy never shadows original. The copy draws on application windows, so it falls under the approval of window-effect-slots.md (tasks 2.1 and 2.2: unapproved packages draw nothing, and a package outside the approved profile path is refused). The copy is therefore the last step of this phase, and the shipped base works with no copy.
  • The approval gap grows in step 6a. Today a package in the profile themes directory can draw on windows (a close) with no approval, because 2.1 and 2.2 are not built, and the decision "Só os limites atuais" keeps no draw-time budget. A window-open pass drawn every frame from the live window widens that gap: a profile package can now draw on a window during its whole open. The step says so in the contract text, and the cap of eight opens (below) is the only bound until the approval and a budget exist.

The open of each package

All three are window-open passes: manifest version 5, effects[].target window-open, one enabled open pass per package, CSS transitions from .window:opening to .window that give the length (owner, 2026-11-13, "Shunshin ao contrário"), 80 to 1500 ms like the other slots. The pass draws the live window, with its finish and no reveal, as the source, at the current placement; no snapshot cache runs for an open. Each reads the reserved --opacity, --scale, --margin and the block of ABI v2; none reads --sink.

Package Length What it draws What it reads from the block
base 700 ms The reveal of today: the noise-threshold dissolve with its edge glow and its contour in the accent, over the shape of the alpha of the source. Scaled by closeMs / 400. event.x, event.zw, accent, the alpha of the source
Office 160 ms A short fade and scale: --opacity 0 to 1, --scale 0.97 to 1, an ease-out of the Office token (cubic-bezier(0.2, 0, 0, 1)), no marks. Not scaled. Only the reserved parameters; no seed, accent or ink.
Galaxy 320 ms A point of light grows into the window, the close in reverse: --collapse 1 to 0 on the mirror of the close curve, and the light fades into the image over the last third. The edge of the window is lit once in the accent as it reaches full size. No glow outside the rectangle. Not scaled. --collapse (the package's own parameter), --opacity, accent for the point and the rim, event.zw for the point size.
Ninja 200 ms The Shunshin close played in reverse: a mint diagonal slash crosses where the window will be, and the window is revealed behind it along the slash, then the slash thins and goes out; the color ghosts of the dash close up. Marks are procedural, so the pass binds no texture. Not scaled. seed.x and seed.y for the angle and the place of the slash (as in the close), seed.z for the open burst (below), accent (accent 1 of the mode), ink.

The open burst: the clock keeps a burst record of its own, apart from the one of closes. An open that starts less than 333 ms after the start of another open sets seed.z to 1 and Ninja draws no marks for it (a session restore must not repeat the slash). This is intentional even though the Ninja open lasts 200 ms: the rule is about how often the slash repeats, not about overlap.

Which surface draws what

Surface Draws the open pass What it draws instead
The plain scene of each output (primary and extra), live yes, its own slot -
Workspace previews and the thumbnails of the overview no the finished window, no reveal, final state
The overview cards no the finished window, no reveal
The Canvas cache and the canvas lens no the finished window, no reveal
Warp groups no the finished window, no reveal
Capture and screenshots no the finished window, no reveal
The close snapshot no the finished window, no reveal (as today, reveal = None)
  • The pass element draws above the application window it belongs to and below the protected shell (the order of the close pass). Its source holds the window surface tree and no popups of that window: popups (menus, tooltips) draw over the window as ordinary elements, so a menu opened during an open is not dissolved with it.
  • The workspace preview signature and the wallpaper suspend stop hashing the open progress for every surface that no longer draws it (the previews, the cards, the cache), and hash it only where the pass or the Rust reveal draws.
  • A window shown on two outputs draws the pass on each output with that output's viewport; the clock is the window's, not the output's. A window dragged from one output to another mid-open keeps its clock, its pass and its slot, and draws on the output that shows it.

The clock

The Opening clock of a window, set at the first committed buffer, holds the start, the duration, the Rc of the pinned pass (or none, for the Rust reveal) with its source level (theme, base, rust), the seed, the burst flag, the time scale and a spent flag.

  • The clock starts at the first committed buffer. The owner's "starts when the application creates the window" means this: before that buffer there is no pixel to open.
  • The duration is fixed then, from the pass of the active theme, else the base pass (scaled), else 700 ms for the Rust reveal. A reload or a theme change mid-open keeps the old pass and its duration, as a close flight does.
  • A renderer or device reset drops the compiled passes of the old renderer. A clock whose pass belongs to a renderer that is gone draws the Rust reveal for the remaining time and starts no new pass, as the failure fallback does; the clock does not restart.
  • The time bound is 80 to 1500 ms. REVEAL_BITS grows from 10 to 11 (or 12 if the real maximum needs it) and everything that assumed REVEAL_MS is written in terms of the duration of the clock: the clamp of Reveal::elapsed, the end marker of the finish element, the damage_since comparison against the last tick, and the test helper end_reveal.
  • Main windows and dialogs: a theme open applies to a main window, the one that the close treats as a window (not meta.shell, with no parent_window). A dialog (a window with a parent) takes the base open, which is the default reveal, and never a theme open. An xdg popup has no clock and draws with its window as today. So the Rust reveal is only the failure fallback.
  • The cap. At most eight windows draw an open pass at once, counted globally across outputs and fixed at the map, the base pass counted like any other: a window that maps with the cap full draws the Rust reveal for its whole open. The target of a pass is limited to the 8M pixels and 8192 pixels of a side of plain_close::viewport (a larger window renders at a lower resolution and is stretched back).

Steps

Each step lands alone with its gates, updates the contract text that it touches in the same commit, and leaves the product as the step says. Steps 6a, 6c, 6d and 6f change Rust, 6b changes Rust and the visible behavior, and 6e changes only data.

6a. The open slot and the per-window clock (Rust; visually identical). The manifest accepts a window-open target at version 5; the clock of a window gets the fields above; REVEAL_BITS and the code tied to REVEAL_MS follow the duration of the clock; the open pass draws from the live window at its placement each frame in the plain scene of each output, with the block of ABI v2 (event.x the open progress, event.zw the current size, the seed, the open burst); the surfaces of the table; the cap of eight and the 8M viewport; the fallback to the Rust reveal for the remaining time when a pass or its target fails; the snapshot reports capabilities.windowEffectSlots as ["window-close", "window-open"] and effects.windowEffects.open; the main-window rule; the guard of base (FALLBACK_BUILT_IN, the refusal by name). The pass honors only the skips of today (declared and covering windows). No shipped package has an open pass, so every window opens exactly as before; a fixture package under native/smithay/effects/ drives the tests. The same commit fixes the stale text of themes.md (the window-close requirement and the Precedence bullet) and of this document (the black-hole bullet of the motion vocabulary and the Galaxy close row), which still say that a live sink keeps the built-in close, against "O tema vence".

  • Rust unit tests: the manifest with a window-open target at version 5 loads, binds no texture, accepts one enabled pass and refuses two, and a version below 5 is refused; the length is the longest delay + duration and one outside 80 to 1500 ms is refused; a package that sets --seed, --accent or --ink is refused; the clock is per window, its duration and pass are those active at the first buffer, and a reload or a theme change mid-open leaves them; a window mapped before the first theme select takes base, else Rust; a clock whose pass belongs to a reset renderer draws the Rust reveal; a dialog takes the base-or-Rust path and a shell window takes none; the open burst sets seed.z for a second open under 333 ms and not for the first; the cap (the ninth open draws the reveal, a freed slot is reused by the next map); one test per output slot (the primary and an extra output each draw the pass at their own viewport, a window dragged between outputs mid-open keeps its clock and its pass); the surfaces of the table draw no reveal where they should not, and the preview signature no longer changes with a progress that its surface does not draw; the snapshot test; the tests that pin ["window-close"] (wgpu_scene_tests.rs, wgpu_renderer_workspace_tests.rs) now pin both.
  • The clock tests with a duration above 1023 ms (1500 ms) and with 80 ms: the end marker, the last damage of the element and the final frame equal the finished window.
  • A test that a failed pass (a hook as FAIL_PASS is for the close) draws the Rust reveal for the remaining time and never leaves the window blank or delays the client commit.
  • Ignored GPU tests with the fixture draw the pass at fixed progress values (0, 0.25, 0.5, 1) over a live window of two sizes, with the window moved between two frames, and a resize during the open follows; two seeds give different pixels; the last frame equals the finished window; a window over the 8M pixel limit renders at a lower resolution and the last frame is final.
  • Core test: create_theme refuses base, ninja and the other shipped ids, also with no checkout to read the folders from (the fallback list), and ui-themes.js has no base entry.
  • The contract text says that profile packages can draw an open with no approval, as the close does (the gap above).
  • Rust gates through the preparer. No nested proof, since the product looks the same.

6b. The skips: a behavior change (Rust, visible). A window whose open falls in a skip has its clock marked spent; the clock does not resume. The skips are a workspace transition, the overview, the lock, the canvas lens, warp, a hidden workspace or a window off camera, a window that covers its output or goes full screen, and reduced motion. The open ends there and the window shows in its final state when it is next drawn. This matches the owner's wording ("spends its open there and shows in its final state"). It also changes today's reveal, which plays in all of these, and it makes the Rust reveal skip under reduced motion too. This is the only step before the theme opens (6e) that changes what a user sees, and the commit says so.

  • Rust unit tests: a window mapped during a workspace transition is final when the transition ends (the transition case); one test per other skip; a window that becomes full screen mid-open has spent its open; a window mapped on a hidden workspace or off camera is final when first seen; reduced motion draws the final frame at once (the reduced-motion frame: a frame is drawn with the window in its final state and no frame is blank or transparent between the commit and that frame, for the pass and for the Rust reveal).
  • The wallpaper suspend: a covering window no longer holds the suspend off for 700 ms when it is skipped (its open is spent), and a covering window that is not skipped still does; the preview signature does not change for a spent window.
  • Reduced motion is switched in the compositor by workspace_motion (the control-socket request that the core sends; core/smithay.js). scripts/nested-qa.py has no switch for it, so the reduced-motion check of this step is a unit test and an ignored GPU test only, not nested proof, unless the owner wants the script to send that request (see the open points).

6c. The base pack and the default open (Rust, WGSL, JSON; near-identical visually). native/smithay/themes/base with effects/open (the dissolve as a pass, 700 ms); the compositor loads base with the active theme; the precedence of the window-open slot (theme pass, else base pass, else the Rust reveal); the time scale closeMs / 400 for the base open with the source marked base; dialogs take it; the snapshot reports the source next to the id and the length. The result is the product of 6b, drawn by a pass.

  • Rust unit tests: a theme with no open pass opens with the base pass and one with an open pass keeps its own; with no base in the root the Rust reveal draws; a base that fails to compile leaves the last good one; base is refused by name by theme_select_builtin, select and create_theme, also with no built-in root; the factor scales the base open and no theme pass, and the scaled length is clamped to 80 to 1500 ms; the snapshot reports the source.
  • A reveal parity test, permanent in CI (the ignored GPU test runs where a GPU exists and the fixed-input comparison runs as a unit test of the shader inputs where it does not): the Rust reveal and the base pass draw at progress 0.1, 0.4, 0.7 and 1 over one window, in a dark and a light mode, and agree within 2/255 per channel, the corners unchanged.
  • The failure test of 6a with the base pass: the Rust reveal for the remaining time.
  • Nested proof of a window opening in Office, Galaxy and Ninja, still with the base open, in light and dark mode; reported as nested proof.

6d. The base close (Rust, WGSL, JSON; visually identical). effects/close in base (the black-hole-close pass, 400 ms, placed by the Rust black_hole::placement); the precedence of window-close (theme pass, else base pass, else the Rust black-hole close); the sink rule, the target, the lease and the placement staying in Rust; the base close scaled by closeMs through a time scale on the progress of the pass, for the base pass only, the entry knowing that it is base. The test hooks that pinned the built-in close change to the three-level rule.

  • Rust unit tests: Office (no close pass) with a live sink closes with the base pass, and with no sink closes at once, as today; Galaxy and Ninja keep their own pass over the sink and are not scaled; a failed base close draws the Rust black-hole close only with a live sink; the closeMs of the profile changes the length of the base close and no theme pass; the snapshot reports effects.windowEffects.close with its source.
  • A black-hole close parity test, permanent in CI like the reveal one: the Rust close and the base pass at fixed progress values toward a fixed sink within 2/255 per channel.
  • Nested proof of a close with the black-hole wallpaper in Office, Galaxy and Ninja; reported as nested proof.

6e. The three theme opens (WGSL, CSS, JSON; no Rust). effects/open in office, galaxy and ninja, their manifests at version 5, and the contract text of themes.md and window-effect-slots.md.

  • Ignored GPU tests per package at fixed progress values inside each beat and at the end, over a light and a dark window: Office at 0, 80 and 160 ms; Galaxy at 0, 100, 220 and 320 ms; Ninja at 0, 50, 120 and 200 ms. For Ninja, two seeds give two different slashes, two color sets give different marks, and an open 100 ms after another draws no marks. The last frame of each equals the finished window. A test that none of the three is scaled by closeMs.
  • Rust unit tests: each package loads, its length is 160, 320 and 200 ms in the snapshot, and the snapshot reports windowEffects.open for the active theme after each selection; a theme change during an open (Office to Ninja while a 160 ms open runs) keeps that window's length and pass; a dialog in Ninja takes the base open and not the slash.
  • Nested proof in each theme, in light and dark mode: an open on the visible workspace and an open on a hidden workspace shown later in its final state; reported as nested proof. Reduced motion for the three is the unit test of 6b. The feel of each open in motion needs the owner in the live session (task 10.1).

6f. The profile copy of base (Rust), after tasks 2.1 and 2.2 of window-effect-slots. The compositor reads an approved profile copy of base in place of the seed, with the rules of the profile copies above.

  • Rust unit tests: an unapproved copy draws nothing and the seed stays; an approved copy that fails to compile keeps the last good one; the copy never overwrites or shadows original; a copy outside the approved profile path is refused with a diagnostic.
  • A core test that the copy needs no rebuild or restart: a reload applies it.

Open points

Not settled here.

  1. Extra outputs. The plan draws the pass in the plain scene of each output, as the decisions (per output, with that output's viewport) say. A reading of the review put extra outputs among the surfaces that draw the finished window with no reveal. The two do not agree, and the table above follows the decisions; the owner or the review should confirm.
  2. Reduced motion in nested proof. scripts/nested-qa.py does not send workspace_motion. Either that check stays a unit and GPU test, as planned, or the script gains a command.
  3. Renderer reset. The code that recreates a renderer or loses a device was not traced here; the plan says what the clock does (the Rust reveal for the remaining time), and 6a has to find the real moment at which the compiled passes die and test it.
  4. Above the cap. The review said "the base or Rust reveal" above the cap. The plan counts the base pass in the cap and uses the Rust reveal above it, because a base pass costs what a theme pass costs; confirm it.
  5. The reveal parity tolerance. 2/255 per channel is the tolerance of the close ports. A noise dissolve may need a looser one on its edge glow; the owner judges it on the screen.

9. Open questions

Decided on 2026-11-13 (docs/architecture-decisions.md): the layout of the third theme, now Ninja (three separate top islands, its own arrangement), the package of create_theme (only overview-f9 until the host approval of window effects), the floating top bar of Galaxy (after Ninja), minimize and restore (no classic minimize and no slot; minimize moves the window out of the camera view) and the black-hole wallpaper ("O tema vence").

Still open:

  1. The Ninja close. Resolved 2026-11-13: the owner chose Shunshin over Issen and Zanzō after seeing it in the nested session.

10. Ideas for later themes

Not specified, kept so the pack contract is checked against more than three characters:

  • Terminal: phosphor green or amber on black, square corners; a window opens as a horizontal line that widens, and closes into a dot, as a tube switching off.
  • Papel: editorial, serif type, generous margins; the workspace switch is a page turn.
  • Abissal: deep sea; windows rise like bubbles, the focus is a bioluminescent edge.