Skip to content

docs(harness-ops): record why the plugins sync user sweep stays serial - #10358

Merged
kyle-sexton merged 2 commits into
mainfrom
docs/6309-serial-plugin-update
Oct 26, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
docs/6309-serial-plugin-update

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #6309

Summary

The plugins sync user sweep runs one claude plugin update at a time, and #6309 asked whether a bounded-concurrency sweep was safe. A probe settled it: concurrent claude plugin update calls lose registry writes while every call exits 0 and prints success. So the sweep stays serial, and the skill's gotchas now say why, so nobody tries to parallelize it again.

Fix

  • plugins/harness-ops/skills/plugins/context/gotchas.md: new section "Never run plugin CLI writes concurrently: the sweep stays serial", with the probe's setup, results, CLI version, date and recheck trigger, and a contents entry.
  • harness-ops changelog fragment, patch.
  • No code change: sync-run.sh already runs the sweep serially.

Verification

  • Probe on Claude Code 2.1.310 against a scratch CLAUDE_CONFIG_DIR, confirmed to hold installed_plugins.json (the real registry has no trace of the probe). With 12 local plugins moved from 1.0.0 to 2.0.0, the registry lost 36 of 80 updates at 8 calls at once (10 of 10 repetitions), 11 of 40 at 4 at once (8 of 10), and none in the serial control. Full table on perf(harness-ops): plugins sync user sweep runs one serial CLI process per update (85s for 53 plugins) #6309.
  • markdownlint-cli2 on the changed file: 0 issues.
  • Left out: the probe script and its run data stay out of the repository, since nothing re-runs them (AGENTS.md: one-off investigation tooling stays in scratch).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 26, 2026 10:28
A probe on Claude Code 2.1.310 ran concurrent `claude plugin update`
calls against a scratch CLAUDE_CONFIG_DIR: the registry lost 36 of 80
updates at 8 at a time and 11 of 40 at 4 at a time, every call exiting
0, and the serial control lost none. Concurrency is out, so the sweep
stays serial and the gotcha says why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 26, 2026 22:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T22:31:51.774409Z fd46bb9 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found.

The change is documentation only:

  • plugins/harness-ops/skills/plugins/context/gotchas.md gets a new gotcha section plus a contents entry.

  • .changes/harness-ops/docs-6309-serial-plugin-update-0441fd98.md is a changelog fragment.

  • Trusted paths: neither changed file matches any trusted-path glob, and no trust control is touched.

  • Manifests: no plugin.json or marketplace.json change, so there are no manifest <field> lines.

  • Instruction surface: the diff only adds guidance (keep plugin CLI writes serial). It deletes, narrows or softens no standing rule. The protected-class register was not needed because nothing was removed.

  • Code and Actions: there is no code, workflow, token, secret or input-handling change.

  • PR context: it was read as data and contains no embedded instructions aimed at the lane.

  • Spend: none. There is no billing or cost change.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No blocking findings. This is a docs-only change: a new context/gotchas.md section and a patch changelog fragment for harness-ops.

Closing issue #6309. Its criteria are met.

  • The probe result is recorded in context/gotchas.md: lost writes, N=8 and N=4, 10 repetitions, Claude Code 2.1.310.
  • The sweep stays serial. The concurrency criterion was conditional on writes being safe, and they were not.
  • I confirmed that sync-run.sh issues plugin update, plugin install and the converge-plan.sh uninstall commands one run_cli call at a time. I found no &, wait or xargs -P in the skill's scripts. I did not trace every call site, so the doc's claim that every mutating call is serial rests on that search.

Unverified claims. I did not re-run the probe. The numbers (36 of 80, 11 of 40, serial control lost none) are author-claimed. They match the figures in the issue comment.

Minor, not counted as a finding. In the new section, the sentence "Concurrent claude plugin uninstall -s project calls lose writes the same way" sits inside the paragraph that describes the update probe. The PR description says that result came from #7462, measured in the same session. The section links only #6309. Consider citing #7462 there.

Manifest check. No plugin.json or marketplace.json changed, so no manifest lines apply. The bump: patch fragment fits a docs-only change.

Spend. None. There is no cost hold and no security-sensitive change.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 33a17f8 Oct 26, 2026
72 checks passed
@kyle-sexton
kyle-sexton deleted the docs/6309-serial-plugin-update branch October 26, 2026 23:14
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.

perf(harness-ops): plugins sync user sweep runs one serial CLI process per update (85s for 53 plugins)

1 participant