# Fastify: preserve requirements through advanced agent edits - [Keep Fastify permission hooks inside the protected plugin](https://frameworkrecipes.dev/fastify/plugin-permissions/guide.md): Plugin encapsulation lets a permission hook cover the mutation routes without changing unrelated public routes. Authentication alone is insufficient: a signed-in read-only account must still be rejected before the handler changes an order. - [orders-write-permission rule pack](https://reporules.fyi/fastify/plugin-permissions/rule-pack.zip): YAML requirement and agent task. - [Keep Fastify reservation and order writes on the same transaction client](https://frameworkrecipes.dev/fastify/shared-transaction-client/guide.md): A transaction callback can look atomic while a helper accidentally uses the pool. That helper’s write can commit independently. Pass the transaction client through every helper belonging to the reservation workflow, and let errors propagate to roll back. - [reservation-transaction-client rule pack](https://reporules.fyi/fastify/shared-transaction-client/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/fastify/rule-pack.zip): All requirements from this framework site.