Repository navigation
chore(cloud-environment): add writing to the fleet plugin list - #547
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Claude finished @kyle-sexton's task in 1m 33s —— View job Claude finished the code review
ReviewSingle-line, low-risk change to "writing@melodic-software": true,Checked against the rules the PR body and
I also checked whether the same "writing" entry is missing from the other two files in the repo that enumerate No correctness or maintainability issues found. I wasn't able to execute the shell test suite ( |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
…lls the catalog (#3917) Closes #3688 ## Summary Every worktree of this repo manufactured ~75 project-scope install records because its committed `enabledPlugins` mirrored the whole catalog, and that block was the only thing a cloud session installed from. Phase A moved the fleet list into the shared environment snapshot (melodic-software/standards#542) and taught this repo's bootstrap to read it (#3888); a cloud session on this repo was observed today booting from snapshot `2026-09-06.2` with the 75-entry list at `/opt/melodic-fleet-plugins.json` and the fleet install stage logged. This is Phase B for this repo: the block shrinks to deltas and the gate that required the mirror is repointed. ## Fix - `.claude/settings.json`: `enabledPlugins` is now the single delta this repo carries, `playgrounds@melodic-software: false`. `extraKnownMarketplaces` (the directory source) and the SessionStart hook are unchanged. A fresh worktree's first local session start now writes zero project-scope records for this path; a project `false` writes none (verified in #3813). - `scripts/check-plugin-catalog-enablement.sh`: check 1 becomes "every catalogued plugin is enabled by the fleet list OR carries an explicit key here". The list is fetched from its published `raw.githubusercontent.com` path at gate time (`PLUGIN_CATALOG_ENABLEMENT_FLEET` is the test seam); an unreachable or wrong-shaped list exits 2 rather than passing. Checks 2 (orphaned entries), 3 (sorted keys) and the bootstrap identity check are unchanged. Running it against main today named `writing`, catalogued after the fleet list was cut; melodic-software/standards#547 (merged) added it, and the gate is green against the live list. - `scripts/check-plugin-catalog-enablement.test.sh`: a `write_fleet` fixture, the fleet seam in `run`, and cases for a fleet-covered catalog with a deltas-only block, a fleet entry under another marketplace not counting, and a malformed list exiting 2. The class-that-shipped case now reads "enabled nowhere". - `.claude/cloud-bootstrap.sh`: header comment only; the enabled-set computation landed in #3888. - `docs/CLOUD-SESSIONS.md` and `docs/CLOUD-FLEET-SETUP.md`: record where enablement lives, why the mirror is gone, and the deltas-only template for consumer repos. No plugin changes, so no claude-ops version bump. ## Verification - `bash scripts/check-plugin-catalog-enablement.test.sh`: all contract checks pass locally. - `bash scripts/check-plugin-catalog-enablement.sh` against this tree with the live fleet list: exit 0, "Every one of the 76 catalogued plugins is enabled by the fleet list or carries an enabledPlugins key". - `shellcheck -S info` on the gate, its suite and the bootstrap: clean. `markdownlint-cli2` on the two docs: 0 issues. `typos`: clean. - `jq -e .enabledPlugins .claude/settings.json` parses; the file keeps its key order. ## Related - melodic-software/standards#542, #3888, melodic-software/medley#1940 (Phase A) - melodic-software/standards#547 (added `writing` to the fleet list; merged) - melodic-software/standards#545 (`/tmp` fallback and shape gate for the canonical copy) - #3813 (the probes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…deltas (#550) No related issue: fleet fan-out of melodic-software/claude-code-plugins#3688 (closed); the standards-owned settings files' part of that remediation. ## Summary The fleet plugin list (#542, `components/cloud-environment/fleet-plugins.json`) is what every cloud snapshot installs, and the canonical bootstrap reads it overlaid with each repo's `.claude/settings.json`. A committed block that mirrors the whole catalog is therefore redundant in the cloud and, locally, writes one project-scope install record per entry into the user's `installed_plugins.json` on every session start in every checkout (claude-code-plugins#3813). The blocks standards owns are reduced to deltas here. ## Fix - `.claude/settings.json` (this repo's own): `enabledPlugins` reduced to `{}`; no deltas. - `components/claude-settings/base/settings.json`: `enabledPlugins` reduced to `{}`. The base is no longer the fleet baseline; `check-plugin-baseline.sh` already compares against the fleet list since #542. - `components/claude-settings/targets/github-iac/settings.json`: the 43 mirrored `true` entries dropped; the 13 explicit `false` opt-outs stay, since a project `false` is the delta that disables a fleet-installed plugin for that repo. Sync fans this out to github-iac as a reviewed PR. ## Verification - `distribution/check-claude-settings-targets.sh`: passes (it checks the marketplace and hook, and states that `enabledPlugins` may diverge). - `jq` parses all three files; nothing outside the block moved. - `check-plugin-baseline.sh --compare fleet-plugins.json .claude/settings.json` now reports every fleet entry as `missing vs baseline` for this repo, which `distribution/README.md` documents as the expected post-migration shape. ## Related - melodic-software/claude-code-plugins#3688, #3917 - #542, #547 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
No related issue: follow-up flagged during dotfiles PR #694 ## Summary Three plugin lists exist. `components/cloud-environment/fleet-plugins.json` here is the cloud install set (first-party only); `.chezmoidata/claude.json` at `claudeSettings.seed.enabledPlugins` in [`melodic-software/dotfiles`](https://github.com/melodic-software/dotfiles) is the workstation enablement seed; the cloud bootstrap reads the fleet list at runtime. The seed and the fleet list are separate on purpose, but a first-party plugin added here and never carried into the seed is drift. `distribution/check-plugin-baseline.sh --compare-seed` has detected exactly that drift class since it landed, and nothing ran it — not a CI job, not a schedule, not a hook, only its unit test. `code-metrics`, `performance`, `playgrounds` and `writing` went missing from the seed for two days after #542 and #547 added them, and surfaced only because someone typed the command by hand. dotfiles PR #694 reconciled the four ids and added a pointer to this comparator; it deliberately did not add the gate, and flagged the gap as this follow-up. ## Fix Adds a `plugin-seed-drift` job to `.github/workflows/ci.yml`, and gives the comparator the exit code that job needs. **The job:** - Mints a contents-read token from the **standards-sync App**, narrowed to `dotfiles` via `owner:` + `repositories:`, and reads the seed through the contents API. **No new secret.** `melodic-software/dotfiles` is already a sync target and therefore already in that App installation, and `STANDARDS_SYNC_APP_CLIENT_ID` / `STANDARDS_SYNC_APP_PRIVATE_KEY` are already used by four workflows here (`ci.yml`'s `pr-convention-lockstep`, `lychee-private-inventory.yml`, `standards-sync-stuck-automerge-alert.yml`, `sync.yml`). The evidence for that placement is in **Related** below. - Runs `distribution/check-plugin-baseline.sh --compare-seed-strict` against the fetched seed and this repository's fleet list, letting the full report stream to the log, and **branches on the exit code**: 0 or 1 pass, **3** is the drift the lane exists to catch and fails it with an `::error::` annotation, anything else (2 — missing `jq`, unreadable JSON, a structurally broken seed) fails the lane on its own code. - Feeds the required aggregate check: added to `ci-status` in **both** its `needs:` list and its `results:` expression. **The comparator** (`distribution/check-plugin-baseline.sh`), addressing both review threads: - New opt-in mode `--compare-seed-strict <seed.json> [baseline.json]`. It runs the same comparison and prints the same report as `--compare-seed`, and exits **3** when any fleet plugin is absent from the seed. Plain `--compare-seed` is unchanged, so the usage dotfiles PR #694 documented keeps today's exit semantics. This exists because the gate previously matched the literal `in fleet list, not in seed:` against the comparator's stdout. Rewording that jq-built message, or moving the print to stderr, would have left the lane green on real drift with nothing to notice it — the exact failure this PR exists to close, relocated one layer down. The message text is now an `--arg` handed to jq and matched three lines away inside the one function that builds it, and the test suite asserts the string, so a rename trips CI rather than silencing it. - A seed that parses as JSON can still carry no usable plugin list. With `claudeSettings.seed.enabledPlugins` a scalar, or the root an array, `compare_seed`'s jq died, the filter's `2>/dev/null ... || true` swallowed the structural error, and the empty diff reported `matches the fleet list` at **exit 0** — the lane passed on a seed it had never read. A `require_seed_shape` check now runs before the comparison and refuses such a file with **exit 2**, the same loud code an unparsable file already gets. A missing `enabledPlugins` key is refused the same way rather than read as an empty seed. - `distribution/check-plugin-baseline.test.sh` gains 13 assertions covering the new flag, the three structural-failure shapes, the preserved plain-mode semantics, and the gated message string. - `distribution/README.md` documents the new mode and the exit codes. A separate job rather than a step in `distribution`, for the reason the `pr-convention-lockstep` job already records in-file: the run fetches over the network, and that non-hermetic dependency must not contaminate the hermetic component lane. The seed, the fleet list and the sync manifest are all untouched. ## Verification Placement evidence, gathered before any edit: - The sync manifest carries **no** `fleet-plugins.json` and **no** `check-plugin-baseline.sh` mapping (`grep -n 'fleet-plugins\|check-plugin-baseline\|cloud-environment' distribution/sync-manifest.yml` — no output), and `git ls-tree -r origin/main` in dotfiles finds neither file. dotfiles receives `cloud-bootstrap` only (`components/cloud-bootstrap/cloud-bootstrap.sh` → `.claude/cloud-bootstrap.sh`), which reads the fleet list at runtime and does not check it in. So a dotfiles-side job would need cross-repo access it has no token for: `git grep 'secrets\.' -- .github/workflows` in dotfiles returns only `GITHUB_TOKEN` and `CLAUDE_CODE_OAUTH_TOKEN`. **The job belongs here.** The fetch line was run verbatim with local `gh` auth: ``` gh api -H 'Accept: application/vnd.github.raw+json' \ repos/melodic-software/dotfiles/contents/.chezmoidata/claude.json ``` Exit 0, and `cmp` shows the returned bytes are identical to `dotfiles@origin/main`'s `.chezmoidata/claude.json` — the path and raw media type are right, and no base64 step is needed. `bash harness/shell/run-tests.sh distribution/check-plugin-baseline.test.sh` — **53/53 assertions pass**, up from 40. Running the file directly names each one. Comparator behavior, run in the worktree against the real fleet list and the real seed from `git -C <dotfiles> show 'origin/main:./.chezmoidata/claude.json'`, with each result then put through a script mirroring the job's `run:` body verbatim: | Seed | `--compare-seed-strict` | Plain `--compare-seed` | Job | | --- | --- | --- | --- | | Real seed, unmodified | exit 1, 8 steady-state lines, **zero** `not in seed` lines | exit 1 | **passes** | | Same seed minus `planning@melodic-software` | **exit 3**, `in fleet list, not in seed: planning@melodic-software` | exit 1 (unchanged) | **fails**, with the `::error::` annotation | | Seed with `enabledPlugins` deleted | **exit 2**, `has no claudeSettings.seed.enabledPlugins object` | exit 2 | **fails** | | Seed with `enabledPlugins` a scalar `"oops"` | **exit 2** | exit 2 | **fails** | | Seed whose root is `[]` | **exit 2** | exit 2 | **fails** | Rows 3–5 are the Codex thread: on `main` those three seeds exited **0** reporting `matches the fleet list`, and the job passed on a file it had never read. Row 2 is the review thread on the string gate: the go/no-go is now the exit code, and the plain-mode column shows existing callers are unaffected. Lint, all in the worktree on the edited files: - `actionlint .github/workflows/ci.yml` — exit 0. - `shellcheck -S info distribution/check-plugin-baseline.sh distribution/check-plugin-baseline.test.sh` — exit 0. - `npm run lint:md` — `0 issues in 0 files` across 122 files. - `zizmor --persona=regular .github/workflows/ci.yml` — `No findings to report`, exit 0. The `repositories: dotfiles` narrowing means this mint needs no `zizmor: ignore[github-app]` annotation, unlike the owner-wide `pr-convention-lockstep` mint. - `bash components/pin-comment-convention/scan-workflow-files.sh .github/workflows/ci.yml` — exit 0. - `chp::scan_text` from `components/comment-hygiene/comment-hygiene-patterns.sh` over the file — exit 0; the `comment-hygiene` contract test also passes. - `typos`, `editorconfig-checker` — exit 0. The Lefthook pre-commit lane (editorconfig, typos, shellcheck, gitleaks, markdownlint) passed on both commits. ## Related - dotfiles PR [#694](melodic-software/dotfiles#694) — reconciled the seed and flagged that the comparator is invoked by no CI job, schedule or hook in either repository. This closes that gap. - PR #559 — the adjacent cloud-bootstrap fix from the same review pass. - `claude-code-plugins` issue #3688 — the plugin-sync cluster this follow-up came out of. - The token pattern is `pr-convention-lockstep` in this same workflow, and `lychee-private-inventory.yml` before it: a contents-read App token for reading private fleet repositories from a public repository's CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L5ZJnwTRCgc31bmfrdugyU --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
No related issue: keeps the fleet plugin list in step with the marketplace catalog after #542; the tracking issue is melodic-software/claude-code-plugins#3688.
Summary
The catalog in melodic-software/claude-code-plugins gained a
writingplugin after the fleet list in #542 was cut from it. The new catalog-coverage gate in that repo (claude-code-plugins Phase B, in review) reports it as enabled nowhere, which is exactly the drift the gate exists to name.Fix
components/cloud-environment/fleet-plugins.json: addwriting@melodic-software: truein byte order (betweenwork-itemsandx). 76 entries.Verification
setup.test.shlist checks (parses, every entry true, keys in byte order, marketplaces declared) pass. Two runtime cases added to that suite since feat(cloud-environment): install the fleet plugin list at snapshot build #542 (missing plugins from either source are installed,warm fleet pass logs already-installed alpha) fail identically onorigin/mainon the authoring Windows host, so they are host-specific and not touched here; CI on Linux is the statement of record.enabledPluginsstill carries nothing for it, so the gate downstream stays red until this merges.Related
🤖 Generated with Claude Code