Skip to content

release train: 0.37 final - #4420

Merged
Daniel Meppiel (danielmeppiel) merged 342 commits into
mainfrom
train/0.37-final
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 342 commits into
mainfrom
train/0.37-final

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

Release train for 0.37: one integration branch built from main that 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 reaches main and 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)

PR Head SHA merged Status Closes
#4217 34befd3708d6795e25a25eb0147c66d338f4f13d approved (steward; strict-cell removals pre-approved) (already MERGED on main) #4172, #4173, #4174, #4175, #4190, #4191, #4192, #4193, #4194, #4195, #4198, #4199, #4200, #4201, #4202, #4203, #4205, #4206, #4207, #4208, #4209, #4210, #4211, #4212, #4213
#4406 8d98b3c22ca09070d7113f91edcbfe4d385fdb7a approved (steward) (already MERGED on main) -
#4373 f2a9a6a15e062a621e92a6111de67541b0b42d03 approved (steward) (already MERGED on main) #4333, #4399
#4395 04e87d2138dcff08f60198c6e256189323256bef approved (steward) (already MERGED on main) #4243, #4336
#4369 13429915e284b8c8f7b9543d1d205d2bd2e3643c hard carrier, L1-guarded -
#4317 bcac0174f5a2dbd4e977b69b0adfa8ce80eb6de3 hard carrier, L1-guarded #4314
#4382 44502725a0d0439affafb40d2bb6550d04872c84 FINAL 4450272 (steward-approved, CI all green); carrier fix under the freeze rule #4360
#4385 959ae7a1fd0881e6758a62cdcac08d9998850340 approved (steward); fixed head 959ae7a (global MCP lockfile staging scope) [PR head now 8e9c509; rides train 2] #4353, #4356, #4363
#4258 edb4237e712b37648bb950f24c30ca08da6ba970 hard carrier; edb4237 (= f83108b retain() fix for the #4258 x #4382 interaction + main) #4229, #4230
#4338 52c693f8ee765d0757c7f0953550208555131a8d approved (steward); fixed head 52c693f; Refs #4228 (stays open; #4228 product fix rides train 2) #4160, #4219, #4224, #4237, #4318
#4304 8f4fd4778bdc4fecfaeb650fabfc9b2e3353fbf0 hard carrier, L1-guarded [PR head now ef3e002; rides train 2] #4252, #4286
#4283 0263f3ba5ecb73669d98f014a8f303c124165fb0 approved (steward); fixed head 0263f3b (retires #4169/#4214 cells; prune wording); no longer closes #4216 #4161, #4169, #4214, #4215, #4221, #4241, #4249, #4257, #4261
#4396 808e00146ac7ff9bd4d4914a178c0e9b9c56a2e2 approved (steward) -
#4379 0fd91b17df84639e0bcbbb67c9fe2e0e34e00e4e approved (steward); fixed head 0fd91b1 (AQ003) -
#4408 1bc0afa597c209b6cf237e7a8af4b95e914d6f54 approved (steward); fixed head 1bc0afa (subprocess probe) #4407
#4410 003587485177c527b6b052448a63f7d4df73f2fb approved (steward); fixed head 0035874 #4409
#4372 44dc01716c7b1ff155f7fa922709c192e3128368 approved (steward) [PR head now 541e68b; rides train 2] #4232
#4375 c25713145b90a5f30700b9ee3dbdb2b19b0e9802 approved (steward) [PR head now e325586; rides train 2] #4248
#4416 41796da27d41798998f76887f95ff66cde0b7d8b hard carrier (TOFU, Fixes #4400); FINAL 41796da (steward HARD) #4400
#4413 2264bd1403e0fe57906b5004efce5ed3e30ad9c6 approved (steward); fixed head 2264bd1 #4411
#4414 55e308f07433ef1238a526fadf03d65d72985502 approved (steward; test-only) [PR head now 34afecc; rides train 2] -
#4294 37459276a2fd1040771bf9efb45337f26147469f approved (steward) [PR head now a1ef93b; rides train 2] -
#4150 6bfd2167b65100091cd15e6ca1d6a933af5b2426 approved (steward); fixed head 6bfd216 (AQ004: update_notice owner) #4115, #4118, #4119, #4120
#4412 93b036bd6c70724bd10d28a8d7a794f5c6c4569c approved (DM v2 / L2); fixed head 93b036b (pack drift recipe) #4288, #4289, #4290, #4291, #4307, #4320
#4419 508e6184a6358badeaf0d17f8ce0238c62d34afc approved (DM v2; retargeted to main) [PR head now 5ec719b; rides train 2] #4322
#4415 636ca674f80ce68b5f34faebb64d7d3cb02a673c approved (steward, workspace_lock oracle tightening) (already MERGED on main) -

Conflict-resolution log

No resolution drops a test, oracle cell or assertion from either side.

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

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

Testing

  • Tested locally -- no local pytest by design; CI on this PR is the evidence. Local: ruff check/format (ruff 0.15.12), generator --check, every generator Ev() citation re-verified, ledger sorted with unique issues.
  • All existing tests pass -- see CI; inherited main reds follow the L1 registry.
  • Added tests for new functionality (if applicable) -- carried by the included PRs.

Changelog

  • Each included PR carries its own CHANGELOG line; CHANGELOG merged as a union.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • N/A at train level -- each included PR owns its spec ritual.

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]>
)

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
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]>
# Conflicts:
#	tests/fixtures/lifecycle_bug_ledger.json
…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]>
…erer form; parse URLs in tests

Co-authored-by: Copilot App <[email protected]>
# 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
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]>
…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
… 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]>
…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]>
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]>
…dius slice, lazy CLI imports, linter cache, shard file lists, mutation floors, receipts gate)

Co-authored-by: Copilot App <[email protected]>
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]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit b68fcbf into main Nov 21, 2026
45 of 63 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the train/0.37-final 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