Galaxy Shell / docs
Docs / Histórico

Concept and architecture assessment - 2026-10-26

openspec/changes/archive/2026-10-26-concept/design.md · Editar no GitHub ↗

Esta página ainda não tem tradução em português. O conteúdo abaixo está em inglês.

Este documento registra decisões, planejamento ou evidências de uma etapa do projeto. Não implica que todos os itens estejam implementados ou validados na versão atual.

Nesta página

Concept and architecture assessment - 2026-10-26

Doc status: history. Superseded by web-shell-mvp-2026-10-26.md, AGENTS.md and the Smithay decision of 2026-10-27. Checked 2026-11-10.

Later direction: customizable web shell, with River chosen, and the current implementation. The references below to Flutter as the main UI and to Mutter as the priority are historical.

This is a record of the conclusions discussed with the project owner. This conversation was about planning. It does not authorize or prove a stack migration, real window control or the deployment of a Linux session.

This document updates the conceptual direction of 2026-10-25. Development still describes the implemented prototype. Earlier references to Iced, to Hyprland as a required backend and to an intent field without a conversation belong to the initial stage.

Agreed experience

Conversation and environment

  • The conversation is the focal point of the user and keeps history, context, decisions and results.
  • The environment is intent-oriented and stays available as a conversation. The ephemeral nature applies to execution resources. It does not mean that the chat disappears when a task ends.
  • Applications keep their own durable state. The shell must not replace files, projects and sessions that the applications maintain.
  • Completing an intent or switching conversations does not automatically end applications or activities in progress.
  • Applications can stay active until the user closes them, the system restarts or memory must be freed. Freeing memory follows the memory policy for idle applications: the protected host proposes windows of old conversations and the user approves each close. Preserving unsaved work stays with each application. There is no authorization to kill processes indiscriminately.
  • Conversations stay in the history even without active processes or windows. Resuming uses the history and the current state of the applications. Exact restoration of processes is not a premise.

Windows and sharing

  • A window can serve more than one environment, with no required duplication.
  • Removing a window from an environment undoes only the binding.
  • Closing the window affects all the environments that share that same window.
  • Windows and application processes are distinct concepts: closing a window does not necessarily mean ending the whole application.
  • Layout specific to an environment and the identification of windows after reopening still need a definition. Multiple monitors have a first rule: workspaces and the bar stay on the primary output, and every other output is a static area (see Smithay development).

Hidden work and manual control

  • Agents operate applications and services in the background when direct interaction is not needed. Hiding the window does not prove that the application supports background automation.
  • Windows appear on demand or when the activity needs its own interaction, such as programming, interactive browsing and movies.
  • When the user takes over a window, the user has priority. The agent pauses actions in it and can continue independent tasks.
  • Control returns to the agent only through the explicit action "Devolver ao agente" (Return to the agent). Inactivity, a focus change or hiding do not return control automatically.
  • The conversation presents a summarized progress, expandable details, results and decision requests, with access to the application involved.
  • OpenCode keeps responsibility for the harness, sessions and agent execution. The UI must reflect its features. The semantics of messages during execution must follow the contract of the integrated version, without assuming support for parallelism or interruption only because endpoints exist.

Composition and tiling

  • The product is a shell and a manager of real windows. The WM controls a grid and distributes the conversation and the applications in it.
  • The conversation takes part in the tiling. There is no required fixed split between chat and applications, and no obligation to embed external applications in Flutter widgets.
  • Opening beside, expanding, hiding and resizing correspond to changes in the composition of the windows.
  • A conversation sidebar, a central conversation and compact access to applications are UX directions. The list lets the user open, remove from the environment and close windows, and it shows sharing and manual control.
  • The project owner found the visual draft unsatisfactory, and it stays only as an exploration. It is not an approved visual reference. The later correction about grid and tiling prevails.

Stack direction discussed

Flutter/Dart is the proposed direction for the next cross-platform implementation. Dart can keep conversations, environments, grid rules, communication with OpenCode and the control service/API. Separating server and client does not require separating languages.

There is no requirement to preserve Iced or the Rust core only because they were already implemented. The project owner clarified that the prototype is recent and that compatibility with it does not justify a complex incremental migration. No implementation was requested in this conversation.

Native integrations are still necessary. Windows and macOS must use the authorized capabilities of the existing systems. Linux can use an existing compositor or a deeper integration with a compositor library. Parity between platforms is not proven.

Rust should stay or be introduced only where there is a concrete justification, for example a native integration or composition infrastructure. Flutter does not provide a Wayland compositor by itself.

References: Flutter desktop, Linux integration and FFI, Flutter embedded.

Own shell on top of an existing compositor

There is no demonstrated need to build a compositor from scratch. Our differentiator is in the conversation, the environments, the grid rules and the coordination with agents.

GNOME Shell uses libmutter. In a GNOME Wayland session, it is not enough to end GNOME Shell to leave its compositor intact. An own session based on Mutter would require a native component that starts and integrates the compositor and provides a management bridge to the Flutter interface.

The initial hypothesis is to keep Flutter as a client/surface, without embedding its rendering engine in the Mutter scene. The authority to organize the windows of other applications must stay in a compositor integration. The format and the feasibility of this bridge are not proven yet.

Flutter can present the clock, notifications and other controls. The matching services must be implemented or reused: for example, application notifications use a standardized D-Bus service. GNOME Settings and gnome-settings-daemon are components separate from the Shell. Reuse outside the GNOME session must be validated by function.

Configuration by intent is the proposed main path. The agent must use the network, audio, power and other APIs. The UI presents the decisions and the authentication that are needed. There is no decision to remove every manual alternative.

References: Mutter, Meta.Plugin, freedesktop notifications, GNOME Settings, Settings Daemon.

Preliminary compositor assessment

"Interface" in this comparison means a control API or protocol, not a UI. The research considered documentation, releases, packaging and test setup. It was not a full audit of the code or a comparative test on hardware.

Candidate Evidence consulted on 2026-10-26 Implication
Mutter Release 51.1 published on 2026-10-13; maintenance of the 50 series too; Fedora packaging with multiple maintainers; CI with KVM, sanitizers, coverage and integration with Shell/Kiosk Main candidate for a technical proof when maturity and continuity have priority. The maturity of the compositor does not prove that our Flutter bridge is simple, or that an own integration is stable across versions.
River Series 0.4.8 packaged in Fedora; stable protocol for an external WM; separate architecture released in March 2026; the author records a need for funding to sustain the development pace Serious alternative, well aligned with grid rules outside the compositor. The relevant architecture is recent and has a higher risk of maintenance concentration.
Pinnacle Releases with real fixes; WLCS test and integration directories in the repository; control by gRPC; the documentation admits an early stage and expects API changes Candidate under observation. There was no proof of test quality/coverage equivalent to Mutter, and no validation of a Dart client.

Mutter is a consolidated base of the Linux desktop, not a universal standard. The initial recommendation to prioritize River for its architecture was revised when the explicit criterion of the project owner (maturity, maintenance and quality) was included: evaluate Mutter first, keep River as an alternative and keep Pinnacle under observation. It is not a definitive selection or a production approval.

Sources of the assessment:

Questions for the next technical proof

  1. Start a test session based on Mutter without GNOME Shell, with an own integration and without an invasive fork.
  2. Show a Flutter conversation and two real applications, identify windows, apply the grid, change focus and respect manual adjustments.
  3. Check control by API, events and synchronization between requested and applied state. Define which process keeps the grid rules.
  4. Validate switching environments, shared bindings and explicit transfer of control.
  5. Assess shell surfaces, notifications, failure recovery and compatibility with the target version of Mutter.
  6. Test on representative hardware, including scale, multiple monitors and GPU differences. A VM does not prove the final quality.

If the integration with Mutter requires invasive changes or the maintenance of a large fork, reassess River before deciding on an own compositor. This list guides a future assessment. This record does not authorize or report any execution.