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
{{ message }}
Repository navigation
fix(harness-ops): split sync's divergence count into converge-actionable, worktree and blocked pins #8019
Type: Bug Summary: Sync's Divergences: row points at converge only for pins converge can act on, and points pins in linked worktrees at the worktree audit.
Current behavior:
When the divergence count is non-zero, the sync report always ends the row with run /harness-ops:plugins converge. On a machine with many linked and removed worktrees that count included 474 pins in paths not present (which converge marks BLOCKED) and many in linked worktrees, where removing the worktree is the right fix.
Desired behavior:
The digest carries the divergence count split into: actionable here, actionable elsewhere on the machine, in linked worktrees (a present path whose .git is a file naming a worktree of another repository), and blocked (path not present).
The Divergences: row names each non-zero part; only actionable parts point at converge; the worktree part points at /source-control:worktree audit (if installed); the blocked part points at the existing stale-records note.
divergences[] itself is not filtered: projectPathPresent stays advisory.
A digest written before this change (no split fields) renders as it does today.
Key interfaces:
The sync digest's divergences object: new split counts.
The rendered Divergences: line text.
Acceptance criteria:
New render fixtures cover: all actionable (pointer to converge only), mixed actionable plus worktree plus blocked (three parts, converge pointer only on the actionable part), only blocked (no converge pointer), and an old digest with no split fields (unchanged text).
scripts/run-test-file.sh plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh passes, and fleet-state.test.sh passes if fleet-state output changes.
The sync context doc describes the split.
A harness-ops changelog fragment is added and scripts/check-changelog-fragments.sh passes.
Out of scope:
Converge's steps and any new converge script (sibling item).
Activity