You are balancing pressure to deliver new customer-facing functionality with growing technical debt in a core engineering area. Some parts of the system are slowing development, increasing incident risk, and making estimates less reliable, but refactoring will delay roadmap commitments in the short term.
How do you decide whether to invest in refactoring versus shipping new features?