refactor(conductor/product-guidelines.md): thin-pointer §AI-Optimized Compact Style Indentation + Newlines to python.md
Per agent_directives_consolidation_20260705 §3.4. The 2 duplicate bullets (Indentation, Newlines) are replaced with a 1-line pointer to conductor/code_styleguides/python.md §1, the canonical home for Python style. The 4 project-specific bullets (Vertical Compaction, Region Blocks, Type Hinting, SDM) are preserved — they are unique to this project. Net: 6 lines reduced to 1 line of pointer + 4 preserved bullets.
This commit is contained in:
@@ -51,8 +51,8 @@ The canonical mandate is in `conductor/code_styleguides/data_oriented_design.md`
|
||||
|
||||
## AI-Optimized Compact Style
|
||||
|
||||
- **Indentation:** Exactly **1 space** per level. This minimizes token usage in nested structures.
|
||||
- **Newlines:** Maximum **one (1)** blank line between top-level definitions. **Zero (0)** blank lines within function or method bodies.
|
||||
For the **Indentation** and **Newlines** rules (1-space indent, blank-line rules), see `conductor/code_styleguides/python.md` §1 (the canonical home for Python style). The project-specific rules for this project:
|
||||
|
||||
- **Vertical Compaction:** Use single-line `if` statements, semicolon-separated framework calls (`imgui.same_line(); imgui.text(...)`), and aligned assignments to aggressively minimize vertical line counts. **Note:** Function and method definition signatures (`def ...:`) must ALWAYS remain on their own isolated lines.
|
||||
- **Region Blocks:** Use `#region: Name` and `#endregion: Name` to logically organize massive files that cannot be easily broken apart without increasing context load.
|
||||
- **Type Hinting:** Mandatory, strict type hints for all parameters, return types, and global variables to ensure high-signal context for AI agents.
|
||||
|
||||
Reference in New Issue
Block a user