REAL SERVER STORAGE CLEANUP: before
Commit: 4188cfff1b26ba482cab76c3b975ab11350ed4b5
Environment: Ubuntu 24.04 Linux x86_64; real Node 26.13.1 server; Git 2.43.0 under PRoot 5.1.0; fresh isolated server database; no browser
Fixture: {"activeRefs": 6, "activeThreads": 3, "deletedThreads": 10, "ownedRefs": 20, "packedFixtureSha256": "58eead50a1a73ef2f52154891bda359fe5592f40057e6443556c15a7effbae81", "packedRefs": 13221, "syntheticHistory": true}
Method: app RPC creates project and threads; one real replay turn per thread; 13,221 synthetic packed checkpoint refs; delete threads over RPC; await manual cleanup; restore identical packed refs before every timed manual cleanup.
Samples: 30 measured after 5 warmups; Git observer times the real Git subprocess under PRoot, excluding Python startup; RPC time covers the complete server.runStorageCleanup call.

Enumeration ms: median 76.231; p25 68.944; p75 82.717; min 52.624; max 91.111
Whole cleanup RPC ms: median 587.292; p25 555.313; p75 615.089; min 476.657; max 653.136
Enumeration bytes: [993644]; listed refs: [13221]; query pattern count: [2]
Every run: removed [20] exact owned refs; kept [13201] refs, including [6] active-thread refs.

iteration,warmup,enumeration_ms,whole_cleanup_rpc_ms,stdout_bytes,listed_refs,removed_refs,remaining_refs,active_refs_kept
0,True,57.155175,544.931377,993644,13221,20,13201,6
1,True,53.844673,484.37885,993644,13221,20,13201,6
2,True,59.984779,633.769665,993644,13221,20,13201,6
3,True,67.572662,613.595734,993644,13221,20,13201,6
4,True,62.422833,582.400098,993644,13221,20,13201,6
5,False,72.458897,605.062486,993644,13221,20,13201,6
6,False,78.0012,644.750483,993644,13221,20,13201,6
7,False,57.584441,569.060895,993644,13221,20,13201,6
8,False,60.256661,523.916426,993644,13221,20,13201,6
9,False,86.533937,551.758489,993644,13221,20,13201,6
10,False,52.623788,595.627905,993644,13221,20,13201,6
11,False,66.178166,569.083214,993644,13221,20,13201,6
12,False,88.186807,627.477131,993644,13221,20,13201,6
13,False,77.004028,574.747689,993644,13221,20,13201,6
14,False,86.108584,595.559632,993644,13221,20,13201,6
15,False,88.433599,606.271958,993644,13221,20,13201,6
16,False,73.48697,625.789183,993644,13221,20,13201,6
17,False,72.826158,571.271552,993644,13221,20,13201,6
18,False,80.009073,565.977822,993644,13221,20,13201,6
19,False,74.89362,587.314973,993644,13221,20,13201,6
20,False,91.111021,628.547158,993644,13221,20,13201,6
21,False,72.752424,543.549246,993644,13221,20,13201,6
22,False,80.037161,606.571384,993644,13221,20,13201,6
23,False,82.537386,575.826605,993644,13221,20,13201,6
24,False,82.955803,617.928384,993644,13221,20,13201,6
25,False,75.457309,601.503678,993644,13221,20,13201,6
26,False,77.208577,634.161343,993644,13221,20,13201,6
27,False,60.795911,527.44357,993644,13221,20,13201,6
28,False,81.520295,653.136341,993644,13221,20,13201,6
29,False,87.354083,645.361521,993644,13221,20,13201,6
30,False,53.148187,508.8349,993644,13221,20,13201,6
31,False,67.773008,539.292021,993644,13221,20,13201,6
32,False,82.776402,587.268659,993644,13221,20,13201,6
33,False,57.197425,548.893022,993644,13221,20,13201,6
34,False,73.109225,476.656528,993644,13221,20,13201,6
