Private
Public Access
0
0

refactor(directives): strip metadata header from v1.md (27-35 of 51; meta extracted to meta.md)

This commit is contained in:
2026-07-02 23:46:41 -04:00
parent 831499622d
commit 68352ee206
18 changed files with 91 additions and 82 deletions
@@ -0,0 +1,10 @@
# modular_controller_pattern
## v1
**Why this iteration:** Lifted verbatim from `conductor/product-guidelines.md` §"Code Standards & Architecture" (line 40) + `conductor/code_styleguides/python.md` §15 (lines 234-240). This is the baseline encoding — the imperative-bullet style currently in production.
Future variants will test alternative encodings (rationale-first, tabular) against this baseline.
**Source:** `conductor/product-guidelines.md:40 + python.md:234-240`
---
**Lifted:** 2026-07-02 (Phase 1 harvest by Tier 3 worker; user directive 2026-07-02 moved the header into this meta file)
@@ -1,12 +1,3 @@
# modular_controller_pattern — v1
**Why this iteration:** Lifted verbatim from `conductor/product-guidelines.md` §"Code Standards & Architecture" (line 40) + `conductor/code_styleguides/python.md` §15 (lines 234-240). This is the baseline encoding — the imperative-bullet style currently in production.
Future variants will test alternative encodings (rationale-first, tabular) against this baseline.
**Source:** `conductor/product-guidelines.md:40 + python.md:234-240`
---
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.