# Axum: preserve requirements through advanced agent edits - [Keep Axum’s verified tenant inside the SQLx order update](https://frameworkrecipes.dev/axum/tenant-conditional-write/guide.md): Middleware can authenticate an Axum request while the handler still writes globally. Extract the verified actor and include tenant and owner in the SQL statement that changes state. The affected-row check rejects inaccessible or already transitioned rows. - [tenant-is-in-update rule pack](https://reporules.fyi/axum/tenant-conditional-write/rule-pack.zip): YAML requirement and agent task. - [Stop an Axum worker while it waits for queued input](https://frameworkrecipes.dev/axum/owned-worker-shutdown/guide.md): Graceful HTTP shutdown does not automatically stop a separately spawned worker. Give the worker a token, use a cancellation-safe channel receive, signal the token with server shutdown, and await the JoinHandle before the process exits. - [worker-has-shutdown-branch rule pack](https://reporules.fyi/axum/owned-worker-shutdown/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/axum/rule-pack.zip): All requirements from this framework site.