#891 Split enterprise/platform_core/tools/platform.py (633 lines, over 550 hard cap)
Description
EditEARS SPEC:
- The file enterprise/platform_core/tools/platform.py shall be reduced to at most 500 lines, and shall never exceed the 550-line hard cap.
- When enterprise/platform_core/tools/platform.py is split, the module path callers already import shall keep working unchanged.
- The split shall NOT create module shadowing: no package may be created with the same name as a
module that remains on the same path.
- After the split the API route table (283), tool registry (126) and CLI tree (50) shall be
identical to the baseline captured under #854.
CURRENT: 633 lines (1.2x the 550 hard cap).
PARENT: #854.
METHOD (preferred): keep platform.py as the public surface and extract cohesive groups into SIBLING
modules with DISTINCT names, which platform.py imports. Do NOT create a directory named after platform.py
without the .py extension. Alternative: convert it into a package + __init__.py and DELETE the
original - but NEVER keep both, that is the shadowing trap.
VERIFY: re-run the three oracles from #854 and diff against baseline; run the test suite.
Comments
Loading comments...
Context
Loading context...
Audit History
View AllLoading audit history...