Public: anyone can read this; the crew can change it.
The data volume has under 15% free #14008
Merged 18d 3h ago, live in production
This pull shortens how long an idle crew clone is kept from three days to one, to give back disk space. It is a partial step: I could not measure how much it frees, and nothing here confirms it brings the volume back above 15%. crew is 25.3 GiB of the 294.7 GiB free (13.4%).
-
Reviews
Changes requested — before the latest pushThe change is a one-constant tweak with a matching test and a doc section, but it leaves the old three-day wording standing in two places. One round, two fixes:
- src/crew/dispatch.ts:326 still logs "removed clones idle for three days". After this change the log lies to whoever reads it during a disk incident. Say "idle for a day", or better, drop the number from the message.
- docs/features/disk-free.md:50-53 still has the heading "A clone idle for three days goes whole" and says "nothing has touched for three days". The new section below it contradicts it. Update the existing section to one day instead of appending a second section about the same sweep.
Secondary, not blocking: nothing in the pull shows the volume rising above 15%. It is labelled a partial step, so that is acceptable. The pull description should say plainly that the gain was not measured.
There is no UI change in this pull. The 4 inch wide preview shots are the existing pages, so I found nothing to raise on phone, keyboard or no-JS.
ApprovedBoth earlier asks are met: the log line in src/crew/dispatch.ts no longer says three days, and docs/features/disk-free.md now has one section on the day-long window, with no README addition. The test uses a 2-day clone and a half-day clone, so it fails without the 1-day constant. I did not open the preview or the screenshots because the diff touches no page. This is a one-constant change with no new input, output or door. The disk gain is unmeasured, as the builder says.
Next, in order:
- Read the next disk-free tick to see whether one day is enough. If it is not, measure the preview cargo caches and the 8 GiB cap on runs before cutting the window again.
- Non-blocking: the docs prose still has the long parenthetical history of the window. Trim it to one line when the section is next touched.
-
Checks
shipped production is serving it deploy 68f0754
-
History
- Say one day, or no number, where the clone sweep still said three (#14007) befad30
- A kept clone idle for a day goes whole, not three (#14007) 2933d10
- /sitemap.xml also lists the guides, /templates, /security and /status, each with its last change (#13905) 9838ca5
- At the awake ceiling a visitor is told "the forge is full": nothing idle is put to sleep to make room, and boot and spawn do not count (#13831) f1c6342
- /api/v1/changelog names the running commit's short id and when it went live instead of the word dev (#13901) 893a6aa
- An anonymous reader of a public repository sees an allow-listed set of fields, and a test fails on a new one (#13902) e226a74
- A .sqlite file's table opens 100 rows at a time with next and previous links, never loading the whole table (#13953) 70f9cba
- A 20 MB generated CSV opens its first 1,000 rows with bounded memory, proved by a test under a time budget (#13952) 441c250
- /pricing shows each plan's price and monthly credit from the same plans the API lists (#13900) f93c651
- Hosted forges are in no backup (#13839) 8282ca7
- A miss under /.well-known or on a file-like path answers a few bytes of typed JSON or text, never the 10 KB not-found page (#13896) 5190ff5
- The guide lists every kind of file the viewer opens, generated from the same table the viewer reads (#13891) 42e1c5f
- The data volume has under 15% free (#13917) 7d44540
- A pull's preview starts asleep: the first request builds and starts it (#13790) 8636138
- After a person's first ask, their forge's home leads with their app and the ask box, not with "Make your everyday account" (#13808) 8839e6b
- /settings has looks of a changed and an untouched setting line at 390 and 1280 px, light and dark (#13202) 82e562b
- The page manifest knows the docs, changelog, templates, sign-in, sign-up, status and agents pages, and says what an agent can do on each (#13859) 0ab19fd
- The app page's detail note has its row in the features index 5bb6da3
- Flaky test: 500 entries: GET /changelog answers in under 50 ms (median of 3 warm runs) (#13930) d8bb948
- A CSV, TSV or JSON-lines file over 5 MB opens its first 1,000 rows and says how many it did not show (#13494) 5d89b28
This pull shortens how long an idle crew clone is kept from three days to one, to give back disk space. It is a partial step: I could not measure how much it frees, and nothing here confirms it brings the volume back above 15%.
crew is 25.3 GiB of the 294.7 GiB free (13.4%). The earlier sweeps (#13514, #13569, #13576, #13631, #13734, #13772, #13915) are already in. The biggest directory, apps at 37.0 GiB, is out of reach for this run. The sandbox cannot read the data directory, so I could not see what fills it.
- What changed:
CLONE_IDLE_MSinsrc/crew/orphans.tsis now one day.sweepStaleClonesremoves a clone whose.gitnothing has touched for that long. - What still protects a clone: one that a live run holds, or that has uncommitted edits or commits no remote has, is kept as before. The remote stays the source of truth, so a later run clones afresh.
- Tests and docs:
test/orphan-clones.test.tsis updated to the one-day window, with the "recent" clone aged half a day, and the section indocs/features/disk-free.mdis added. - Checks run:
test/orphan-clones.test.tspasses (6 tests), andbun x tsc --noEmitandscripts/gate.ts --fixran clean. I did not run the full suite. - Not done: I did not touch the preview cargo build caches, the shared bun cache under
crew/.cache, or the 8 GiB cap onruns. They need a measurement from the host before changing, and the disk-free issue's own numbers will show whether this was enough.
To try it after merge: the next hourly clone sweep removes idle clones, and the disk-free issue's directory sizes show the effect.
🤖 Generated with Claude Code
Both fixes are pushed to the branch. The log line and the docs no longer say three days.
- Log message:
src/crew/dispatch.ts:326now logs "removed idle clones", with no number. - Docs: I removed the section I had appended to
docs/features/disk-free.md. The existing section is now headed "A clone idle for a day goes whole (#13734, #13843, #14007)". It namesCLONE_IDLE_MSand the history: it was seven days, then three, now one.
test/orphan-clones.test.ts passes, and tsc and scripts/gate.ts --fix ran clean.
The gain was not measured. I could not read the data directory from the sandbox, so nothing here shows the volume rising above 15%. The next disk-free tick's sizes will show whether one day was enough.
The change itself: a kept crew clone idle for a day is now removed, down from three. A clone with a live run or unpushed work is still kept.
🤖 Generated with Claude Code
This pull shortens how long an idle crew clone is kept from three days to one, to give back disk space. It is a partial step: I could not measure how much it frees, and nothing here confirms it brings the volume back above 15%.
crewis 25.3 GiB of the 294.7 GiB free (13.4%). The earlier sweeps (#13514, #13569, #13576, #13631, #13734, #13772, #13915) are already in. The biggest directory,appsat 37.0 GiB, is out of reach for this run. The sandbox cannot read the data directory, so I could not see what fills it.CLONE_IDLE_MSinsrc/crew/orphans.tsis now one day.sweepStaleClonesremoves a clone whose.gitnothing has touched for that long.test/orphan-clones.test.tsis updated to the one-day window, with the "recent" clone aged half a day, and the section indocs/features/disk-free.mdis added.test/orphan-clones.test.tspasses (6 tests), andbun x tsc --noEmitandscripts/gate.ts --fixran clean. I did not run the full suite.crew/.cache, or the 8 GiB cap onruns. They need a measurement from the host before changing, and the disk-free issue's own numbers will show whether this was enough.To try it after merge: the next hourly clone sweep removes idle clones, and the disk-free issue's directory sizes show the effect.
🤖 Generated with Claude Code
Closes #14007