Task · TSO-0088

Clarify App.Close flow-store ownership outside Run shutdown

Description

Wave 1 review found that the normal Run shutdown closes per-tailnet flow stores, but App.Close does not. Confirm whether App.Close is a supported lifecycle entry point for tests or embedders. If it is, ensure it cannot leave flow-store workers and databases open; otherwise document and guard the ownership contract.

Acceptance Criteria

Definition of Done

Implementation Plan

Lane I fixes App.Close flow-store ownership outside Run shutdown with a failing lifecycle test first and no public API break.

Final Summary

Made all supported App lifecycle exits close or transfer every per-tailnet flow store and added a focused guard for the non-Run shutdown path. Implementation SHA f35b6ab. Final integrated just check passed at 5b55617; exact-head CI run 33354208183 completed success.

View the source file on GitHub