docs(styleguides+harness-plan): fix stale models.py refs + harness plan line drift
Styleguides: - agent_memory_dimensions.md: FileItem/ContextPreset line refs (src/models.py:510-559 / 909-937) -> src/project_files.py + src/context_presets.py (moved per module_taxonomy_refactor_20260627). - config_state_owner.md: 'file I/O primitives in src/models.py' -> src/project_manager.py (the config-load/save helpers moved). - python.md §10 NOT-exempt list: '12 per-aggregate types' -> ~19; 'dataclass types in src/models.py' -> per-system files enumeration (mma.py, project_files.py, mcp_tool_specs.py, result_types.py, personas.py, workspace_manager.py, mcp_client.py). - type_aliases.md: type-registry lookup examples updated to the per-system files (src_mma.md, src_project_files.md, etc.); the 'src/models.py: 48 dataclass field types' worked-example line is flagged as historical (pre-refactor state). Harness plan (directive_hotswap_harness_20260627/plan.md): - §17 line refs corrected: 17.1 220-237 -> 247-264; 17.2 239-250 -> 266-277; 17.3 252-272 -> 279-299; 17.4 274-299 -> 301-326; 17.5 301-311 -> 328-338; 17.6 313-323 -> 340-350; 17.7 325-327 -> 352-354; 17.9 336-409 -> 364-443. - §17 master range 216-409 -> 243-473. - §12 175-184 -> 202-211; §13 185-199 -> 212-224; §15 205-215 -> 234-241. - error_handling.md: hard rules 212-242 -> 212-264; boundary types 274-311 -> 284-365. - type_aliases.md: 40-81 -> 13-87 + 89-160 + 284-365 (the alias table + decision pattern 2.5 + boundary/anti-pattern sections).
This commit is contained in:
@@ -150,9 +150,9 @@ When refactoring a class to functions:
|
||||
| `HotReloader` + `HotModule` | `src/hot_reloader.py:21,15` | HOT_MODULES registry, last_error, is_error_state |
|
||||
|
||||
**NOT exempt** (these are dataclasses / data carriers / context managers, not stateful subsystems):
|
||||
- All `@dataclass(frozen=True)` types in `src/type_aliases.py` (12 per-aggregate types) — pure data
|
||||
- All `@dataclass(frozen=True)` types in `src/type_aliases.py` (~19 per-aggregate types: Metadata, CommsLogEntry, HistoryMessage, ToolDefinition, SessionInsights, DiscussionSettings, CustomSlice, MMAUsageStats, ProviderPayload, UIPanelConfig, PathInfo, FileItemsDiff, JsonPrimitive, JsonValue, etc.) — pure data
|
||||
- All `@dataclass(frozen=True)` types in `src/openai_schemas.py` (`ToolCall`, `ChatMessage`, `UsageStats`, `NormalizedResponse`, etc.) — pure data
|
||||
- All `@dataclass` types in `src/models.py` (Ticket, Track, Persona, FileItem, ContextPreset, etc.) — pure data
|
||||
- All `@dataclass` types in the per-system files (formerly in `src/models.py`, now moved out per `module_taxonomy_refactor_20260627`): `Ticket`/`Track`/`WorkerContext`/`TrackMetadata` in `src/mma.py`, `FileItem` in `src/project_files.py`, `ToolSpec` in `src/mcp_tool_specs.py`, `Result`/`ErrorInfo` in `src/result_types.py`, `Persona` in `src/personas.py`, `WorkspaceProfile` in `src/workspace_manager.py`, `RAGConfig`/`MCPServerConfig` in `src/mcp_client.py` — pure data
|
||||
- All context-manager wrappers in `src/imgui_scopes.py` (`_ScopeChild`, `_ScopeGroup`, etc.) — they wrap scope, not state
|
||||
- `HotModule` is exempt only because it's paired with the `HotReloader` registry class — keep them together
|
||||
|
||||
|
||||
Reference in New Issue
Block a user