From CGI to PSGI without changing behaviour
- Problem
- The script mixes HTTP, business rules, files and process assumptions.
- Decision
- Freeze the HTTP contract before moving the execution boundary.
- Result
- A staged path that keeps rollback possible and exposes persistent-process bugs early.
Editorial check