Repository navigation
worktree_drift: path-test claims, dedupe symlinked dirt, respect parked.md (fixes #123) - #124
Merged
Merged
Conversation
…t parked.md Three noise mechanisms produced misleading totals like '2 orphan / 2 missing / 66 dirty' (PyAutoHeart#123): claims outside ~/Code/PyAutoLabs-wt were compared against the wt-root listing (never path-tested) so an existing .codex-worktrees claim read missing forever; the dirty scan followed the symlinks worktree_create installs, counting one dirty canonical checkout once per task worktree linking it; parked.md worktrees read as orphans. The heredoc python moves to heart/checks/worktree_drift.py (pure scan() + main(); the .sh becomes a thin shim so tick.sh keeps working). scan() path-tests claims wherever they point (accepting only path-shaped values — parked.md carries prose like 'none (…)'), tracks existing claims outside the wt root, skips symlinked children in the task-dirt scan and dedupes dirty canonical checkouts into their own canonical_dirty category (yellow, never red — a user's canonical working state is not task drift), and labels parked.md dirs instead of orphaning them. Dashboard renders the new shape. Live run on this box: missing now names only the genuinely-absent vacuous-jax-assertions claim; task dirt is real (concurrent-session work + this branch); 7 canonical checkouts counted once each. Suite: 328 passed (8 new tests). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #123 — CI/release-audit series task 5 (monitoring-only check; not a readiness reason).
The three noise mechanisms, fixed:
~expanded), wherever they point; existing claims outside the wt root (e.g..codex-worktrees/<task>) are tracked, not orphaned/missed. Claim parsing accepts only path-shaped values (parked.mdcarries prose likeworktree: none (…)).canonical_dirtycategory (counted once, rendered as a WARN — a user's canonical working state is not task drift). This was the source of "66 dirty".parked.md-claimed dirs get their ownparkedlabel, excluded from orphans.Shape: the heredoc python moves to
heart/checks/worktree_drift.py(purescan()+main()— the repo's testable-check pattern);worktree_drift.shis a thin shim sotick.shand the sourced-function contract keep working;capabilities.yamlimpl updated; dashboard section renderscanonical_dirty/parked.Live run on this box (real state):
missingnames only the genuinely-absentvacuous-jax-assertionsclaim (its worktree really was removed while awaiting merge); the.codex-worktrees/python-312-floorclaim no longer false-flags; task dirt is real (a concurrent session'smultiband-pyloop-batchinguncommitted work + this in-flight branch); 7 dirty canonical checkouts appear once each instead of once per worktree.Tests: 328 passed (8 new in
tests/test_worktree_drift.pyover synthetic git trees: outside-root claims, missing claims, symlink dedupe, real-dirt attribution, parked labelling, prose-value filtering, tilde expansion).🤖 Generated with Claude Code