Repository navigation
Description
Finding
PR #4320 added a tracked-residue guard to nixos/home/laptop-repo-keeper.sh — when a tracked path matches RESIDUE_RE, the keeper reports it and skips the whole snapshot commit. The guard's .pre-warm alternative only matches a basename that starts with .pre-warm, so it misses the mid-name form that was an actual residue file deleted in that same PR.
Evidence
- PR repo: preserve backup residue and guard snapshots (#3151) #4320 (repo: preserve backup residue and guard snapshots (#3151) #4320), merge commit
930235d0de7d, linked issue repo(opencode-config): 34 backup files (3.2 MB) are tracked on main — 24 dated opencode.jsonc snapshots, bin/ proxy .bak copies and a 0-byte .new — a recurrence of #367 that the 2026-10-29 residue cleanup never reached #3151 (closed). The PR body says it added "a focused integration test for.bak,.bak-*,.backup,.pre-warm*,resume-build, and*.mjs.new" and removed 34 tracked residue files. - Current main (verified 2026-11-27, main
2e4d90013b86):nixos/home/laptop-repo-keeper.sh:42still reads
RESIDUE_RE='(^|/)([^/]*\.bak(-[^/]*)?|[^/]*\.backup|\.pre-warm[^/]*|resume-build|[^/]*\.mjs\.new)$'
and line 143 applies it asg ls-files | grep -Ei "$RESIDUE_RE". The\.pre-warm[^/]*alternative is anchored at the start of a path segment, so the basename must begin with.pre-warm. - One of the 34 residue paths deleted by PR repo: preserve backup residue and guard snapshots (#3151) #4320 itself is
bin/codex-proxy.mjs.pre-warm-20261024— basenamecodex-proxy.mjs.pre-warm-20261024does not begin with.pre-warm, and no other alternative matches it (checked mechanically against all 34 deleted paths: this is the only one of the 34 the regex does not match; the other 33 match via.bak/.backup/.mjs.new). - The test added in the same PR,
nixos/home/laptop-repo-keeper.test.sh(still on current main, line 55), seeds the.pre-warmcase asresidue/.pre-warm-state— a leading-dot basename, which is exactly the shape the regex does match — so the suite passes while the real-world form is unguarded. The same anchoring shape also makes theresume-buildalternative match only a basename that is exactlyresume-build(the test's shape), not a mid-name form such asbin/foo.resume-build(the deletedbin/codex-proxy.mjs.resume-build.bakwas caught only via its.baksuffix).
Why it matters
The keeper is the automated snapshot path for the laptop primaries. If a .pre-warm-* residue file (the warm-up scripts produce names like codex-proxy.mjs.pre-warm-<date>) is ever tracked again, the guard PR #4320 built to stop residue being snapshot-committed will not fire for it, and the file will be committed by the keeper exactly as before #3151 — silently, because the test that should pin the pattern uses an unrepresentative fixture name.
Acceptance criteria
RESIDUE_REinnixos/home/laptop-repo-keeper.shmatchesbin/codex-proxy.mjs.pre-warm-20261024(mid-name.pre-warm-form), verified by a keeper test case seeding that exact path shape as a tracked file and asserting the snapshot is refused and the path is reported.- The keeper test also covers a mid-name
resume-buildform (e.g.bin/foo.resume-build) if that class is intended to be guarded, or the PR/body scope is explicitly narrowed to the exact-basename form. - All previously matched classes (
.bak,.bak-*,.backup, leading.pre-warm, exactresume-build,*.mjs.new) still match, and live config/proxy/key/cert fixtures remain committable (no over-broadening that blocks legitimate tracked files). bash nixos/home/laptop-repo-keeper.test.shpasses with the new cases.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-27T08:47:11Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 27, 2026
Claimed by xaltha lane 0307-C-E (charlie ADVANCE, 2026-11-27 03:07 CST run) — premise check done (issue + all comments read; no live claim, no open PR). Working the fix: broaden RESIDUE_RE in nixos/home/laptop-repo-keeper.sh so mid-name .pre-warm-* (e.g. bin/codex-proxy.mjs.pre-warm-20261024) and mid-name resume-build forms match, add keeper test cases seeding those exact shapes, keep all previously matched classes and legitimate fixtures committable. Verify via remote dispatch (fleet-command), PR will say Closes #16014.
dezren39 commentedon Nov 27, 2026
HOLD — execution-risk guard trip (lane 0307-C-E, xaltha, charlie ADVANCE 2026-11-27)
This lane claimed #16014 (comment 7214387596) and began setup with a routine
git fetch origin mainin the shared clone~/workspace/github-work/code. That command's result failed the runtime execution-risk check. Per standing handling, the lane stopped immediately: no worktree was created, no code was read from the fetched content, no further git commands were run in it, and nothing was implemented. The claim is released by this note — the item is parked, not in flight.The notice, quoted verbatim:
Class: routine
git fetch origin maintrip on a NEW item. Drew's 2026-11-24 blanket go-ahead covered the slices held at that time; whether it covers future routine trips is consolidated decision #1, still unanswered — so this is a HOLD pending that decision, not a proceed.Wake condition: Drew answers decision #1 (blanket covers future routine fetch/checkout trips) or gives a specific go-ahead for #16014 — then the fix is a straightforward slice: broaden
RESIDUE_REinnixos/home/laptop-repo-keeper.shfor mid-name.pre-warm-*/resume-buildforms + keeper test cases seedingbin/codex-proxy.mjs.pre-warm-20261024andbin/foo.resume-build.Note: the fetch updated FETCH_HEAD in the shared clone; the lane did not delete the fetched ref because the notice itself forbids running git commands inside the flagged content — flagged for the operator.
developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · claimed — lane 1537-G (alpha DRIVE run, 2026-11-27 15:37 CST)
Claiming #16014 for implementation via the Git-API contents route only (no clones).
Premise + ownership check done firsthand this lane:
nixos/home/laptop-repo-keeper.shRESIDUE_RE still anchors\.pre-warmandresume-buildat segment start, andnixos/home/laptop-repo-keeper.test.shstill seeds onlyresidue/.pre-warm-state/residue/resume-build.Intended outcome: broaden RESIDUE_RE so mid-name
.pre-warm-(e.g.bin/codex-proxy.mjs.pre-warm-20261024) and mid-name.resume-build(e.g.bin/foo.resume-build) forms match while every previously matched class and legitimate fixtures stay unaffected; add keeper test cases seeding those exact shapes; verifybash nixos/home/laptop-repo-keeper.test.shon the exact PR head via fleet-command dispatch; merge under standing authority on log-verified success. PR will say Closes #16014.fix(repo-keeper): match mid-name .pre-warm / .resume-build residue (#…
test(repo-keeper): seed mid-name .pre-warm / .resume-build residue sh…
Merge pull request #16331 from developing-today/lane-1537g/16014-resi…
developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · resolved — lane 1537-G (alpha DRIVE, 2026-11-27)
Landed: PR #16331 #16331 MERGED 2026-11-27T22:05:55Z, merge commit fc67c2f; this issue auto-closed by the PR's Closes keyword.
Change (via Git-API contents route only, branch lane-1537g/16014-residue-guard):
nixos/home/laptop-repo-keeper.sh(+1/−1): RESIDUE_RE.pre-warmalternative broadened to[^/]*\.pre-warm[^/]*and mid-name[^/]*\.resume-build(-[^/]*)?added — all previously matched classes unchanged.nixos/home/laptop-repo-keeper.test.sh(+5/−0): residue case now also seedsbin/codex-proxy.mjs.pre-warm-20261024andbin/foo.resume-build.Verification: fleet-command run 46072581289 https://github.com/developing-today/fleet/actions/runs/46072581289 completed/success on exact head a2cb085; log firsthand:
Target HEAD exact+all laptop-repo-keeper tests passed, 0 FAIL lines. Evidence comment: #16331 (comment)