Repository navigation
fix(install): frozen skills-only replay accepts its recorded only-apm MCP omission (#5415) - #5416
Merged
Daniel Meppiel (danielmeppiel) merged 4 commits intoNov 25, 2026
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
apm-spec-waiver: restores documented frozen replay without changing OpenAPM normative requirements Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 25, 2026 01:18
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The supplied review evidence identifies no active issues requiring resolution.
No open issues 🎉
What changed in this PR
Fixes #5415 so apm install --only apm --frozen accepts matching recorded MCP omissions for skills-only installs, without enabling MCP or rewriting the lockfile. Previously admitted MCP configurations remain subject to verification.
Changes:
- Carries the MCP selection through both frozen validation gates.
- Accepts matching
only-apmomission evidence while continuing to reject missing, damaged, or stale evidence. - Adds unit and lifecycle regression coverage, records the bug, and updates documentation.
| File | Description |
|---|---|
tests/unit/integration/test_mcp_config_view.py |
Tests matching evidence and invalid evidence or selection cases. |
tests/lifecycle/scenarios/test_frozen_only_apm_omission.py |
Tests successful frozen replay and unchanged state on rejected evidence. |
tests/fixtures/lifecycle_bug_ledger/bugs/5415.json |
Links issue #5415 to its regression test. |
src/apm_cli/integration/mcp_config_view.py |
Keeps admitted MCP configurations checked during exact skills-only validation. |
src/apm_cli/install/service.py |
Passes MCP selection into frozen checks and considers omission-only lockfiles. |
src/apm_cli/install/phases/integrate.py |
Forwards MCP selection to hydrated validation. |
src/apm_cli/commands/install.py |
Includes the selected install mode in the frozen request. |
packages/apm-guide/.apm/skills/apm-usage/commands.md |
Clarifies frozen omission handling in the usage guide. |
docs/src/content/docs/reference/baseline-checks.md |
Documents acceptance of matching evidence and rejection of invalid evidence. |
changelog.d/5416.fixed.md |
Adds a release note for the frozen replay fix. |
Review effort: Balanced
install/service.py was over its 1000-line module budget. The reason formatting for frozen MCP drift moves to install/frozen_mcp_drift.py; InstallService still selects the view, computes the pending set and the config diff, and raises. Behaviour unchanged. The skills-only omission cell now reads the evidence back from the lockfile on disk before the frozen selection, and the new lifecycle scenario carries the module markers its siblings use. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-turbo-telegram
branch
November 25, 2026 06:56
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
a8a72db018f3c1fa7cc2b3f21eea03a140cdea55↑ Existing admitted-baseline and gate omission suites pass.
↓ Full CI and Windows are not yet observed.
↑ Exact fingerprint validation remains in the MCP view owner.
Description
apm install --only apm --frozenon a skills-only package rejected the package's own recordedonly-apmMCP omission ("MCP selection is unknown: omission evidence is missing, damaged or stale"), so the documented frozen skills-only replay failed and CI for skills-only consumers could not verify a locked install. The omission fingerprint was stable. The frozen preflight and hydrated checks dropped the--only apmselection and derived MCP as enabled.Fix: the install's MCP selection now reaches both frozen gates, and the canonical MCP view still verifies any previously admitted MCP baseline instead of masking it. An unchanged skills-only frozen replay exits 0 without enabling MCP or rewriting
apm.lock.yaml. Missing or stale omission evidence still fails, and leaves the project unchanged.Issue and approved scope
Issue: Fixes #5415
Human scope-approval comment: #5415 (comment)
Does this PR complete the issue, or what remains? It completes it.
Type of change
Testing
Tested locally
All existing tests pass (focused modules only; CI runs the rest)
Added tests for new functionality (if applicable)
uv run --extra dev pytest tests/lifecycle/scenarios/test_frozen_only_apm_omission.py -x -q -p no:cacheprovider-> 4 passed. Failing before: frozen replay exited 1 on main 1e4a208. Cases: agent-skills and opencode targets, a positional and a predeclared local dependency, missing omission evidence (fails, state unchanged) and a changed MCP declaration (fails, state unchanged).uv run --extra dev pytest tests/unit/integration/test_mcp_config_view.py -x -q -p no:cacheprovider-> 93 passed.uv run --extra dev pytest tests/unit/integration/test_frozen_mcp_evidence.py -x -q -p no:cacheprovider-> 29 passed.APM_BINARY_PATH="$(uv run --extra dev which apm)" uv run --extra dev pytest tests/integration/test_mcp_omission_lifecycle.py -x -q -p no:cacheprovider-> 6 passed.APM_BINARY_PATH="$(uv run --extra dev which apm)" uv run --extra dev pytest tests/integration/test_mcp_deliberate_omission_audit_lifecycle.py -x -q -p no:cacheprovider-> 6 passed.uv run --extra dev pytest tests/quality/test_lifecycle_bug_ledger.py -x -q -p no:cacheprovider-> 2 passed.Lint mirror: ruff check and format, pylint R0801, auth boundary, complexity, architecture, YAML, file-length, relative-path and taxonomy checks pass.
uv run --extra dev python .apm/skills/cut-release/scripts/changelog_fragments.py check-> failed on pre-existingchangelog.d/5385.fixed.md; the new fragment passesfragment_problemsindependently.Changelog
changelog.d/<pr>.<section>.md, holdingone line: user-visible effect first, 25 words or fewer, ending with
(#PR); breaking changes only under upgrade notes; no Highlights; nonew lines under
## [Unreleased]. Seechangelog.d/README.mdand.github/instructions/changelog.instructions.md.Added
changelog.d/5416.fixed.md.Spec conformance (OpenAPM v0.1)
If this PR changes behaviour that an OpenAPM v0.1
req-XXXcovers,confirm the three-step ritual in the
development guide:
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.