Skip to content

release train 2: 0.37 final - #4424

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

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

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

Release train 2 for 0.37. Built ON TOP of train 1 (#4420, branch train/0.37-final) so its conflict work is reused; after #4420 lands, origin/main is merged in. Same rules: git-merge the exact head of each approved carrier (no rebase, no squash, no edits); land with a MERGE COMMIT. The CUT PR #4148 joins LAST.

Manifest (carriers added on top of train 1)

PR Head SHA merged Status Closes
#4255 1b9ec58932be53dc12c4ffc7a9a4b585a5d9b54e HARD; H-D train resolution f76888a + PR head 1b9ec58 (steward FINAL) #4050, #4086, #4132, #4153, #4159, #4162, #4164, #4166, #4168, #4176, #4185, #4299
#4423 3d740a38876285255f1edcc795e69b2da49e5d6e HARD; Fixes #4225 (steward) #4225
#4258 cd2ce1bfd3758ac2497de22fb92f83427317e5cf approved (steward); retain() fix + main (edb4237 via train 1) #4229, #4230
#4414 34afecc2d308f1a9e47a066603c25d0c990ed1e9 approved (steward: strict win32-only J07 xfail #4417) -
#4394 2f479ecb4875fa6ce6456a3e9e1061417e6f74fd approved (steward FINAL 2f479ec; supersedes c1d0705) #4309
#4372 541e68ba8360a6e28a4f978fecf5c64fb754b117 approved (steward) #4232
#4405 d2a9b2b9118694f6734a4756b965ad56fc55eaa7 approved (steward) #4242, #4244, #4256
#4419 5ec719b6884203a2ade5c813c37771ee1594dd73 approved (main-merged head) #4322
#4373 b4654f7a5337449784951b4c0ed20afa78da5ee7 approved (main-merged head) #4333, #4399
#4379 b3be6bf81004b2862436624fd2fc7c7203374010 approved (main-merged head) -
#4401 f788fdcf0e0ab0eb17e26172a2b9be429c6210a3 approved (steward f788fdc) #4389
#4385 8e9c5098fa4103b94ab3ced2587ffbde418f6e4e approved (steward 8e9c509; require_hashes probe) #4353, #4356, #4363
#4338 dc846e073d2945e6074a4e0ac715b36d4f3e63d8 approved (steward; train-2 heads) #4160, #4219, #4224, #4237, #4318
#4431 37c3ca3cbc95463344f3c870cc733dda3a105258 approved (steward) -
#4425 2016aa74c7c55d4e5ae9f1ad0eec828dbdbc84a0 approved (steward) #4330, #4331
#4283 6f39375d794b70007a8be0d0e85438aa2b2bd2fd approved (steward) #4161, #4169, #4214, #4215, #4216, #4221, #4241, #4249, #4257, #4261
#4426 f46f93eada8dc4a1749c2741ae5126ca55eb1e9c approved (DM v2; #4334) #4334
#4382 44502725a0d0439affafb40d2bb6550d04872c84 HARD (steward FINAL f6921ab via train 1) #4360
#4065 bcbfaa77b0da90a2320527be6cb54ae2463f07e3 approved (steward bcbfaa7; carries #4054) #4053
#4054 (contained) approved (contained in #4065) #4043
#4433 611f94f4ec437199f4aeae49a0fcd8474605664f approved (T1; Refs #4432) -
#4302 1c8a0fee3ff4248aa52bfcb55ed13ad59355bb76 approved (DM v2 / steward) #4223
#4304 cbab4cf58872dd13180c654ba9b08a4cea966669 approved (steward cbab4cf) #4252, #4286
#4375 e325586d4530168f6afe71605d1103688e6738bb approved (steward) #4248
#4345 4b39f8c68962f105529f34f34104eff2af11d44d approved (steward, on green) #4365
#4315 34d64720928ab4463c37b71b8d06065ac91adb09 approved (steward) #4218
#4284 769b687cb5a157621fe5acedfce849c95fe02a9c approved (steward 6c4a9ff; 769b687 = + mechanical main merge) #4178, #4180, #4251, #4253, #4260, #4262, #4263, #4267, #4277, #4278, #4279, #4287
#4440 2091362c216defa48864cc4f0ab8fa165f22038b approved (steward) #4422
#4442 88a24fc323d8f26adb644a962907aa95bbbca83f approved (steward) #4390
#4448 4297816fe5c0f0f59f339eae7085318bf9fee628 approved (steward) -
#4429 061f5956f9cc154f9b6d31547a508271e8ac61df approved (steward 061f595) #4308
#4427 edd38d6e4c9fd2384c88d5d158475225e0b82303 approved (steward) #4403
#4418 0d875736553540d65d848798a6e07541f80984cc approved (steward 0d87573, T2 train resolution) #4404
#4452 cbcc5b7e9e3ee374971e9ffe342d972dfd527f81 approved (steward cbcc5b7) -
#4434 258a211712e974fa32d2ee3fdb990103d8b8980d approved (steward 258a211) #4432
#4465 aedcad47c4a91e25a5a1b63f937906acd99e0b7e approved (steward) -
#4463 950d8b85bb22395da4704ab5e921abd4968c6339 approved (steward; docs) -
#4462 62ca9949181652d40e85d246efe5be56986d0665 approved (steward) -

Queued for this train

main with #4143 (resolution pending from H-H + 0c069664, goldens re-record), #4469 (after main), #4461 c304c27 (steward delta), #4464 (steward hold), #4466, #4471, #4294 (owner merging the train), #4384 (fully green only; then the #4422 cell deletion), #4392 (direct to main or here), #4468 fix (in via T2 branch c8587f9), then #4148 LAST.

Conflict-resolution log

Train 1's log applies (see #4420). Added here:

Issue and approved scope

Issue: closing references of EVERY carrier in this train (train 1 carriers included), one per line:

Fixes #4043
Fixes #4050
Fixes #4053
Fixes #4086
Fixes #4115
Fixes #4118
Fixes #4119
Fixes #4120
Fixes #4132
Fixes #4153
Fixes #4159
Fixes #4160
Fixes #4161
Fixes #4162
Fixes #4164
Fixes #4166
Fixes #4168
Fixes #4169
Fixes #4172
Fixes #4173
Fixes #4174
Fixes #4175
Fixes #4176
Fixes #4178
Fixes #4180
Fixes #4185
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 #4214
Fixes #4215
Fixes #4216
Fixes #4218
Fixes #4219
Fixes #4221
Fixes #4223
Fixes #4224
Fixes #4225
Fixes #4229
Fixes #4230
Fixes #4232
Fixes #4237
Fixes #4241
Fixes #4242
Fixes #4243
Fixes #4244
Fixes #4248
Fixes #4249
Fixes #4251
Fixes #4252
Fixes #4253
Fixes #4256
Fixes #4257
Fixes #4260
Fixes #4261
Fixes #4262
Fixes #4263
Fixes #4267
Fixes #4277
Fixes #4278
Fixes #4279
Fixes #4286
Fixes #4287
Fixes #4288
Fixes #4289
Fixes #4290
Fixes #4291
Fixes #4299
Fixes #4307
Fixes #4308
Fixes #4309
Fixes #4314
Fixes #4318
Fixes #4320
Fixes #4322
Fixes #4330
Fixes #4331
Fixes #4333
Fixes #4334
Fixes #4336
Fixes #4353
Fixes #4356
Fixes #4360
Fixes #4363
Fixes #4365
Fixes #4389
Fixes #4390
Fixes #4399
Fixes #4400
Fixes #4403
Fixes #4404
Fixes #4407
Fixes #4409
Fixes #4411
Fixes #4422
Fixes #4432
Fixes #4438
Fixes #4451
Fixes #4455
Fixes #4456
Fixes #4033
Fixes #4228
Fixes #4233
Fixes #4293
Fixes #4321
Fixes #4397
Fixes #4437
Fixes #4439
Fixes #4441
Fixes #4449
Fixes #4450
Fixes #4453
Fixes #4458
Fixes #4460
Fixes #4473
Fixes #4476
Fixes #4477
Fixes #4479
Fixes #4468
Fixes #4492
Fixes #4292
Fixes #4454
Fixes #4480
Fixes #4467
Fixes #4398
Fixes #4447
Fixes #4319
Fixes #4517
Fixes #4085
Fixes #4436
Fixes #4484
Fixes #4524
Fixes #4430
Fixes #4526
Fixes #4444
Fixes #4445
Fixes #4446
Fixes #4502

Refs #4228 (product fix rides separately)

Human scope-approval comment: each carrier 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 carriers 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.
  • 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 carrier has 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 carrier owns its spec ritual.

@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 16:57

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

Unresolved critical issues can delete kept files, leave upgrades with inconsistent lockfile and package versions, and modify the lockfile before user consent.

6 open issues
What changed in this PR

This release train integrates fixes for APM 0.37, focusing on deployment ownership, install recovery, marketplace integrity, and cross-platform lifecycle validation.

Changes:

  • Strengthen deployment evidence, skipped-file retention, package staging, and marketplace provenance handling.
  • Improve credential safeguards, diagnostic clarity, and repeated-output suppression.
  • Expand regression coverage, Windows lifecycle support, architecture guards, and supporting documentation.
File Description
tests/​utils/​state_leaks.py Track marketplace registry cache leaks.
tests/​utils/​local_header_capture_proxy.py Capture plain-HTTP proxy requests.
tests/​utils/​deployment_evidence.py Add overwrite-evidence test helper.
tests/​utils/​apm_lifecycle_runner.py Isolate stdin and forward child environment.
tests/​unit/​utils/​test_credential_rendering.py Update proxy-warning redaction assertions.
tests/​unit/​test_state_leak_detector.py Check marketplace cache reset ordering.
tests/​unit/​test_push_ci_gates.py Validate centralized Windows test selection.
tests/​unit/​test_platform_contract_workflow.py Validate shard-specific test file lists.
tests/​unit/​test_lockfile_v2_bump.py Remove obsolete version-downgrade expectation.
tests/​unit/​test_install_hook_transparency.py Verify hook-summary deduplication.
tests/​unit/​test_console_utils.py Test piped Windows console width.
tests/​unit/​test_cli_sigterm.py Accept additional CLI invocation options.
tests/​unit/​test_cli_encoding.py Verify Windows glob expansion is disabled.
tests/​unit/​scripts/​test_lifecycle_evidence.py Test child-specific debug-output handling.
tests/​unit/​registry/​test_client.py Check ASCII transport diagnostics.
tests/​unit/​integration/​test_kiro_target.py Supply evidence for agent replacement.
tests/​unit/​integration/​test_deployed_files_manifest.py Supply evidence for managed-file overwrite tests.
tests/​unit/​integration/​test_cleanup_helper.py Test skipped-member cleanup protection.
tests/​unit/​integration/​test_agent_integrator.py Supply evidence for agent update tests.
tests/​unit/​install/​test_resolution_staging_relocate.py Test nested staging and rollback order.
tests/​unit/​install/​test_mcp_optional_inputs.py Reject noisy environment notices.
tests/​unit/​install/​test_integrate_orchestration.py Verify mismatched cache copies are recoverable.
tests/​unit/​install/​test_finalize_phase.py Extend context fixture for kept overwrites.
tests/​unit/​install/​test_direct_dep_failure.py Test diagnostic delivery tracking.
tests/​unit/​install/​test_cached_codex_source_pin.py Preserve executable lookup environment.
tests/​unit/​install/​phases/​test_lockfile_union.py Verify retained deployment rows survive reconciliation.
tests/​unit/​core/​test_lifecycle_scripts.py Verify suppression notice prints once.
tests/​unit/​core/​test_auth_validation.py Check attempted credential-source reporting.
tests/​unit/​adopt/​test_onboarding.py Verify noninteractive discovery never prompts.
tests/​spec_conformance/​test_manifest_behavior_reqs.py Activate registry-key conformance assertions.
tests/​spec_conformance/​test_lockfile_cli_behavior_reqs.py Test vendor-key preservation through install.
tests/​spec_conformance/​test_lockfile_behavior_reqs.py Activate vendor-key rewrite assertions.
tests/​lifecycle/​world/​test_world.py Require Codex only in provisioned jobs.
tests/​lifecycle/​world/​clone.py Add read-only-file cleanup helper.
tests/​lifecycle/​world/​builder.py Use portable cleanup and Windows fixture TLS.
tests/​lifecycle/​oracles.py Compare normalized deployment hashes.
tests/​lifecycle/​machines/​test_m_spine.py Assert serialized user-scope deployment rows.
tests/​lifecycle/​journeys/​producer/​P02-pack-and-release-from-ci.yaml Update expected audit count.
tests/​lifecycle/​journeys/​normalize.py Normalize Windows path separators.
tests/​lifecycle/​journeys/​goldens/​J03/​02.txt Expect command adoption without repeated warnings.
tests/​lifecycle/​journeys/​goldens/​J02/​02.txt Update frozen-install adoption output.
tests/​lifecycle/​journeys/​goldens/​J01/​06.txt Update reinstall adoption output.
tests/​lifecycle/​journeys/​enterprise/​E06-private-registry.yaml Remove resolved credential-output exception.
tests/​lifecycle/​journeys/​enterprise/​E03-proxy-only-air-gapped.yaml Update marketplace plugin count.
tests/​lifecycle/​journeys/​consumer/​J11-deploy-bundle.yaml Update expected audit count.
tests/​lifecycle/​journeys/​consumer/​J02-team-onboarding.yaml Retarget known warning exception.
tests/​lifecycle/​conftest.py Expose world-directory fixture.
tests/​integration/​test_uninstall_deletion_failure_lifecycle.py Expect refusal before package deletion.
tests/​integration/​test_tls_trust.py Adapt CLI stub to additional options.
tests/​integration/​test_stale_cleanup_hash_authority_lifecycle.py Update uninstall refusal assertion.
tests/​integration/​test_required_lifecycle_state_machine.py Normalize user rows and check hook output.
tests/​integration/​test_mcp_retired_preview_lifecycle.py Test unknown-version MCP migration.
tests/​integration/​test_mcp_omission_lifecycle.py Correct known-failure tracking reference.
tests/​integration/​test_marketplace_origin_evidence_lifecycle.py Model legacy lockfile migration accurately.
tests/​integration/​test_local_bundle_hooks_lifecycle.py Test pending bundle approvals and retirement output.
tests/​integration/​test_lifecycle_workspace_lock.py Expect unknown-package decisions to be refused.
tests/​integration/​test_kiro_prompt_lifecycle.py Assert uninstall refusal preserves state.
tests/​integration/​test_global_scope_e2e.py Verify global uninstall preflight preservation.
tests/​integration/​test_frozen_deployed_hash_lifecycle.py Test protected files and move-aside recovery.
tests/​integration/​test_cursor_rules_lifecycle.py Assert atomic refusal for edited rules.
tests/​integration/​test_cold_skill_receipt_preservation.py Verify skill-scoped recovery advice.
tests/​integration/​test_agent_skills_target.py Expect migration collisions to fail explicitly.
tests/​integration/​test_ado_verbose_auth_trace_lifecycle.py Test deduplicated Azure DevOps auth tracing.
tests/​conftest.py Reset marketplace cache around each test.
src/​apm_cli/​utils/​net.py Add shared private-network classifier.
src/​apm_cli/​utils/​diagnostics.py Deduplicate identical policy diagnostics.
src/​apm_cli/​utils/​console.py Preserve full piped output width on Windows.
src/​apm_cli/​registry/​operations.py Remove repetitive environment notices.
src/​apm_cli/​models/​validation.py Accept LSP-only aggregator packages.
src/​apm_cli/​marketplace/​errors.py Add provenance verification error type.
src/​apm_cli/​integration/​skill_preflight.py Include scoped skill recovery details.
src/​apm_cli/​integration/​skill_integrator.py Track skipped members and prefer adopted baselines.
src/​apm_cli/​integration/​mcp_integrator.py Name runtimes in installation failures.
src/​apm_cli/​integration/​command_integrator.py Compare adoption against rendered command content.
src/​apm_cli/​install/​transaction.py Stage existing package copies before replacement.
src/​apm_cli/​install/​sources.py Preserve copies during package acquisition.
src/​apm_cli/​install/​services.py Delegate hook display to shared helper.
src/​apm_cli/​install/​resolution_staging.py Isolate nested package backup slots.
src/​apm_cli/​install/​phases/​resolve.py Centralize persistent-cache attachment.
src/​apm_cli/​install/​phases/​post_deps_local.py Carry retained local deployment values forward.
src/​apm_cli/​install/​phases/​lockfile.py Preserve skipped deployment rows.
src/​apm_cli/​install/​phases/​finalize.py Report unproven overwrites as failures.
src/​apm_cli/​install/​phases/​download.py Stage replacements and track delivered diagnostics.
src/​apm_cli/​install/​phases/​cleanup.py Exclude kept files from stale cleanup.
src/​apm_cli/​install/​mcp/​retired_destinations.py Treat unknown versions as migration candidates.
src/​apm_cli/​install/​mcp/​ownership.py Deduplicate shared-config migration warnings.
src/​apm_cli/​install/​manifest_reconcile.py Pass retained values into reconciliation.
src/​apm_cli/​install/​local_edits.py Explain move-aside rendering recovery.
src/​apm_cli/​install/​drift.py Attach read-only persistent cache for replay.
src/​apm_cli/​install/​deployed_paths.py Centralize and deduplicate hook summaries.
src/​apm_cli/​install/​context.py Track kept files and successful overwrite writes.
src/​apm_cli/​deps/​registry/​config_loader.py Validate configured registry URL schemes.
src/​apm_cli/​deps/​registry/​client.py Normalize transport errors to ASCII.
src/​apm_cli/​deps/​registry/​auth.py Validate configured credential origins.
src/​apm_cli/​deps/​lockfile_extensions.py Preserve top-level vendor extensions.
src/​apm_cli/​deps/​artifactory_orchestrator.py Clarify HTTP opt-in documentation.
src/​apm_cli/​core/​plugin_manifest.py Scope repeated manifest-note suppression.
src/​apm_cli/​core/​lifecycle_scripts.py Deduplicate policy suppression notices.
src/​apm_cli/​core/​deployment_state.py Protect retained rows from stale classification.
src/​apm_cli/​core/​auth_outcome.py Provide secret-redacting logging filter.
src/​apm_cli/​core/​auth_chain.py Record attempted credential sources.
src/​apm_cli/​core/​__init__.py Load auth exports lazily.
src/​apm_cli/​config.py Validate registry URLs before storing them.
src/​apm_cli/​commands/​view.py Disable ref-pin enforcement for viewing.
src/​apm_cli/​commands/​update.py Reverify provenance and route failure output.
src/​apm_cli/​commands/​uninstall/​engine.py Disable ref-pin enforcement during removal lookup.
src/​apm_cli/​commands/​pack.py Deduplicate plugin notes within packing.
src/​apm_cli/​commands/​outdated.py Reuse persistent-cache attachment helper.
src/​apm_cli/​commands/​discover.py Honor noninteractive consent rules.
src/​apm_cli/​cache/​paths.py Allow cache lookup without directory creation.
scripts/​test-integration.sh Accept shard-specific pytest targets.
scripts/​architecture_linter/​groups/​transport_platform.py Register HTTP proxy-token guard.
scripts/​architecture_linter/​groups/​registry_delegation.py Register CLI startup import guards.
scripts/​architecture_linter/​groups/​contracts_tests.py Register cache and shard-list guards.
scripts/​architecture_linter/​checks/​transport_credential_value_rendering.py Update registry validation owner reference.
scripts/​architecture_linter/​checks/​marketplace_locked_evidence.py Guard provenance revalidation ordering.
scripts/​architecture_linter/​checks/​marketplace_integration_analyzers.py Register ref-pin commit guard.
scripts/​architecture_linter/​checks/​install_lsp_plugin.py Update bundle approval owner expectations.
packages/​apm-guide/​.apm/​skills/​apm-usage/​dependencies.md Document marketplace pins and registry validation.
docs/​src/​content/​docs/​reference/​registries.md Explain registry HTTP and extension-key rules.
docs/​src/​content/​docs/​reference/​manifest-schema.md Document registry insecure opt-in field.
docs/​src/​content/​docs/​reference/​environment-variables.md Clarify HTTP proxy-token authorization.
docs/​src/​content/​docs/​reference/​cli/​uninstall.md Document evidence preflight and recovery.
docs/​src/​content/​docs/​reference/​cli/​install.md Explain receipts, retention, and overwrite refusals.
docs/​src/​content/​docs/​enterprise/​registry-proxy.md Document plaintext-token restrictions.
docs/​src/​content/​docs/​enterprise/​apm-policy.mdx Update example audit count.
docs/​src/​content/​docs/​consumer/​installing-from-marketplaces.md Explain ref-pin persistence and recovery.
CONFORMANCE.md Update security requirement coverage counts.
CONFORMANCE.json Record additional security conformance cases.
.github/​workflows/​lifecycle-journeys.yml Provision and require pinned Codex CLI.
.github/​instructions/​tests.instructions.md Clarify Windows test selection.
.github/​agents/​test-coverage-expert.agent.md Distinguish unrun coverage from missing tests.
.apm/​instructions/​tests.instructions.md Synchronize Windows testing guidance.
.apm/​architecture/​owners/​transport-auth-platform.json Register HTTP credential-locality ownership.
.apm/​architecture/​owners/​marketplace-plugins.json Register provenance and ref-pin commit ownership.
.apm/​architecture/​owners/​core-runtime.json Register CLI startup import budget.
.apm/​agents/​test-coverage-expert.agent.md Synchronize coverage evidence classifications.

Review effort: Balanced

Comment thread src/apm_cli/commands/update.py Outdated
Comment on lines +468 to +469
if restored and not dry_run:
lockfile.write(lock_path)
Comment thread src/apm_cli/install/phases/cleanup.py Outdated
lockfile=ctx.existing_lockfile,
lockfile_root=ctx.apm_dir,
diagnostics=ctx.diagnostics,
kept=getattr(ctx, "kept_deployed_values", frozenset()),
Comment thread src/apm_cli/install/phases/finalize.py Outdated
Comment on lines +365 to +367
ctx.diagnostics.error(
unproven_overwrite_message(entry, user_scope=user_scope), package=owner
)
Comment thread src/apm_cli/utils/net.py
Comment on lines +61 to +65
_RFC1918_NETWORKS = (
ipaddress.IPv4Network("10.0.0.0/8"),
ipaddress.IPv4Network("172.16.0.0/12"),
ipaddress.IPv4Network("192.168.0.0/16"),
)
Comment on lines +42 to +44
for root, _dirs, files in os.walk(path):
for name in files:
os.chmod(os.path.join(root, name), stat.S_IWRITE | stat.S_IREAD)
Comment on lines +208 to +210
assert any("http://proxy.invalid/art/apm?token=********" in message for message in messages), (
messages
)
Comment thread src/apm_cli/policy/discovery.py Dismissed
'Adopted N file(s) deployed by APM before 0.37, unchanged as committed.'
at the message owner. 5a pins the [i] adopt line on stdout only; 5b pins
each kept sentence on stderr only.

Co-authored-by: Copilot App <[email protected]>
… name rows by key

RA-001 (I7/I8): `install --frozen` judged require_hashes only in
check_before_deploy, after resolution had re-materialized apm_modules (it
deleted .apm-pin) and printed "[+] <pkg>". --frozen commits the existing
lockfile, so commit_gate.check_before_resolve now judges that lockfile
before resolution. It uses the same enforce_policy_hashes owner and the same
PolicyViolationError, so the refusal renders as before. check_before_deploy
still covers every other install.

RA-002: integrity.unhashed_dependency_names names unhashed rows by their
dependency key. They no longer go through the MCP registry URL redactor,
which rendered "<redacted-invalid-registry-url>". The frozen refusal, the
audit dependency-content-hashes check and the advisory share it.

Cells: the require_hashes I3 lifecycle test asserts no "[+]" in the refused
frozen stdout and the exact sentence naming the key in both readers. With
check_before_resolve removed, it fails ("I7: refused frozen install wrote").

apm-spec-waiver: frozen require_hashes refusal moves before resolution; key naming fix

Co-authored-by: Copilot App <[email protected]>
… refusal oracle reads the catalog

The full lifecycle run on train head 63e0d56 reported XPASS(strict) for
19 known cells (#4445 update policy-dep-deny x4, #4215 uninstall LSP rebuild
x4, #4185 exec-map uninstall x9, #4179 MCP-only install, #4180 blocked
install). Each cell now asserts its fixed behavior. The uninstall-evidence
refusal oracle matches UNINSTALL_EVIDENCE_REMOVE.sentence() literally.

Co-authored-by: Copilot App <[email protected]>
Steward pin: the exact sentence is on stderr and absent from stdout for both
readers; the empty-diff and no-[+] asserts stay.

Co-authored-by: Copilot App <[email protected]>
…gh their owners

heal_retired_project_mcp_destinations takes keep_signal_files (required,
keyword-only) instead of a bare frozen flag: run_mcp_integration passes the
disposition it receives from InstallService.frozen_disposition, and every
other caller passes False. _selected_without reads apm.yml through
core.scope.manifest_file. Clears the install-deployment-frozen-flag-reader
and scope_manifest_path findings in install/mcp/retired_destinations.py.

Co-authored-by: Copilot App <[email protected]>
…_hashes refusal before resolve (a3d9eca0)

Co-authored-by: Copilot App <[email protected]>
…ixes landed; catalog uninstall-refusal oracle (P lead)

Co-authored-by: Copilot App <[email protected]>
… audit row (#4493)

#4493 adds one check row to audit --ci; the table widens by 4 columns and
the check count rises by one. Docs and the E01 docs/key line re-pad.

Co-authored-by: Copilot App <[email protected]>
… extraction, frozen-flag reader, legacy/strict cells (#4522 follow-ups)

Co-authored-by: Copilot App <[email protected]>
The owner docstring spelled the retired Copilot MCP path, which the Copilot
CLI MCP path guard reserves for the Copilot adapter and the retired-file owner.

Co-authored-by: Copilot App <[email protected]>
Both remedies (--target <a>,<b> and an apm.yml targets: list) now cover
the whole detected set, so running either converges; a lifecycle cell
executes both.

Co-authored-by: Copilot App <[email protected]>
#3701 cites test_adopted_identical_files_get_a_receipt (renamed from
..._get_no_receipt by the adopted-file receipt flip, 78c2e12). #3654
cites test_frozen_replay_of_unproven_cli_output_fails_closed_and_names_paths,
the fail-closed half of the test #4398 (3d2c2a4) split. Every other
ledger nodeid resolves.

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

Record mode writes O1 transcripts instead of comparing them, so the
lifecycle-receipts plugin reported every recorded J|*|O1 as uncovered and
no golden was written.

Co-authored-by: Copilot App <[email protected]>
…rites no catalog cache

apm update re-verifies locked marketplace provenance through a read-only
catalog scope, so a refused update leaves the catalog cache unchanged.
A modern lock row with no source_digest whose origin matches the user's
registration has its digest restored from that catalog (the digest
records provenance and is not a trust anchor). A policy hash pin that no
longer matches refuses update as it refuses install.

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

Integration shards 1 and 14 passed every test but exited 1: the session
leak detector found apm_cli.deps.git_semver_resolver.RefResolver and
apm_cli.marketplace.yml_editor.load_marketplace_from_apm_yml left as
mocks. Both modules were first imported inside a test's patch of their
source (marketplace.ref_resolver / yml_schema). Loading them at session
start, like the other lazy consumers, removes the capture.

Co-authored-by: Copilot App <[email protected]>
…s so session mocks stay transient (T1)

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

The targets phase now prints the canonical Targets line through the
command logger's announce_targets; a MagicMock logger swallows it.
The test uses a real InstallLogger, so it still observes
'source: apm config target' on stdout.

Co-authored-by: Copilot App <[email protected]>
- registry range grammar xfail cites #3648.
- the @registry dependency shorthand xfails (test_reference_registry_shorthand
  x4, test_compat_matrix x2, test_apm_yml_registries x1) cite #4543, filed
  for 0.38 as the feature they wait on.
- test_target_resolution_e2e S13 and S16b were non-strict xfails citing
  closed #650 / #888. Both still fail (bare `apm install -g` without a user
  manifest exits 1; install from a subdirectory does not find the project
  root), so they now cite the open follow-ups #4544 / #4545 and are strict.

No assertion changes.

Co-authored-by: Copilot App <[email protected]>
…e oracle uses the real InstallLogger (P lead)

Co-authored-by: Copilot App <[email protected]>
Fold [Unreleased] into the untagged [0.37.0] block on the final release train. Contributor, CI and test-only lines are dropped per the cut-release DROP list; exact duplicates from parallel merges are removed; the #4126/#4276 plugin-type lines are merged; the #4187 placeholder names #4271. pyproject.toml is already 0.37.0. The train merge on main is the RC SHA.

Co-authored-by: Copilot App <[email protected]>
…was rewritten (RA-009)

A failed install that wrote no file closed with "apm.lock.yaml keeps the
previous entries of the N kept file(s)." even when it had rewritten the lock
(a v1 lock upgraded to v4, a half-forged hash normalized to the deployment
ledger). The owner (CommandLogger.kept_overwrites) now reads the lockfile
phase's write record: when nothing was written but the lock was, it says
"apm.lock.yaml is rewritten in the current format; it records the N kept
file(s) as APM last deployed them." An untouched lock keeps the old sentence;
the written-files sentence is unchanged.

Cell test_c3c on a new fixture generated by the real v0.36.1 release binary
(sha256-verified), the red team's upg.sh 0.36.1 world: one Copilot file.
half-forged: rc 1, kept bytes, lock v1 -> 4 with the ledger hash, one Kept
line on stderr, the exact rewritten sentence; the repeat install leaves the
lock unchanged and keeps the old sentence. recorded (no forge): the nothing-
written, lock-unchanged install keeps the old sentence. c3, c3b and the
receiptless cell choose the sentence from the lock bytes. Red on 2394a58:
c3c[half-forged].

apm-spec-waiver: closing-line wording only; lock content and exit codes unchanged

Co-authored-by: Copilot App <[email protected]>
…rade (RA-012)

Red on eb468ca (steward v2 / a3d9eca0 repro, the 0.36.1 copilot-single
world, plain edit, no forge): the upgrade install proved the edit from the
0.36.1 lock hash (kept, "modified since APM deployed it", rc 0) and stamped
the lock 0.37, but wrote no receipt. The next install no longer read the
lock hash as pre-0.37 evidence and fell to "no local deployment receipt
... " with rc 1.

Owner fix: OverwriteGate.keep(path, claim, edit=...) receipts the bytes the
pre-0.37 lock recorded for a kept, proven edit (evidence_only: no write is
counted). Every later install then proves the same edit through the
receipt: the same reason, the same exit code (drift 0, blocked 1).

Cell test_c3d_upgrade_keeps_the_edit_proof_on_every_install: three installs
give the same reason line and rc 0 with the bytes kept; audit --ci and
install --frozen flag the drift (I3); export-patch then move-aside converges
to a clean audit. test_c3c drops its [recorded] case, which pinned the
flip; its half-forged case is unchanged.

Co-authored-by: Copilot App <[email protected]>
…ed as a lock to restore first

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

# Conflicts:
#	src/apm_cli/marketplace/errors.py
…s it (RA-044)

Red on 2a91f92 (red team RA-044): for a kept user edit, the audit --ci
content-integrity remedy said "delete the edited ... files, then run 'apm
install' to restore the locked content". Following it destroyed the edit;
install's own Kept line offers move-aside or export-patch.

Owner fix in the remediation catalog (core/remediation.py) and its one
selector (install/local_edits.edited_file_remediations):
- RESTORE_EDITED: before="move {subject} aside"; the per-kind
  RESTORE_EDITED_OVERWRITE / RESTORE_EDITED_SKILL (destructive, and their
  "plain install exits 1" promises are stale since RA-012) are retired.
- edited_file_remediations returns the Kept line's choice: restore, or
  'apm export-patch' (project scope, exportable edits); user scope restores
  with 'apm install -g', as the Kept line. Rendered with either(): audit
  --ci content-integrity, plain audit drift, and the --frozen tip.
- RESTORE_BUNDLE_EDITED (bundle-deployed files can hold user edits) now
  moves aside too. STAGED_BUNDLE_DRIFT keeps "delete the edited staged
  copy under apm_modules": that copy is cache, not user-owned (steward).

Cells: test_c3d (0.36.1 upgrade world) asserts the exact new
content-integrity remedy and no "delete", then executes it (export-patch,
move aside, install) to a clean audit --ci; test_local_edit_advice (every
kind) executes the printed remedy and asserts the moved copy holds the
edit and audit --ci passes. Oracles, J03/04 golden and drift-detection docs
re-pointed. CHANGELOG: one line in [0.37.0] Fixed.

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

3 participants