Skip to content

fix: 0.37 bug sweep part 4 - #4338

Merged
Daniel Meppiel (danielmeppiel) merged 23 commits into
mainfrom
danielmeppiel-bug-sweep-037-p4
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 23 commits into
mainfrom
danielmeppiel-bug-sweep-037-p4

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

0.37 bug sweep, part 4. Every issue gets an owner-level fix, a failing-before installed-CLI test and a bug-ledger row. This PR also carries any item dropped from part 2 (#4283) or part 3 (#4284) at their landing cut-off. Each "Refs" line becomes "Fixes" only in the push that brings that item's code and test.

Issue and approved scope

Fixes #4160 (scope record: #4160 (comment))
Fixes #4219 (scope record: #4219 (comment))
Fixes #4224 (scope record: #4224 (comment))
Refs #4228
Fixes #4237 (scope record: #4237 (comment))
Fixes #4318 (scope record: #4318 (comment))

Human scope-approval comment: an apm-scope:v1 record is posted on each linked issue by the maintainer.

Does this PR complete the issue, or what remains? It completes each issue listed with Fixes.

Type of change

  • Bug fix

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Changelog

  • One line per fix under ## [Unreleased] in CHANGELOG.md.

Spec conformance (OpenAPM v0.1)

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

@danielmeppiel Daniel Meppiel (danielmeppiel) added this to the 0.37.0 milestone Nov 20, 2026
@danielmeppiel Daniel Meppiel (danielmeppiel) added the full-integration Run the full integration suite (ci-integration.yml) on this PR before merge label Nov 20, 2026
Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:11

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.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

apm update no longer carries a marketplace row's discovered_via,
marketplace_plugin_name, source_url or source_digest forward on the
lockfile's word. marketplace/catalog_origin.py reverify_locked_provenance
re-resolves each row through its registered alias (origin-checked and
admitted like every other resolution entry point), restores the catalog
origin and digest, and fails closed on an unknown alias, missing plugin,
rebound origin or incomplete provenance, before any write.

Guard install-deployment-update-marketplace-provenance: update re-verifies
before planning, and only the lockfile phase and the origin owner write
source_url/source_digest. Installed-CLI test covers tamper and clear for
each field with a paired install --frozen / audit --ci probe.

Fixes #4228

Co-authored-by: Copilot App <[email protected]>
…e mixed locks

A lock is legacy only when its generator stamp predates 0.37 and no row
carries origin evidence or the 0.37-only lockfile_version; a mixed lock is
refused as edited. A current-format lock with no origin evidence refuses
with the next step. The pre-0.37 fixture now stamps a real 0.36 lock.

Refs #4228

Co-authored-by: Copilot App <[email protected]>
… provenance

When apm.yml declares an entry in marketplace form, a lock row for the
resolved package with all marketplace fields cleared is refused before
any write, instead of being re-recorded from the catalog.

Refs #4228

Co-authored-by: Copilot App <[email protected]>
…touched (#4318)

apm update refreshes apm.yml dependencies only. With a local bundle
installed it now names the bundle (from its hook ownership markers and
compile staging slugs, else its file count) and gives the runnable next
step: apm install <newer-bundle-file>. The lifecycle generator's strict
cell rule|U8|update-leaves-a-local-bundle-untouched becomes required.

Co-authored-by: Copilot App <[email protected]>
Also re-points stale generator anchors (install, update, audit, pack,
compile, lock) and regenerates the obligations.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…register the declaration check

Co-authored-by: Copilot App <[email protected]>
…on lines (#4160, #4219)

After apm uninstall, the surviving packages are redeployed from their
recorded selection. Their per-primitive integration tree lines carried no
package header and repeated once per survivor; the rebuild now passes a
logger that drops tree lines and keeps warnings and errors. Installed-CLI
regression test; the strict I9 output cell for #4219 is removed; ledger
rows and CHANGELOG lines.

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

# Conflicts:
#	tests/fixtures/lifecycle_bug_ledger.json
#	tests/lifecycle/generator/rules.py
#	tests/quality/lifecycle_obligations.json
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Co-authored-by: Copilot App <[email protected]>

# Conflicts:
#	tests/fixtures/lifecycle_bug_ledger.json
#	tests/lifecycle/generator/rules.py
#	tests/quality/lifecycle_obligations.json
…rator-rule lines

The lifecycle generator rules cite uninstall/engine.py by line; the new
logger class sits next to its only caller so those citations hold.

Co-authored-by: Copilot App <[email protected]>
…ked bundle (#4224, #4318)

The failing --ci verdict goes to stderr (#4224), so CliRunner tests read
stdout for the JSON report. In cover-17, p-exec ships only gated
executables, so its bundle install records nothing and update has no
bundle to name; the row pins the no-dependencies line again.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Co-authored-by: Copilot App <[email protected]>

# Conflicts:
#	tests/fixtures/lifecycle_bug_ledger.json
#	tests/quality/lifecycle_obligations.json
#	tests/utils/lifecycle_evidence.py
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Co-authored-by: Copilot App <[email protected]>

# Conflicts:
#	tests/fixtures/lifecycle_bug_ledger.json
#	tests/utils/lifecycle_evidence.py
…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]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit c8dbec8 into main Nov 21, 2026
43 of 60 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-bug-sweep-037-p4 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

full-integration Run the full integration suite (ci-integration.yml) on this PR before merge

Projects

None yet

2 participants