You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
heart/checks/worktree_drift.sh produces noisy, misleading totals (e.g. 2 orphan / 2 missing / 66 dirty): (1) claims outside ~/Code/PyAutoLabs-wt are compared against the wt-root listing instead of path-tested, so an existing .codex-worktrees/... claim reads missing forever; (2) the dirty scan follows the symlinks worktree_create installs, counting one dirty canonical checkout once per task worktree linking it; (3) parked.md worktrees read as orphans. CI/release-audit finding E, series task 5.
Plan
Extract the heredoc python into a testable heart/checks/worktree_drift.py (pure scan() + main(); the .sh becomes a thin shim so tick.sh keeps working). Fixes: path-test claims (accepting only path-shaped values — parked.md carries prose like none (…)); track existing claims outside the wt root; skip symlinked children in the dirty scan and dedupe dirty canonical checkouts into their own canonical_dirty category (counted once); label parked dirs, excluded from orphans. Dashboard section renders the new shape. New tests/test_worktree_drift.py over scan().
Implemented — PR #124 open, awaiting human merge. Live run on the dev box: missing now names only the genuinely-absent vacuous-jax-assertions claim; the .codex-worktrees/python-312-floor claim no longer false-flags; 7 dirty canonical checkouts appear once each in the new canonical_dirty category (previously multiplied per linking worktree — the '66 dirty'). Suite 328 passed (8 new tests).
Activity
Jammy2211 commentedon Jul 30, 2026
Implemented — PR #124 open, awaiting human merge. Live run on the dev box:
missingnow names only the genuinely-absentvacuous-jax-assertionsclaim; the.codex-worktrees/python-312-floorclaim no longer false-flags; 7 dirty canonical checkouts appear once each in the newcanonical_dirtycategory (previously multiplied per linking worktree — the '66 dirty'). Suite 328 passed (8 new tests).Merge pull request #124 from PyAutoLabs/feature/worktree-drift-fixes