Repository navigation
release train: 0.37 final - #4420
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
apm install <bundle> records the executable types it parked and the exact approval key in the scope's apm_modules (install/local_bundle_pending.py). apm approve --pending lists them, re-checked against current trust, with the unwrapped key to add under executables.allow. Fixes #4221 Co-authored-by: Copilot App <[email protected]>
…ep-037-p2-local # Conflicts: # scripts/architecture_linter/checks/install_trust_integrity.py # src/apm_cli/install/phases/resolve.py # tests/fixtures/lifecycle_bug_ledger.json
marketplace.registry caches marketplaces.json for the process. A test that registered a marketplace under a temporary HOME left the alias visible to later tests on the worker; on the full Windows unit lane, TestCheckMarketplaceRef then reached the real registry and failed. The root conftest now invalidates the cache around each test and the leak detector tracks it strictly. Co-authored-by: Copilot App <[email protected]>
The full run showed install rewrites an edited managed file it cannot prove it wrote, so the first remedy now moves files holding edits aside before 'apm install'. The remedy test executes it as printed and the edit survives. Cursor and global-scope oracles follow the no-change refusal. 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]>
) The hook summary printed one identical line per target that received the hook. The summary owner now prints each distinct hook line once. Co-authored-by: Copilot App <[email protected]>
The test rebuilt os.environ from an empty base, which dropped PATH. With lazy CLI imports GitPython now resolves git inside the install rather than at startup, so the child install failed with 'Bad git executable' on Windows. Pass PATH, PATHEXT and SYSTEMROOT through, as the isolated environment helper expects callers to own executable trust via PATH. Co-authored-by: Copilot App <[email protected]>
Move the approval-key derivation and the deployed-destination report into helpers so the merged function stays at the Stage 2 limit. Co-authored-by: Copilot App <[email protected]>
# Conflicts: # tests/fixtures/lifecycle_bug_ledger.json
… CONFORMANCE The mutation replaces the owner call with None (one line) instead of deleting the check. CONFORMANCE regenerated after merging main. Co-authored-by: Copilot App <[email protected]>
# Conflicts: # apm.lock.yaml # tests/fixtures/lifecycle_bug_ledger.json
Co-authored-by: Copilot App <[email protected]>
A lock read from disk remembers its top-level x- keys, and a lock rebuilt from resolution carries over the keys of the document it replaces (deps/lockfile_extensions.py). Removes the strict xfail on test_lock_top_level_vendor_keys_survive_rewrite and adds an installed-CLI receipt with a paired install --frozen / audit --ci probe. Spec: req-lk-014 Fixes #4261 Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
# Conflicts: # tests/fixtures/lifecycle_bug_ledger.json
Co-authored-by: Copilot App <[email protected]>
…w lifecycle module The strict xfails for #4286 and the default-contract insecure field now pass and are unmarked; the duplicate req-sc-006 test in the manifest module is dropped in favour of them. The registry URL scheme lifecycle module names its promises. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…erer form; parse URLs in tests Co-authored-by: Copilot App <[email protected]>
…ll-evidence-refusal
# Conflicts: # .github/workflows/ci-integration.yml # .github/workflows/ci.yml # apm.lock.yaml # scripts/architecture_linter/checks/contracts_ci_topology.py # scripts/architecture_linter/groups/contracts_tests.py # scripts/architecture_linter/groups/registry_delegation.py # tests/fixtures/lifecycle_bug_ledger.json # tests/integration/test_architecture_owner_rule_mutations.py # tests/quality/promise-catalog.json # tests/quality/test_ci_topology.py # tests/unit/scripts/test_architecture_runner.py
# Conflicts: # .apm/architecture/owners/transport-auth-platform.json # docs/src/content/docs/enterprise/registry-proxy.md # docs/src/content/docs/reference/environment-variables.md # tests/unit/test_artifactory_support.py
…ll-evidence-refusal
Package validation now counts dependencies.lsp like apm and mcp when it accepts an apm.yml without .apm/ as a dependency-only package. Uninstalling another package no longer fails its survivor preflight on an LSP-only package (gated and approved, ungated, or denied), and an LSP-only package installs from git as it does from a local path. Fixes #4161 Fixes #4214 Fixes #4215 Fixes #4257 Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…4230) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…er match without a local receipt; cleanup retains files the install kept Co-authored-by: Copilot App <[email protected]> # Conflicts: # src/apm_cli/integration/cleanup.py # tests/fixtures/lifecycle_bug_ledger.json # tests/quality/lifecycle_obligations.json
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
… re-fetch A content hash refusal can only reject a row that records content_hash, so only those copies are staged with the install transaction; rows without one re-fetch in place as before. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…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]>
…--ci, install, --frozen and update Co-authored-by: Copilot App <[email protected]>
…ead of re-recording it Co-authored-by: Copilot App <[email protected]> # Conflicts: # src/apm_cli/marketplace/version_pins.py
…er match without a local receipt; cleanup retains files the install kept Co-authored-by: Copilot App <[email protected]>
A local bundle approval pins the whole bundle digest, so a redefined bundle loses the approval for every executable kind it ships. The gate model now revokes all kinds on a bundle redefinition, and the bundle-install hook, MCP and bin cells that track #4216 move from known_failing to required. Co-authored-by: Copilot App <[email protected]>
cli.py defined its lazy _check_and_notify_updates wrapper, so tests that patch apm_cli.cli._check_and_notify_updates patched an owner they import (AQ004). The wrapper now lives in apm_cli/update_notice.py; cli.py imports it under the same name, so the patch target and startup budget are kept. Co-authored-by: Copilot App <[email protected]>
…dius slice, lazy CLI imports, linter cache, shard file lists, mutation floors, receipts gate) Co-authored-by: Copilot App <[email protected]>
… probe, not owner patches (#4407) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… so --skill '*' reaches APM Co-authored-by: Copilot App <[email protected]>
A parked local bundle's record (#4221) lives under apm_modules/; prune now reads a directory without packages as empty. The needle for the bundle approval-key guard follows the key's helper, and the strict cells for #4169 and #4214 are removed now that both hold. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…ement The three integrity cells for a bundle whose approval no longer matches its content are required now; an installed-CLI test covers a reinstall with changed bundle content. The #4216 ledger row and changelog line name the case. Co-authored-by: Copilot App <[email protected]>
…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]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
test_install_audit_tamper_audit_reinstall_audit_loop asserts the refused reinstall (exit 1, the kept file named with its remedy, bytes kept), then executes the remedy (move aside, install) and audits clean. test_managed_file_collision_not_skipped models a receipted reinstall; the new test_managed_file_without_evidence_is_kept pins the refusal. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… shards CI's integration lanes pass an explicit -m expression, which overrides the default benchmark deselection, so the ~15-minute full-matrix replay ran in a 25-minute shard and timed it out. Gate it on PYTEST_PERF=1; the per-group transparency sample and the full-matrix parse-once guard stay always-on. Co-authored-by: Copilot App <[email protected]>
…loyment evidence (#4360) Co-authored-by: Copilot App <[email protected]>
…dius slice, lazy CLI imports, linter cache, shard file lists, mutation floors, receipts gate) Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
6 of 10 tasks
Resolution keeps both sides: - registry_delegation: main's output/console/ownership rules plus the train's CLI startup import budget rules and collectors. - approve: main's catalog sentence for pending packages; the train's pending local-bundle block is kept. - install --frozen "verified" line: main's guard (exit 0, lockfile has dependencies) plus the train's not-FAILED guard. - local_bundle_hook_trust: both retire notices render the BUNDLE_HOOKS_RETIRED catalog clause. - #4360 area (handoff/0c069664 @045628a1c, #4382 owner): local_edits RENDERING_CHANGED clause, with before="move the files aside"; command_integrator keeps _render_gemini_command, written via write_text_if_changed; install_overwrite_evidence counts write_text_if_changed as a raw write; frozen-hash test keeps _KEPT_REMEDY; #4360 truth for #4143's local-edit advice. - catalog_origin: both import sets. - lifecycle_evidence: union of the removals; every cell either side retired as fixed stays removed (#4196, #4241, #4249, #4267, #4219, #4288-#4291, #4307, #4320); no cell is added or relaxed. - ledger: main's #4089/#4090/#4091 rows plus the train's #4115 row (sorted, unique). Mutation cases: both, sorted. - test_console_utils: both tests. - generator rules: Ev anchors re-pointed to the merged line numbers (needle unchanged); obligations regenerated; generator --check is clean. - Goldens J01/06, J02/02, J03/02 and the J02 yaml: main's verbatim. Per the #4382 owner, the re-record with #4382 on #4143 gives zero golden diff; #4143's adopted-commands lines already reflect #4360's render-adopt. - Semantic merge, main's new guards on train-only code: owners for deps/lockfile_extensions.py (read-only-lockfile-path), install/local_bundle_pending.py (executable-trust-context) and update_notice.py (cli-startup-import-budget); 2 stale unowned entries are dropped (ceiling 306 -> 304). Six train-carried free-text remediations are baselined in remediation-advice-baseline.json (approve, outcome, cleanup x2, catalog_origin, version_pins), pending catalog migration. - CONFORMANCE regenerated (collect-only, then gen_statement). Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Release train for 0.37: one integration branch built from
mainthat git-merges (no rebase, no squash, no edits) the exact head commit of every ready 0.37 PR. Conflicts are resolved once, here. Land with a MERGE COMMIT so each included head reachesmainand GitHub marks those PRs merged with authorship kept. The CUT PR #4148 joins last, re-cut on top of this train.Manifest (included PRs, head merged into the train)
34befd3708d6795e25a25eb0147c66d338f4f13d8d98b3c22ca09070d7113f91edcbfe4d385fdb7af2a9a6a15e062a621e92a6111de67541b0b42d0304e87d2138dcff08f60198c6e256189323256bef13429915e284b8c8f7b9543d1d205d2bd2e3643cbcac0174f5a2dbd4e977b69b0adfa8ce80eb6de344502725a0d0439affafb40d2bb6550d04872c84959ae7a1fd0881e6758a62cdcac08d9998850340edb4237e712b37648bb950f24c30ca08da6ba97052c693f8ee765d0757c7f0953550208555131a8d8f4fd4778bdc4fecfaeb650fabfc9b2e3353fbf00263f3ba5ecb73669d98f014a8f303c124165fb0808e00146ac7ff9bd4d4914a178c0e9b9c56a2e20fd91b17df84639e0bcbbb67c9fe2e0e34e00e4e1bc0afa597c209b6cf237e7a8af4b95e914d6f54003587485177c527b6b052448a63f7d4df73f2fb44dc01716c7b1ff155f7fa922709c192e3128368c25713145b90a5f30700b9ee3dbdb2b19b0e980241796da27d41798998f76887f95ff66cde0b7d8b2264bd1403e0fe57906b5004efce5ed3e30ad9c655e308f07433ef1238a526fadf03d65d7298550237459276a2fd1040771bf9efb45337f26147469f6bfd2167b65100091cd15e6ca1d6a933af5b242693b036bd6c70724bd10d28a8d7a794f5c6c4569c508e6184a6358badeaf0d17f8ce0238c62d34afc636ca674f80ce68b5f34faebb64d7d3cb02a673cConflict-resolution log
No resolution drops a test, oracle cell or assertion from either side.
bugsrows (proxy registry: attach the token over http only to private hosts or with an explicit opt-in #4314, pack: exclude credential files from packages #4323, install overwrites user-edited managed files when no deployment receipt exists #4360 + apm install leaves fetched bytes in apm_modules when it fails closed on a content hash mismatch #4353, audit --ci passes an edited cached package copy that install --frozen refuses #4356, update exits 1 on a content hash mismatch without an error marker #4363), sorted by issue number. Nothing dropped.baseline->_trusted_hash(locate)plusoverwrite_authorized) and fix(install): skill adoption accepts a locked-render match without a local receipt; cleanup retains files the install kept #4258's longerbaselinedocstring; fix(install): skill adoption accepts a locked-render match without a local receipt; cleanup retains files the install kept #4258's bound-receipt check (claimed hash or bytes still held) auto-merged into_trusted_hash, so it applies to both baseline and overwrite authorization._keep_prior_entriesfrom fix(install): replace a managed file only with deployment evidence (#4360) #4382,_kept_skill_valuesfrom fix(install): skill adoption accepts a locked-render match without a local receipt; cleanup retains files the install kept #4258).add_rendered/_rendered_now_matchfrom fix(install): replace a managed file only with deployment evidence (#4360) #4382,keptfrom fix(install): skill adoption accepts a locked-render match without a local receipt; cleanup retains files the install kept #4258).class DeploymentLedgerCodecto its merged line.python -m tests.lifecycle.generator._log_hook_display_payloadstoinstall/deployed_paths.pywith once-per-line dedupe (apm install lists one hook summary line twice for a single package #4336); fix: 0.37 bug sweep part 2 #4283 edited the old local copy to dedupe across targets (same intent). Kept fix(install): print each hook summary line once per package #4395's single owner; dropped fix: 0.37 bug sweep part 2 #4283's duplicate local definition (the services alias import is unchanged).check_update_marketplace_provenancefrom fix: 0.37 bug sweep part 4 #4338,check_local_bundle_hook_retirementfrom fix: 0.37 bug sweep part 2 #4283); both stay registered.apm auditprints an [x] drift line but exits 0 #4191 [BUG] A failed marketplace install still writes a version pin under APM_HOME #4194 [BUG]apm install <pkg>leaves a declared local dependency out of apm.lock.yaml #4198 [BUG]apm marketplace add owner/repo#refignores the ref #4200 install --dry-run of a marketplace plugin writes the marketplace ref-pin file #4212 kept fix: 0.37 bug sweep #4217's current rows (its regression_tests point at the consolidated test files).log_bundle_deployedowner (install/deployed_paths.py); removed the now-unused local_report_deployed_destinationscopy.install --frozenprints its targeting line twice #4196 moved to Owner moves: console construction, remediation advice and module ownership #4143)._emitted_auth_traces+ lock from fix(output): one printer per repeated install and pack line #4412,_secondary_sources_triedfrom fix(install): pin only installed marketplace plugins; name every credential tried #4419).enforce_ref_pinand fix(install): pin only installed marketplace plugins; name every credential tried #4419'sstaged_ref_pin_keys/withdraw_ref_pins(both operate on the same staged-pin set).install --frozenprints its targeting line twice #4196 row the union resurrected (fix: 0.37 bug sweep #4217 removed it with its test; main lacks it).Excluded / pending
Train 1 content is FROZEN (DM v2 ruling): only fixed heads of its own carriers that clear its reds. Everything else rides train 2, #4424 (built on this branch), including #4255, #4382's fixed head, #4423 (#4225), #4143 unless it lands first, the conflict-skipped PRs and late items. The CUT PR #4148 goes last, into train 2. #4265 (empty placeholder) and #4421 (insurance, PM trigger only) are excluded.
Issue and approved scope
Issue: every closing reference of the included PRs, copied one per line:
Fixes #4172
Fixes #4173
Fixes #4174
Fixes #4175
Fixes #4190
Fixes #4191
Fixes #4192
Fixes #4193
Fixes #4194
Fixes #4195
Fixes #4198
Fixes #4199
Fixes #4200
Fixes #4201
Fixes #4202
Fixes #4203
Fixes #4205
Fixes #4206
Fixes #4207
Fixes #4208
Fixes #4209
Fixes #4210
Fixes #4211
Fixes #4212
Fixes #4213
Fixes #4333
Fixes #4399
Fixes #4243
Fixes #4336
Fixes #4314
Fixes #4360
Fixes #4353
Fixes #4356
Fixes #4363
Fixes #4229
Fixes #4230
Fixes #4160
Fixes #4219
Fixes #4224
Fixes #4237
Fixes #4318
Fixes #4252
Fixes #4286
Fixes #4161
Fixes #4169
Fixes #4214
Fixes #4215
Fixes #4221
Fixes #4241
Fixes #4249
Fixes #4257
Fixes #4261
Fixes #4407
Fixes #4409
Fixes #4232
Fixes #4248
Fixes #4400
Fixes #4411
Fixes #4115
Fixes #4118
Fixes #4119
Fixes #4120
Fixes #4288
Fixes #4289
Fixes #4290
Fixes #4291
Fixes #4307
Fixes #4320
Fixes #4322
Refs #4228 (stays open until train 2 per the PM)
Human scope-approval comment: each included PR carries its own approved scope; this PR only integrates them.
Does this PR complete the issue, or what remains? It completes exactly the issues its included PRs complete.
Type of change
Testing
--check, every generator Ev() citation re-verified, ledger sorted with unique issues.Changelog
Spec conformance (OpenAPM v0.1)