Skip to content

fix(marketplace): refuse a swapped plugin ref instead of re-recording it - #4416

Merged
Daniel Meppiel (danielmeppiel) merged 98 commits into
mainfrom
danielmeppiel-s18-tofu-ref-swap
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 98 commits into
mainfrom
danielmeppiel-s18-tofu-ref-swap

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Stacked on #4217 (which records marketplace ref pins only when an install commits). Until #4217 lands, this diff includes its commits.

When a marketplace plugin version resolves to a ref other than the one a committed install recorded, apm install (project and -g) now refuses with exit 1. It names both refs and points to apm update, instead of warning once and re-recording the new ref. An explicit apm update that selects the plugin is the accept path: it prints Plugin X@M ref changed: was 'a', now 'b'. Accepted by this update. and records the new ref on commit. A selective update leaves unselected plugins' pins alone. install --frozen and audit --ci replay the locked commit and agree with each other. Read-only commands never touch pins.

  • marketplace/version_pins.py: enforce_ref_pin checks the recorded pin, raises RefPinMismatchError on a mismatch unless an update accepts it, and otherwise stages the pin for the open install attempt. The pin file path follows APM_HOME at call time.
  • deps/apm_resolver.py: an update accepts a changed ref for the plugins it selects. Unselected plugins and catalog metadata reads leave pins alone.
  • marketplace/resolver.py:
    • pins key on the version a range resolved to (else the catalog's declared version), so a new release never collides;
    • a consumer's raw ref override (version: main) neither checks nor moves the publisher's pin;
    • enforce_ref_pins=False for read-only callers.
  • commands/view.py and commands/uninstall/engine.py resolve read-only.
  • Closed-world guard marketplace-integrations-ref-pin-commit (owner marketplace-ref-pin-commit):
    • only version_pins.py writes or stages pins;
    • only the install transaction opens a stage;
    • InstallTransaction.commit commits it once;
    • rollback and dry-run discard it.
    • Registered in _EXPECTED_RULE_ID_TEXT with one sorted MutationCase.
  • Docs: consumer marketplace page and apm-usage dependencies.md. Ledger row and CHANGELOG line added.

Issue and approved scope

Issue: Fixes #4400. Refs #4194 and #4212 (closed by #4217).

Human scope-approval comment: see #4400.

Does this PR complete the issue, or what remains? It completes #4400.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally

  • All existing tests pass

  • Added tests for new functionality (if applicable)

  • tests/integration/test_marketplace_ref_swap_lifecycle.py::test_swapped_marketplace_ref_is_refused_every_time[project|user] (installed CLI). It installs a plugin, the catalog re-points the same version at another ref, and two installs both refuse with exit 1. Each names was 'main', now '<sha>', and the pin file and project plus APM_HOME stay byte-identical. Before the fix (on fix: 0.37 bug sweep #4217's head) both scopes exited 0 and re-recorded the swapped ref. After: 2 passed. fix: 0.37 bug sweep #4217's test_marketplace_ref_pin_lifecycle.py: 2 passed.

  • tests/integration/test_marketplace_ref_swap_lifecycle.py::test_update_accepts_a_swapped_ref_visibly_and_frozen_audit_agree[all|selected]: after a catalog re-pin, install --frozen and audit --ci both exit 0 with state unchanged. A bare and a selective apm update each print the accepted old and new ref and record the new pin.

  • test_marketplace_lock_replay_lifecycle.py, test_install_transaction.py, test_marketplace_explicit_refresh_lifecycle.py: 78 passed (with the resolver units).

  • Marketplace and deps units: 3459 passed.

  • Guard matrix, its mutation case, rule inventory, ledger and taxonomy tests: 113 passed.

  • Lint: ruff check and format, architecture boundaries and the assertion-quality checker are clean for this change. The only remaining AQ003 is in tests/lifecycle/world/test_world.py, inherited from fix: 0.37 bug sweep #4217's head.

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…eep file-length guard (#4209)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…4194)

The marketplace resolver recorded the plugin ref in
APM_HOME/cache/marketplace/version-pins.json on every resolution, so
install --dry-run and a failed install wrote user-scope state. The
resolver now stages the pin; InstallTransaction writes staged pins on
commit and discards them on rollback and dry-run completion.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
)

Plain apm audit printed '[x] Drift detected' while exiting 0. Advisory
drift now renders as '[!]'; '[x]' only appears when
security.audit.fail_on_drift fails the run.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
#4213)

apm lock runs no approval gate, so it dropped exec_status from rows
whose executables were parked and install wrote it back. Carry the
recorded trust state forward in lockfile-only mode, as deployed files
already are.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…--mcp and uninstall (#4190)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…tall locks (#4198)

ProspectiveInstallPlan completes a positional selection through
package_selection.complete_partial_selection, the same owner the install
pipeline uses, so the preview names exactly what the real install locks.
The positional dry-run unit test now keeps the locked-dependency exclusion
and asserts the unlocked declared local is named. The SourceMachine strict
cells lock-drops-exec-status (#4213) and dry-run-writes-ref-pin (#4212)
are removed with their workarounds: both defects are fixed in this PR.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>


- Revert the #4196 frozen MCP targeting change (SilentLogger,
  select_target_runtimes_quietly), its lifecycle test, ledger row and
  CHANGELOG line, and restore the install-frozen-mcp-targeting-twice cell:
  #4143 is the single finisher for #4196.
- J02/02 golden: frozen package headers print the declared ref once (#4195).
- Ledger node ids follow tests main moved; the #4200 parser tests move to
  test_registration_fragment_ref.py and the #4198 helper test to
  test_package_selection.py; #4174 tests observe behaviour without patching
  the auth owner.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… the sweep flips

- test_install_package_locks_declared_local_dependency_and_reports_adoption
  used github.com/acme/tools; the packaged binary is not under the in-process
  network guard, so CI reached the public GitHub API and got a real 404.
  The fixture now serves git.example.invalid/acme/tools.
- Strict journey cells our fixes flip are removed: J04 skill-bundle-integrated-twice
  (#4207), uninstall-cleanup-unannounced (#4193); J05 frozen-header-repeats-ref
  (#4195), failed-install-records-marketplace-pin (#4194); J08
  uninstall-prints-absolute-manifest-path (#4190), prune-cleanup-unannounced
  (#4193), prune-hook-reconcile-without-hooks (#4204); J09
  targets-source-ignores-manifest (#4210), integration-line-hides-destinations
  (#4211), install-stale-cleanup-unannounced (#4193),
  compile-zero-output-warning-after-dedup (#4209); J11
  J11-bundle-install-does-not-name-destinations (#4192); E02
  e02-deny-retired-hook-not-announced (#4173).
- Key lines follow the #4193 cleanup wording (J04, J08, J09) and the J05/06
  golden the #4195 header.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Regenerate tests/quality/lifecycle_obligations.json after the merge.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… it (#4400)

A marketplace plugin version that resolves to a ref other than its recorded
pin is refused (exit 1) naming both refs and the pin entry to remove for an
intended re-tag. Pins key on the version a range resolved to; a raw ref
override never touches them; view and uninstall resolve read-only. A
closed-world guard keeps pin writes on the install transaction's commit.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 16:33
Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical version-pin enforcement gaps allow pinned sources to switch to implicit refs without refusal and mixed batches to commit changes and exit successfully despite a pin mismatch.

4 open issues
What changed in this PR

This PR hardens marketplace trust by refusing changed refs for previously installed plugin versions and recording pins only when an install commits. The diff also includes the broader install, cleanup, diagnostics, and packaging fixes stacked from #4217.

Changes:

  • Adds ref-swap refusal, transaction-scoped pin staging, and read-only resolution for view and uninstall.
  • Includes stacked fixes for dependency selection, frozen replay, cleanup reporting, authentication diagnostics, and packaging.
  • Adds regression coverage, an architecture guard, and corresponding documentation updates.
File Description
tests/​unit/​test_install_command.py Updates partial-preview and access-diagnostic assertions.
tests/​unit/​scripts/​test_architecture_runner.py Registers the ref-pin guard inventory entry.
tests/​unit/​marketplace/​test_versioned_resolver.py Tests ref-swap refusal and staged pins.
tests/​unit/​marketplace/​test_registration_fragment_ref.py Tests shorthand fragment refs.
tests/​unit/​marketplace/​test_metadata_enrichment.py Isolates metadata-warning expectations.
tests/​unit/​install/​test_target_contraction_logging.py Adapts cleanup logger fixtures.
tests/​unit/​install/​test_skill_subset_deploy_parity.py Covers implicit selections and retry scope.
tests/​unit/​install/​test_services_rendering.py Checks all destination folders are named.
tests/​unit/​install/​test_package_selection.py Tests unlocked local dependency selection.
tests/​unit/​install/​test_dry_run_graph.py Aligns previews with partial-install selection.
tests/​unit/​install/​test_drift_pure_helpers.py Tests advisory drift headers.
tests/​unit/​install/​phases/​test_cleanup_phase.py Updates cleanup-result assertions.
tests/​unit/​deps/​test_immutable_requirement_conflicts.py Tests frozen proxy-route verification.
tests/​unit/​core/​test_auth_validation.py Tests credential-source diagnostics.
tests/​unit/​core/​test_auth_outcome.py Tests repository-not-found classification.
tests/​unit/​commands/​test_pack_cli_surface.py Checks license warnings in JSON.
tests/​unit/​commands/​test_marketplace_outdated.py Marks the remote-entry fixture explicitly.
tests/​test_runnable_prompts.py Checks runnable missing-script advice.
tests/​quality/​promise-catalog.json Adds the ref-pin trust promise.
tests/​quality/​lifecycle_obligations.json Refreshes evidence locations and digest.
tests/​lifecycle/​machines/​test_m_source.py Removes allowances for fixed defects.
tests/​lifecycle/​journeys/​goldens/​J05/​06.txt Updates frozen marketplace header output.
tests/​lifecycle/​journeys/​goldens/​J02/​02.txt Updates frozen dependency headers.
tests/​lifecycle/​journeys/​enterprise/​E02-executables-approvals.yaml Removes the retired-hook reporting allowance.
tests/​lifecycle/​journeys/​consumer/​J11-deploy-bundle.yaml Removes the destination-reporting allowance.
tests/​lifecycle/​journeys/​consumer/​J09-switch-harness.yaml Updates cleanup output and fixed cases.
tests/​lifecycle/​journeys/​consumer/​J08-uninstall-cleanup.yaml Updates prune output and fixed cases.
tests/​lifecycle/​journeys/​consumer/​J05-marketplace-plugin.yaml Removes fixed header and pin-write allowances.
tests/​lifecycle/​journeys/​consumer/​J04-skill-from-bundle.yaml Updates skill cleanup expectations.
tests/​lifecycle/​generator/​rules.py Refreshes source-evidence line references.
tests/​lifecycle/​generator/​factors.py Corrects a comment’s source reference.
tests/​integration/​test_stale_cleanup_diagnostics.py Verifies every removed path is announced.
tests/​integration/​test_revision_pin_update_lifecycle.py Tests unique update rows and totals.
tests/​integration/​test_required_lifecycle_state_machine.py Updates directory-based cleanup counts.
tests/​integration/​test_registry_only_chain_lifecycle.py Tests frozen proxy replay and changed archives.
tests/​integration/​test_prune_deployment_ledger_e2e.py Checks hook reconciliation reporting.
tests/​integration/​test_pack_deprecation_warning_lifecycle.py Tests JSON license-warning preservation.
tests/​integration/​test_pack_bundle_roundtrip_lifecycle.py Tests packing shared skill destinations.
tests/​integration/​test_marketplace_registered_ref_lifecycle.py Exercises shorthand registration refs.
tests/​integration/​test_marketplace_ref_swap_lifecycle.py Tests repeated refusal at both install scopes.
tests/​integration/​test_marketplace_authoring_lifecycle.py Tests skipping local entries during outdated checks.
tests/​integration/​test_manifest_rewrite_preservation_lifecycle.py Checks scope-relative manifest labels.
tests/​integration/​test_install_transaction.py Tests pin writes only on commit.
tests/​integration/​test_install_services_phase3w5.py Updates skill fixtures and rendering coverage.
tests/​integration/​test_install_services_orchestration.py Checks complete destination reporting.
tests/​integration/​test_install_compile_copilot_dedup_e2e.py Tests explained compilation skips.
tests/​integration/​test_init_reinit_targets_lifecycle.py Checks manifest-based target sources.
tests/​integration/​test_executables_gate_integration.py Tests preservation of recorded executable status.
tests/​integration/​test_executables_deny_retires_hooks_lifecycle.py Checks denied-hook removal diagnostics.
tests/​integration/​test_brownfield_lifecycle.py Tests local locking and skill adoption.
tests/​integration/​test_audit_drift_exit_contract_lifecycle.py Tests drift severity against exit behavior.
tests/​integration/​test_architecture_owner_rule_mutations.py Adds the ref-pin rollback mutation case.
tests/​integration/​test_architecture_outcome_guards.py Checks runnable component-selection advice.
tests/​integration/​test_architecture_contract_guards.py Updates the registry-gate mock signature.
tests/​integration/​marketplace/​test_build_integration.py Switches mocks to staged pin recording.
src/​apm_cli/​models/​apm_package.py Identifies user registry configuration in errors.
src/​apm_cli/​marketplace/​version_pins.py Adds mismatch refusal and transaction pin staging.
src/​apm_cli/​marketplace/​source_identity.py Exposes shorthand source classification.
src/​apm_cli/​marketplace/​resolver.py Enforces version pins with read-only opt-out.
src/​apm_cli/​marketplace/​registration.py Parses shorthand fragment refs.
src/​apm_cli/​integration/​targets.py Includes primitive deployment roots when packing.
src/​apm_cli/​integration/​skill_support.py Centralizes skill counts and adoption labels.
src/​apm_cli/​integration/​skill_integrator.py Tracks adopted promoted skills.
src/​apm_cli/​integration/​hook_reintegration.py Snapshots merged hook configuration.
src/​apm_cli/​integration/​hook_integrator.py Reports whether merged hooks changed.
src/​apm_cli/​integration/​cleanup.py Produces deduplicated removal display paths.
src/​apm_cli/​install/​validation.py Adds verbose ADO credential-source details.
src/​apm_cli/​install/​transaction.py Commits or discards staged marketplace pins.
src/​apm_cli/​install/​template.py Preserves selection and scope in retry advice.
src/​apm_cli/​install/​sources.py Uses consistent replay header refs.
src/​apm_cli/​install/​source_helpers.py Adds the replay header-ref helper.
src/​apm_cli/​install/​services.py Consolidates skill and destination output.
src/​apm_cli/​install/​repository_access.py Centralizes repository-access recovery messages.
src/​apm_cli/​install/​presentation/​__init__.py Passes cleanup details to the logger.
src/​apm_cli/​install/​plan.py Supports excluding separately reported updates.
src/​apm_cli/​install/​phases/​resolve.py Completes partial selections and improves failures.
src/​apm_cli/​install/​phases/​post_deps_local.py Reports local cleanup paths.
src/​apm_cli/​install/​phases/​lockfile.py Preserves executable status and implicit selections.
src/​apm_cli/​install/​phases/​cleanup.py Passes removal results through reporting.
src/​apm_cli/​install/​package_selection.py Adds unlocked locals to partial installs.
src/​apm_cli/​install/​package_resolution.py Exempts implicit dependencies from CLI overlays.
src/​apm_cli/​install/​outcome.py Builds runnable component-selection hints.
src/​apm_cli/​install/​mcp/​command.py Displays relative manifest labels.
src/​apm_cli/​install/​local_bundle_handler.py Reports bundle deployment destinations.
src/​apm_cli/​install/​dry_run_plan.py Previews implicit local dependencies.
src/​apm_cli/​install/​drift_render.py Supports advisory drift severity.
src/​apm_cli/​install/​deployed_paths.py Names all deployment destination folders.
src/​apm_cli/​install/​context.py Tracks implicitly selected dependencies.
src/​apm_cli/​deps/​registry/​feature_gate.py Distinguishes user registry configuration errors.
src/​apm_cli/​deps/​registry/​config_loader.py Locates user registry configuration.
src/​apm_cli/​deps/​immutable_requirements.py Accepts verifiable frozen proxy archives.
src/​apm_cli/​deps/​git_reference_resolver.py Raises typed repository-not-found errors.
src/​apm_cli/​deps/​clone_engine.py Preserves repository-not-found classification.
src/​apm_cli/​deps/​bare_cache.py Uses canonical missing-repository diagnostics.
src/​apm_cli/​core/​script_runner.py Replaces placeholder advice with apm list.
src/​apm_cli/​core/​deployment_state.py Warns only about actually retained claims.
src/​apm_cli/​core/​command_logger.py Lists removed paths with matching counts.
src/​apm_cli/​core/​auth.py Adds credential-source and not-found messages.
src/​apm_cli/​core/​auth_outcome.py Recognizes Git repository-not-found wording.
src/​apm_cli/​compilation/​distributed_compiler.py Records complete deduplication suppression.
src/​apm_cli/​commands/​view.py Resolves without enforcing or staging pins.
src/​apm_cli/​commands/​update.py Avoids duplicate revision-pin plan rows.
src/​apm_cli/​commands/​uninstall/​engine.py Resolves marketplace references without pin effects.
src/​apm_cli/​commands/​uninstall/​cli.py Uses readable manifest labels.
src/​apm_cli/​commands/​targets.py Reports declared targets as manifest-sourced.
src/​apm_cli/​commands/​prune.py Names removals and suppresses unchanged-hook messages.
src/​apm_cli/​commands/​pack.py Preserves authoring warnings in JSON reports.
src/​apm_cli/​commands/​marketplace/​outdated.py Skips local-path entries.
src/​apm_cli/​commands/​install.py Improves access and registry diagnostics.
src/​apm_cli/​commands/​compile/​cli.py Suppresses redundant zero-output warnings.
src/​apm_cli/​commands/​audit.py Aligns drift rendering with policy gating.
scripts/​architecture_linter/​checks/​marketplace_ref_pin_commit.py Adds the pin ownership and transaction guard.
scripts/​architecture_linter/​checks/​marketplace_integration_analyzers.py Registers the new guard.
packages/​apm-guide/​.apm/​skills/​apm-usage/​package-authoring.md Documents JSON license warnings.
packages/​apm-guide/​.apm/​skills/​apm-usage/​dependencies.md Documents pin refusal and override behavior.
docs/​src/​content/​docs/​troubleshooting/​install-failures.md Explains repository-access diagnostics.
docs/​src/​content/​docs/​troubleshooting/​index.md Updates advisory drift examples.
docs/​src/​content/​docs/​troubleshooting/​common-errors.md Documents missing-script recovery.
docs/​src/​content/​docs/​reference/​cli/​uninstall.md Documents removal-path reporting.
docs/​src/​content/​docs/​reference/​cli/​targets.md Documents manifest-sourced targets.
docs/​src/​content/​docs/​reference/​cli/​prune.md Documents listed cleanup paths.
docs/​src/​content/​docs/​reference/​cli/​pack.md Documents JSON license warnings.
docs/​src/​content/​docs/​reference/​cli/​marketplace.md Documents shorthand refs and local skips.
docs/​src/​content/​docs/​reference/​cli/​lock.md Documents executable-status preservation.
docs/​src/​content/​docs/​reference/​cli/​install.md Documents implicit locals and cleanup output.
docs/​src/​content/​docs/​reference/​cli/​audit.md Documents advisory and gated drift output.
docs/​src/​content/​docs/​consumer/​installing-from-marketplaces.md Explains ref-swap refusal and recovery.
CHANGELOG.md Records marketplace hardening and stacked fixes.
.apm/​architecture/​owners/​marketplace-plugins.json Declares the canonical ref-pin owner.

Review effort: Balanced

Comment on lines 1304 to +1306
current_ref = canonical.split("#", 1)[1] if "#" in canonical else None
plugin_version = plugin.version or ""
if current_ref:
from .version_pins import check_ref_pin, record_ref_pin
raw_ref_override = bool(version_spec) and resolved_constraint is None
if current_ref and enforce_ref_pins and not raw_ref_override:
Comment thread src/apm_cli/marketplace/version_pins.py Outdated
Comment on lines +285 to +287
if previous_ref is not None:
key = _pin_key(marketplace_name, plugin_name, version)
raise RefPinMismatchError(plugin_name, marketplace_name, previous_ref, ref, key)
prefix = "~/" if self.user_scope else ""
announced: list[str] = []
for path in sorted(dict.fromkeys(path.rstrip("/") for path in self.deleted)):
if any(path.startswith(f"{directory}/") for directory in directories):
Comment on lines +227 to +230
pins = load_ref_pins(pins_dir)
for (marketplace_name, plugin_name, version), ref in staged.items():
pins[_pin_key(marketplace_name, plugin_name, version)] = ref
save_ref_pins(pins, pins_dir)
… follow APM_HOME at call time

An explicit apm update of a plugin is the accept path for a changed catalog
ref and records the new ref on commit; install still refuses. The pin file
path now resolves APM_HOME when used, not at import.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
A selective apm update keeps unselected marketplace plugins at their locked
ref, so it neither checks nor stages their pins; selected plugins accept a
changed catalog ref.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
…eads leave pins alone

An update that accepts a changed catalog ref names the plugin with its old
and new ref. A catalog read for locked server metadata does not choose the
download, so it neither checks nor stages a pin. Pin tests follow APM_HOME.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
…alogs carry no origin

Provenance re-verification checks the catalog origin only; ref pins stay
with install and update resolution (#4416). A row recorded through a
catalog the user registered as local has no origin to compare, so it is
re-verified without one; the exemption reads the user's registration,
never the lock row, and a remote-registered alias whose row claims a local
source still refuses.

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 0139709 into main Nov 21, 2026
45 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-s18-tofu-ref-swap branch November 21, 2026 05:24
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.

marketplace: a changed plugin ref replaces the recorded ref after one warning

2 participants