Skip to content

Standard task: per-repo hygiene census + cleanup documentation (low priority) #3205

Open

Description

@dezren39

Low priority — standing standard task + tracking. Established 2026-10-31 from a measured fleet-wide repo hygiene census ordered by Drew.

Source documents (sandbox workspace, ~/workspace/)

  • repo-history-census-2026-10-31.md — per-repo blob census of main-branch history: junk classes, packed/uncompressed sizes, fresh-clone simulations, rewrite verdicts
  • repo-inventory-2026-10-31.md — full inventory: every repo across dezren39 + all member orgs, with commit counts and first/last commit dates

Per-repo hygiene notes (filed 2026-10-31)

Fleet-wide findings

  • Scope: 863 repos across 17 owners (dezren39 + 16 orgs); 825 repos have commits; 635 are forks. Most fleet size is upstream history in forks, not our junk.
  • Fresh clones are already lean. For the six repos deep-dived (blob-level census), fresh main-only clones run 10–449 MB, and GitHub's repo sizes track the measured main packs within ~±10% — there is no hidden server-side bloat. (An early reading suggesting ~1.9 GB of GitHub-side sprawl was a fabricated tool output, retracted in the census doc after two independent re-runs agreed with on-disk measurement.)
  • No history rewrites anywhere. The best case in the fleet (hatch-personal) would save 55 MB packed; the costs — every clone/worktree invalidated (~150 sandbox worktrees plus laptop primaries), open PRs orphaned (code 53, opencode 15, openchamber 12, nix 6, re-measured 2026-10-31), all cited SHAs stale — exceed the saving everywhere. The two forks (opencode, openchamber) must never be rewritten: it would sever upstream sync permanently, and on public repos the old history survives in forks and PR refs regardless.
  • The only real saving is local-clone git gc + stale-ref cleanup (e.g. hatch-personal local .git 1.6 GB vs a 183 MB repo; hatch local 1.5 GB vs 100 MB). Deferred by Drew's choice ("locally is fine for now", 2026-10-31) — no SHAs change when it eventually happens.
  • Tip hygiene beats history surgery. hatch-personal PR Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 40b94fa #11 (2026-10-31) untracked 4,433 scratch entries and gitignored the scratch classes; code's tip is already clean except one 12.5 MB doc file. Keeping junk out going forward is the whole game.

The recurring standard task

Quarterly (and ad hoc when triggered):

  1. Re-run the repo inventory (all owners, commit counts + date ranges) and the blob census for the fleet's actively developed repos.
  2. File or update a per-repo hygiene note (same title pattern: Repo hygiene: history & tip cleanup notes (low priority, measured <date>)) in any repo where:
    • the main-branch pack crosses ~250 MB, or
    • junk classes (build outputs, binaries, logs, scratch/dump dirs, committed databases) appear at the tip, or
    • a repo's verdict changes (e.g. Roc artifacts in code confirmed accidental → untrack + gitignore at tip).
  3. Update this issue with links to the new/updated per-repo notes and a one-line fleet summary.
  4. Never rewrite history as part of this task — especially never on forks. Any proposed rewrite needs Drew's explicit per-repo approval with the blast radius spelled out.
  5. Standing rules enforced by the census: gitignore scratch classes; no binaries/logs/build outputs at the tip; runtime state files live outside repos (~/.local/state/, pm-aggregator precedent) with summaries committed instead.

Open items carried by the per-repo notes

  • code: are pkgs/roc libhost.a / .rh / dynhost + build outputs intentional distribution artifacts? Is doc/NanoPi (12.5 MB, tip) a keeper?
  • hatch-personal: relocate in-place state JSONs out of the repo? Optional local git gc (deferred by choice).
  • nix: is .lootbox/lootbox.db (2.8 MB) intentional?
  • opencode / openchamber / hatch: measured clean or upstream-owned; no open actions.

Acceptance criteria

  • The per-repo hygiene census is re-run on the stated cadence (quarterly, or sooner if a repo's main pack crosses ~250 MB or junk classes appear at the tip) and the census + inventory documents are refreshed.
  • Every fleet repo's hygiene verdict (rewrite / never-rewrite / no action) stays on record in its per-repo notes issue, linked from this tracking issue.
  • No history rewrite is performed under this task without a fresh measured case that beats the verdicts already recorded.

Activity

  1. added
    priority/lowNice to have; do when convenient
    kind/docsDocumentation improvement or addition
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake pass (protocol §5), 2026-10-31.

    Related: Tracking issue for the fleet hygiene census (source docs: repo-history-census-2026-10-31.md, repo-inventory-2026-10-31.md). Per-repo notes: code#3204, opencode#1101, openchamber#1069, nix#1265, plus hatch-personal#12 and hatch#1 (outside the four fleet repos).

    Notes / risks / suggested approach: Documentation/tracking only — no action scheduled; the measured verdict for every deep-dived repo is NO history rewrite. Risk: the standing task is mistaken for pending cleanup work; it is a cadence + record-keeping task. Suggested approach: leave open as the census tracker; refresh the two source documents on each quarterly re-run.

  3. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 3, 2026
  4. 29 remaining items

  5. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · done

    Triage verdict: TRACKER REMAINS LIVE BY DESIGN — no cleanup scoped, next census 2027-01-31

    Fresh tip check (2026-11-08, lane code-x) at origin/main 0d75b17: 6,380 tracked paths; the only tracked blob above 2 MiB is the documented doc/NanoPi M3 - FriendlyELEC WiKi.pdf (13,078,807 bytes — same file, same size as the 2026-11-03 pass). No new tip junk, no trigger met (~250 MB main-pack or tip-junk triggers from the standing task). The 2026-11-04 revalidation (task 8896) and the 2026-11-03 census verdict (per-repo record issue #3204, closed) stand unchanged.

    Issue #3205 stays open as the quarterly tracker; it is not validated invalid and no fix packet is owed — the next action is the scheduled census rerun by 2027-01-31. History rewrites remain prohibited without a fresh measured case and Drew's explicit per-repo approval.

  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (scheduled lane code-j)

    • Agent: repo queue worker (repo-worker-code), lane code-j (openchamber-scheduled-lane)
    • Session / ID: task 18252 (triage)
    • Found via: scheduled queue claim; fresh GitHub state (2026-11-17)
    • Verdict: unchanged. This is a standing low-priority tracker, not a bug. It stays open by design, and the next census is due 2027-01-31. No cleanup scoped, no rewrite, no new packet. The earlier verdict (2026-11-08) still holds.
    • Per-repo note: Repo hygiene: history & tip cleanup notes (low priority, measured 2026-10-31) #3204 remains the per-repo evidence note.
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — task 19801 triaged (lane any-n)

  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged
    task 19801 (repo-health-code-pilot, lane any-q)

    Pickup + triage revalidation, 2026-11-17.

    Fresh state checked this run: issue #3205 is OPEN, labels kind/docs / task/triage / source/creator / priority/low / effort/m / meta/enriched. No held, user/owned, do-not-merge, or do-not-auto-edit label, and no status/needs-triage.

    Verdict: the triage of record stands - task 18252 (2026-11-17, lane code-j), re-recorded minutes ago by lane any-n on this same task 19801: issue #3205 is a standing low-priority quarterly fleet-census tracker, open by design; no cleanup scoped, no rewrite, no new packet; the next census is due 2027-01-31 and code#3204 remains the per-repo evidence note. Nothing has changed since that recording.

    Task 19801 completes as triaged naming the triage of record; no follow-on is routed.

  9. removed their assignment
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workkind/docsDocumentation improvement or additionmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions