diff --git a/docs/MIGRATION_TO_DEBIAN.md b/docs/MIGRATION_TO_DEBIAN.md new file mode 100644 index 0000000..71ae121 --- /dev/null +++ b/docs/MIGRATION_TO_DEBIAN.md @@ -0,0 +1,329 @@ +# TermOS Debian Migration Plan + +> **Status:** Proposed architecture and release policy +> +> **Target generation:** TermOS v1.0.0 +> +> **Migration model:** Fresh installation +> +> **Buildroot support boundary:** TermOS 0.x, through v0.9.x + +This document defines how TermOS moves from its Buildroot-based experimental generation to the Debian-based v1.0 generation. It is a project architecture and release-policy document, not a claim that the migration has already been implemented. + +## 1. Decision summary + +TermOS v1.0.0 will be a **new Debian-based generation that requires a fresh installation**. + +There will be no supported in-place conversion from an installed Buildroot-based TermOS system to Debian. The project will not promise that a v0.x installation can be upgraded directly to v1.0, nor that existing system packages, package-manager state, services, or configuration can be carried across automatically. + +The two generations have distinct roles: + +- **TermOS 0.x (Buildroot):** remains the development line through v0.9.x. It is where the project develops and validates its foundations. +- **TermOS 1.x (Debian):** begins a new system generation, with a Debian base and the long-term TermOS experience described in the roadmap. + +A fresh installation does not mean that users must lose personal files. It means that the operating system itself is installed as a new system. Users are responsible for making and verifying backups before installation. Any future data-import utility will be a separate, explicitly scoped feature and will not be a prerequisite for installing v1.0. + +## 2. Why this is a re-platforming, not an in-place upgrade + +Buildroot and Debian have different system construction and package-management models. + +The current Buildroot generation produces a purpose-built system image from a configured set of packages, filesystem overlays, scripts, and build outputs. The Debian generation will use Debian's package ecosystem and lifecycle. Their package databases, filesystem composition, service integration, and update mechanisms are not interchangeable. + +Therefore, v1.0 will be built as a new Debian-based system rather than attempting to transform a running Buildroot root filesystem. + +The migration is primarily a **development and architecture transition**: + +1. Preserve the working product concepts and TermOS-authored components. +2. Separate reusable TermOS logic from Buildroot-specific integration. +3. construct and validate a Debian base independently. +4. Re-integrate TermOS services, TPM, profiles, installer, and Control Center through explicit interfaces. +5. Publish v1.0 as a fresh-install release. + +The project must not describe this process as a seamless upgrade. + +## 3. Release and compatibility policy + +### 3.1 Buildroot line + +- Buildroot remains the base for all planned 0.x releases, including v0.9.x. +- The 0.x line is not converted to Debian midway through its lifecycle. +- Existing 0.x releases remain identifiable by their own version numbers and release notes. +- The project will document the final 0.x release and its known limitations before the v1.0 transition. + +The duration and scope of maintenance for the final Buildroot release must be stated in that release's notes. This document does not promise indefinite maintenance or security updates for the 0.x line. + +### 3.2 Debian line + +- TermOS v1.0.0 is Debian-based and distributed as a new installation image. +- The exact Debian Stable release will be selected during the v0.9 preparation phase, based on support lifecycle, hardware compatibility, package availability, and reproducible-build requirements. +- v1.0 installation must not depend on a previous TermOS installation. +- A user may install v1.0 on a machine that previously ran 0.x, but the installer treats the target installation as a new system. +- Version numbering and release notes must clearly identify the Debian generation. + +### 3.3 Upgrade policy + +The following are explicitly **not supported migration paths** for v1.0: + +- In-place conversion of a Buildroot root filesystem into Debian. +- Reusing the Buildroot package database as Debian's dpkg database. +- Automatically translating installed TPM packages into Debian packages. +- Automatically carrying Buildroot service state or init configuration into Debian. +- Treating a raw copy of the old root filesystem as a valid Debian installation. + +Future upgrades within the Debian-based TermOS generation (for example, v1.x to a later v1.y release) are a separate topic. They must follow Debian's supported upgrade practices plus TermOS-specific compatibility testing; this document does not define or guarantee them. + +## 4. User data, backups, and configuration + +A clean OS installation and preservation of personal data are separate concerns. + +### Before installation + +The installer and release documentation must clearly tell users to: + +- Back up personal files to separate storage. +- Export or record application-specific data that is not stored in ordinary user directories. +- Save important SSH keys, credentials, browser profiles, project files, and other user-managed configuration securely. +- Record network, storage, and system settings they may need to recreate. +- Verify that backups can be read before changing disk partitions. + +The installer must not imply that a backup exists or is valid. + +### During installation + +- The installer must clearly identify the selected target disk and partitions. +- Any operation that formats, deletes, or repartitions storage must show the exact target and consequences. +- Destructive operations require a separate, explicit final confirmation. +- The default path must not silently format disks. +- If the installer cannot determine whether an existing partition contains data the user wants to keep, it must stop and ask for an explicit choice rather than assume. + +The precise partitioning modes and whether a separate data partition can be retained are implementation decisions that must be validated before v1.0. No preservation behavior should be advertised until tested. + +### After installation + +The initial v1.0 migration workflow is manual backup and restore. TermOS may later provide documented export/import tools for selected user data or settings, but such tools must: + +- Be opt-in and inspectable. +- Show exactly what will be imported or overwritten. +- Validate input and handle malformed or incompatible data safely. +- Avoid importing privileged system files, package databases, service definitions, or arbitrary startup scripts by default. +- Support a dry-run or preview where practical. +- Never be required for a successful fresh installation. + +## 5. Target v1.0 architecture + +The Debian generation should separate the user experience from system operations and from the underlying distribution base. + +```text +User + | + +-- Guided TUI Installer (live environment) + | + +-- CLI Login + | + +-- TermOS Control Center + | | + | +-- TermOS System API + | | + | +-- Debian services / systemd (candidate) + | +-- APT / dpkg + | +-- Network and storage tools + | +-- Hardware interfaces + | + +-- Normal Shell + +TermOS Core + +-- TPM (TermOS-specific package workflows) + +-- Profile Manager + +-- Configuration Manager + +-- Logging / Diagnostics + +Debian Base + +-- Debian Stable (release selected during v0.9) + +-- Linux kernel and firmware + +-- Base libraries and utilities + +-- Bootloader and init/service system +``` + +The diagram describes intended boundaries, not a finalized implementation. The init/service manager, privilege mechanism, filesystem layout, and exact system API must be decided and tested before they are treated as stable interfaces. + +### Architectural requirements + +- The Control Center is a presentation layer; it must not own privileged system logic. +- System operations should be exposed through documented, narrow interfaces. +- Privileged operations must validate inputs, enforce authorization, and log meaningful outcomes. +- TermOS components should avoid depending on UI-specific implementation details. +- Distribution-specific integration should be isolated behind adapters where practical. +- The system must remain usable through a normal shell if the Control Center fails. + +## 6. Debian base construction + +The current working direction is: + +- Use **debootstrap or mmdebstrap** to create a minimal Debian root filesystem for development and integration testing. +- Use a chroot or equivalent isolated build environment to configure and test the root filesystem without modifying the host system. +- Investigate **live-build** for producing the bootable live ISO and its filesystem layout. +- Develop the guided TermOS installer as a distinct component. Do not assume that choosing live-build automatically provides the final TermOS installer UX. +- Select the Debian Stable release during v0.9 preparation rather than freezing a release years in advance. + +These are proposed tools, not irrevocable dependencies. The project should compare their reproducibility, maintenance burden, boot support, and suitability before finalizing the build pipeline. + +The v1.0 image must support the firmware modes and hardware scope explicitly listed in its release requirements. UEFI should be a required validation target; legacy BIOS support is a separate compatibility decision. + +## 7. Package ownership: APT/dpkg and TPM + +The Debian generation must have one authoritative owner for each installed file. + +### Debian package ownership + +APT/dpkg owns Debian packages and the files installed by those packages, including the Debian base system and packages installed from configured Debian-compatible repositories. + +### TermOS package ownership + +TPM (TermOS Package Manager) may manage TermOS-specific packages, metadata, and repositories only within a clearly defined ownership boundary. It must not overwrite or remove files owned by dpkg. + +The exact TPM v1-on-Debian design remains open until a dedicated package architecture decision is reviewed. In particular, the project must specify: + +- Package format and metadata. +- File ownership and conflict detection against dpkg. +- Dependency declarations and how Debian dependencies are represented. +- Install, upgrade, remove, and rollback transaction semantics. +- Repository signing, key trust, key rotation/revocation, and metadata freshness. +- Privilege boundaries and recovery behavior after interrupted operations. + +The Control Center may present a unified package interface, but it must identify which backend performs each operation. A unified interface does not mean that TPM and APT share or overwrite package databases. + +## 8. Reusing the Buildroot generation + +The migration should preserve knowledge and reusable TermOS-authored work, not blindly copy the old root filesystem. + +For each existing component, classify it as one of: + +1. **Reusable logic:** distribution-independent code that can be carried forward with tests. +2. **Needs an adapter or port:** useful functionality coupled to Buildroot paths, BusyBox behavior, init scripts, or current filesystem assumptions. +3. **Buildroot-only integration:** defconfigs, overlays, image assembly, and scripts that remain with the 0.x line. +4. **Retire or redesign:** prototypes that do not meet the Debian generation's architecture or security requirements. + +Likely candidates for review include: + +- TPM core logic and its tests. +- Dashboard presentation and formatting helpers. +- Hardware information collection. +- Configuration and profile concepts. +- Documentation, test fixtures, and release engineering knowledge. + +No component is automatically considered portable merely because it is written in Python or shell. Each port must be tested against the target Debian environment. + +## 9. Migration work phases + +The work is expected to proceed in phases. These are dependency stages, not calendar commitments. + +### Phase A — Decouple TermOS from Buildroot + +- Inventory TermOS-authored source code, overlays, scripts, services, and filesystem assumptions. +- Separate core logic from Buildroot-specific paths and boot integration. +- Define interfaces for configuration, logging, hardware discovery, and system operations. +- Add tests around reusable behavior before porting it. + +**Exit condition:** reusable TermOS components can be tested independently of a Buildroot image. + +### Phase B — Debian base prototype + +- Select a candidate Debian Stable release for the prototype. +- Generate a minimal root filesystem using debootstrap or mmdebstrap. +- Boot it in a disposable VM. +- Validate bootloader, kernel, init/service manager, users, networking, storage, package operations, and logs. +- Record all deviations from the intended v1.0 architecture. + +**Exit condition:** a reproducible minimal Debian-based TermOS development image boots and provides the required base services. + +### Phase C — TermOS core port + +- Port TPM according to the approved ownership model. +- Port the dashboard and connect it to the System API. +- Implement configuration and logging foundations. +- Establish service integration and privilege boundaries. +- Run unit, integration, and security tests. + +**Exit condition:** core TermOS management functions work without relying on Buildroot-specific behavior. + +### Phase D — Live image and installer + +- Build a Debian-based live image. +- Implement and test the guided TUI installer independently from the live-image build mechanism. +- Validate disk discovery, partition selection, filesystem creation, bootloader installation, user creation, and failure handling. +- Test installation in disposable VMs before testing on physical hardware. +- Verify the installed system boots independently of the live environment. + +**Exit condition:** a user can install the Debian-based TermOS generation from the live image using the documented supported installation paths. + +### Phase E — Control Center and profiles + +- Connect Control Center modules to real System API operations. +- Implement profile manifests and lifecycle rules. +- Validate the CLI base profile. +- Implement at least one optional desktop profile end to end before claiming desktop-profile support. +- Verify profile operations respect APT/dpkg and TPM ownership boundaries. + +**Exit condition:** the default CLI-first experience and at least one supported optional profile work on a clean installation. + +### Phase F — Release hardening + +- Expand VM and physical hardware testing. +- Test installer safety, boot recovery, networking, storage, package operations, and system updates. +- Review security boundaries and third-party licensing obligations. +- Publish known limitations, checksums, source materials, and reproducible build instructions. +- Complete the v1.0 acceptance gate. + +**Exit condition:** all mandatory v1.0 release criteria pass and the release documentation accurately describes tested hardware and limitations. + +## 10. v1.0 acceptance gate + +TermOS v1.0.0 must not be released until all mandatory items below are satisfied: + +- [ ] The selected Debian Stable release and support policy are documented. +- [ ] The Debian base image can be built reproducibly from documented inputs. +- [ ] The live image boots in the required UEFI test environments. +- [ ] The guided installer completes a fresh installation in disposable VMs. +- [ ] Destructive disk operations require clear target display and explicit confirmation. +- [ ] The installed system boots without the live medium. +- [ ] User creation, login, networking, storage, and service management work. +- [ ] The System API has documented interfaces and authorization boundaries. +- [ ] The Control Center uses real system capabilities and has a normal-shell fallback. +- [ ] APT/dpkg and TPM have non-overlapping file ownership and tested conflict handling. +- [ ] TPM repository trust and package integrity behavior have passed security tests. +- [ ] The CLI base profile is validated; any advertised desktop profile has passed end-to-end tests. +- [ ] Backup and manual restore guidance is published. +- [ ] The release clearly states that v1.0 requires a fresh installation and does not support in-place Buildroot-to-Debian conversion. +- [ ] Automated tests, VM tests, and physical hardware tests are reported separately. +- [ ] Known limitations, recovery guidance, checksums, source availability, and third-party notices are published. + +A failed mandatory item blocks the release. The project should delay v1.0 rather than silently downgrade the acceptance criteria. + +## 11. Communication requirements + +All v1.0 announcements, download pages, installer screens, and upgrade guidance must use consistent language: + +> **TermOS v1.0 is a new Debian-based generation and requires a fresh installation. Direct in-place upgrades from Buildroot-based TermOS 0.x are not supported. Back up personal data to separate storage before installing.** + +Do not use wording such as "upgrade from 0.x" unless referring only to moving to a new release by performing a fresh installation. + +The 0.x and 1.x generations must not be confused in download labels, support statements, package instructions, or issue templates. + +## 12. Open architecture decisions + +The following decisions are intentionally deferred until prototypes and testing provide evidence: + +- Exact Debian Stable release for v1.0. +- Final init/service manager choice (systemd is a candidate, not yet a frozen requirement). +- Final live-image build configuration and boot-mode support. +- Final installer implementation and supported partitioning modes. +- TPM package format and exact integration with Debian dependencies. +- Privilege/authorization mechanism for the System API. +- Official desktop profiles and their maintenance scope. +- Whether a future, separately scoped data export/import utility will be provided. + +Each finalized decision should be recorded in a short Architecture Decision Record under `docs/decisions/`. + +--- + +**Summary:** Buildroot remains the foundation of TermOS 0.x through v0.9.x. TermOS v1.0 begins a new Debian-based generation, delivered through a fresh installation. The project preserves reusable code and knowledge, but does not promise an in-place operating-system conversion or automatic migration of system state. diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md new file mode 100644 index 0000000..5ba9c7b --- /dev/null +++ b/docs/ROADMAP.md @@ -0,0 +1,340 @@ +# TermOS Roadmap + +> **Project direction:** A modular, CLI-first Linux platform. +> +> **Guiding idea:** Easy to install. Powerful to control. Modular by design. + +This document is the long-term development agreement for TermOS. It records the intended direction so that future implementation and release decisions remain consistent. The detailed Debian transition and release policy are defined in [Migration to Debian](MIGRATION_TO_DEBIAN.md). + +The roadmap is intentionally capability-driven: version numbers describe milestones, not deadlines. A release must meet its acceptance criteria before it is considered complete. + +## 1. Product vision + +TermOS is intended for both newcomers and experienced Linux users. + +Its identity remains **CLI-first, not CLI-only**: + +- Installation should be guided by a polished, keyboard-friendly TUI rather than requiring users to work from an empty shell. +- After installation, the default experience should remain a CLI login followed by the TermOS Control Center. +- The Control Center should be the central entry point for system management while preserving access to a normal shell. +- Official graphical desktop environments should be optional profiles, not mandatory parts of the base installation. +- Community developers should eventually be able to publish compatible TermOS profiles through independent repositories. + +The Control Center is an interface, not the owner of system logic. It should call well-defined system services/APIs and report their results rather than implementing privileged operations itself. + +## 2. Audience and product principles + +### 2.1 Intended audience + +TermOS is not designed for an undefined audience of "everyone". Its intended users fall into four overlapping groups: + +1. **Terminal Enthusiasts** — people for whom the terminal is a primary working environment. They value shell workflows, system administration through the CLI, resource and service visibility, fast access to tools, scripting, and composable workflows. +2. **Developers & Builders** — people who continually create and adapt their working environments. They value configurable development environments, profiles, package/tool management, and control over their workspace. +3. **Linux Power Users** — experienced users who want meaningful control over system behavior. They value modular architecture, choice of desktop environment, and direct management of networking, storage, services, and system configuration. +4. **Curious Linux Users** — people who want to understand and use Linux more deeply without having to assemble every part of a usable system from scratch. They benefit from a guided TUI installer, an understandable Control Center, a CLI-first experience, and access to a real shell. + +These are overlapping personas on a spectrum, not four isolated markets or mutually exclusive user types. One person may fit several groups. Their needs can also conflict, so the project must be explicit about whose needs guide difficult prioritization decisions. + +### 2.2 Primary user and prioritization + +The primary design user is between the **Linux Power User** and the **Curious Linux User**: someone who wants to understand and control their Linux system, values the terminal, and appreciates a coherent starting point instead of having to assemble every component manually. + +The other three audience groups remain important. Naming a primary user is a prioritization tool, not a decision to exclude anyone. When two design choices conflict, prefer the option that gives this primary user understandable, real system control while preserving direct CLI access and extensibility for experienced users. + +Early 0.x releases may naturally appeal first to Terminal Enthusiasts and technically curious testers because the foundations arrive before the complete installer and Control Center experience. This is an intentional development sequence, not a change in the long-term audience. + +### 2.3 User needs (working user stories) + +Use these stories to evaluate whether planned capabilities solve real user needs. Refine them as implementation and testing reveal more detail. + +- **Terminal Enthusiast:** "When I manage my system, I want to inspect and control its resources, services, and packages directly from the shell, so I can build fast, repeatable, scriptable workflows." +- **Developer & Builder:** "When I set up a project or change the kind of work I do, I want configurable tools and reusable profiles, so I can create a consistent environment without rebuilding it manually each time." +- **Linux Power User:** "When I need to change system behavior, I want clear access to the underlying configuration and service interfaces, so I can make informed decisions instead of being locked into hidden defaults." +- **Curious Linux User:** "When I install or configure TermOS, I want guided steps and a clear management interface that explains what is happening, so I can learn and use the system without first memorizing every command and configuration file." + +### 2.4 Product and interaction principles + +The following principles are design constraints for future features, not claims that every capability is already implemented. + +1. **CLI First, Not CLI Only.** The shell is a first-class interface. Helpful TUI and optional graphical interfaces may make system capabilities easier to discover, but must not replace or obstruct the shell. +2. **Scriptable by Design.** System-management capabilities exposed through the Control Center should also be available through documented CLI commands or stable interfaces suitable for automation. Avoid UI-only functionality wherever practical. +3. **Transparent Over Magical.** Explain what an operation will change. Where practical, the Control Center should show the equivalent command or clearly identify the underlying operation before execution. Do not imply that displaying a command makes it safe; validation, authorization, and confirmation are still required. +4. **One System, Multiple Interfaces.** The CLI, Control Center, installer, and future interfaces should use shared system services/APIs rather than implementing separate versions of privileged logic. Equivalent actions should have consistent behavior and results. +5. **Modular by Design.** Keep optional components, profiles, and desktop environments separable. Users should be able to choose a suitable system composition without being forced into one desktop or workflow. +6. **User Control With Understandable Defaults.** Provide sensible defaults and guided workflows without hiding important decisions or removing the ability to inspect and override supported settings. +7. **Accessible Without Hiding Linux.** Help newer users discover and understand system capabilities; do not conceal the underlying Linux concepts or prevent advanced users from working directly with them. +8. **Honest About Capability.** Distinguish implemented, experimental, unavailable, and hardware-dependent functionality. Never display fabricated system data or imply an operation succeeded when it did not. + +### 2.5 Control Center and CLI parity + +The Control Center is a discoverable interface to TermOS capabilities, not a separate or exclusive way to administer the system. + +For each supported management action: + +- Provide a documented CLI equivalent or a documented stable system interface that can be used by scripts. +- Keep the underlying operation in a shared service/API layer; do not duplicate privileged business logic in UI code. +- Where practical, show the command or explain the exact operation the Control Center will request. If the operation cannot be represented safely as one command, explain the relevant service/API action instead of inventing a misleading command. +- Validate inputs and permissions consistently regardless of which interface initiates the action. +- Show meaningful success, failure, and diagnostic information. Do not report success until the backend confirms it. +- Preserve shell access and avoid requiring the Control Center for routine system use. + +This principle lets a newer user learn through guided controls while allowing an experienced user to bypass the interface and automate the same capabilities. + +### 2.6 Roadmap alignment with audience needs + +The current milestone sequence introduces capabilities progressively: + +| Milestone | Main audience emphasis | Why it matters | +| --- | --- | --- | +| v0.3.x | Terminal Enthusiasts and early Linux users | Reliable foundations, real system data, TPM, and persistence work | +| v0.4.x | Curious Linux Users | Guided installation begins to make setup understandable | +| v0.5.x | All audience groups | Control Center provides discoverable access to system capabilities while preserving CLI parity | +| v0.6.x | Developers & Builders and modular-system users | Profiles support repeatable, configurable environments | +| v0.7.x onward | Linux Power Users and all groups | Network, storage, services, settings, compatibility, and security deepen practical control | + +This is an emphasis map, not an exclusion list or a promise that every feature will be complete for a persona at a particular milestone. Acceptance criteria and validation remain more important than the version label. + +## 3. The 0.x / 1.0 agreement + +### Through v0.9.x: Buildroot development and experimentation + +TermOS will remain Buildroot-based through the entire 0.x series, including v0.9.x. + +The purpose of this phase is to build, test, and understand the system's capabilities one by one. Buildroot is the development foundation for this phase; it is not a promise that Buildroot will remain the base forever. + +During 0.x: + +- Add capabilities incrementally and validate them in disposable virtual machines before relying on them. +- Keep the system small and understand the limits of the current base. +- Document architecture decisions, security boundaries, known limitations, and recovery procedures. +- Avoid presenting experimental functionality as production-ready. +- Do not begin the full Debian migration merely to accelerate a feature milestone. + +### v1.0.0: Debian-based next generation + +TermOS 1.0 is intended to be a major architectural transition to a Debian-based system. + +The goal is not simply to replace Buildroot with Debian. The 1.0 release should deliver the product vision described in this roadmap: + +- A guided, full-screen TUI installer. +- A CLI login and a polished TermOS Control Center as the default management experience. +- A modular system architecture with clear service/API boundaries. +- A package strategy that integrates Debian's package infrastructure without creating conflicting ownership of system files. +- Official, optional desktop profiles such as KDE Plasma and, subject to compatibility and maintenance capacity, GNOME, Hyprland, and XFCE. +- A documented profile format that can support community-maintained profiles. +- Hardware, installation, upgrade, security, and recovery validation appropriate for a public 1.0 release. + +The exact Debian release, package versions, init/service choices, and migration mechanism must be selected and validated during the 0.9 preparation phase. They are not frozen by this roadmap. + +## 4. Version milestones + +The version-to-feature mapping below is a planning guide. Scope may move between releases when testing shows that a feature needs more work. + +| Milestone | Main focus | Expected outcome | +| --- | --- | --- | +| v0.2.x | Experimental foundation | Build/CI, UEFI boot, dashboard, shell, and initial TPM integration documented | +| v0.3.0 | Balanced system foundations | TPM improvements, persistence investigation/implementation, dashboard integration, and hardware visibility | +| v0.4.x | Guided installation foundations | Installer UX and safe, testable installation workflow prototypes | +| v0.5.x | Control Center | Modular TUI dashboard connected to real system capabilities | +| v0.6.x | Profiles | Initial profile manifest/specification and profile lifecycle prototype | +| v0.7.x | System management | Network, services, storage, and settings integration | +| v0.8.x | Integration and compatibility | Broader VM and physical-hardware testing; security and recovery hardening | +| v0.9.x | Buildroot finalization and migration preparation | Stabilize the 0.x line, document limitations, define Debian target architecture, and prove migration-critical prototypes | +| **v1.0.0** | **Debian-based next generation** | **Deliver the modular, CLI-first TermOS platform with guided installation and official optional desktop profiles** | + +## 5. v0.3.0 scope: balanced foundations + +The first planned milestone under this agreement is v0.3.0. Its four focus areas are: + +### 4.1 TPM — TermOS Package Manager + +- Continue developing TPM as the TermOS-specific package and repository component. +- Review and consolidate duplicated TPM runtime sources so there is one maintainable source of truth. +- Improve package-format validation, repository verification, dependency handling, conflict detection, and transaction behavior. +- Evaluate secure repository transport and signed metadata as part of the repository workflow. +- Clearly document unsupported features and failure-recovery limits. +- Keep system-root operations guarded and test them only in disposable environments until their safety is demonstrated. + +TPM must not be confused with the hardware Trusted Platform Module. In this project, TPM means **TermOS Package Manager**. + +### 4.2 Persistence + +- Inspect and document the current boot, root-filesystem, and mount architecture before choosing an implementation. +- Define what should persist, such as user data, TermOS configuration, and package state. +- Test persistence across reboots, missing or damaged persistence storage, and storage exhaustion. +- Avoid claiming that a live ISO or overlay-based setup has persistent behavior unless it has been demonstrated in repeatable tests. +- Defer a general-purpose disk installer and automatic partitioning unless separately scoped. + +### 4.3 Dashboard / Control Center foundations + +- Evolve the existing dashboard rather than rebuilding already-working information panels without reason. +- Integrate real system information, TPM status, storage/persistence state, and hardware data. +- Keep the interface usable on small terminal sizes and avoid unnecessary heavy dependencies. +- Preserve a clear path from the dashboard to a normal interactive shell. +- Keep privileged operations outside the presentation layer. + +### 4.4 Hardware visibility and validation + +- Improve detection/reporting of CPU, memory, storage, network interfaces, and available graphics devices. +- Treat sensor temperatures and GPU telemetry as hardware- and driver-dependent; show unavailable data honestly rather than inventing values. +- Record tested machine/VM configuration, firmware mode, devices, results, and known issues. +- Expand validation beyond a single virtual machine or physical computer where practical. + +### v0.3.0 acceptance gate + +Do not call v0.3.0 complete until: + +- The four focus areas have documented implementation status and known limitations. +- Relevant unit and integration tests pass. +- TPM security and transaction tests cover the supported behavior. +- Persistence behavior is repeatable and its failure cases are documented. +- Dashboard values come from real system sources. +- Hardware detection handles unavailable devices gracefully. +- The ISO builds and passes the project's required boot tests. +- Release assets, checksums, corresponding source, and third-party license review are handled according to the release checklist. + +## 6. Installer and first-boot experience + +The intended TermOS installer is a guided TUI inspired by the usability of modern terminal installers. + +It should provide clear steps for language/keyboard, storage selection and partitioning, timezone, user creation, initial profile, a final review, and installation progress. + +Safety requirements: + +- Destructive storage operations must show the target device and consequences and require explicit final confirmation. +- The installer must validate inputs and handle errors without silently continuing. +- Installation logs and failure information should be available for troubleshooting. +- The installer must not assume that every machine has identical firmware, storage, or network hardware. + +After installation, the intended default flow is: + +1. Boot the installed system. +2. Show a clear TermOS identity/boot experience. +3. Present a CLI login. +4. After successful login, launch the TermOS Control Center by default. +5. Allow the user to open or switch to a normal shell at any time. + +A graphical desktop must not be forced on users who choose the CLI experience. + +## 7. Control Center and system architecture + +The long-term Control Center should provide modules for: + +- Overview and system information +- Hardware and resource monitoring +- Package management +- Network configuration and status +- Storage and persistence +- Service management +- Profiles and optional desktop environments +- System settings and diagnostics + +The Control Center should communicate with dedicated system components through documented interfaces. UI code should not become a collection of ad-hoc privileged shell commands. + +Privileged actions must use narrow, auditable authorization boundaries, validate arguments, provide clear confirmation for destructive changes, and log meaningful outcomes. + +## 8. Package-management boundaries for v1.0 + +If Debian is selected as the v1.0 base, the package architecture must avoid two independent package managers writing over the same files. + +The working direction is: + +- Debian's package infrastructure (APT/dpkg) owns and manages Debian base-system packages and their files. +- TPM manages TermOS-specific package metadata, repositories, profiles, and integration workflows within explicitly defined ownership boundaries. +- The Control Center may present a unified experience, but it must make clear which backend performs an operation. +- Profile manifests must declare dependencies and compatibility; they must not bypass package ownership or security checks. +- Any future decision to replace or deeply extend the base package manager requires a separate architecture review. + +This boundary is a design requirement to validate, not a claim that the final implementation already exists. + +## 9. Profiles and optional desktop environments + +The long-term profile system should support official profiles and, eventually, community repositories. + +Potential official profiles include: + +- CLI base +- KDE Plasma +- GNOME +- Hyprland +- XFCE +- Developer environment + +A profile specification should define at least: + +- Unique profile ID and human-readable name +- Profile version and supported TermOS versions +- Architecture compatibility +- Package dependencies +- Required or enabled services +- Configuration payloads and their ownership +- Installation, update, and removal behavior +- Integrity/authenticity metadata and provenance + +Profiles from GitHub or other remote sources must never be treated as trusted merely because they are hosted on a known platform. Validate metadata and package integrity, establish signing/trust rules, review privileged actions, and provide clear user consent. Avoid blindly piping remote scripts into a root shell. + +Official profile support means the project commits to testing and maintaining the profile; it should not be used as a label for unverified community contributions. + +## 10. Testing, security, and release discipline + +Every feature should have acceptance criteria before implementation. + +The project should maintain, as applicable: + +- Unit tests for core logic. +- Integration tests for interactions between TPM, system services, persistence, and the dashboard. +- Build and ISO generation checks. +- UEFI boot tests in QEMU and supported VM platforms. +- Guest-level tests for installation and system operations. +- Persistence/reboot tests. +- Hardware test records that distinguish automated tests from manual smoke tests. +- Security tests for signatures, path validation, package integrity, permissions, and failure handling. +- Documentation for known limitations and recovery procedures. + +A passing CI run is evidence for the tests it executes; it is not proof of broad hardware compatibility, power-loss safety, or production readiness. + +Before public redistribution of each release, review applicable third-party licenses, notices, and corresponding-source obligations. Build metadata or a successful legal-info command is not itself legal approval. + +## 11. v0.9 to v1.0 migration gate + +The Debian transition must be treated as a separate generation of the project, not a routine base-image update. **TermOS v1.0.0 requires a fresh installation; in-place conversion from Buildroot-based 0.x installations is not supported.** See [Migration to Debian](MIGRATION_TO_DEBIAN.md) for the release policy, backup guidance, architecture, work phases, and acceptance gate. + +Before starting the 1.0 release candidate, require: + +- A documented Debian-based architecture and selected target release. +- A working minimal base-system prototype. +- Verified boot, networking, storage, user/login, and service management. +- A proven package ownership model for APT/dpkg and TPM. +- A working Control Center prototype against the new system interfaces. +- A profile prototype, including at least one optional desktop environment tested end to end. +- A guided installer prototype tested in disposable VMs. +- An upgrade/reinstall and user-data migration policy. +- Security review, automated tests, hardware compatibility notes, and complete release documentation. + +If any critical requirement is not met, extend the 0.9 preparation period or delay 1.0. Do not ship 1.0 merely to meet a calendar target. + +## 12. Out of scope unless separately approved + +The following are not automatic commitments for the 0.x roadmap: + +- A custom Linux kernel. +- A desktop environment enabled by default. +- A promise to support every GPU, laptop, or peripheral. +- Unreviewed arbitrary root scripts from remote repositories. +- A guarantee of recovery from every sudden power loss or hardware failure. +- Replacing APT/dpkg without a separate package architecture proposal. +- A full graphical settings application before the CLI Control Center is stable. + +## 13. Project rules + +1. **Buildroot through v0.9.x.** Do not migrate the 0.x development line to Debian. +2. **v1.0 is the Debian-based generation.** It must deliver a meaningful, tested architectural transition. +3. **Quality over release dates.** Milestones move when acceptance criteria are not met. +4. **No fake functionality.** UI elements must reflect working capabilities or be clearly marked experimental/unavailable. +5. **Security is part of the feature.** Privileged operations, packages, profiles, and updates need explicit trust boundaries. +6. **Document what is tested.** Separate automated results, manual tests, and assumptions. +7. **Preserve project knowledge.** Update this roadmap and relevant design documents when decisions materially change. + +--- + +**Short version:** TermOS 0.x is where the project experiments and validates its foundations on Buildroot. TermOS 1.0 is the Debian-based, modular, CLI-first platform that turns those lessons into a coherent operating system.