# OpenResty: preserve requirements through advanced agent edits - [Protect OpenResty stock decisions across workers with a shared lock](https://frameworkrecipes.dev/openresty/shared-dictionary-lock/guide.md): A Lua module variable is per worker, while ngx.shared provides shared state. A get-then-set sequence still needs a lock when the operation consists of several steps. Check current availability under that lock and release it even if the operation raises. - [shared-stock-availability rule pack](https://reporules.fyi/openresty/shared-dictionary-lock/rule-pack.zip): YAML requirement and agent task. - [Do not acknowledge OpenResty background work before timer admission](https://frameworkrecipes.dev/openresty/timer-admission/guide.md): OpenResty has finite pending-timer capacity. A failed timer creation means the delivery task was never scheduled. Return an overload failure instead of telling the caller that absent work was accepted. - [timer-admission-must-succeed rule pack](https://reporules.fyi/openresty/timer-admission/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/openresty/rule-pack.zip): All requirements from this framework site.