Skip to content

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

Merged
kyle-sexton merged 6 commits into
mainfrom
work-resolve-issue/issue-8019-39106084501-1
Oct 20, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
work-resolve-issue/issue-8019-39106084501-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8019

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Sync's Divergences row now splits the count into actionable here, actionable elsewhere, linked-worktree and blocked (path not present) parts. Only actionable parts point at converge; the worktree part points at /source-control:worktree audit and the blocked part at the stale-records note. divergences[] is unfiltered and an old digest renders as before.

Not verified

  • The changelog fragment was written by hand because HEAD is detached and new-changelog-fragment needs a branch; check-changelog-fragments accepts it, but its name does not use the branch slug

Fix

  • plugins/harness-ops/skills/plugins/scripts/sync-run.sh: divergence_block classifies each version-skewed row (pins judged only when they differ from the row's highest version) and adds actionable_here, actionable_elsewhere, in_worktrees, blocked; new linked_worktree_paths probe (.git file naming <
  • plugins/harness-ops/skills/plugins/scripts/render-report.jq: renders each non-zero part; digests without the split fields render unchanged
  • plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh: render fixtures (all actionable, mixed, only blocked, old digest, zero) and a real-fleet case covering all four classes plus submodule, separate-git-dir and already-at-highest-version pins
  • plugins/harness-ops/skills/plugins/context/sync.md: documents the split
  • .changes/harness-ops/issue-8019-divergence-split-3f9a1c72.md: minor changelog fragment

Verification

The run reports:

Left out: the items under Not verified.

Related

#8019

…ble, worktree and blocked pins

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 66f09bf9d2c5b92d0c53e4ad1d02495d02cdab82: 0 finding(s), 0 as inline comments.

I found no security issues in the incremental change, which covers plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh between f4d4b68 and 66f09bf.

The change adds one test case for how the divergence split treats the current worktree's pin. The case builds fixtures in a per-case temp directory and sets stub environment variables. It has no production code path, no handling of secrets or credentials, and no network access. It also doesn't change any standing instruction, permission rule or hook allowlist. The instruction-surface lens therefore doesn't apply, and I did not read the instruction exception register.

Findings: 0.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 66f09bf9d2c5b92d0c53e4ad1d02495d02cdab82: 0 finding(s), 0 as inline comments.

No findings on the incremental change (f4d4b68 → 66f09bf), which adds one test case to plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh.

The case puts the run in linked worktree wt, whose own alpha pin is skewed at 0.1.0. A sibling worktree wt2 carries a skewed beta pin. It expects {post:2, actionable_here:1, actionable_elsewhere:0, in_worktrees:1, blocked:0}.

I read the code the case exercises and found nothing that contradicts that expectation:

  • Current-project flag: fleet-state.sh:1069-1073 sets currentProject on the wt project record from CLAUDE_PROJECT_DIR. The user-scope records carry none.
  • Pin classes: divergence_block (sync-run.sh:769-777) exempts the current project's path from the worktree class. alpha's wt pin is therefore actionable, and alpha is in $here, so it counts as actionable_here. beta's wt2 pin is present, is a linked worktree, and is not the current project, so it counts as worktree.
  • Worktree probe: the fixtures' gitdir: <case>/main/.git/worktrees/<name> lines match the *.git/worktrees/* pattern in linked_worktree_paths (sync-run.sh:740-741).

I could not run sync-run.test.sh: the approval prompt for the test runner was not granted in this environment. This conclusion comes from reading the code, not from a passing run. The PR body's passing-test claim is the author's and I did not confirm it.

The earlier files in the PR are unchanged since the last review and were not re-reviewed.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on fae18c4.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of 3 on fae18c4.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: fae18c436d0045056491544a66e9a42256bc427e (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8204 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8204 -f activity=address-feedback

kyle-sexton and others added 3 commits October 18, 2026 21:00
… cases

lint-shell failed with SC2016 on four expected-value strings in
sync-run.test.sh: the backticks are literal report text, not command
substitution. Add a disable directive with that reason to each, as the file
already does for its other literal tokens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main added concurrent-move attribution (#7942) to the same divergence
block, render and sync.md section this branch splits. Keep both:
divergence_block now emits main's concurrent interval and this branch's
four split counts; the render builds the interval text once, with the
concurrent part, and uses it in both the old and the split form; sync.md
keeps the split paragraphs and main's reworded self-update heading.
Main's moved-during-run golden digest carries the split fields, so its
Divergences line now renders in the split form.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of 3 on 66f09bf.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a fix the lane recorded did not reach the branch, so none of its review replies was posted.

  • Reason: feedback-not-landed
  • Resume key: 66f09bf9d2c5b92d0c53e4ad1d02495d02cdab82 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8204 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8204 -f activity=address-feedback

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit eb0efc5 Oct 20, 2026
29 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-8019-39106084501-1 branch October 20, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant