Split `forgelm/cli/_pipeline.py` into a sub-package (`_state`, `_events`, `_verify`)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with forgelm/cli/_pipeline.py and the _DEFERRED_SPLITS entry in tools/check_module_size.py, then the deferral row near line 261 of docs/roadmap/risks-and-decisions.md. The split seams are recorded only in that doc, so read them before moving code. Done means a behaviour-neutral sub-package where every public name still imports from the old path, test patch targets retargeted, and the module-size check passing. Coordinate with #714 and #667/#668 first.
Written by the indexing model from the issue text.
Description
Deferred work ·
F-W20260729-OPS-10-budgets: _pipeline.py· severity Low · cost ~4-8 h · recorded indocs/roadmap/risks-and-decisions.md:261
Summary
forgelm/cli/_pipeline.py is a deferred module split: the multi-stage pipeline orchestrator's state, event emission and verification live in one CLI-side file. The module-size guard holds it to a fatal no-growth budget, but nothing pays the debt down until someone takes the split. #714 (CR-A04-086) separately asks for the orchestrator's business logic to move out of cli/; decide the two together.
Condition or budget
The Phase 14.5 manifest-verification rewrite has landed (it shipped in v0.10.0) — already met, so this split can be taken now.
State today (re-checked 2026-10-09)
1332 code lines against a budget of 1332; the split was blocked only by the Phase 14.5 rewrite, which shipped in v0.10.0.
Related
#667 and #668 track how the module-size guard counts lines and accepts budget raises; decide them before relying on a module's budget.
Acceptance criteria
- The module becomes a sub-package along the recorded seams, behaviour-neutral, with every public name still importable from its current path.
- Its
_DEFERRED_SPLITSentry is removed fromtools/check_module_size.pyand every resulting module is under the normal ceiling. - Test patch targets that named the old module are retargeted to the module that resolves the name at call time (the
forgelm/verify.pysplit found five that silently moved). - The row is removed from the deferral table and the CHANGELOG names its ID (the table's removal contract).
Recorded in docs/roadmap/risks-and-decisions.md (read at f94595f) and re-checked against the code on 2026-10-09. The row leaves that table only when the fix is on main, the CHANGELOG names its ID and any promised guard exists.
- Dominant language
- Python
- Stars
- 9
- Forks
- 1
- Avg merge
- 8h 10m
- Merged PRs (30d)
- 5
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HodeTech/ForgeLM
-
area: dev-tooling bug severity: low source: roadmap wave: 4
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Site: the theme-locked --code-comment grey (#6a6f80) on the dark code surface is 3.8:1, below WCAG AA, in both themes (F-W1-SITE-06)Possibly taken @vortsghost2025 claimed this 1 day ago. Openarea: site bug good first issue severity: low source: review-2026-09 wave: 4
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
documentation good first issue severity: medium source: review-2026-09 wave: 3
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
documentation good first issue severity: low source: review-2026-09 wave: 4
Difficulty 1/5 1-3 hours Newbie friendliness 80/100
-
documentation severity: medium source: review-2026-09 wave: 3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in HodeTech/ForgeLM
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
[Bug]: Importing weave changes the process-wide localePossibly taken @himanshu748 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
UX
Difficulty 1/5 Under an hour Newbie friendliness 72/100
mediajunkie/piper-morgan-product#2008 · 2 comments ·