You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
session prune: a short stall during teardown leaves permits/ in a retained session directory forever #434
Found in the council review of the fix for #414 (branch fix/414-prune-empty-session-dir).
A first permit caller for a session with no takeover identity re-reads the session record, then creates the session directory and its identity (packages/core/src/takeover.ts). If it passes the record check and stalls only while teardown runs, then resumes before prune, it finds the retained directory (with stopped.json and the logs), creates permits/ inside it, publishes an identity marker, and fails closed. The retained directory now holds permits/, which the normal prune path does not allow, so prune keeps the directory and both markers forever.
No input is delivered, so this is safe, but it is the same symptom as #414 and needs a shorter stall than the routes #414 fixes. A reviewer reproduced it with a script against the branch: after the caller resumed, the directory held permits, stopped.json and xvfb.log, and prune returned nothing even after everything was backdated.
Activity