repo history is 48% two append-only ledgers (STATUS.md 31.6%, GOTCHAS.md 16.5%) — the rising floor under #2073 on every fetch-depth: 0 checkout #2074

Open
opened 2026-10-27 13:09:33 +00:00 by matou-build-agent · 0 comments

Filed by the healer (heal-Matou-idss-1793106199-3093072, watchdog pass of 2026-10-27 13:03 UTC, signature 34d79489ef32, evidence /tmp/matou-heal-Matou-idss.dIfJSJ on matou-dev-server-01, swarm lock free). No repair attempted — the lever here is a repo rule in CLAUDE.md, a human decision.

This is not the cause of the publish-rail reds — #2073 is. This is the compounding factor underneath it: it sets the floor on how many bytes fetch-depth: 0 has to drag over that link, and the floor is rising.

What the history is actually made of

Measured in the swarm workdir (git cat-file --batch-all-objects, on-disk/compressed sizes, so this is transfer-shaped, not uncompressed-shaped):

path on-disk share revisions
STATUS.md 59.4 MB 31.6% 2,145
(unreachable objects) 48.0 MB 25.6% —
docs/GOTCHAS.md 31.0 MB 16.5% —
control-plane/cmd/control-plane/main.go 1.5 MB 0.8% —
packages/openapi-spec/openapi.yaml 1.5 MB 0.8% —
docs/status-archive.md 1.4 MB 0.8% —
all blobs 187.7 MB 100% 21,445

Two append-only ledger files are 48% of all blob storage. Every source path in the tree put together is under 8 MB — about 4%.

Why it grows the way it does

CLAUDE.md requires that any commit changing project state updates STATUS.md in the same commit, and ADR 0160 has docs/GOTCHAS.md appended in the same commit as the fix that closes a hazard. Both are correct rules. But both files are monotonically growing, and the rule means a new ~0.6 MB revision of STATUS.md enters history on most commits — 2,145 revisions so far, averaging 0.82 MB each.

STATUS.md on main: 342 KB 30 days ago, 620 KB 7 days ago, 629 KB / 548 lines now. Roughly 1.8x in a month. 7 of the last 18 commits touched it.

Why it matters to the rails

A full clone from the server is ~40 MB packed, which the prior pass clocked at 227 s at 0.18 MB/s. At today's rate (0.15-0.23 MB/s, re-measured this pass) that is still ~3-4 min of the reseed rail's 20 min ceiling and the release rail's 30 min — not the whole red, but a tax every tick pays, on both publish rails and on any cold swarm workdir.

Shallow checkout is not the lever: publish.sh's guard diffs newest-published..HEAD and cat-file -es the newest published sha, so fetch-depth: 0 is load-bearing (same reason ci.yml's publish job pins it).

What a human should decide

  1. Rotate the ledgers. docs/status-archive.md already exists, so the convention is established — the question is whether STATUS.md should keep its milestone log inline at all, or cap it (current arc + N closed arcs) and roll the tail into the archive. Same question for docs/GOTCHAS.md. This stops the growth; it does not shrink history.
  2. Ask the server for a git gc. 25.6% of blob storage here is unreachable. That is this workdir's object store, not necessarily the droplet's, but 39 packs and 279 prune-packable objects locally suggest nobody is packing aggressively anywhere. Cheapest possible win on clone size if it holds server-side.
  3. Only then consider history rewrite — and probably don't: it would break every sha in 2,000-odd tickets, ADRs and GOTCHAS entries.

Ordering note: (1) and (2) are additive to #2073 and worth doing whether or not the droplet is ever fixed. Neither greens the rail on its own.

Filed by the healer (`heal-Matou-idss-1793106199-3093072`, watchdog pass of 2026-10-27 13:03 UTC, signature `34d79489ef32`, evidence `/tmp/matou-heal-Matou-idss.dIfJSJ` on `matou-dev-server-01`, swarm lock `free`). **No repair attempted** — the lever here is a repo rule in `CLAUDE.md`, a human decision. **This is not the cause of the publish-rail reds — #2073 is.** This is the compounding factor underneath it: it sets the *floor* on how many bytes `fetch-depth: 0` has to drag over that link, and the floor is rising. ## What the history is actually made of Measured in the swarm workdir (`git cat-file --batch-all-objects`, on-disk/compressed sizes, so this is transfer-shaped, not uncompressed-shaped): | path | on-disk | share | revisions | |---|---|---|---| | `STATUS.md` | **59.4 MB** | **31.6%** | 2,145 | | *(unreachable objects)* | 48.0 MB | 25.6% | — | | `docs/GOTCHAS.md` | **31.0 MB** | **16.5%** | — | | `control-plane/cmd/control-plane/main.go` | 1.5 MB | 0.8% | — | | `packages/openapi-spec/openapi.yaml` | 1.5 MB | 0.8% | — | | `docs/status-archive.md` | 1.4 MB | 0.8% | — | | **all blobs** | **187.7 MB** | 100% | 21,445 | Two append-only ledger files are **48% of all blob storage**. Every source path in the tree put together is under 8 MB — about 4%. ## Why it grows the way it does `CLAUDE.md` requires that **any commit changing project state updates `STATUS.md` in the same commit**, and ADR 0160 has `docs/GOTCHAS.md` appended in the same commit as the fix that closes a hazard. Both are correct rules. But both files are monotonically growing, and the rule means a new ~0.6 MB revision of `STATUS.md` enters history on most commits — 2,145 revisions so far, averaging 0.82 MB each. `STATUS.md` on `main`: **342 KB** 30 days ago, **620 KB** 7 days ago, **629 KB / 548 lines** now. Roughly 1.8x in a month. 7 of the last 18 commits touched it. ## Why it matters to the rails A full clone from the server is ~40 MB packed, which the prior pass clocked at **227 s at 0.18 MB/s**. At today's rate (0.15-0.23 MB/s, re-measured this pass) that is still ~3-4 min of the reseed rail's 20 min ceiling and the release rail's 30 min — **not** the whole red, but a tax every tick pays, on both publish rails and on any cold `swarm` workdir. Shallow checkout is **not** the lever: `publish.sh`'s guard diffs `newest-published..HEAD` and `cat-file -e`s the newest published sha, so `fetch-depth: 0` is load-bearing (same reason `ci.yml`'s publish job pins it). ## What a human should decide 1. **Rotate the ledgers.** `docs/status-archive.md` already exists, so the convention is established — the question is whether `STATUS.md` should keep its milestone log inline at all, or cap it (current arc + N closed arcs) and roll the tail into the archive. Same question for `docs/GOTCHAS.md`. This stops the growth; it does not shrink history. 2. **Ask the server for a `git gc`.** 25.6% of blob storage here is unreachable. That is this workdir's object store, not necessarily the droplet's, but 39 packs and 279 prune-packable objects locally suggest nobody is packing aggressively anywhere. Cheapest possible win on clone size if it holds server-side. 3. Only then consider history rewrite — and probably don't: it would break every sha in 2,000-odd tickets, ADRs and GOTCHAS entries. Ordering note: (1) and (2) are additive to #2073 and worth doing whether or not the droplet is ever fixed. Neither greens the rail on its own.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#2074
No description provided.