Teknium
3ca97d5e59
fix(pm): orphan reclaim runs on every prune pass and keeps checkouts it cannot see
...
Follow-up to the review of this PR:
- The startup pruner returned early (no .worktrees/, or no tree past 24h) before the
reclaim ran, so a tree removed by hand kept its state until some other tree aged out.
_prune_stale_worktrees now runs the reclaim in a finally around the prune phases.
- A missing recorded path is not proof of deletion: a container sharing the data root
(-v ~/.hermes:/opt/data) cannot see the host's checkout, and gc there deleted the
host's live dependency environment. A state is an orphan only when its checkout sat
under the data root that owns installs/, or directly in a .worktrees/ dir that still
exists.
- PM runtime generation leases (pm-runtime/generations/*/.leases) now count as held,
so a worker still running from a deleted checkout's runtime keeps it.
2026-10-07 08:47:47 -07:00
..
2026-10-06 11:17:11 -04:00
2026-10-06 20:11:00 -04:00
2026-10-07 07:10:22 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 23:13:01 -07:00
2026-10-06 16:08:23 -04:00
2026-10-06 06:22:29 -07:00
2026-10-07 07:18:58 -07:00
2026-10-06 06:21:57 -07:00
2026-10-07 06:15:58 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:22:29 -07:00
2026-10-07 04:51:23 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 18:00:58 -04:00
2026-10-06 23:14:10 +05:30
2026-10-05 15:36:14 -07:00
2026-10-05 16:37:14 -05:00
2026-10-07 09:59:11 -04:00
2026-10-05 15:36:14 -07:00
2026-10-05 15:36:14 -07:00
2026-10-05 22:38:27 -05:00
2026-10-06 23:14:10 +05:30
2026-10-07 09:59:11 -04:00
2026-10-05 23:33:41 -07:00
2026-10-05 15:36:14 -07:00
2026-10-06 23:14:10 +05:30
2026-10-06 14:22:13 -07:00
2026-10-05 17:34:36 -07:00
2026-10-07 02:29:54 -07:00
2026-10-06 14:22:13 -07:00
2026-10-07 01:35:11 -07:00
2026-10-06 15:15:06 -04:00
2026-10-06 15:15:06 -04:00
2026-10-05 00:23:05 -07:00
2026-10-06 14:22:13 -07:00
2026-10-06 14:22:13 -07:00
2026-10-05 10:20:42 -05:00
2026-10-06 14:22:13 -07:00
2026-10-06 12:50:31 -07:00
2026-10-05 00:23:05 -07:00
2026-10-07 01:35:11 -07:00
2026-10-06 14:22:13 -07:00
2026-10-05 19:36:32 +05:30
2026-10-06 14:57:23 -05:00
2026-10-06 14:22:13 -07:00
2026-10-07 10:20:18 +05:30
2026-10-06 02:53:00 -07:00
2026-10-05 13:18:19 +05:30
2026-10-06 03:44:49 -07:00
2026-10-06 06:22:28 -07:00
2026-10-05 16:37:14 -05:00
2026-10-05 16:37:14 -05:00
2026-10-06 23:13:01 -07:00
2026-10-07 10:20:18 +05:30
2026-10-06 15:00:21 -05:00
2026-10-06 14:23:00 -04:00
2026-10-06 06:18:39 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 04:36:02 -07:00
2026-10-07 07:18:58 -07:00
2026-10-06 12:28:00 -04:00
2026-10-07 11:19:10 +05:30
2026-10-07 11:19:10 +05:30
2026-10-06 15:15:06 -04:00
2026-10-07 11:19:10 +05:30
2026-10-07 11:19:10 +05:30
2026-10-06 03:44:49 -07:00
2026-10-05 16:00:48 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 05:44:21 -07:00
2026-10-06 06:22:27 -07:00
2026-10-06 06:18:39 -07:00
2026-10-07 01:35:11 -07:00
2026-10-07 06:15:58 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 11:10:43 -07:00
2026-10-05 16:06:32 -07:00
2026-10-05 00:22:31 -07:00
2026-10-06 14:57:23 -05:00
2026-10-05 23:33:41 -07:00
2026-10-05 16:41:47 -05:00
2026-10-06 17:23:23 -04:00
2026-10-06 17:22:46 -04:00
2026-10-05 23:33:41 -07:00
2026-10-06 23:14:10 +05:30
2026-10-06 02:53:56 -07:00
2026-10-06 15:15:06 -04:00
2026-10-07 01:01:14 +05:30
2026-10-04 17:53:20 -07:00
2026-10-07 04:51:23 -07:00
2026-10-06 14:23:00 -04:00
2026-10-05 17:24:40 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 17:22:18 -04:00
2026-10-06 17:22:18 -04:00
2026-10-06 17:22:18 -04:00
2026-10-06 17:22:18 -04:00
2026-10-05 17:34:36 -07:00
2026-10-05 17:20:30 -07:00
2026-10-05 01:26:23 -07:00
2026-10-05 17:11:30 -07:00
2026-10-05 17:34:36 -07:00
2026-10-05 20:07:25 +05:30
2026-10-05 17:20:30 -07:00
2026-10-06 11:10:43 -07:00
2026-10-05 17:34:36 -07:00
2026-10-05 16:41:08 -05:00
2026-10-06 14:22:13 -07:00
2026-10-07 11:27:35 +05:30
2026-10-05 16:42:57 -05:00
2026-10-06 12:46:06 -04:00
2026-10-06 08:13:51 -04:00
2026-10-06 23:54:51 -05:00
2026-10-05 12:37:47 +05:30
2026-10-06 11:10:43 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 04:36:02 -07:00
2026-10-07 04:39:00 -07:00
2026-10-06 22:01:38 -07:00
2026-10-06 12:08:49 -07:00
2026-10-06 12:08:49 -07:00
2026-10-06 04:36:02 -07:00
2026-10-07 06:15:58 -07:00
2026-10-07 06:15:58 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:21:10 -07:00
2026-10-06 03:44:49 -07:00
2026-10-07 04:39:00 -07:00
2026-10-07 06:15:58 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:27:57 -07:00
2026-10-07 04:39:00 -07:00
2026-10-06 03:44:49 -07:00
2026-10-07 06:15:58 -07:00
2026-10-07 04:39:00 -07:00
2026-10-07 06:15:58 -07:00
2026-10-07 07:18:58 -07:00
2026-10-07 04:39:00 -07:00
2026-10-06 06:22:28 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:18:39 -07:00
2026-10-07 04:39:00 -07:00
2026-10-07 06:15:58 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 04:36:02 -07:00
2026-10-07 07:18:58 -07:00
2026-10-06 12:50:31 -07:00
2026-10-06 11:15:27 -04:00
2026-10-06 12:59:08 -05:00
2026-10-06 12:27:22 -04:00
2026-10-07 01:35:11 -07:00
2026-10-06 12:27:22 -04:00
2026-10-06 11:15:27 -04:00
2026-10-06 12:30:01 -04:00
2026-10-06 17:22:39 -04:00
2026-10-06 14:23:00 -04:00
2026-10-05 15:36:14 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 21:52:50 -05:00
2026-10-07 08:47:47 -07:00