Esta documentación todavía está en inglés. Sale del repositorio HorneroOS/docs y su traducción al español está pendiente ahí. La navegación del sitio ya está en español.
ADR: Hornero Welcome Center architecture and motion specification
- Status: Accepted
- Date: 2026-11-28
- Tracking:
HorneroOS/docs#167,HorneroOS/shell#751,HorneroOS/hornero#506
Context
Hornero Welcome (HorneroOS/shell/modules/welcome/ paired with
HorneroOS/hornero/cli/modules/hornero_core/welcome.v) is the first surface
many desktop users meet after logging in, and the permanent entry point for
discovering keyboard-first workflows, appearance customization, Experience
Modes, Javi, and system recovery limits.
An audit of the baseline Welcome module established four structural limits:
- Monolithic flat layout:
Welcome.qml(71 lines) andWindow.qml(397 lines) wrap 11 flatpages/*.qmlfiles inside a permanent 232 px leftListView+StackLayout, repeating the exact samePageHeaderand verticalActionCardlist on every screen. - Coupled state schema (
schemaVersion: 1):State.qmlandhornero_core/welcome.vtrackshowOnLogin,contentRevision, andlastSeenContentRevision, with no distinctfirstRunCompletedorlastSeenReleaseVersionfields to separate first-run onboarding from a returning user’sWhat's Newsummary. - Static tutorial claims without live detection:
ShortcutHints.qmlandShortcutList.qmlread$XDG_DATA_HOME/hornero/shortcuts.jsonwith ahyprctl binds -jfallback, yet onboarding lacked an interactive tutorial driven by real shell and compositor state transitions. - Unrestricted preview & media boundaries:
HorneroOS/configships 2 MIT procedural SVG wallpapers and 3 verified CC BY 2.0 Argentine photographs alongside 54 legacy collection files markedlicense: unknown. Welcome must showcase only the verified licensed tier and protect live theme/layout previews with explicit revert and crash recovery.
At the same time, existing static and contract tests
(shell/tests/test_welcome_*.py) enforce hard invariants that the redesign
must preserve: zero hardcoded hex colours (Signal.* and Appearance.* only),
zero http:// or https:// literals in QML, zero dots-* paths, qsTr() on
all UI strings, strict Actions.* allowlists, horneroctl-only writes in
State.qml, and IPC parity (welcome open|close|status).
Competitive analysis
We benchmarked desktop onboarding flows and craft-led software tools to isolate which patterns belong in a Wayland-first, zero-telemetry workstation:
| Reference | Adopted pattern | Avoided |
|---|---|---|
| macOS Setup | Calm pacing, disclosure | Cloud ID, lock-in |
| GNOME Tour | Focused arrival, brevity | Static slides, no preview |
| KDE Welcome | Broad discovery links | Uniform card grids |
| COSMIC | Clean Wayland chrome | Incomplete onboarding |
| Steam Deck | First-boot readiness | Closed appliance model |
| Linear | Sharp type, keyboard UX | SaaS workspace terms |
| Raycast | Unified search, keycaps | Cloud sync / paywalls |
| Arc | Memorable live studio | Heavy visual chrome |
| Teenage Eng. | Instrument restraint | Decorative gimmicks |
Options evaluated
Creative direction
| Criterion | A: Signal Flight | B: Pampa Broadsheet | C: Cockpit Telemetry |
|---|---|---|---|
| Status | Selected | Rejected | Rejected |
| Metaphor | Editorial observatory | Print gazette | Avionics scope |
| Day Ceramic | Clean porcelain + cue | Heavy print rules | Clashes w/ light |
| Night Blue | Graphite + lamp | Harsh columns | Fatiguing for users |
| Scene layout | Bespoke per job | Multi-column text | Dashboard clones |
| Brand fit | Signal + Argentine art | Reads like docs | Excludes Everyday |
Rejected Direction B (Pampa Broadsheet — Typographic Gazette): Strong in editorial print readability, but heavy tabular ink rules make interactive personalization feel like reading a newspaper rather than operating a live Wayland desktop.
Rejected Direction C (Cockpit Telemetry — Avionics Console): Fits dark hardware monitoring, but perpetual instrument scopes clash with Signal Day’s white ceramic aesthetic and overwhelm non-technical Desktop and Studio users.
Decision
HorneroOS adopts Signal Flight — Editorial Observatory as the architecture for Hornero Welcome, structured around seven core contracts.
1. Visual identity, surface contrast, and licensed wallpapers
Welcome aligns with RFC 0001 Amendment 3 (White Ceramic Signal Day and
Blue-Hour Graphite Signal Night, SIGNAL_TOKENS_CANONICAL.json), Native C++
Chromatic Engine v3 (SurfacePolicy, kAlgorithm = 3), and Appearance.font:
- Typography (
Appearance.font):IBM Plex Sans Condensed(display) for Scene 1 and Scene 9 anchors,IBM Plex Sans(sans,58ch–64chmeasure) for editorial copy and controls, andIBM Plex Mono(monowith tabular figures) for keycaps, telemetry readouts, versions, and provenance credits. - Zero repetitive card grids: Each scene in
First Flightuses a distinct spatial composition rather than repeatingPageHeader+ActionCardlists. - Anti-slop rules: Flagship Light mode (
hornero-signal-day) strictly forbids yellowish aged-paper surfaces (#FDF3E8,#F7F4EE), purple/indigo SaaS gradients, Material drop-shadows, and decorative non-interactive pills. - WCAG 2.2 AA & Signal palette binding: Every surface binds strictly to
Signal.palette.*(ground/sunken,base,panel,raised/lifted,ink/inkMuted,rule/ruleStrong,signal/onSignal,cue/cueWell,phosphor/alert). Weakest Day text maintains>= 5.27:1contrast,ruleStrongboundaries maintain>= 3.0:1, and Scene 1 full-bleed photography uses a directional gradient scrim anchored inSignal.palette.ground(0.92alpha behind text to0.15alpha over the focal subject) to guarantee>= 7.0:1text legibility. - Licensed Argentine wallpaper policy: Welcome showcases and promotes
only the 2 MIT procedural SVGs (
hornero-signal-day.svg,hornero-signal-night.svg) and the 3 verified CC BY 2.0 Argentine photographs fromwallpaper-provenance.json(buenos-aires-nocturnoby Luis Argerich,fin-del-mundo/ Beagle Channel by RAYANDBEE, andsierras/ Quebrada del Condorito by Kevin Jones), each paired with a visibleAttributionChipcredit. The 54 legacy collection files carryinglicense: unknownare never promoted in Welcome.
2. Motion Design System tokens and power budget
Welcome extends qs.components.motion (Choreography.qml, MotionAnim.qml,
Stagger.qml) and Appearance.anim. No hardcoded durations or custom easing
curves are permitted inside modules/welcome/.
| Token | Standard | Reduced (0.5x) | Off / Reduced Motion | Welcome role |
|---|---|---|---|---|
quick | 90 ms | 45 ms | 0 ms | Keycap press, hover tint |
brief | 160 ms | 80 ms | 0 ms | Focus ring, Stagger row |
medium | 240 ms | 120 ms | 0 ms | Scene crossfade, OKLab tween |
settleFast | 220 ms | 0 ms | 0 ms | Active OnAirBar travel |
settle | 320 ms | 0 ms | 0 ms | Tutorial check, PreviewTxBar |
extended | 360 ms | 180 ms | 0 ms | Scene 1 sprite entrance |
fade | 90 ms | 90 ms | 90 ms (cap) | Pure opacity crossfades |
staggerStart | 60 ms | 0 ms | 0 ms | Delay before row stagger |
staggerStep | 24 ms | 0 ms | 0 ms | Up to 8 revealed rows |
- Curves (
Appearance.anim.curves):standard([0.2, 0, 0, 1]),enter([0.05, 0.7, 0.1, 1]),exit([0.3, 0, 1, 1]),sweep([0.65, 0, 0.35, 1]), andsettle/settleFast([0.32, 1.24, 0.42, 1]with<= 1.9%overshoot /[0.34, 1.3, 0.5, 1]with<= 3.0%overshoot insmoothstyle, restricted exclusively to position, size, and needle indicators—never opacity or colour). - Travel and continuity:
SceneDeck.qmlusesdx = ±16 pxwhenChoreography.morphis true, dropping toChoreography.scanTravel(4 px) inreducedmode. Scene 1 pointer parallax is capped at±10 pxX /±6 pxY and disabled when!Choreography.morph. Contentscaletransforms are banned on text and cards. Top/bottom chrome rails and theHorneroSpriteemblem persist outsideSceneDeckfor optical continuity. - Reduced Motion (
Appearance.anim.reducedoroff): Disablesmorph,stagger, andtravel; caps transitions to<= 90 msChoreography.fade; setsholdStill: Appearance.anim.reducedonCompanionFramePlayer/Player.qml(frame0, zero timer); disablesHorneroSprite’s 7 s blink timer; and skipsAtmosphereLayerglow leases. - Pause-on-hidden budget: Every ambient timer, sprite animation reel
(
playing: win.visible && sceneActive),FrameAnimation, andShaderEffectinmodules/welcome/bindsrunning/playingtowin.visible && Qt.application.state === Qt.ApplicationActive(orwin.visiblefor preview reels), guaranteeing 0% idle CPU/GPU wakeups when Welcome is hidden or closed.
3. Reversible Live Preview Transaction Model (WelcomePreviewTx)
Scene 2 (Make It Yours) uses a two-tier reversible transaction model so users
can experiment with themes, Chromatic accents, wallpapers, and bar layouts
without destructive side effects:
- Tier A — Zero-write in-memory preview: Hovering or selecting themes,
Chromatic modes, and wallpapers invokes
Signal.beginPreview(scheme)(which snapshotsSignal._snapshotin memory and animates via OKLab<= 240 ms),ChromaticPreview, andWallpapers.preview(path)(showPreview = true) without writingscheme.json,shell.json, orPaths.wallpaperPointer. - Tier B — Disk-mutating live preview & transaction file: Before invoking
disk-writing previews such as
PresetApply.apply(targetPreset, display, false),WelcomePreviewTx.beginIfNeeded()persists the user’s exact pre-preview baseline (themeId,themeMode,chromaticActive,chromaticRequest,wallpaperPath,shellPreset,experienceMode) to$XDG_STATE_HOME/hornero/welcome-preview-tx.json(schemaVersion: 1,active: true,txId,startedAt,baseline) via atomic write (temp+mv -f) owned byhornero_core/welcome.v(matching thehorneroctlsingle-writer contract), alongsidePresetApply’sshell.jsonsafety copy under$XDG_STATE_HOME/hornero/shell/undo/<ms>/. - Explicit
Apply & Keep(commit()) vsRevert(revert()): WhileWelcomePreviewTx.dirtyis true, a persistent non-blockingPreviewTxBaroffersRevertandApply & Keep.commit()persists staged choices viaThemePipeline.applyTheme,Wallpapers.setWallpaper, andhorneroctl appearance chromatic applywhen Chromatic is active, then clears the transaction file.revert()callsSignal.cancelPreview()andWallpapers.stopPreview(), restores any mutatedshellPresetor disk state frombaseline, and removeswelcome-preview-tx.json. - Close and crash recovery:
Escapeor unexpected window close auto-reverts unapplied previews; leaving Scene 2 viaNextprompts inline to keep or revert. If the shell terminates unexpectedly (SIGKILL), the nextStartup.qmlboot detectsactive === trueinwelcome-preview-tx.json, restoresbaseline, and posts a calmToaster.toast(..., Toast.Info)notice.
4. Interactive Real-Event Tutorial (PracticeScene)
Scene 5 (Move & Fly) never simulates completion with timers or synthetic
clicks. Each mission resolves the user’s effective live keybinding via
ShortcutHints.badge(id) and Keybinds.entries (dispatcher + args),
falling back to "Unbound — use action button or Bar" if unbound:
| Mission | Binding ID | Event source | Completion condition |
|---|---|---|---|
| 1. Launcher | exec-launcher | Visibilities | launcher false -> true |
| 2. Dashboard | ipc-dashboard-toggle | Visibilities | dashboard opens |
| 3. Workspace | workspace:1 | Compositor | newWsId !== initialWsId |
| 4. Settings | Keybinds.entries | WindowFactory | windows.length > 0 |
- Mission 1 guards
!Compositor.hasFullscreenOnFocusedOutput(). - Mission 4 keeps Welcome open in the background during practice (unlike
Actions.openControlCenter) so the user sees the completedphosphorcheckmark upon returning. Toggle Scratchpad(togglespecialworkspace:magic) appears only whenCompositor.supports("specialWorkspaces") === true(Hyprland) and stays hidden on Niri.
5. Three-mode Information Architecture and v2 state schema
Welcome moves from 11 uniform pages to three focused modes inside a
1080×680 (minimum 960×600) FloatingWindow:
- Mode 1 —
First Flight(mode = "first-flight"): Nine sequential compositions (arrival→studio→workstation→javi→practice→extensions→workloads→trust→ready) with a minimal top telemetry bar and compact bottom flight rail (Show on login,Skip tour,Back/Next). - Mode 2 —
Explore Hornero(mode = "explore"): Permanent returning-user hub backed byservices/welcomeRegistry.js(Feature Registry),services/welcomeSearch.js(unified instant search across features,PaneRegistrysettings targets, and live shortcuts), andShortcutsView.qml. Every registry item invokes strictly typed, allowlisted deep-link URIs:welcome://first-flight/<sceneId>,welcome://explore/<categoryId>,welcome://whats-new/<version>controlCenter://<paneId>#<sectionId>(validated byPaneRegistry.resolveTarget())drawer://<drawerName>(launcher,dashboard,utilities,session,layoutPicker)action://<actionName>(validated againstActions.qmlallowlist)
- Mode 3 —
What's New(mode = "whats-new"): Declarative offline changelog sourced fromassets/welcome/releases.json(schemaVersion: 1,currentReleaseVersion, orderedreleases[]with typeddeepLinkandavailabilitybadges).
Per-user v2 state schema ($XDG_STATE_HOME/hornero/welcome/state.json):
{
"schemaVersion": 2,
"showOnLogin": true,
"firstRunCompleted": false,
"firstRunCompletedAt": "",
"lastVisitedScene": "arrival",
"contentRevision": "p2",
"lastSeenContentRevision": "",
"currentReleaseVersion": "0.5.0",
"lastSeenReleaseVersion": "",
"firstOpenedAt": "",
"lastOpenedAt": ""
}
Both hornero_core/welcome.v and State.qml preserve tolerant v1→v2 read
compatibility and enforce three startup invariants:
- Explicit opt-out always wins: If
showOnLogin === false, Welcome never auto-opens on login—neither forFirst Flightnor forWhat's New. - Decoupled first-run vs upgrade flow: If
firstRunCompleted === trueandlastSeenReleaseVersion !== currentReleaseVersion,First Flightnever replays; whenshowOnLogin === true && !Session.markerExists, Welcome opens directly in Mode 3 (What's New) and updateslastSeenReleaseVersiononce viewed. - Returning manual open: Opening Welcome manually (
horneroctl welcome open, Launcher, or Settings) afterfirstRunCompleted === truedefaults toExplore Hornerounless a deep link or unreadWhat's Newtarget is specified.
6. Honest feature availability classification
Welcome surfaces only verified capabilities and adapts to the active host:
- Supported: Lifecycle & state, Signal Day/Night/Contrast & Originals, Chromatic Engine v3, 16 shell layouts, 2 MIT + 3 CC BY 2.0 licensed wallpapers, Experience Modes, Hyprland integration, live Keybinds, visual Javi Companion, PluginKit v3 extensions (with privilege notice), Agent Center UI + CLI, and Hornero Config Snapshots.
- Experimental / Preview / Edition-dependent: Niri compositor
(
Compositor.supports(...)hides Hyprland-only features), Studio Audio & routing (Experience.studioAudioAvailable), Gaming (auto.fullscreenGaming), and OS Btrfs recovery (hornero_core/os_snapshots.vread-only probe, markedReady (Opt-in)orNot configured, never claiming unproven restore). - Optional / Local-only: Javi AI / Hermes Assistant (
AssistantRun.gatewayis off by default and never auto-started by Welcome). - Planned / Excluded:
Labwccompositor backend,Serveredition, andAgentsedition (editions/catalogue.yamlmaturity: planned) are omitted from interactive Welcome paths.
7. Security and user agency guarantees
- No arbitrary code or URL execution:
welcomeRegistry.jsandreleases.jsonstore declarative data only. Deep links pass strict allowlist validation; zero shell strings,eval, orhttp:///https://literals run from QML or metadata. - Explicit consent everywhere: Software profiles delegate to
horneroctl store(showing provenance badges and requiring explicit confirmation for proprietary or AUR entries); Scene 6 displays analertWellbanner noting that Quickshell plugins run unsandboxed with user privileges and documentingHORNERO_SAFE_MODE=1recovery; Scene 4 documentsAssistantBridge’s secret-attachment refusal (.env, keys) andApprovalCard/ClarifyCardconsent gates. - Zero mandatory accounts or telemetry: Welcome runs completely offline
using local JSON assets (
releases.json,wallpaper-provenance.json,ExtensionStore.cataloguewith graceful offline fallback).
Consequences
Positive
- First-time users receive a coherent, keyboard-accessible, visually varied 9-scene onboarding flow with zero risk of losing their desktop look.
- Existing upgraded users are never forced back through first-run onboarding
and see concise, actionable
What's Newrelease summaries instead. - Pure JS logic modules (
welcomeModel.js,welcomeRegistry.js,welcomeSearch.js,welcomePreviewTx.js,welcomeTutorial.js) enable fast headless unit testing (node --test/pytest) alongside QML static checks (test_welcome_*.py), keeping every QML file focused (< 220lines).
Negative and honest boundaries
- Adding
schemaVersion: 2and the atomicpreview-txtransaction verb requires coordinated updates acrossHorneroOS/hornero(welcome.v) andHorneroOS/shell(modules/welcome/), plus updatingtest_welcome_content.pyfor the newscenes/*Scene.qmlandviews/*View.qmllayout. - Multi-compositor parity remains asymmetric: Niri users receive a verified capability-gated experience while Hyprland retains deeper keybind rebinding and special-workspace tutorials.