Skip to content

feat(harness-ops): name the diverging plugins per project path in the plugins sync report - #9917

Merged
melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-9741-40156350872-1
Oct 25, 2026
Merged

melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-9741-40156350872-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9741

Summary

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

The sync digest's divergences block now has two new fields. records\[\] lists every diverging id with its scope, version and projectPath. by_path\[\] groups those records per project path as {path, count, ids (first 3 distinct ids), more}, the busiest path first. The rendered Divergences: row keeps its count line and adds one sub-line per project path: the path, its record count, up to 3 ids, and +K more when more ids remain. This follows decision D4 option (a). A digest without the new fields renders the count line alone, as before.

Not verified

  • scripts/run-test-file.sh plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh (an issue Done-when item) was not run. This lane runs no test runner, jq or bash from the checkout. The new and edited goldens and assertions were written by reading the code and checked by a reviewer who also onl
  • scripts/check-changelog-fragments.sh --check-required origin/main (an issue Done-when item) was not run in that exact form. The lane's check-changelog-fragments wrapper (no arguments) passed, and the PR's CI runs the required-fragment check.
  • The issue lists Depends on: #9738. This lane cannot read the tracker, so this run did not confirm #9738 has landed. The change builds on the divergence split as it is on the current main.
  • No test covers a user-scope record behind a project pin (projectPath null in records) or the past-the-triple fallback that keeps all scopes. The code and sync.md describe both; neither has a test (reviewer's optional coverage note).

Fix

  • plugins/harness-ops/skills/plugins/scripts/sync-run.sh: divergence_block emits records and by_path. A new diverging_records jq def picks the same off-top pins row_class judges, plus a user-scope record behind a project pin. A row whose versions differ only past the numeric triple keeps all
  • plugins/harness-ops/skills/plugins/scripts/render-report.jq: adds one - <path>: <count> diverging record(s): <ids>\[, +K more\] sub-line under the Divergences row for each by_path entry. Old digests render nothing extra.
  • plugins/harness-ops/skills/plugins/scripts/fixtures/render/divergence-by-path-no-root.txt: new golden. No project root, divergences in two other paths, two sub-lines, one capped with +2 more.
  • plugins/harness-ops/skills/plugins/scripts/fixtures/render/moved-during-run.txt: golden adds the sub-line its fleet now renders (<case>/other: 2 diverging record(s): alphamarket1, betamarket1).
  • plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh: new render case for the by-path golden, with sub-line count and cap assertions on the rendered text. New digest assertions in the real-fleet divergences case: every record has id, scope, version and projectPath; the records name every dive
  • plugins/harness-ops/skills/plugins/context/sync.md: new paragraph on records, by_path, the sub-line format, the judgment cap of 3 ids per path (paths uncapped), and count (records) versus more (distinct ids).
  • plugins/harness-ops/skills/plugins/SKILL.md: the Report row list says the Divergences split has per-project-path sub-lines.
  • plugins/harness-ops/skills/plugins/evals/evals.json: eval 5's expected_output and first expectation now allow per-project-path sub-lines with up to 3 ids, then +K more when more ids remain.
  • .changes/harness-ops/feat-9741-divergence-by-path-4e1a9c27.md: new minor changelog fragment (Added). Written by hand because new-changelog-fragment refuses a detached HEAD; check-changelog-fragments validates it.

Verification

The runner ran each check from the base copy against 7a29c19:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • .lane/checks/bin/check-changelog-fragments: All 5 changelog fragment(s) under .changes/ are valid.
  • .lane/checks/bin/check-affected: 10 passed, 6 skipped over 9 changed files. Skipped: validate-plugins sub-checks and changed-skills (they run code from the checked tree), ruff (no .py), typos (not installed). The rest is CI-only.
  • .lane/verify/bin/check-evals-quality plugins/harness-ops/skills/plugins/evals/evals.json: PASS, 0 warnings.
  • .lane/verify/bin/cant-fail-scan --file plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh --check: PASS, no gating findings.
  • Fresh-context review subagent over the whole diff: no correctness bugs found. Fixed after review: the sync.md wording claimed the cap prevents a per-id list (the path count is uncapped by design); the new grep assertions read the golden, not the rendered text; the eval wording implied +K more alwa
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40156350872

Left out: the items under Not verified.

Related

#9741

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental security review of plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh, covering f132eff..f5a1d73.

The only change is to the test script's assertions. One jq filter now scopes the by_path check to .marketplaces[].stale_project_records. Two expected sub-line strings now use <case>/gone and <case>/wt in place of $p_gone and $p_wt. The change adds no runtime code and touches no trust boundary, secret, manifest, workflow or trusted-path file. It narrows an assertion and rewrites expected strings, and it removes no instruction or guard. It has no security-relevant surface, so I applied skip gate 2.

The PR context file has no embedded directives aimed at the review.

Manifest items: none hit, because the diff has no manifest changes.

critical-findings: 0

No security findings. No spend and no hold.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of sync-run.test.sh since f132eff: no findings.

  • by_path assertion (line ~1408): The "stale many: the printed digest carries no per-path array" check now searches only .marketplaces[].stale_project_records. The old whole-digest search would have matched the new divergences.by_path field, so this scoping is needed. The stale-record assertions just above it show that field is populated in this case, so the check isn't vacuous.
  • Divergence sub-line assertions (lines 1735 and 1737): The expected text now uses the literal <case>/gone and <case>/wt instead of $p_gone and $p_wt. report_of rewrites the case directory to <case> in REPORT_TEXT (sync-run.test.sh:1130), so the old interpolated absolute paths could never match. The new strings match what the render produces, and the sibling stale-records assertions use the same convention (line 1393).

I read these assertions against the helper code; I did not run the test file, because this lane has no shell. The closing issue's Done-when items are unchanged by this increment. The PR author says the test run was not performed, and I have not verified it either.

No cost or critical-security hold.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 7a29c19ea2d8888782463af388286783d13761a7; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on ec4350a.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head ec4350ab3334e60ac65d94364f1028a302fd8b53. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@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 25, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: the lane could not fix every failing check; its run log names each one and why.

  • Reason: ci-fix-escalated
  • Resume key: f132eff567d79eb389ccca4692060145589b4594 (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=9917 and activity=fix-ci:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=9917 -f activity=fix-ci

kyle-sexton and others added 3 commits October 25, 2026 03:21
…tests

The two sub-line assertions expected the raw case path, but report_of
rewrites the case directory to <case> in REPORT_TEXT. The stale-records
digest assertion searched the whole digest for a by_path key, which the
new divergences.by_path field now carries; scope it to
stale_project_records, the object it guards.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 25, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f5a1d739f3e265847b3f9c42db26ee75084c9987.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit e311717 Oct 25, 2026
51 of 52 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9741-40156350872-1 branch October 25, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(harness-ops): name the diverging plugins per project path in the plugins sync report

1 participant