GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — laptop-untracked-review: bare git commit sweeps pre-staged work into its commits — the junk-ignore commit also lands the newly tracked files and any unrelated staged edit · Issue #1751 · developing-today/code

laptop-untracked-review: bare git commit sweeps pre-staged work into its commits — the junk-ignore commit also lands the newly tracked files and any unrelated staged edit #1751

New issue
Copy link
New issue
Copy link
Closed
#3747
Closed
laptop-untracked-review: bare git commit sweeps pre-staged work into its commits — the junk-ignore commit also lands the newly tracked files and any unrelated staged edit#1751
#3747
Copy link
Assignees
dezren39
Labels
app/agent-backupPackage/app: agent-backup (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

Problem

laptop-untracked-review.sh commits with bare git commit — no pathspec — at both of its commit sites, so each commit lands everything in the index, not just the files the review itself staged. The daily unattended job therefore sweeps any pre-staged work in the personal primaries (an agent's or Drew's half-finished staged edit) into a commit whose message claims it only ignored junk paths or tracked N new files. Worse, the two commits interact: files the review stages for the second commit are already in the index when the first commit fires, so they land in the wrong commit and the second commit then has nothing to do.

Evidence (verified this run, main 7b87168c)

  • nixos/home/laptop-untracked-review.sh:77 — git add -- .gitignore && git commit -q -m "untracked-review: ignore junk paths $DAY": the add is path-scoped, the commit is not.
  • nixos/home/laptop-untracked-review.sh:80 — git commit -q -m "untracked-review: track $tracked_new file(s) $DAY": same unscoped commit; and by the time it runs, line 66 has already staged each newly tracked file during the scan loop, so those files are in the index for the line-77 commit whenever any junk file was also found.
  • Probe (laptop, ~/git/fleet/probe-2026-10-28-laneB-untracked/; drove the real script, sha256 6c580a69… identical to main, in a fixture HOME whose hatch-personal repo had a pre-staged unrelated edit to tracked.txt, an untracked junk notes.tmp, and an untracked normal newnote.md):
    • Report printed: now tracking: newnote.md, junk ignored: notes.tmp, .gitignore updated — and no "committed 1 newly tracked file(s)" line.
    • git log --stat shows exactly ONE review commit, untracked-review: ignore junk paths 2026-10-28, containing 3 files: .gitignore, newnote.md, and tracked.txt (the pre-staged unrelated edit).
    • The line-80 commit then ran against an empty index: git printed nothing to commit, working tree clean into the job's stdout, the && say never fired, and the report silently omits that its tracking commit never happened.
    • Control shape: with no junk file present, line 77 never runs and line 80 still sweeps any pre-staged changes into the "track N file(s)" commit — the pathspec bug is at both sites independently.

Why it matters

This job runs daily and unattended against ~/.openclaw and ~/hatch-personal — the two repos where agents and Drew most often have work in flight. Primaries are supposed to sit clean on main, but "clean" is a discipline, not a guarantee (the repo-keeper exists precisely because primaries drift), and a staged-but-uncommitted edit is exactly the state a human/agent leaves mid-task. The review converts that state into a pushed-history commit with a false message, mixing unrelated work into a junk-ignore commit where nobody will look for it, and its own report then misdescribes what was committed. House rule for this fleet is surgical staging: stage explicit paths, commit only those paths.

Acceptance criteria

  • Both commits are path-scoped (e.g. git commit -m ... -- .gitignore and git commit -m ... -- <the files this run added>), so a pre-staged unrelated change survives a review run still staged and uncommitted.
  • The tracking commit contains exactly the files the review added this run, and the report's "committed N newly tracked file(s)" line fires only when that commit actually happened; a nothing-to-commit outcome is not silently swallowed.
  • A regression test (fixture repo in the style of the probe: pre-staged edit + junk file + normal untracked file) pins all three outcomes: junk commit = .gitignore only, track commit = the new file only, pre-staged edit still staged afterwards.
  • Report lines, secret-shaped and too-big handling, and the public-repo report-only mode are unchanged.

Triage note: the likely fix is pathspec commits plus collecting the tracked file list for the second commit's pathspec; whether the job should also refuse/skip a repo with pre-staged changes (the keeper's BUSY-style guard) is the triage pin — pathspec alone already stops the sweep.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-706

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    app/agent-backupPackage/app: agent-backup (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 28, 2026
  3. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b run 2026-10-28 12:20 CDT
    • Found via: filed this run
    • Task: Filed after verifying on main 7b87168c that laptop-untracked-review.sh commits unscoped at both sites (:77 junk-ignore commit, :80 track commit) while staging path-scoped during the scan loop (:66). Laptop probe (real script, sha256 6c580a69… = main; fixture hatch-personal with a pre-staged unrelated edit + untracked junk + untracked normal file): the single resulting commit "untracked-review: ignore junk paths" contained .gitignore, the newly tracked file AND the pre-staged edit; the track commit then found nothing to commit and its report line never fired.
    • Expectation: effort/s — triage pins pathspec commits (plus possibly a pre-staged-changes skip guard); regression test in the probe's fixture shape pins junk commit = .gitignore only, track commit = new files only, pre-staged edit still staged after the run.
    • Links: packet queue-packets/packet-1751.json (repo-health-code-pilot, triage); probe ~/git/fleet/probe-2026-10-28-laneB-untracked/ (laptop)
  4. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  6. 24 remaining items

  7. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 1, 2026
  8. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: task 4793
    • Found via: queue claim (resume — PR fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747 shepherd)
    • Task: Codex review of PR fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747 head cc193be carried two P2 findings; both FIXED in 0b2f5d3 — (1) a repo with no .gitignore now gets the newly created file staged before the ignore commit (pre-existing untracked .gitignore still trips the dirty guard); (2) track commits feed literal paths through a NUL-delimited --pathspec-from-file instead of argv (ARG_MAX). Threads replied and resolved; fixture suite passes on the laptop including new case5 (no-.gitignore repo) and case6 (401-file batch, glob-character name literal).
    • Expectation: parked 20 min for Codex re-review of head 0b2f5d3; on a clean re-review, merge PR fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747 and close issue laptop-untracked-review: bare git commit sweeps pre-staged work into its commits — the junk-ignore commit also lands the newly tracked files and any unrelated staged edit #1751.
    • Links: PR fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747 — fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747
  9. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 1, 2026
  10. dezren39
    added a commit that references this issue on Nov 1, 2026

    Merge pull request #3747 from developing-today/queue/4793-1751-untrac…

    23a38e3
  11. dezren39
    closed this as completedin #3747on Nov 1, 2026
  12. developing-today
    added
    status:done
    on Nov 1, 2026
  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  14. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane D shift
    • Session / ID: task 4793
    • Found via: queue claim (resume of parked task 4793)
    • Task: PR fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747 merged — Codex re-review on head 0b2f5d3 completed with no findings (both earlier P2 threads fixed in that head, replied + resolved); fixture suite laptop-untracked-review.test.sh re-run fresh this shift: all tests passed. Merge commit 23a38e3; issue laptop-untracked-review: bare git commit sweeps pre-staged work into its commits — the junk-ignore commit also lands the newly tracked files and any unrelated staged edit #1751 auto-closed.
    • Expectation: done — task 4793 completed as fixed_merged.
    • Links: PR fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747 fix(laptop-untracked-review): isolate review commits to literal paths (#1751) #3747
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/agent-backupPackage/app: agent-backup (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.