Lua module reload recovery via package.loaded invalidation
Lua caches loaded modules in package.loaded , and require returns the cached value without re-running the loader. The goal is to discard a broken or partially initialized module table after a failed upgrade and force a clean reload from disk. Invalidating package.loaded[modname] does not revoke references already held by other modules, so dependents may reta