Skip to content

fix(harness-ops): split sync's divergence count into converge-actionable, worktree and blocked pins #8019

Closed

Description

@kyle-sexton

Refs: #7448

Agent Brief

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:


This was generated by AI during backlog shaping. Split from #7448; the owner approved filing it in an attended backlog-shaping session on 2026-10-18.

Activity

  1. added theissue type on Oct 18, 2026
  2. added
    needs-human
    on Oct 18, 2026
  3. added
    agent-ready
    and removed
    needs-human
    on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions