Repository navigation
Description
What
34 editor/tooling backup files — 3,233,450 bytes — are tracked on main at 9d8e191c (verified this run, 2026-10-31, via git ls-files). This is a recurrence of #367 (closed 2026-10-20): that cleanup covered the .bak files of its day, and a fresh generation has been committed since.
The set
.opencode/— 25 files: 24 dated snapshots of the live config (opencode.jsonc.bak-2026-10-24-*,opencode.jsonc.bak-2026-10-25-*,opencode.jsonc.bak-20261024*,opencode.jsonc.bak-20261025*, each ~4,100–5,100 lines) plusopencode.jsonc.backup(189,518 B, the largest single file).bin/— 6 files:codex-proxy.mjs.pre-warm-20261024,codex-proxy.mjs.resume-build.bak,commandcode-proxy-start.sh.bak-20261025003957-netfix,muse-proxy.mjs.bak-20261024-flag-tolerance,muse-proxy.mjs.bak-20261024121323-laptop-deploy, andproxy-supervise.mjs.new(0 bytes — an empty placeholder).- Root —
opencode.json.bak(the live file isopencode.jsonc; the.jsonconfig no longer exists). doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/live/—leaf.key.bak-20261011T122827Zandleaf.pem.bak-20261011T122827Z, duplicates of the spike's own trackedleaf.key/leaf.pemfixtures sitting next to them.
How they landed
11fc50d2"chore(config): snapshot local working state on amd" (2026-10-25) added most of them in one commit: 122,147 insertions across 35 files, including all 24.opencodedated backups and thebin/copies.8e06e88f(2026-10-28, the sanctioned parked-dirt commit) carriedopencode.jsonc.backupin with the live config edits.
Why the obvious fix is the wrong fix here
The root .gitignore tail (2026-10-29 note) records Drew's explicit call: config backups (.opencode/*.bak-*) are NOT to be gitignored — they are audit references, and hiding them behind .gitignore loses work; they are cleaned by moving them to dated residue dirs (e.g. ~/primary-residue-2026-10-29). So this issue is not "add ignore rules". It is: the residue move prescribed on 2026-10-29 has never been applied to the copies already committed to main, so every clone still carries 3.2 MB of superseded config snapshots, and the snapshot-commit path that swept them in is still the way the next generation will arrive.
Verified this run: git check-ignore matches none of the 34 paths (exit 1), and git grep finds no reference to any of these filenames anywhere else in the tree — nothing builds, runs, or documents from them; the live files (opencode.jsonc, the bin/*.mjs proxies) are all present separately.
Why it matters
- Every clone and every CI checkout carries ~3.2 MB of stale config copies that differ from the live config in ways nobody tracks — a reader (human or agent) who opens the wrong copy gets provider/model settings that are days stale and look authoritative.
- 24 near-identical 5,000-line config snapshots make repo-wide searches for config keys return two dozen dead hits, burying the live one.
- The spike-cert
.bakpair normalizes keeping backup copies of key material in the tree next to the fixtures themselves. - Sibling, not duplicate: id(repo): ~509 KB of raw clippy/cargo scratch output is tracked at the pkgs/id root — clippy_out4.txt, clippy_out5.txt and cargo-build-output.txt are unreferenced, and nothing stops the next dump #3097 covers the same class inside
pkgs/id(clippy/cargo scratch at the package root); this issue covers the.opencode/+bin/+ root set and the snapshot-commit mechanism behind it.
Acceptance criteria
- The 34 listed backup files are preserved outside the repo first (dated residue dir on the laptop, per the 2026-10-29 policy), then removed from tracking on main; the live files (
opencode.jsonc,bin/*.mjs, the spike'sleaf.key/leaf.pem) are untouched. - No
.gitignorerule is added for*.bak/*.bak-*/*.backup/*.new— the 2026-10-29 decision stands; the fix is the residue move, not hiding. - A lightweight guard exists that names this class at commit/snapshot time (e.g. the snapshot/keeper path refuses or flags tracked paths matching
.bak,.bak-*,.backup,.pre-warm*,*.mjs.new), so the next snapshot commit cannot silently re-add a generation — or the issue documents why the existing keeper already does and this set predates it. - After removal, a repo-wide search for a key that only exists in the live config returns exactly one config file, and
git ls-files | grep -E '\.backup$|\.bak|pre-warm|resume-build|\.mjs\.new$'is empty.
Activity
dezren39 commentedon Oct 31, 2026
🤖 Agent note · filed
dezren39 commentedon Oct 31, 2026
🤖 Agent note · filed (addendum, same run)
bin/sessions.json(15,884 B) is tracked on main — the claude-code-proxy key→CLI-session map (session IDs, model names, hashes, lastUsedAt timestamps). The proxy no longer writes there: provider proxies keep session state in the repo tree (bin/sessions.json) — move to ~/.local/state #3067 moved the session file to the shared state root (~/.local/state/cli-proxies/sessions.json, see the comment at bin/claude-code-proxy.mjs:56-63 — "bin/ is the tracked checkout, and every write there dirtied the primary clone"). The tracked copy is stale residue from before that move, swept into git by today's repo-keeper snapshotc1ad41e5("repo-keeper: snapshot code 2026-10-31 09:26 CDT"). It belongs in this issue's removal set, and it is the evidence for the guard acceptance criterion: the snapshot path is still sweeping residue into main as of this morning.11 remaining items
dezren39 commentedon Nov 2, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 2, 2026
🤖 Agent note · done
82225058b689498fcdf8ccefd1248f40535b6113; issue remains open./home/user/primary-residue-2026-11-02/code(3,275,487 bytes on currentmain; packet byte figure differed).bash -n, shellcheck warning threshold, and post-cleanup path/live-file checks passed. No CI checks are configured; CodeRabbit skipped.Merge pull request #4320 from developing-today/queue/5648-3151-preser…
dezren39 commentedon Nov 3, 2026
🤖 Agent note · done
.opencode/holds only the live configs (opencode.jsonc, opencode-auto-continue.jsonc, opencode-mem.jsonc),bin/holds the live proxies with no.bak/.pre-warm/.newsiblings, the root has noopencode.json.bak, and the s11-relay spike certs dir holds only the liveleaf.key/leaf.pemfixtures. Live files are untouched, as the acceptance terms require./home/user/primary-residue-2026-11-02/codebefore untracking, and the keeper snapshot guard was added — no.gitignorehiding, per the 2026-10-29 decision.developing-today commentedon Nov 3, 2026
agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 30 (priority/low). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03