# Ktor: preserve requirements through advanced agent edits - [Apply backpressure to Ktor background work with a bounded coroutine channel](https://frameworkrecipes.dev/ktor/bounded-request-worker/guide.md): Launching one detached coroutine per incoming request lets traffic outrun a slow downstream service. A finite channel bounds pending work; trySend tells the route when it must return an overload response. A lifecycle-owned scope keeps the worker attached to application shutdown. - [receipt-queue-bounded rule pack](https://reporules.fyi/ktor/bounded-request-worker/rule-pack.zip): YAML requirement and agent task. - [Preserve Kotlin coroutine cancellation in a Ktor service](https://frameworkrecipes.dev/ktor/cancellation-propagation/guide.md): A broad exception handler can turn request cancellation into normal success. That prevents structured parents from stopping work and may cause the caller to send stale data or continue a mutation. Handle ordinary failures separately from cancellation. - [coroutine-cancellation-rethrown rule pack](https://reporules.fyi/ktor/cancellation-propagation/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/ktor/rule-pack.zip): All requirements from this framework site.