1.4 KiB
1.4 KiB
Specification: AppController Curation & Structural Alignment
Context
Following the successful cleanup and refactoring of gui_2.py, the same organizational patterns and AI-optimized coding conventions must be applied to src/app_controller.py. This module is a critical part of the Manual Slop architecture, acting as the bridge between the GUI and the underlying AI/MCP systems.
Goals
- Structural Parity: Reorganize
src/app_controller.pyto match the structure and quality ofgui_2.py. - Standardization: Enforce the AI-Optimized Python Style Guide (1-space indent, minimal blank lines, type hints, SDM tags).
- Refactoring: Identify and extract logic that violates the 5-level nesting limit or is better suited as module-level functions.
- Validation: Ensure full system integrity via the comprehensive test suite, run in batches of 4.
Scope
src/app_controller.py: Primary target for refactoring and curation.conductor/code_styleguides/python.md: Potential updates if new nuances are found.conductor/product-guidelines.md: Potential updates based on structural findings.
Constraints
- Indentation: Must be exactly 1 space.
- Scoping: Use
imscopefor any ImGui-related calls if present (thoughapp_controllershould ideally be logic-focused, some status rendering might exist). - Anti-OOP: Move state-independent methods to module level.
- Type Safety: 100% type hint coverage for all modified sections.