Skip to content

feat(harness-ops): sync should forward-update project pins in every present projectPath, not only the cwd's #7458

Description

@kyle-sexton

Scope (revised 2026-10-20, owner-confirmed)

The intent: first, user scope is current. Then every checkout that references these plugins (worktrees, feature branches, home directories) loads the latest version.

Acceptance additions:


What happened

On 2026-10-14 (Windows, harness-ops 3.13.2), /harness-ops:plugins sync from the home directory updated 13 plugins at user scope and reported Divergences: 78 actionable: 61 pre-existing, 17 newly created by this run. Every one of the 78 rows had user scope as the highest version. The lagging scopes that exist on disk were project-scope pins in two present paths:

  • D:\repos\github.com\melodic-software\claude-code-plugins: 8 pins
  • \\wsl.localhost\Ubuntu-26.04\home\<user>: 78 pins

Sync's in-repo update only covers the cwd's project root (In-repo: skipped here), so every sync that moves user scope forward creates new divergences in present project paths and points at converge, which has to do routine forward updates one confirm at a time.

Running converge's update strategy (cd <path> && claude plugin update <id> -s project) on the 8 plugins-repo pins worked: all 8 moved to the user-scope version, and git status -- .claude/ stayed clean (no write to the committed settings). That is a data point against #6713 on this CLI version: update -s project did update the record.

Expected

Sync forward-updates project and local pins in every present projectPath (not only the cwd's) when the catalog version is higher, using update -s project from that path. That keeps the existing promise (no committed-settings write, verified above) and leaves converge for the real decisions: absent paths, catalog regressions, and uninstall-versus-update.

Exclude a projectPath that is a user home directory, whose .claude/settings.json is that machine's user settings (#7447). The WSL home above is that case: its settings file is WSL Claude's user settings with 128 enabled plugins.

Evidence

🤖 Generated with Claude Code

https://claude.ai/code/session_01CstgdsJeTyMXy3QJg21ZiV

Activity

  1. added
    needs-triage
    on Oct 14, 2026
  2. github-actions commented on Oct 14, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded.

    This answers the four open questions in the 2026-10-31 refinement and reads the intent flag. Code read at origin/main 65ce7a268b. Agents decided this on evidence under standing direction §1.

    [quote truncated; the full decision is at the link]

    Decision comment: #7458 (comment)

    That decision settles the open questions. It covers home-directory paths, #6713, the converge read, and what the Divergences line counts. What I understood: sync forward-updates project and local pins from every present path, with a before/after settings guard and a read-back. The converge per-project enablement read moves to fleet-state.sh, and the Divergences line stops counting pins sync updated or could update. The host-run check after merge is not a criterion.

    Automated triage, applied by the lanes App.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 14, 2026
  4. kyle-sexton commented on Oct 18, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Question: /harness-ops:plugins sync updates project-scope plugin pins only in the current repo. Other repos on disk drift and later need converge, one confirm per plugin. Options: (a) automatic forward-only updates in every present repo path, reported per path; (b) the same, with one confirm per path; (c) leave it to converge.

    Owner's answer: (a), with conditions. Sync is built to run headless and has no abort for autonomous sessions, so a confirm does not protect much. The conditions: skip home-directory paths (#7447); compare git status -- .claude/ before and after in each path and stop if it changes; land only after #6713 is settled. Basis: harness-ops plugins SKILL.md:37-40. This writes committed settings in repos other than the current one, so the owner should confirm it.

    The owner accepted this recommendation as item D26 of a 32-decision batch in an attended backlog-shaping session on 2026-10-18. The batch question: "Accept all 32 recommendations, including the four flagged above (D2 close the relearn, D26 cross-repo sync without per-repo confirm, D10 narrow hook, D23 delete guard only)?" The owner answered: "Accept all 32 (Recommended)".

    Posted by AI from the owner's answer in that session.

  5. added
    status: confirmed
    and removed
    needs-human
    on Oct 19, 2026
  6. kyle-sexton commented on Oct 20, 2026

    @kyle-sexton
    MemberAuthor

    Reproduced on 2026-10-20 with harness-ops 3.17.0 on WSL. sync from the home directory updated nothing at user scope (already current) and reported Divergences: 57 actionable. In every row, user scope held the highest version, and no catalog version was lower. There were 537 lagging project pins across 52 present paths: 50 worktrees of this repo, its main checkout, and /mnt/c/Users/<user> (52 pins; that path's .claude/settings.json is the Windows user settings file).

    The owner's intent for the action: first, user-scope plugins are current; then every place that references them (worktrees, feature branches) is forward-updated to the latest. Because update -s project does not write committed settings (context/scope-semantics.md:93-109), the home-directory exclusion only matters for writing calls. A home-directory path can still be forward-updated.

  7. kyle-sexton commented on Oct 22, 2026

    @kyle-sexton
    MemberAuthor

    Scope note from the #8555 duplicate close (Issue Triage, 2026-10-22). converge.md:31 says #7458 removes converge's Step 2 settings.json read. #7458's revised scope only covers sync forward-updating pins, so add this to its acceptance:

    • converge stops reading settings.json for per-project enablement, and still tells an explicit project-level false from no entry (the committed-false eval case, plugins/harness-ops/skills/plugins/evals/evals.json:128).
      Probe, as of 2026-10-22, Claude Code 2.1.306: claude plugin list --json reports projectEnabled: false both for an explicit false (animation) and for no entry (actionlint). So the CLI alone cannot replace the read yet.
  8. removed
    status: confirmed
    on Oct 31, 2026
  9. added
    needs-owner-decision
    needs-triage
    on Oct 31, 2026
  10. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  11. added and removed
    needs-triage
    on Oct 31, 2026
  12. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: sync forward-updates project and local pins from every present projectPath, with a git status guard, and converge stops reading settings.json for per-project enablement, pending the owner's home-directory decision.

    Related work

    Open questions

    1. Do home-directory projectPaths get forward-updated or skipped? The recorded decision says skip (#​7447), but the revised owner-confirmed scope and the 2026-10-20 comment say forward-update because update -s project writes no settings.
      RECOMMENDED: Forward-update home-directory paths too, only with the before/after git status -- .claude/ guard, stopping for that path if it changes. Basis: plugins/harness-ops/skills/plugins/context/scope-semantics.md:222
    2. Is #​6713 settled? The decision says to land only after it is. The repo still treats update -s project in linked worktrees as a possible no-op, and the issue's own measurement shows it working in one main checkout.
      RECOMMENDED: Treat it as settled for main checkouts and keep the read-back failure labeling for linked worktrees, so landing is not blocked. Basis: plugins/harness-ops/skills/plugins/scripts/sync-run.sh:1986
    3. Should the converge acceptance from the 2026-10-22 comment stay in this issue? The CLI cannot tell an explicit project-level false from no entry (projectEnabled is false for both), so converge cannot stop reading settings.json yet.
      RECOMMENDED: Split it into a separate issue that waits on a CLI change, and keep this issue to sync forward-updates and the Divergences count. Basis: judgment
    4. Which rows does the Divergences line still count? It should count only the rows #​7446 leaves to converge, and #​7446 is not among the candidates I can read.
      RECOMMENDED: Count only absent-path records, catalog regressions and uninstall-versus-update rows. Exclude any lagging pin sync updated or could update. Basis: judgment

    Sources read

    • plugins/harness-ops/skills/plugins/context/converge.md:165: converge refuses to emit a command for a projectPath that is a user home directory (blocked-home).
    • plugins/harness-ops/skills/plugins/context/scope-semantics.md:222: section on a projectPath that is a user home directory.
    • plugins/harness-ops/skills/plugins/scripts/sync-run.sh:1986: a linked-worktree update that does not take is reported as a failure (#​6713).
    • plugins/harness-ops/skills/plugins/scripts/fleet-state.sh:96: flags a projectPath that is a user home directory.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  13. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    This answers the four open questions in the 2026-10-31 refinement and reads the intent flag. Code read at origin/main 65ce7a268b. Agents decided this on evidence under standing direction §1.

    The intent flag is not a real open intent. Two owner answers exist, and the later one states the goal:

    • 2026-10-18, D26: option (a), automatic forward-only updates in every present repo path, with three conditions: skip home-directory paths, compare git status -- .claude/ before and after and stop if it changes, land after fix(harness-ops): plugins sync and converge cannot clear stale project-scope pins the CLI treats as current #6713. The owner's quoted reply is "Accept all 32 (Recommended)". Restated unchanged.
    • 2026-10-20, attended session 122c8d1c, the owner in his own words: "the converge is just to make sure that all the worktrees, feature branches, basically every place that's referencing these plugins, they're up there using the latest version", then "make sure that every single plugin version reference for Melodic Software plugins in WSL is using the latest", then, of the issue edits, "As long as all those issues are filed, go ahead and do that".

    The owner did not say "home directory" in those words. In that session the assistant's use-case table listed "worktrees, branches, home folders" under update -s project by sync, and the owner then told it to go ahead. Reading that as lifting D26's home skip for update is the agents' reading. It rests on the owner's "every place", on the later date, and on D26's reason: the skip guards calls that write settings (#7447), and update writes none (plugins/harness-ops/skills/plugins/context/scope-semantics.md:92-109). So the goal and the means do not conflict, and nothing here goes to the owner.

    Q1. Home-directory paths: forward-update, not skip. Evidence: update -s project moved 52 of 52 home-keyed records on 2026-10-20 with the settings hash unchanged (#6713 comment). The drift has returned: on 2026-10-31 this host held 90 home-keyed records, about 70 of them behind user scope (70 and 67 in two counts that day). converge stays blocked-home (context/converge.md:165), since its uninstall writes that file.

    D26's guard needs one adjustment. git status cannot run in a home that is no repository: git rev-parse fails in both home paths on this host. There the same check is a hash of .claude/settings.json and .claude/settings.local.json before and after, which is what the 2026-10-20 run did. A change stops that path, as D26 says.

    Q2. Is #6713 settled? Yes. It closed as completed on 2026-10-20. Its result stands: a main checkout's update moves the record, a linked worktree's does not (116 of 116 and 164 of 164 no-ops; labeled at scope-semantics.md:181-191, as of 2026-10-12). D26's ordering is met. After this change sync calls update from linked worktrees too, as the body asks, and the read-back reports a record that did not move (scripts/sync-run.sh:1984-2008). Linked-worktree rows keep their worktree class (scripts/sync-run.sh:1053-1061). This is unchanged by this issue, and whether 2.1.316 still no-ops there is UNVERIFIED, because the probe writes.

    Q3. The converge criterion stays here. The refinement offered a split. The criterion from the 2026-10-22 comment is in this issue's scope, and it can be met without a CLI change. The probe still holds on 2.1.316 on 2026-10-31: claude plugin list --json gives projectEnabled: false for animation (explicit false, .claude/settings.json:64) and for actionlint (no entry). So the read moves rather than goes: fleet-state.sh exposes each present path's raw enabledPlugins entry state, which is the fix converge.md:27-28 already names, and converge-plan.sh:242-249 drops its own read and uses that field. The committed-false eval case, plugins/harness-ops/skills/plugins/evals/evals.json:128, keeps passing on the distinction. converge.md:29-32 changes with it.

    Q4. What the Divergences line counts. #7446 is closed and its revised scope is readable. The body's line stops counting any lagging pin sync updated or could update. sync updates every pin it can reach, so a hand-installed pin with no committed entry stops lagging too, and only the uninstall-or-keep choice remains for converge, as the body's Expected section says. The refinement's "absent-path records" is wrong against the body:

    Row Where it goes
    Catalog regression Counted in Divergences
    A present, non-worktree pin whose update did not take Counted, and reported as a failure
    Absent path Its own section (body)
    Linked worktree The existing worktree count
    User-home record The User-home project records row, now holding only those update could not move

    The older Expected line "Exclude a projectPath that is a user home directory" is replaced by the revised Scope section and this record.

    • sync runs update -s project and -s local from every present projectPath, a home directory included, only for a record below the catalog version (forward-only), reads each record back afterwards, and reports the result per path.
    • sync compares git status -- .claude/ before and after in each path, or a hash of the path's .claude/settings.json and .claude/settings.local.json where the path is not a git repository, and stops for that path if it changes.
    • The Divergences: N actionable → run converge line stops counting a lagging pin that sync updated or could update, and absent-path records stay in their own section.
    • converge stops reading settings.json for per-project enablement, and still tells an explicit project-level false from no entry (the committed-false eval case, plugins/harness-ops/skills/plugins/evals/evals.json:128).

    converge keeps emitting no command for a home path, and context/scope-semantics.md:222-232 changes to say which home-path calls write and that update does not.

    Host-run step after merge: one /harness-ops:plugins sync on a real fleet host, reading back the home-keyed records and each settings hash. The lane cannot run the claude CLI, so this is not a criterion.

  14. added
    needs-triage
    and removed
    needs-owner-decision
    needs-triage
    on Oct 31, 2026
  15. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Oct 31, 2026
  16. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: a criterion names .claude/settings.json, .claude/settings.local.json, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

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

    status: confirmed

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions