Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"printWidth": 100,
"proseWrap": "preserve"
"proseWrap": "preserve",
"endOfLine": "auto"
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,24 @@ All notable changes to AFTERBOOT are documented here.

### Added

- A DOM-independent window manager with deterministic placement, focus ordering, constrained movement/resizing, minimize, maximize, restore, close, responsive work-area handling, and typed fact events.
- A startup-only immutable application registry and single-instance application manager with stable identities, scoped auxiliary windows, primary-window close semantics, and explicit disposal/reset behavior.
- A responsive SHADOW OS desktop with an application launcher, open-window task strip, accessible window chrome, pointer dragging/resizing, desktop floating windows, and active-window small-screen presentation.
- A minimal System Diagnostics application that proves public application mounting and multi-window lifecycle behavior without introducing filesystem or later-milestone services.
- Unit, integration, and Playwright coverage for application/window lifecycle, geometry, focus, pointer interaction, keyboard controls, responsive behavior, and reset cleanup.
- A DOM-independent SHADOW OS runtime with typed lifecycle snapshots, reset/failure commands, synchronous fact events, and explicit disposal.
- Injectable clock infrastructure with deterministic runtime, system-time, and boot/reset integration tests.
- An accessible staged boot-to-desktop shell with keyboard skip, reduced-motion handling, a browser-local system clock, and in-place restart behavior.
- Browser coverage for boot, reduced motion, desktop readiness, restart without reload, responsive layouts, console errors, and failed requests.
- A minimal responsive AFTERBOOT host surface with SHADOW OS preparation state and startup fallback.
- A Vite and strict TypeScript foundation using vanilla browser APIs and CSS.
- ESLint, Prettier, Vitest, and Playwright quality tooling with unit and browser smoke coverage.
- GitHub Actions workflows for continuous integration and static GitHub Pages deployment.
- Contributor setup, command, browser-baseline, and static-deployment documentation.

### Changed

- Replaced the static ready-desktop projection with a disposable desktop/window projection composed from explicit application and window services.
- Resolved the initial M2 interaction policies: startup-only registration, single-instance applications, centered/cascaded desktop placement, primary-window disposal, pointer-only move/resize, no global window-cycling shortcut, and active-window small-screen presentation.
- Replaced the Milestone 0 static host projection with a disposable shell view driven exclusively by runtime snapshots.
- Made Prettier line-ending checks portable across Windows and Unix worktrees.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,26 @@ The product relationship is:
AFTERBOOT → SHADOW OS → applications and scenarios
```

AFTERBOOT is the host experience. SHADOW OS is the fictional operating system it will simulate. Applications, sandbox systems, and investigation scenarios will eventually operate inside SHADOW OS through shared OS services. Those systems are roadmap work and are not part of the current implementation.
AFTERBOOT is the host experience. SHADOW OS is the fictional operating system it simulates. The current implementation includes the first reusable application and window framework; filesystem, broader sandbox, and scenario systems remain roadmap work.

## Current Status

Milestone 0 — Foundation has been implemented and locally verified. AFTERBOOT is in active development and remains pre-v1.0. No `v0.1.0` release has been created yet.
Milestone 2 — Windows and Applications has been implemented and locally verified. Formal milestone review and CI verification remain pending. AFTERBOOT is in active development and remains pre-v1.0. No `v0.1.0` release has been created yet.

The current implementation provides:

- A Vite and strict TypeScript foundation
- Vanilla TypeScript using standard DOM APIs and CSS
- ESLint, Prettier, Vitest, and Playwright infrastructure
- Continuous integration and GitHub Pages deployment workflows
- A minimal responsive AFTERBOOT / SHADOW OS preparation surface

The full SHADOW OS runtime and desktop do not exist yet.
- A deterministic boot/reset runtime and responsive SHADOW OS desktop shell
- A DOM-independent window manager with focus, movement, resize, minimize, maximize, restore, and close transitions
- A startup-only application registry and single-instance application lifecycle
- Pointer-driven floating windows on desktop and active-window presentation on small screens
- Keyboard-accessible launch, focus, task restore, and window controls
- A minimal System Diagnostics application that proves application and multi-window lifecycle behavior

The virtual filesystem, proof file applications, broader sandbox services, and scenarios do not exist yet.

## Project Direction

Expand Down
28 changes: 17 additions & 11 deletions docs/AFTERBOOT_PROJECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> **Status:** Living architectural reference
> **Last updated:** 2026-09-26
> **Current stage:** Milestone 0 foundation implemented and locally verified; hosted workflow verification pending
> **Current stage:** Milestone 2 windows and applications implemented and locally verified; formal milestone review and CI verification pending

## Status vocabulary

Expand Down Expand Up @@ -142,6 +142,10 @@ Core services never depend on application UI or browser DOM nodes.

A single composition root should construct services, register applications, seed initial state, and start the shell. Dependencies should be passed explicitly rather than imported from mutable global singletons. A small `OSContext`/`SystemServices` interface can expose approved capabilities to applications.

Milestone 1 implements this pattern for the lifecycle slice: the composition root injects a clock into the DOM-independent runtime, isolates browser time and motion queries behind platform adapters, and mounts the shell as a disposable projection of runtime snapshots. Boot progression is an explicit ordered stage model owned by the runtime, with one cancellable scheduled transition at a time; the shell only projects the current stage.

Milestone 2 extends the same pattern: the composition root constructs a startup-only application registry, application manager, and DOM-independent window manager. A disposable desktop view projects their snapshots, while a window-layer adapter owns DOM reconciliation and pointer capture. Application views receive only a host element and `Document` through a small mount/dispose contract. The initial application policy is single-instance; one instance may own a primary window plus scoped auxiliary windows.

### State model

Each service owns its domain state and offers:
Expand All @@ -168,19 +172,19 @@ No UI technology is permanently mandated at this stage.

| Subsystem | Status | Purpose |
| -------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Bootstrap/composition root | Proposed | Builds the runtime, injects adapters, seeds initial data, registers applications, and starts SHADOW OS. |
| OS runtime | Proposed | Coordinates lifecycle and cross-service workflows without becoming a general-purpose god object. |
| Event system | Proposed | Provides typed, synchronous domain notifications with explicit subscription disposal. |
| Window manager | Proposed | Owns windows, focus order, geometry, modes, and lifecycle transitions. |
| Application framework | Proposed | Defines app manifests, registration, launch requests, instances, and access to approved OS services. |
| Bootstrap/composition root | Implemented (M1 base) | Builds the runtime, injects adapters, seeds initial data, registers applications, and starts SHADOW OS. |
| OS runtime | Implemented (M1 base) | Coordinates lifecycle and cross-service workflows without becoming a general-purpose god object. |
| Event system | Implemented (M1 base) | Provides typed, synchronous domain notifications with explicit subscription disposal. |
| Window manager | Implemented (M2 base) | Owns windows, focus order, geometry, modes, and lifecycle transitions. |
| Application framework | Implemented (M2 base) | Defines immutable startup manifests, launch requests, single instances, scoped windows, and disposal. |
| Virtual filesystem | Proposed | Owns paths, nodes, file contents, metadata, directory operations, and filesystem events. |
| Process/task service | Proposed, later Phase 1 | Tracks running application instances and simulated system tasks; it does not represent real browser/OS processes. |
| Shell | Proposed | Renders desktop surfaces, task area, launcher, notifications, context menus, and global keyboard/focus behavior. |
| Shell | Partial (M2 shell) | Renders boot/desktop surfaces, launcher, task strip, application windows, and keyboard/pointer focus behavior. |
| Settings/configuration | Proposed | Stores typed runtime preferences and system configuration, initially in memory. |
| Notifications | Proposed | Accepts structured notifications and manages their visible lifecycle. |
| Search | Future idea | Queries indexed resources through provider interfaces rather than knowing every subsystem. |
| Scenario engine | Deferred to Phase 2 | Loads scenario definitions, applies setup, evaluates objectives, and records scenario state. |
| Platform adapters | Proposed | Isolate browser-specific APIs such as storage, time, animation, and viewport behavior where testability benefits. |
| Platform adapters | Partial (M1) | Isolate browser-specific APIs such as storage, time, animation, and viewport behavior where testability benefits. |

## 9. Subsystem responsibilities and boundaries

Expand Down Expand Up @@ -349,12 +353,14 @@ Keep tests near modules if that proves easier to maintain; the exact test layout

### Milestone 2 — windows and applications

**Status:** Implemented and locally verified; formal review and CI verification pending.

- Implement window state transitions independently of the DOM.
- Add focus, movement, resize, minimize, maximize, restore, and close behavior.
- Define the application registry and application context.
- Build one diagnostic/sample app to exercise lifecycle behavior.

**Exit criterion:** Multiple app instances can be operated through pointer and keyboard input with tested state transitions.
**Exit criterion:** Multiple application windows can be operated through pointer and keyboard-accessible controls with tested state transitions. M2 applications are single-instance; the diagnostic instance proves simultaneous primary and auxiliary windows.

### Milestone 3 — virtual filesystem and proof applications

Expand Down Expand Up @@ -461,9 +467,9 @@ Root-level `CHANGELOG.md` records notable changes under `[Unreleased]` until a r
| A-005 | Decided | TypeScript is the primary implementation language. | Supports explicit contracts and safe evolution of interconnected systems. |
| A-006 | Decided | Begin with vanilla TypeScript rather than a UI framework. | Avoids committing to framework abstractions before UI needs are understood. Reassess after the first substantial apps. |
| A-007 | Decided | Use Vite as the development/build tool. | Produces static assets, supports TypeScript well, and allows GitHub Pages base configuration. |
| A-008 | Proposed | Use service-owned state plus typed events rather than a universal global store. | Matches subsystem authority while keeping the first implementation small. |
| A-008 | Decided | Use service-owned state plus typed events rather than a universal global store. | Proven by the runtime, application, and window services without introducing shared mutable DOM state. |
| A-009 | Proposed | Start with an in-memory filesystem behind a storage-neutral interface. | Meets the no-persistence requirement while preserving a future persistence path. |
| A-010 | Proposed | Use one composition root and explicit dependency injection without a DI framework. | Keeps construction understandable and tests easy to isolate. |
| A-010 | Decided | Use one composition root and explicit dependency injection without a DI framework. | Proven by deterministic application/window composition and isolated service tests. |
| A-011 | Proposed | Avoid URL-based in-OS navigation initially. | The desktop is a stateful single experience and GitHub Pages has route fallback constraints. |
| A-012 | Decided | Scenario infrastructure is deferred until foundational OS contracts are proven. | Prevents scenario needs from being guessed and baked into unstable systems. |

Expand Down
Loading
Loading