# Qt: preserve requirements through advanced agent edits - [Protect Qt’s shared stock decision with one scoped mutex](https://frameworkrecipes.dev/qt/shared-stock-lock/guide.md): The availability check and decrement form one critical section. Locking only the decrement still permits two readers to decide against the same old count. RAII releases the mutex on every return path. - [reservation-checks-locked-stock rule pack](https://reporules.fyi/qt/shared-stock-lock/rule-pack.zip): YAML requirement and agent task. - [Dispose Qt network replies after their completion signal](https://frameworkrecipes.dev/qt/network-reply-lifetime/guide.md): A QNetworkReply remains an owned resource after the request finishes. Deferred deletion avoids deleting it directly from a signal callback while Qt is still delivering that signal. The owner destruction path aborts pending work; reply lifetime remains tied to completion and the manager. - [reply-has-deferred-deletion rule pack](https://reporules.fyi/qt/network-reply-lifetime/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/qt/rule-pack.zip): All requirements from this framework site.