Skip to content

claude-ops(plugins): detect and migrate plugin renames without a marketplace renames map #1272

Closed as not planned

Description

@kyle-sexton

Problem

The fleet-sync skill hard-codes no rename knowledge and delegates entirely to the
CC-native renames map:

Claude Code rewrites a marketplace's renames map into installed/enabled state
automatically at session start (old id → new id; null means removal). This
skill hard-codes no rename knowledge — its only rename-adjacent behavior is
that anything present in the current catalog but absent from
installed_plugins.json shows up as missing_from_install.

— plugins/claude-ops/skills/plugins/context/scope-semantics.md

That delegation is correct for marketplaces that maintain the map. When one does
not — third-party marketplaces routinely don't — a rename degrades into two
unrelated-looking findings: the old id is an orphan in enabledPlugins, the new
id is missing_from_install, and the operator re-enables by hand without the
skill ever naming the relationship.

docs/topics/plugin-fleet-sync-skill/PLAN.md already anticipated the gap
("a marketplace without a renames map simply has no rename residue") but
treated it as acceptable degradation rather than a case to serve.

Proposal

Add rename detection to the sync report:

  1. Pair an enabled-but-absent-from-catalog id against a
    present-but-not-installed id.
  2. Corroborate the pairing rather than guessing from the two-sided absence
    alone — source-path shape, skill-set overlap, and marketplace.json history
    are all available locally.
  3. Present the candidate pairing with its evidence and migrate
    enabledPlugins / pluginConfigs on operator confirmation.

Non-negotiable: propose-then-confirm, never silent

This is inference, not declarative truth. A genuine removal plus a genuine
addition in the same sync window is indistinguishable from a rename on absence
alone, and corroboration raises confidence without reaching certainty. A wrong
silent migration enables a plugin the operator never chose — strictly worse
than the current hand-migration it replaces.

The confirmation gate is therefore part of the contract, not a UX preference.

Scope

This does not replace renames for marketplaces we own. CC-native migration
runs at session start for every consumer whether or not they use this skill;
detection here only helps operators who run it, and only after they run it.
Correct division:

  • Marketplaces we own → maintain renames (append-only, chains terminate,
    claude plugin validate . enforces). Unchanged.
  • Marketplaces we don't → this detection is the fallback.

Acceptance

  • A rename in a map-less marketplace is reported as one rename finding, not
    an unrelated orphan plus a missing entry.
  • The pairing states its corroborating evidence.
  • No enabledPlugins / pluginConfigs write happens without explicit
    operator confirmation.
  • A same-window unrelated add + remove is NOT reported as a rename, or is
    reported with explicitly low confidence.
  • Behavior for marketplaces that DO carry a renames map is unchanged —
    CC-native migration still owns those.

Origin

Surfaced while renaming re-anchor → discipline in this repo. The operator's
stated preference was to skip the renames entry and let fleet-sync handle the
migration; it cannot today. The entry was kept for that rename.

Activity

  1. added
    needs-human
    on Jul 25, 2026
  2. kyle-sexton commented on Jul 25, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage

    Read the body, the current fleet-sync skill's rename posture (plugins/claude-ops/skills/plugins/context/scope-semantics.md "Renames are CC-native"), and the design record (docs/topics/plugin-fleet-sync-skill/PLAN.md), which already treated the map-less case as a deliberate, accepted degradation rather than a gap to close. Reversing that stance is itself a scope decision.

    The proposal's confirm-then-migrate gate and ownership split (marketplaces-we-own keep renames; marketplaces-we-don't get this fallback) are well-reasoned and largely settled. What's not settled is the detection mechanism itself: the issue names three candidate corroboration signals (source-path shape, skill-set overlap, marketplace history) as examples without specifying which are required vs. advisory, and its own acceptance criteria demand a same-window unrelated add+remove NOT be reported as a rename (or be flagged low-confidence) — that confidence threshold is a genuine judgment call with real false-positive/false-negative cost, not a single well-grounded default with only a reversible alternative. This is feature-shaped (a new heuristic-inference capability), not a bounded bug fix, so it doesn't clear the delegable bar despite the existing work-class: scoped label — leaving that label as-is since the eventual implementation, once the design questions below are answered, is plausibly bounded to this skill's own directory.

    Classification:

    • Type: Feature
    • Priority: priority: medium (unchanged)
    • Work-class: work-class: scoped (unchanged — likely accurate once briefed)
    • Role: needs-human (human-gated — open design space, not a capability blocker)

    Agent Brief (human-gated — needs a design decision before this is delegable)

    Type: Feature
    Summary: Whether and how to add heuristic rename detection to the fleet-sync skill when a marketplace ships no CC-native renames map.

    Current behavior: The skill's sync algorithm delegates 100% of rename handling to Claude Code's own renames map rewrite at session start. Its only rename-adjacent behavior is coincidental: an id absent from the catalog but present in the install record surfaces as missing_from_install, which happens to cover a renamed plugin's new id too. For marketplaces that never populate renames, an actual rename surfaces as two unrelated-looking findings instead of one.

    Desired behavior (per the issue's proposal): Pair a same-window "vanished from catalog" id against a "newly present, not installed" id, corroborate the pairing with locally available signals, present the candidate with its evidence, and migrate enabledPlugins/pluginConfigs only on explicit operator confirmation — never silently.

    Why this needs a human decision: The confirm-then-migrate gate and the "marketplaces we own keep renames" scope boundary are already well-specified in the issue. What's open: (1) which corroboration signals are required vs. advisory, (2) what confidence threshold gates surfacing a candidate vs. suppressing it as a false positive — directly load-bearing for the issue's own "don't report an unrelated add+remove as a rename" acceptance criterion, and (3) where this logic should live (fleet-state.sh's output shape, skill-level prose, or both). None of these has a single well-grounded default with only a reversible fallback; they're genuine product/design judgment calls.

    Key interfaces:

    • fleet-state.sh's existing output shape (missing_from_install, missing_from_user_install, divergences[]) — a new "candidate rename pairing" finding needs its own shape decision
    • The confirm-then-migrate gate's attachment point (an existing sync step, or a new one)
    • The corroboration confidence model (signals, required vs. advisory, surfacing threshold)

    Acceptance criteria (carried forward from the issue for whoever briefs the bounded version):

    • A rename in a map-less marketplace is reported as one rename finding, not an unrelated orphan plus a missing entry
    • The pairing states its corroborating evidence
    • No enabledPlugins/pluginConfigs write happens without explicit operator confirmation
    • A same-window unrelated add+remove is NOT reported as a rename, or is reported with explicitly low confidence
    • Behavior for marketplaces that DO carry a renames map is unchanged

    Out of scope:

    • Replacing or duplicating the CC-native renames map path for marketplaces the org owns
    • Any change to renames map semantics itself (append-only, chain-terminating, claude plugin validate .-enforced)

    A maintainer needs to pick the corroboration model and confidence threshold (or explicitly hand a stated default back to an agent) before this clears the bar for autonomous pickup.

  3. kyle-sexton commented on Aug 13, 2026

    @kyle-sexton
    MemberAuthor

    Frontier disposition (drain session)

    Ruling: Close as not planned for this drain wave (frontier consensus).

    Dual-panel drain ruling: advisory, superseded, folded into a program umbrella, or blocked on a host/design carrier without an actionable in-repo slice this session. Re-open with a concrete acceptance brief if a consumer needs the work.

    KEEP set for this wave: standing telemetry; host-physical Class C (#631 family); program umbrellas #530/#531/#532/#535; live design carriers #1500/#1553/#1668/#1695/#1716/#1681/#1718; #1360.

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

    needs-human

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions