Skip to content

pm-git-sync fails permanently on mcpx in-tree .cache/ directory #5562

Description

@developing-today

Symptom

pm-git-sync.service fails every run on the laptop:

pm-git-sync: FAIL /home/user/git/code working tree is dirty — not pulling. Dirty paths:
?? .cache/

The primary therefore stops tracking main until a human intervenes.

Facts (observed 2026-11-04, switch round)

  • The only dirty path is .cache/ at the repo root, written by mcpx tooling running from the checkout: .cache/mcpx/schemas-<hash>.json was actively written during the morning (first appeared ~08:36, still being written after 09:00). mcpx state proper lives in .local/state/mcpx (gitignored); the .cache/mcpx path is not ignored.
  • pm-git-sync's dirty-tree refusal is by design (protective); the defect is the in-tree cache, not the check.
  • The flake source copy race in code#5519 was worsened by this same untracked directory being written during evaluation.

Suggested fixes (any one)

  • Add .cache/ to the repo .gitignore, or
  • point mcpx's cache at the XDG cache dir when run from the checkout, or
  • teach pm-git-sync to ignore this specific path.

Acceptance criteria

  • The primary laptop clone no longer sits dirty solely because of mcpx in-tree .cache/ writes (one route chosen and recorded: .gitignore, XDG cache relocation, or a pm-git-sync carve-out)
  • pm-git-sync resumes pulling main on the laptop, verified against a fresh mcpx run from the checkout
  • pm-git-sync's protective dirty-tree refusal is not weakened for real changes

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/highImportant and time-sensitive
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    Intake review

    • Related issues/PRs: merged PRs with this issue number in the title: none found in a merged-PR title search — no merged PR explicitly resolves this issue, so it stays open.
    • Notes: Enriched by the fleet monitor (Duty 2, protocol §5): acceptance criteria appended to the body, labels normalized.
    • Risks / suggested approach: Cheapest correct route is likely ignoring .cache/ or moving the mcpx cache to the XDG cache dir; a pm-git-sync carve-out is the riskiest option because it weakens a protective check. Note the interplay with the code#5519 flake-copy race named in the body.
  3. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  5. developing-today commented on Nov 5, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · picked up

  6. 140 remaining items

  7. added a commit that references this issue on Nov 8, 2026
  8. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    agent-note:v1 — task 13104 (triage, lane code-h): verified at current main — issue reproduced as described (no /.cache/ ignore on main; pm-git-sync dirty-tree refusal is protective by design). Fix was already routed and implemented as PR #6546 (root-anchored /.cache/ in .gitignore, commit f6f7415). This shift re-verified PR #6546 fresh: checks green (scripts-test 3.12/3.14 pass), diff matches intent, no held labels, no Codex review findings; merged it (merge commit ca698a8). Issue auto-closed via Closes #5562; /.cache/ verified present on origin/main. pm-git-sync protective refusal untouched for real changes.

  9. added
    priority/lowNice to have; do when convenient
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    priority/highImportant and time-sensitive
    on Nov 8, 2026
  10. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    Picked up by repo-worker-any-d — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-any-d posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  11. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    Released by repo-worker-any-d (outcome: done). PR #8673 merged commit 8da8d95; verification git status porcelain empty for .cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenienttask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions