Repository navigation
Commit ed93bcd
chore: delete the orphaned helper_nodes package, keeping its two corrections
langgraph_engine/helper_nodes/ held five modules and 538 lines that nothing
imported. CLAUDE.md has described it as "scheduled for removal in a follow-up
cleanup" since the subpackage migration; this is that cleanup. Closes item 3 of
issue #296.
"No importers" was not the whole justification, and checking further changed
what this commit does. All nine of the package's public node functions are also
defined in orchestrator.py -- the module create_flow_graph actually wires -- so
this was an extraction that was begun and never finished, not a component that
lost its callers. Both copies were last touched by the same commit (06b0463,
the Level/Step rename), which had been maintaining them in lockstep.
Comparing the two copies function by function found five character-identical and
four divergent. The divergences are mostly the adaptations a deeper package
needs -- parent.parent.parent instead of parent.parent, renamed module constants,
different log tags -- but two of them are documentation corrections that exist
ONLY in the orphaned copy, with the stale text in the live one:
save_workflow_memory's comment named ~/.claude/memory/sessions/ while the code
beneath it writes to memory/logs/sessions/. The comment contradicted the line
it described.
optimize_context_after_level1 said "Level 3" in a docstring line, a summary
line and an inline comment. Level 3 stopped existing in 06b0463, which renamed
it to Level 2. The orphan's docstring was updated by that rename; the live
one's was not.
Both are ported into orchestrator.py here, before the deletion rather than
alongside it, so nothing is discarded that the live module lacked. Deleting the
package first and noticing afterwards is how a fix disappears without anyone
recording that it ever existed.
The Quick Info counts move 253 -> 248 and 493 -> 488. That was not spotted by
hand: tests/test_doc_counts_match_the_tree.py, merged one commit ago in #297,
failed on the deletion and named both figures. It is the first thing that
enforcement caught, and it caught it immediately.
Verified: orchestrator imports and create_flow_graph(hook_mode=True) builds a
graph, every test that touches the orchestrator passes, all six CI gates pass,
test collection is clean, and no .py file anywhere still names helper_nodes.
CHANGELOG.md, docs/orchestration_prompt.md and docs/architecture/ still refer to
the package. The CHANGELOG entry and the architecture draft are point-in-time
records; orchestration_prompt.md explicitly sequenced this removal as separate
work, which is exactly what happened. Rewriting any of them would falsify the
history rather than correct it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 1afcecf commit ed93bcd
8 files changed
Lines changed: 8 additions & 545 deletions
File tree
- langgraph_engine
- helper_nodes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments