MagistrDocsArchitecture

Architecture

Magistr is a Rust workspace with one project authority and several clients. The public product model is deliberately small:

  1. Native state stores roadmap chunks, ship tasks, reasoning steps, checks, and artifacts.
  2. Application services coordinate a use case and own completion semantics.
  3. Clients present the shared model. The terminal cockpit owns terminal input and rendering; the desktop client has its own renderer.
  4. Protocols stay at their boundary. Terminal byte protocols belong to magistr-tui; the cockpit remains independent of them.

Workspace map

CrateResponsibility
magistr-domainProject concepts and invariants
magistr-applicationUse cases and ports
magistr-engineNative persistence and workflow execution
magistr-cockpitShared interface model and updates
magistr-tuiTerminal input, graphics, and runtime
magistr-mcpIn-process MCP tool definitions
magistr-cliThe magistr command

Read the architecture overview and owned subsystems in the repository for the complete boundary map.

A useful mental model

The user steers a roadmap. A ready chunk becomes a ship objective. The active client records actions and checks against that objective. A later session reads the same native state and can continue without guessing what happened.