Module 08 Refactoring Guide¶
Page Maps¶
graph LR
family["Python Programming"]
program["Python Functional Programming"]
section["Async Pipelines Backpressure Fairness"]
page["Module 08 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 08. Async code should still be a coordination plan that a human can review. If the flow disappears behind runtime tricks, the module has not been learned honestly.
Stable comparison route¶
- run
make PROGRAM=python-programming/python-functional-programming history-refresh - open
capstone/_history/worktrees/module-08/src/funcpipe_rag/domain/effects/async_/ - compare the async coordination code with the queueing and adapter surfaces around it
- read the async tests in
capstone/_history/worktrees/module-08/tests/
What to refactor toward¶
- async steps described explicitly instead of scattered across implicit callbacks
- bounded queues and fairness policies that protect the system under load
- retry and timeout behavior expressed as policy rather than duplicated control flow
- deterministic tests that show what the runtime is allowed to do
Exit standard¶
Before Module 09, you should be able to explain how the runtime is driven, what limits throughput, and which tests prove the async plan remains reviewable.