This might look like:
One possibility would be that this would be one goal with an optional preview mode: ./pants gc.
Managing pantsd status is a bit abstract to me: maybe someone else has a clearer idea of what that means.
But the "how much disk space is pants using" point is a bit clearer. I imagine it looking like:
I've added some information about clearing caches to https://www.pantsbuild.org/v2.3/docs/troubleshooting#cache-or-pantsd-invalidation-issues.
Following on from https://pantsbuild.slack.com/archives/C0105PY6BM5/p1612892422002100
It could be handy to have some goal (or standalone utility, or flag, or something), to perform a garbage collection of the lmdb store, but rather than being time-based, using local action cache entries as GC roots, and only keeping digests referenced by these roots. Allows us to prune "we made a copy of every input file" while preserving "we can avoid doing expensive work". Ideally we could order the action cache entries by time, too, so that there's some LRU cut-off.
Great idea.
I'm going to go ahead and drop the pantsd aspect from this ticket, because we haven't gotten any feedback elucidating what that might look like.