Module 09 Refactoring Guide¶
Page Maps¶
graph LR
family["Python Programming"]
program["Python Functional Programming"]
section["Ecosystem Interop Boundary Discipline"]
page["Module 09 Refactoring Guide"]
capstone["Capstone evidence"]
family --> program --> section --> page
page -.applies in.-> capstone
flowchart LR
orient["Orient on the page map"] --> read["Read the main claim and examples"]
read --> inspect["Inspect the related code, proof, or capstone surface"]
inspect --> verify["Run or review the verification path"]
verify --> apply["Apply the idea back to the module and capstone"]
Read the first diagram as a placement map: this page is one concept inside its parent module, not a detached essay, and the capstone is the pressure test for whether the idea holds. Read the second diagram as the working rhythm for the page: name the problem, study the example, identify the boundary, then carry one review question forward.
This guide closes Module 09. The real question is whether the course discipline survives contact with normal Python libraries, service boundaries, and team conventions.
Stable comparison route¶
- run
make PROGRAM=python-programming/python-functional-programming history-refresh - open
capstone/_history/worktrees/module-09/src/funcpipe_rag/ - compare
interop/,pipelines/, and the surrounding core packages they protect - read the interop and configured-pipeline tests under
capstone/_history/worktrees/module-09/tests/
What to refactor toward¶
- wrappers that let outside libraries serve the design instead of rewriting it
- explicit configuration through CLI, file, and service surfaces
- adoption patterns a team can repeat without guessing where purity ends
- integration points that stay reviewable because the core contract remains visible
Exit standard¶
Before Module 10, you should be able to explain how external tools fit the architecture without being allowed to define the architecture.