feat(directives): add rule-statement header to 33-40 of 66 v1.md files

This commit is contained in:
ed
2026-07-03 09:45:48 -04:00
parent e9275236f2
commit ead7cf2869
8 changed files with 16 additions and 0 deletions
@@ -1,3 +1,5 @@
# State-independent logic must be moved to module-level functions (avoid god-object controllers)
From `conductor/product-guidelines.md` §"Code Standards & Architecture":
- **Modular Controller Pattern:** To prevent "God Object" bloat in core controllers (like `AppController`), all state-independent or utility logic must be moved to module-level functions. Functions requiring class state should accept the instance as an explicit dependency (`def logic(controller: AppController, ...)`). Massive `if/elif` dispatch blocks must be refactored into handler maps (dictionaries) of module-level functions.