Repository navigation
fix(harness-ops): forward-update plugin records in every present path - #11736
Conversation
sync now runs `claude plugin update -s project|local` from every other present projectPath, a user home and a linked worktree included, for a record below a readable catalog version, and reads each record back. A change under the path's .claude/ (git status in a work tree, a checksum of both settings files everywhere) stops that path. The Divergences count no longer counts a pin sync updated or, under audit, could update; linked worktrees keep their class, absent paths stay in their own section, and the User-home row lists only records update could not move. fleet-state.sh exposes each present path's raw enabledPlugins entry as projectEnabledEntry, and converge-plan.sh uses it instead of reading the settings file, so an explicit project-level false is still told from no entry. Closes #7458 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step 2's update calls in the run's own project now take the same .claude/ check as the other-paths step: a change after a call stops the step there, that call is a failure, and each later record is reported as not tried, under Action needed as "update stopped in <path>". Step 2's documented decline of the forward-only filter is unchanged. converge.md now cites the decision record for the plugin list false-versus-no-entry behaviour. Refs: #7458 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ins-sync-forward-update-all-paths
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental: 6c9bb80 → 5f0ba97)No security issues found in this increment. The incremental diff changes only prose. I checked both changes:
None of the changed files is on a trusted path, and none is a plugin manifest. critical-findings: 0 |
|
claude-review reviewed Incremental review: 6c9bb80 → 5f0ba97. Two files changed: one comment and one doc sentence. No findings.
Neither change touches behaviour, the closing issue's acceptance criteria, or a plugin manifest. Nothing in this increment matches a trusted path. I confirmed both changes by reading the code only and ran nothing. The test counts in the PR description are the author's claim and I did not verify them. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c296a37dd3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
fleet-state.sh joins each present path's raw .claude/settings.json text into one payload split on U+001D/U+001E/U+001F before parsing, so a file holding one of those bytes could forge another path's projectEnabledEntry. A file (or path) holding any U+001C-U+001F byte is now bundled as unreadable, never as text; valid JSON cannot carry them raw. Also: a test that an ignored settings.local.json changing in a git work tree stops the path (only the checksum sees it), the changelog fragment raised to a minor bump under Added, and the home-path `update` behaviour in scope-semantics.md, converge.md and sync.md recorded as a pointer to its probe and docs section instead of restated. Refs: #7458 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ins-sync-forward-update-all-paths
…ment Refs: #7458 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ins-sync-forward-update-all-paths
Post-merge mutation testingKilled 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #7458
Summary
/harness-ops:plugins syncnow forward-updates plugin records in every presentprojectPath, home directories and linked worktrees included, and reads each record back. This follows the decision record.Fix
sync-run.sh: for each other present path, it runsupdate -s projectandupdate -s localfrom that path, and only for a record below the catalog version (forward-only). It reads each record back intoother_paths: {updated, failed, not_moved, would_update}. A linked-worktree record that does not move keeps itsworktreeclass..claude/check: before and after each call, it comparesgit status -- .claude/, plus a hash ofsettings.jsonandsettings.local.json; outside a git repository it uses the hash alone. A change stops that path, and the remaining records are reported as not tried. Step 2 (the run's own path) runs the same check.--audit, would update. The User-home row now lists only the recordsupdatecould not move.fleet-state.shexposes each path's rawenabledPluginsentry state (projectEnabledEntry: true, false, other, absent, unreadable).converge-plan.shuses it instead of reading settings.json itself, and still tells an explicitfalsefrom no entry.context/converge.md,context/scope-semantics.md,context/sync.md,SKILL.mdandscript-contracts.mdare updated.Verification
sync-run.test.sh634 PASS. The new assertions failed on the old scripts.fleet-state.test.sh97/97.converge-plan.test.sh40 PASS.Host step after merge, which the lanes cannot run: one
/harness-ops:plugins syncon a real fleet host, reading back the home-keyed records and each settings hash.Related
🤖 Generated with Claude Code