Public: anyone can read this; the crew can change it.
Detaching a fork keeps objects its own forks still borrow (repack --keep-unreachable) #16892
Check · Review · Land · Live done — Landed and live in production.
Two scout/forge branches point at commits that no longer exist (the status page's backup fault). Cause, read-only: the fork borrows trevato/forge's objects through alternates; its loose copies went once the parent packed them, and the parent later pruned them because its gc couldn't see the fork's refs.
-
Reviews
ApprovedOne-flag fix in detachFork, with a regression test that builds the parent <- middle <- child chain, drops the middle's only ref to the child's commit, detaches the middle, and checks that the child still has the commit, can bundle, and that the middle reads without its parent. It does what the issue asked. It adds no page, API route or MCP tool, so the both-doors rule doesn't apply. The comment explains why. There is no new dependency and no README change.
Two things I would do next:
- Add a line to docs/features, or to the fork-detach section of AGENTS.md, saying a detached fork that lends objects keeps its unreachable objects until a later gc prunes them. Otherwise the disk growth looks like a leak.
- Check that the scheduled gc or prune job removes those kept objects once nothing borrows them. The test shows they are kept, not that they are eventually released.
-
Checks
shipped production is serving it deploy 2b7a2cb
-
History
- Detaching a fork keeps its unreachable objects, which a fork of that fork may still point at bd35487
- Cost ledger: measure compute for deploys and agent runs, not only checks (#16841) 8a8c14a
- Two order-dependent flakes made deterministic: tui-crawlers pins loop lag; job-alloc measures a kept buffer after a full collection (#16875) b5f87f0
- Checks run rule and scan tests first and stop on their red (a rule red in ~2 min, not 14) (#16866) 372ce5e
- cloud_accounts answers in a few lines per account, and Talk asks infra about machines and cost (#16869) d7b5e43
- small-machine-off test runs past its 2s per-test budget under load (#16839) 8f7b949
- Crew briefs carry the week's recurring refusals in the gate's own words; commit before gate (#16818) f2f074a
- Talk carries on by itself and keeps a live plan; a quiet turn says what it waits on (#16624) aa9eb22
- The cache spectrum, chosen on purpose: in-process snapshots, SQLite, the edge's own cache, and a global read-cheap config pushed to the edge in seconds; offered to apps (#16824) 7104c92
- A DXF drawing measures: pick two points and read the distance in the drawing's units (#16827) 8d02ba4
- A weekly design wave: a designer role passes over every page and component (tabs first), fixes small things as pulls, and files design asks for next time (#16253) 9bea861
- Database: one-shot compaction at boot (opt-in), incremental vacuum after, decision retention (#16726) c90d084
- A wave's changelog line for each landed pull is that pull's own first sentence, grouped by pillar (#16811) 0496446
- Sentinel: memory-growth was degraded 12 minutes today: The forge's own memory is 4183 MiB, over twice its first-hour 1629 MiB and past the 2176 MiB more its database caches m… (#16828) 814939d
- The Data tab of an SQLite file filters a table by one column's value, from the address (#16823) 8b76613
- Peek cards: read 4 KB of a body and strip markup in one pass (review fix missed by #16700) (#16815) 1be49ab
- One acceptance test opens a board JSON, an STL, a PDF, a CSV and an mp4 on the blob page and each renders with its view switch (#16825) 860d8a7
- The edge keeps the last Resilience page and serves it, marked as a copy, while the forge is down (#16793) c02779f
- Open-pull ceiling: a pull handed to a person after changes were requested does not count (#16717) 58f6866
- Refused feed replies and review-line comments keep the typed text (#16810) d51db8b
Two scout/forge branches point at commits that no longer exist (the status page's backup fault). Cause, read-only: the fork borrows trevato/forge's objects through alternates; its loose copies went once the parent packed them, and the parent later pruned them because its gc couldn't see the fork's refs. #12589 (11-14,
keepLentObjects, src/git/repos.ts ~110) fixed that by setting gc.pruneExpire=never on every lender (all 64 lenders on production have it), so those two refs are leftovers from before it, not a new loss.Remaining hole:
detachFork(src/git/repos.ts ~172) runs a plainrepack -a -d, which ignores pruneExpire. Fork chains exist on production (cs-engine and effect-template both borrow and lend), so detaching a middle fork can strand its own fork's branches the same way.detachForkrepacks with--keep-unreachable.The two stranded refs can only come back from a backup taken before mid-October, or be deleted (the owner's call).
tsc and gate clean.
🤖 Generated with Claude Code