Repository navigation
chore: re-cut v0.37.0 - #4148
Merged
Daniel Meppiel (danielmeppiel) merged 1340 commits intoNov 21, 2026
Merged
Conversation
This was referenced Nov 20, 2026
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-recut-v0-37-0
branch
2 times, most recently
from
November 20, 2026 20:06
568bfa4 to
0507f9d
Compare
…ceipts for hook scripts, update.py mutation pin (04daadaf) Co-authored-by: Copilot App <[email protected]>
…d-lockfile refusal on stderr only Co-authored-by: Copilot App <[email protected]>
… JSON is receipted Steward ruling (journeys run 44827495768): a repeat install printed "|-- N prompts/agents/commands/instruction(s) adopted -> <dir>" for files already holding the render. Receipts did exist (the first install records them); the defect was the summary: install/services.py emitted a per-kind line for pure adoption and a "(N adopted)" suffix in default output. Adoption changes nothing, so it is now --verbose only (#4382/#4360, I2); the per-kind hints still run. Cell (b) also exposed a gap: an unchanged managed hook JSON (write_text_if_changed returned False) recorded no receipt on a receipt-less clone. It now records one, like the other managed adoptions. Cells: test_a_repeat_install_is_a_quiet_no_op (a: no "adopted", receipt store and lock byte-unchanged) and test_a_receiptless_clone_install_receipts_every_file_quietly (b: exit 0, no "adopted", a receipt per file primitive equal to its bytes, audit --ci clean). Re-pointed to the ruling (default silent; --verbose keeps the adoption lines): test_services_rendering (+ default-silent case), test_install_services_orchestration / _phase3w5, test_install_summary_destinations_lifecycle, and goldens J01/06, J02/02, J03/02 (the 4 adopted lines removed; J01/J02 FORBID 'adopted' stands). Co-authored-by: Copilot App <[email protected]>
…layout (#4526) The writer keeps indentation, the final newline, line endings and non-ASCII text; other layout, such as an inline array, is normalized by the JSON round trip. Docs, CHANGELOG, the ledger row and the owner docstring now say so, and a real-binary cell pins an inline array's normalized bytes. G7 joins the windows_compat family so the Windows Compatibility Gate runs it. Co-authored-by: Copilot App <[email protected]>
…ache Every job checks out the dispatched ref, so no job restores or saves a uv or npm cache that a default-branch run would later restore. A CI topology contract pins it. Co-authored-by: Copilot App <[email protected]>
…aadaf) Co-authored-by: Copilot App <[email protected]>
'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]>
…son-preserve-format
…ixes landed; catalog uninstall-refusal oracle (P lead) Co-authored-by: Copilot App <[email protected]>
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]>
…p-ownership row (T1) 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]>
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]>
…ints once (P lead) Co-authored-by: Copilot App <[email protected]>
… width RA-032's narrow-terminal fallback compared console.width unconditionally, so a console reporting no integer width (test doubles, some redirected consoles) raised TypeError. List only when a known width cannot fit the table. apm-spec-waiver: output layout robustness only; no normative spec requirement changes Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…rminal gate needs an integer width (L2) Co-authored-by: Copilot App <[email protected]>
…audit, mcp_install_flow double, anchors (T1) Co-authored-by: Copilot App <[email protected]>
…#4517) The lock's manifest_targets ("Targets apm.yml declared", #4517) was written from declared_target_profiles, the reconcile universe, so 'target: claude' locked [claude, copilot-app, copilot-cowork, grok-cloud, openclaw]. Per the steward's ruling it records the declaration only: a new manifest_reconcile.declared_target_names reads the same declaration (single and plural forms, normalized, scope-filtered; 'all' and auto-detect record []), and declared_target_profiles builds its universe on the same _declared_manifest_profiles. The dropped-target computation is unchanged. Cells: - tests/unit/test_lockfile_manifest_targets.py: target: claude, targets: [claude] and [copilot, claude] lock exactly the declared names (red on the parent), and a multi-target drop still names only the dropped target. - test_target_manifest_upgrade_lifecycle (B, 56852ff4's oracle on the parent commit): 14 passed here; 10 failed on the parent. - test_local_bundle_manifest_targets_lifecycle (explicit-bundle frozen-clean; drop after an explicit --target refused) and test_frozen_dropped_target_lifecycle stay green. Co-authored-by: Copilot App <[email protected]>
…lection Dependencies refused before fetch are filtered to the install's selection (the same subtree filter the resolved dependencies get), so a denied manifest dependency the command did not select neither appears in a dry-run preview nor blocks the install. A selected denied package, or one it brings in, is still refused. apm-spec-waiver: selection scoping of an existing refusal; verdict unchanged for selected deps Co-authored-by: Copilot App <[email protected]>
…eeth for #4458 - test_executable_approval_cannot_leave_the_trust_owners[fail-open-trust-bin-default]: moved fragment. 7aad7f8 moved resolve_bin_skip's required `non_interactive: bool,` from install/exec_gate.py to install/plan_admission.py (unique there); the case now mutates the new owner and install-deployment-executable-item-admission catches it ("resolve_bin_skip: approval inputs must be required keyword-only arguments without a default: non_interactive"). - test_owner_rule_catches_its_guard_mutation[User-scope update discovers policy from the deploy root]: not a moved fragment and not a product regression, but a guard gap. #4458 (ad98f04) added update's no-change policy pass, enforce_declared_policy(manifest_root(...)), a wrapper of run_policy_preflight the guard did not know as a policy reader, so handing it the deploy root went unseen. registry_scope_manifest now lists enforce_declared_policy in _POLICY_READERS; the product already passes the scope manifest root (clean tree: no violation), and the mutation is caught. No fragment change. Co-authored-by: Copilot App <[email protected]>
…ir fixture lifecycle_world depends on _world_dir (#4094), which this module never imported, so all 8 cells errored at setup ('fixture _world_dir not found') on the freeze head. Import it as every other lifecycle-world module does. Co-authored-by: Copilot App <[email protected]>
Steward ruling for cell (4) of the #4517 manifest_targets fix: lockfile v4 is the intended #4000/#4026 format change, so the previous release must refuse it. An opt-in cell (APM_E2E_TESTS + APM_RUN_INTEGRATION_TESTS) downloads the SHA-pinned v0.36.1 artifact, locks a 'target: claude' project with this build (v4, manifest_targets [claude]), then runs 0.36.1 install, install --frozen and audit --ci: each exits non-zero naming "Unsupported lockfile version '4'" and the project tree is byte-identical. Co-authored-by: Copilot App <[email protected]>
…st targets kept on upgrade, with the 48582f8 oracle (61809ac8, 56852ff4) Co-authored-by: Copilot App <[email protected]>
…nials (S lead) Co-authored-by: Copilot App <[email protected]>
…etirement fixture import (61809ac8) Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…state (J11) Fails-before cell for the J11 'No files were unpacked' regression: an installed lock whose dependency files live in the deployments ledger must still pack them while the author's local receipts are stripped. Red on 0016889 (KeyError 'deployed_files'), green with 8777d1d. Co-authored-by: Copilot App <[email protected]>
…s shipped dependency files: fails-before cell (L2) Co-authored-by: Copilot App <[email protected]>
… 0.36.1 refusal cell (61809ac8) Co-authored-by: Copilot App <[email protected]>
…force_declared_policy guard gap (04daadaf) Co-authored-by: Copilot App <[email protected]>
The cell patched CurrentMcpConfigView.derive while importing its owner module (AQ004 64 > 63 after ad17c7c). The real derive yields the same empty current set, so the patch goes; the cross-runtime oracle is unchanged. Co-authored-by: Copilot App <[email protected]>
…s the real CurrentMcpConfigView.derive (T1) 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]>
…iene (a3d9eca0) 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]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-recut-v0-37-0
branch
from
November 21, 2026 03:18
0507f9d to
2394a58
Compare
Daniel Meppiel (danielmeppiel)
merged commit Nov 21, 2026
2394a58
into
main
113 of 114 checks passed
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-recut-v0-37-0
branch
November 21, 2026 05:24
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
DRAFT until the 0.37 hardening train has landed. Re-cut release 0.37.0: it folds
[Unreleased]into the untagged[0.37.0] - 2026-11-20block. It is kept rebased on main as the train lands, re-sanitizing each new user-facing line into one line in one section, and it lands LAST. Its merge SHA is the RC SHA. No tag in this PR.pyproject.tomlanduv.lockare already at 0.37.0 (cut chore: release v0.37.0 #3998), so there is no version bump.[0.37.0](Security, Fixed or upgrade notes) at each rebase.Release notes: Known issues (paste into the GitHub Release)
git pull:audit,installandpruneall miss them #3188.Issue and approved scope
Issue: Refs #3983 (0.37 release program; already closed)
Human scope-approval comment: release mechanics delegated by the maintainer (v0.37.0 lands today; release cut via the cut-release skill).
Does this PR complete the issue, or what remains? It completes the 0.37.0 cut. Remaining after merge: green full release validation on the merge SHA, then the
v0.37.0tag.Type of change
Testing
CHANGELOG-only change. Per the current capacity policy, there is no local lint or test run; CI Lint is the gate. Release evidence is the
manual-build-releasefull validation on the exact merge SHA.Changelog
## [Unreleased]inCHANGELOG.md:user-visible effect first, 25 words or fewer, ending with
(#PR);breaking changes only under upgrade notes; no Highlights; see
.github/instructions/changelog.instructions.md.Spec conformance (OpenAPM v0.1)
docs/src/content/docs/specs/openapm-v0.1.mdupdated(new/changed
<a id="req-XXX"></a>anchor + prose + Appendix Crow).
docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.ymlupdated.
@pytest.mark.req("req-XXX")test undertests/spec_conformance/added or extended.CONFORMANCE.{md,json}regenerated viauv run --extra dev python -m tests.spec_conformance.gen_statementand committed.
Post-merge (TAG-READY gate)
manual-build-releasefull validation is green on the merge SHA.