diff --git a/README.md b/README.md index f988a6d..f74d94e 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,8 @@ projects/ ├── dynu-monitor/ ← Smart DDNS change detection daemon (Python/Rust) ├── new-repo/ ← Automated repository provisioning CLI ├── magnetflix/ ← Media indexing and streaming application -└── nekoweb/ ← Web showcase and static site generation +├── nekoweb/ ← Web showcase and static site generation +└── supervisor/ ← Personal engineering progress tracking & supervisory system ``` **Key documents:** @@ -60,6 +61,7 @@ projects/ - [New-Repo CLI Overview](projects/nixos/new-repo/README.md) - [MagNetFlix Overview](projects/magnetflix/README.md) - [Nekoweb Overview](projects/nekoweb/README.md) +- [Supervisor Overview](projects/supervisor/README.md) --- diff --git a/projects/nixos/README.md b/projects/nixos/README.md index 38b8089..b057781 100644 --- a/projects/nixos/README.md +++ b/projects/nixos/README.md @@ -45,12 +45,14 @@ graph TD ## 📑 Plans & Execution Roadmaps -1. 🟡 [**Adopting Official channels.nixos.org Tarballs**](plans/channel-tarball-migration-plan.md) `[Active]` +1. 🟡 [**Decoupling Homelab Server & Standalone Workstation Architecture**](plans/server-decoupling-and-standalone-workstation.md) `[Active]` + - Architectural blueprint and phased plan for removing `hosts/server/` from `Config`, eliminating the "multi-host tax", and re-aligning the repository as a dedicated Niri workstation. +2. 🟡 [**Adopting Official channels.nixos.org Tarballs**](plans/channel-tarball-migration-plan.md) `[Active]` - Transitioning from GitHub-hosted Nixpkgs flake inputs to official `channels.nixos.org` zstd-compressed archives. - Flake registry pinning and evaluation speedup analysis. -2. 🟢 [**Decommission Legacy Desktop Derivation**](plans/decommission-desktop-derivation.md) `[Completed]` +3. 🟢 [**Decommission Legacy Desktop Derivation**](plans/decommission-desktop-derivation.md) `[Completed]` - Pruned `hosts/desktop/` and `nixosConfigurations.desktop` to standardize on a 2-host fleet (`server` and `laptop`). -3. 🟢 [**SOPS Secrets Restructuring & Multi-User Authelia Support**](plans/sops-restructuring-plan.md) `[Completed]` +4. 🟢 [**SOPS Secrets Restructuring & Multi-User Authelia Support**](plans/sops-restructuring-plan.md) `[Completed]` - Migrated flat SOPS secrets to service-scoped namespaces and added declarative Nix user database rendering. --- diff --git a/projects/nixos/plans/server-decoupling-and-standalone-workstation.md b/projects/nixos/plans/server-decoupling-and-standalone-workstation.md new file mode 100644 index 0000000..9eb820f --- /dev/null +++ b/projects/nixos/plans/server-decoupling-and-standalone-workstation.md @@ -0,0 +1,216 @@ +--- +type: plan +status: active +project: nixos +tags: + - nixos + - workstation + - architecture + - refactor + - cleanup +--- + +# Architecture & Execution Plan: Decoupling Server & Standalone NixOS Workstation + +## Executive Summary & Context + +Following the migration of the homelab infrastructure, Docker stacks, and Traefik edge ingress to the dedicated [`homelab-core`](file:///home/kiskaadee/Projects/active/homelab/Core) repository, the primary system configuration repository ([`/home/kiskaadee/Config`](file:///home/kiskaadee/Config)) transitions from a multi-host fleet manager into a single-purpose, declarative configuration for the mobile workstation host (`laptop`) running Wayland (Niri) and Home Manager. + +This document combines the **first-principles architectural analysis** of the standalone workstation with the **concrete phased implementation plan** to decommission legacy server files, dissolve the "multi-host tax", and re-align documentation. + +Per the **Risk Classification Framework** in `Config/AGENTS.md` (Tier **HIGH**: server deployments, Traefik, SOPS keys/secrets setup), this plan establishes explicit invariants and validation criteria before execution. + +--- + +## Part 1: Architectural Analysis — The Standalone Workstation + +### 1. The Context & The "Multi-Host Tax" + +The legacy structure of `Config` was heavily shaped by a classic systems challenge: **reconciling a headless homelab server with a Wayland graphical workstation in a single declarative repository**. + +To prevent the server from compiling GUI libraries or running display managers, the configuration was forced to adopt several complex layers of indirection: +1. **The 3-Tier Home Manager Division**: + - *Tier 1 (`base.nix`, `terminal.nix`, `neovim.nix`)*: Strictly CLI, safe for the headless server. + - *Tier 2 (`apps.nix`)*: CLI developer tools and cloud SDKs. + - *Tier 3 (`graphical.nix`)*: GUI applications, Wayland utilities, and display servers. +2. **The System Split**: + - `modules/system/base.nix` vs. `modules/system/graphical.nix` (preventing the server from importing `greetd` or Wayland compositors). +3. **The `hosts/` Folder Hierarchy**: + - `hosts/laptop/` vs. `hosts/server/`, each defining its own `configuration.nix` and `home.nix` that selectively imported combinations of the shared modules. + +With the server decoupled and managed independently in `homelab-core`, the rationale for this defensive stratification disappears. Left behind is a **"multi-host tax"**: 8 hops of indirection, fragmented package lists across 7 files, and artificial module boundaries. + +--- + +### 2. The Role of Home Manager: Machine vs. User Scope + +Home Manager is often perceived as an unnecessary layer when it is used primarily as an **isolation barrier** between machines. In a multi-host setup, engineers frequently use Home Manager tiers to conditionally inject dotfiles into `$HOME` while struggling to keep system-level declarations uniform. + +However, in a **standalone workstation**, Home Manager has a precise, clean architectural role: + +| Concern | Native NixOS (`configuration.nix`) | Home Manager (`home.nix`) | +| :--- | :--- | :--- | +| **Scope** | Root / Machine level (`/etc`, systemd system units, kernel, hardware, display manager daemon, udev rules). | User session (`~/.config`, user systemd units, shell environment, desktop keybindings, app configs). | +| **Purity** | Modifies root filesystem state. Requires `sudo`. | Modifies only `$HOME`. Declarative symlink farm for dotfiles. | +| **Desktop Integration** | Runs the compositor (`programs.niri.enable`), greetd, PAM. | Configures the compositor (`config.kdl`), Alacritty, Fastfetch, Neovim plugins, Wayland clipboards. | + +**Key Architectural Takeaway**: Home Manager itself is not the problem; **the multi-tiered, fragmented consumption of Home Manager was**. In a single-host setup, 5 separate Home Manager user modules are no longer needed to guard against a headless server. + +--- + +### 3. First-Principles Standalone Architecture + +Designed from scratch as a dedicated workstation, the architecture prioritizes **cohesion and domain grouping** over host isolation: + +```mermaid +graph TD + subgraph "Legacy (Multi-Host Guardrails)" + FLAKE1[flake.nix] --> HOST_L[hosts/laptop/] + FLAKE1 -.-> HOST_S[hosts/server/] + HOST_L --> M_SYS_B[modules/system/base] + HOST_L --> M_SYS_G[modules/system/graphical] + HOST_L --> HM_ROOT[home.nix] + HOST_L --> HM_L[laptop/home.nix] + HM_ROOT --> TIER1[Tier 1: base + neovim + term] + HM_L --> TIER2[Tier 2: apps] + HM_L --> TIER3[Tier 3: graphical] + end + + subgraph "First-Principles Standalone Workstation" + FLAKE2[flake.nix] --> SYS[system/ (or configuration.nix)] + FLAKE2 --> USR[home/ (or home.nix)] + SYS --> D_SYS[desktop: Niri, greetd, audio] + SYS --> H_SYS[hardware: battery, wifi, boot] + USR --> D_USR[desktop: shortcuts, DMS, wayland] + USR --> DEV_USR[dev: nvim, compilers, zed] + USR --> SH_USR[shell: bash, tmux, aliases] + end +``` + +#### Target Layout: + +```text +Config/ +├── flake.nix # Minimal entrypoint: defines nixosConfigurations.laptop +├── flake.lock +├── hardware-configuration.nix # Generated hardware scan (disks, CPU, kernel) +│ +├── system/ # NixOS system-level concerns (root, daemons, hardware) +│ ├── default.nix # Replaces hosts/laptop/configuration.nix + modules/system/* +│ ├── boot.nix # systemd-boot, EFI, kernel modules +│ ├── hardware.nix # Power profiles, brightnessctl, upower, audio (pipewire) +│ └── desktop.nix # greetd, dank-greeter, Niri display enablement +│ +├── home/ # Home Manager user-level concerns (kiskaadee) +│ ├── default.nix # Replaces home.nix + hosts/laptop/home.nix + tiers +│ ├── desktop/ # Niri keybindings (kdl), Alacritty, DMS, wallpapers +│ ├── dev/ # Neovim, Zed, compilers, language servers, Git forge tools +│ └── shell/ # Bash aliases, Tmux, Starship, custom scripts +│ +└── docs/ # Human maintenance and operational guides +``` + +--- + +### 4. Architectural Comparison: Standalone vs. Multi-Host + +| Design Aspect | Current Multi-Host Legacy | Standalone Workstation Ideal | +| :--- | :--- | :--- | +| **Host Directory** | `hosts/laptop/` (defensive nesting anticipating sibling hosts) | Direct `system/` or root `configuration.nix` (no dummy nesting) | +| **User Modules** | 3 artificial tiers (`base`, `apps`, `graphical`) across 6 files | Domain modules (`desktop`, `dev`, `shell`) | +| **Package Attribution** | Dispersed across 7 separate `packages = with pkgs; [...]` lists | Consolidated by domain (e.g., dev packages live in `dev.nix`, GUI tools in `desktop.nix`) | +| **Mental Model** | *"Is this package safe for a headless server?"* | *"What domain does this tool belong to on my laptop?"* | +| **Aliases & Scripts** | Conditioned or sprinkled with leftover specialisations (`server-on/off`) | Tailored strictly to local workflow + remote client connections | + +--- + +## Part 2: Phased Implementation Roadmap + +To avoid unnecessary risk, the refactor follows a structured two-phase trajectory: + +``` +Phase 1: Immediate Decoupling & Server Pruning +(Decommission server host, delete server files, clean aliases, update docs) + ↓ +Phase 2: Workstation Architectural Consolidation +(Consolidate system modules, dissolve Home Manager tiers into domain modules) +``` + +--- + +### Phase 1: Server Decommission & Decoupling (Immediate Scope) + +#### 1. Host Declarations (`flake.nix`) +- Remove the `nixosConfigurations.server` definition block. +- Retain `nixosConfigurations.laptop` as the sole workstation target. +- Preserve existing flake inputs and `flake.lock` integrity. + +#### 2. File Removal (`hosts/server/`) +- Remove the `hosts/server/` directory and all its contents: + - `configuration.nix` (Headless server NixOS configuration) + - `hardware-configuration.nix` (Server hardware parameters) + - `home.nix` (Server diagnostic tools profile) + - `secrets.yaml` (Encrypted server secrets) + - `ddclient.conf` & `dynu.nix` (Dynu DDNS update configuration) + - `homeserver.nix` (Core homelab runtime services) + - `monitor.py` (WAN IP rotation detector) + - `traefik-deployments.nix` (Edge proxy configuration) +- *Verification Invariant*: Confirm all homelab services have corresponding canonical representations in [`homelab-core`](file:///home/kiskaadee/Projects/active/homelab/Core/nixos). + +#### 3. User Modules & Workstation Cleanup +- **`modules/user/base.nix`**: + - Remove obsolete `server-on` and `server-off` aliases referencing legacy hardware specialisations. + - Preserve SSH client host configurations (`server-local`, `server-remote`, `gitea.roadtotech.me`) to ensure uninterrupted remote management from the workstation. +- **`modules/user/neovim.nix`** & **`hosts/laptop/configuration.nix`**: + - Update comments and headers referencing desktop/server profiles. + +#### 4. Documentation Rework +- **`architecture.md`**: + - Update repository role to single-workstation architecture (`laptop`). + - Update topology tree and Mermaid diagrams to remove `server`. + - Update Layer Responsibilities and Placement Guide to omit homelab/DDNS rows, noting the homelab boundary in `Core`. + - Update Architectural Invariants (Invariant 3 and 6) to reflect workstation-focused boundaries and validation. +- **`AGENTS.md`**: + - Update scope and validation matrix to `laptop` only. + - Remove server dry-build verification instructions (`nixosConfigurations.server`). + - Update Section 5 (Host Isolation & Homelab Infrastructure) to document that homelab services are managed in `Core`. +- **`README.md`**: + - Update title, description, and Mermaid diagram to focus on the Niri-based workstation environment. + - Remove `hosts/server/` directory overview. + - Remove Section 1 (Smart Dynamic DNS Monitor) from specialized automation. + - Remove server rebuild instructions (`#server`). + - Update Secrets Management and Reference Documentation sections. +- **`docs/dynu-ip-monitor.md`**: + - Remove this file as the service is now homelab-internal under `Core`. +- **`docs/package-and-secrets.md`**, **`docs/secrets-management.md`**, **`docs/system-maintenance.md`**: + - Update server-specific examples (e.g., `systemctl status dynu-monitor.service`, `hosts/server/secrets.yaml`, dynu registration snippets) to workstation equivalents. + +--- + +### Phase 2: Workstation Architectural Consolidation (Future Scope) + +Once the server removal has stabilized: +1. Flatten `hosts/laptop/` into a unified system profile (`system/`). +2. Dissolve the 3 Home Manager tiers (`Tier 1 / Tier 2 / Tier 3`) into clean functional domains (`desktop`, `dev`, `shell`). +3. Consolidate package lists by domain, eliminating duplicated definitions. + +--- + +## Part 3: Verification & Invariant Proofs + +Before committing Phase 1 changes in the `Config` repository, verify all invariants: + +1. **Flake Integrity**: + ```bash + nix flake check + ``` +2. **Workstation Build Verification**: + ```bash + nix build .#nixosConfigurations.laptop.config.system.build.toplevel --no-link + ``` +3. **Clean Git Working Tree**: + ```bash + git status + git diff + ``` + Confirm clean removal of server files without touching unrelated laptop workstation configurations. diff --git a/projects/supervisor/README.md b/projects/supervisor/README.md new file mode 100644 index 0000000..01716bd --- /dev/null +++ b/projects/supervisor/README.md @@ -0,0 +1,101 @@ +--- +type: project +status: active +tags: + - supervisor + - agent + - developer-tools + - productivity +--- + +# 🛰️ Personal Engineering Progress & Implementation Supervisor + +The **Supervisor** project encompasses the architecture, specifications, tools, and workflows for a project-agnostic engineering progress tracking and supervisory system. + +The system bridges high-level architectural specifications in the Brain with ground-level code changes across any local repository, operating as a non-intrusive navigator, invariant verifier, and progress tracker. + +--- + +## 🏛️ System Topology & Architecture + +```mermaid +flowchart TB + subgraph BRAIN["Brain Knowledge Graph"] + P["Canonical Implementation Plan
(Markdown Roadmap)"] + end + + subgraph SUPERVISOR["Supervisor Control Plane"] + S["Session Controller
(Project, Repo Path, Active Deliverable)"] + T["Plan & Task Projection Engine
(todo.txt generator & sync)"] + V["Workspace & Invariant Verifier
(git diff, test runners)"] + end + + subgraph WORKSPACE["Target Project Workspace"] + direction TB + R["Active Repository
(homelab, bitetrack, magnetflix)"] + TODO["todo.txt
(Tactical task projection)"] + SRC["Working Tree & Source Files"] + end + + subgraph INTERFACE["Operator Interfaces"] + CLI["CLI / Terminal Native"] + UI["Local Dashboard / Web UI"] + AGENT["Agent Supervisors
(Antigravity / Houston)"] + end + + P <-->|"Bidirectional Sync"| T + S --> T + S --> V + T -->|"Projects tasks"| TODO + V -->|"Observes diffs & tests"| SRC + INTERFACE <--> S +``` + +### Core Architecture Layers: +1. **Session & Focus Controller**: Tracks the active work session (target project, workspace directory, canonical plan, active deliverable, cadence, and deadlines). +2. **Plan & Task Projection Engine**: Translates canonical Brain markdown plans into compact, low-friction `todo.txt` tasks at the root of the active workspace, with bidirectional status sync. +3. **Workspace & Invariant Verifier**: Observes uncommitted git diffs, runs project-specific test invariants, and categorizes findings into Verified, In-Progress, or Violation states without generating unsolicited code. +4. **Operator Interfaces**: Surfaces progress feeds, invariant checks, and conversational queries through local dashboard views and agent tools. + +--- + +## 📍 Source Code & Locations + +| Target | Location / URL | Description | +| :--- | :--- | :--- | +| **Brain Plans** | [`projects/supervisor/plans/`](plans/) | Authoritative specifications and architectural designs | +| **Agent Customizations** | `~/.gemini/config/skills/` / `.agents/skills/` | Skill definitions and supervisor heuristics | +| **Active Target Repos** | `/home/kiskaadee/Projects/active/` | Monitored repositories (Core, MagNetFlix, nekoweb, etc.) | + +--- + +## 💬 Open Discussions + +Architectural inquiries and problem statements currently under evaluation that have **not yet produced an active implementation plan**: + +* *(No unresolved discussions currently open)* + +--- + +## 🚧 Work in Progress (Active Plans) + +Implementation roadmaps currently in progress (`status: active`) that are actively being executed or scheduled for deployment: + +1. 🟡 [**Personal Engineering Progress & Implementation Supervisor Specification**](plans/supervisor-system-specification.md) `[Active]` + - Foundational requirements specification defining the problem, global goals, functional/non-functional requirements, and system boundaries. + +--- + +## 🛠️ Canonical Guides & Runbooks + +Operational procedures and step-by-step SOPs: + +* *(Operational guides will be documented as the tool is implemented)* + +--- + +## 🏛️ Completed Milestones & Resolved Discussions + +Archived and foundational documentation for completed milestones: + +* *(None yet; initial project bootstrap)* diff --git a/projects/supervisor/plans/supervisor-system-specification.md b/projects/supervisor/plans/supervisor-system-specification.md new file mode 100644 index 0000000..f2e5866 --- /dev/null +++ b/projects/supervisor/plans/supervisor-system-specification.md @@ -0,0 +1,125 @@ +--- +type: plan +status: active +project: supervisor +tags: + - supervisor + - architecture + - specification + - workflow + - productivity +--- + +# Specification: Personal Engineering Progress & Implementation Supervisor + +## 1. Problem Statement + +When an engineer tackles large, multi-phase technical roadmaps independently, a fundamental operational tension emerges between **high-level planning** and **ground-level execution**: + +1. **Passive Generation vs. Active Understanding**: Automated agentic code generation often robs the engineer of internalizing the system's nuance, debugging intuition, and architectural muscle memory. The engineer wants to be the **sole driver of the code**, but still desires continuous, objective verification. +2. **Context & Invariant Drift**: As complex projects evolve over days or weeks, subtle architectural constraints (trust boundaries, contract invariants, security threat models, and explicit failure semantics) easily slip from mind. +3. **Granularity Disconnect**: Detailed architectural plans (e.g., multi-page markdown roadmaps) provide macro clarity but fail as tactical, zero-friction execution tools in the terminal during active coding sessions. +4. **Project Fragmentation**: Personal engineering spans multiple disparate repositories and stacks (infrastructure, backend services, client tools). There is no standardized, portable mechanism to set an active work session, project canonical plan deliverables into local task trackers, and evaluate repository progress across different projects without starting from scratch each time. + +--- + +## 2. Global Long-Term Objective + +Establish a **project-agnostic Engineering Progress Tracking & Supervisory System** that bridges high-level architectural specifications with active local workspace changes. + +The system acts strictly as a **navigator, observer, and progress verifier**: +- It empowers the engineer to drive the implementation manually. +- It continuously monitors changes against declared contracts and test invariants. +- It tracks and surfaces deliverable progression across any codebase with zero manual administrative overhead. + +--- + +## 3. High-Level Goals + +1. **Preserve Developer Agency**: The system must never write or mutate implementation code autonomously. It observes, evaluates, and advises. +2. **Universal Project Portability**: The same supervisory model and tracking workflows must apply identically whether the engineer is working on an infrastructure appliance (`homelab`), a media worker (`magnetflix`), a backend service (`bitetrack`), or a personal website. +3. **Single Source of Truth with Local Projection**: Long-form plans in the knowledge graph remain canonical, while ground-level task trackers (e.g., standard one-liner `todo.txt` files) in active repository checkouts serve as tactical projections. +4. **Continuous Contract & Quality Feedback**: Provide actionable feedback on local changes against the active plan's threat boundaries, design rules, and test invariants before changes are committed. +5. **Legible State Progression**: Eliminate ambiguity around *what is done*, *what is in progress*, and *what is next* across all active engineering initiatives. + +--- + +## 4. Requirements + +### 4.1 Functional Requirements (FR) + +#### FR-1: Session & Focus Definition +* **FR-1.1**: The system must allow defining an active **Work Session** comprising: + * **Target Project**: Logical identifier of the project. + * **Workspace Path**: Local filesystem path of the repository checkout. + * **Canonical Plan**: Path/URI to the authoritative roadmap or implementation specification. + * **Active Deliverable**: The specific milestone or task currently being addressed. + * **Constraints & Deadlines**: Any target completion dates, performance budgets, or scope exclusions. + * **Evaluation Cadence**: Trigger policies for feedback (e.g., file-save events, git commit hooks, or periodic polling intervals). +* **FR-1.2**: Switching active sessions must be atomic and require no project-specific re-configuration. + +#### FR-2: Bidirectional Plan & Task Projection +* **FR-2.1**: The system must parse canonical plan documents and project their deliverables into compact, standardized, human-readable task lists at the root of the active workspace. +* **FR-2.2**: Projected tasks must support prioritization, project scoping, and contextual tags (e.g., standard `todo.txt` syntax). +* **FR-2.3**: Synchronization must be bidirectional: marking a task complete locally or verifying a deliverable must reflect in the canonical plan, and changes in the canonical plan must update the local task representation. + +#### FR-3: Workspace Observation & Diff Analysis +* **FR-3.1**: The system must observe uncommitted workspace modifications (working tree diffs, staged changes, newly created files) without requiring a git commit or push. +* **FR-3.2**: The system must correlate observed changes directly to the active deliverable declared in the current session. + +#### FR-4: Contract & Invariant Verification +* **FR-4.1**: The system must evaluate workspace changes against declared project invariants (e.g., prohibited patterns, architectural boundary violations, security threat model regressions). +* **FR-4.2**: The system must support running and capturing the results of project-specific verification commands (e.g., unit test suites, structural linters, type checks, schema validators). +* **FR-4.3**: The system must categorize evaluation results into explicit, deterministic states: + * **Compliant / Verified**: Deliverable criteria met, invariants intact, tests passing. + * **In-Progress / Partial**: Change in progress, no violations detected. + * **Violation / Regression**: Architectural boundary breached, invariant broken, or security constraint violated. + +#### FR-5: Multi-Modal Feedback & Querying +* **FR-5.1**: The system must expose evaluation feedback via ambient inspection (e.g., local dashboard feed, status summaries). +* **FR-5.2**: The system must support on-demand interrogation, allowing the engineer to ask questions about the current diff, edge cases, or next steps in the plan. +* **FR-5.3**: Feedback must focus strictly on rationale, boundary compliance, edge cases, and verification proofs—never on unsolicited boilerplate generation. + +#### FR-6: Historical Progress Auditing +* **FR-6.1**: The system must maintain an append-only log of session milestones and completed deliverables with timestamps, commit SHAs, and verification status. + +--- + +### 4.2 Non-Functional Requirements (NFR) + +#### NFR-1: Non-Intrusive Workflow +* **NFR-1.1**: The system must operate strictly out of band. Failure, lag, or downtime of the supervisory system must never block git operations, editor responsiveness, or the ability to build and run the codebase. +* **NFR-1.2**: The system must make zero modifications to existing source files without explicit confirmation. + +#### NFR-2: Zero External Dependency on Source Trees +* **NFR-2.1**: The system must not mandate vendor-specific configuration files, custom frameworks, or proprietary libraries inside the target project’s source code. +* **NFR-2.2**: The local task artifact (`todo.txt`) must adhere to open, plain-text standards readable by standard CLI and text utilities. + +#### NFR-3: Privacy & Data Sovereignty +* **NFR-3.1**: All workspace analysis, diff evaluation, and session metadata must reside locally on the engineer's workstation. +* **NFR-3.2**: Sensitive credentials, environment files, and `.gitignore`-excluded files must be excluded from inspection by default. + +#### NFR-4: Performance & Resource Footprint +* **NFR-4.1**: Observation cycles must execute with minimal CPU and memory overhead, deferring heavy verification passes to deliberate trigger points. +* **NFR-4.2**: Workspace diff capture must complete in sub-second time on standard repositories. + +--- + +## 5. System Boundary & Explicit Non-Goals + +To maintain conceptual purity, the following are **explicitly out of scope**: + +* **Not an Automated Code Generator**: The tool will not write feature implementations, refactor files automatically, or replace developer coding. +* **Not a Project Management SaaS**: The system is not a cloud ticketing tool (Jira, Linear, GitHub Issues) or a multi-user collaborative dashboard. It is a personal developer feedback loop. +* **Not a CI/CD Orchestrator**: The system does not replace remote CI runners (Gitea Actions, GitHub Actions); it provides pre-commit, real-time local feedback. +* **Not a Language-Specific Linter**: The system does not reimplement AST analysis for specific languages; it orchestrates existing project-native verification tools. + +--- + +## 6. Success Criteria + +A successful realization of this specification means: + +1. **Seamless Context Switching**: Starting a work session on any project requires only selecting the project and plan; the workspace immediately populates with current actionable tasks. +2. **Zero Invariant Regressions**: Architectural and security invariants defined during planning are caught locally *before* code is staged or committed. +3. **High Developer Momentum**: The engineer stays focused on writing code with immediate clarity on the next micro-task and continuous confidence that the implementation matches the design.