Repository navigation
revert: #4866 (main red c22ccbe8: test_a_retained_hook_claim_does_not_keep_its_mcp_server) - #4950
Merged
Daniel Meppiel (danielmeppiel) merged 1 commit intoNov 23, 2026
Conversation
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 23, 2026 08:36
5 of 14 tasks
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the revert intended to address Linux and Windows CI failures.
No open issues 🎉
What changed in this PR
Reverts #4866 to address Linux and Windows CI failures caused by a test expecting .mcp.json to remain after #4862's empty-config cleanup. The hook-claim fix is intended to return in a separate PR with an assertion that accepts a missing config and coverage for this interaction.
Changes:
- Restores uninstall behavior from before #4866, removing late-failure lock-claim recovery.
- Removes supporting local-path and replacement-parent helpers and their architecture checks.
- Removes the reverted fix's tests, bug-ledger record, and changelog fragment.
| File | Description |
|---|---|
tests/unit/test_uninstall_hook_sync_failure_claims.py |
Deletes the hook-claim regression suite, including the failing MCP assertion. |
tests/unit/deps/test_replacement_binding.py |
Removes the orphan-root anchoring test. |
tests/fixtures/lifecycle_bug_ledger/bugs/4851.json |
Removes the record marking #4851 fixed. |
src/apm_cli/models/dependency/replacement.py |
Removes replacement-request root anchoring. |
src/apm_cli/deps/path_anchoring.py |
Removes retained local-claim path rebasing. |
src/apm_cli/commands/uninstall/lockfile_state.py |
Removes failed-claim restoration and graph repair. |
src/apm_cli/commands/uninstall/cli.py |
Reverts removed-row recovery and path-safety warning handling. |
scripts/architecture_linter/checks/contracts_dependency_replacements.py |
Removes checks specific to reverted claim recovery. |
changelog.d/4866.fixed.md |
Deletes the reverted fix's release note. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
deleted the
revert-4866-danielmeppiel-4851-sync-failure-claims
branch
November 23, 2026 08:43
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 23, 2026
Picks up the #4950 revert of #4866, whose test failed on this PR's merge commit. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Gregory (gdelpu)
pushed a commit
to gdelpu/apm
that referenced
this pull request
Nov 23, 2026
… file sync cannot remove Reverts 970f2a6 (the microsoft#4950 revert), restoring microsoft#4866 (microsoft#4851). Co-authored-by: copilot-swe-agent[bot] <[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.
Reverts #4866 (merge c22ccbe). Main is red on Linux x86_64, Linux arm64 and Windows (CI/CD run 45138789477): tests/unit/test_uninstall_hook_sync_failure_claims.py::test_a_retained_hook_claim_does_not_keep_its_mcp_server raises FileNotFoundError reading app/.mcp.json. #4862 (empty-config-residue), which landed just before #4866, removes a .mcp.json left with no servers, and #4866's new test still reads the file.
Regent ruling: revert now to restore green main. #4866 re-lands as a normal PR with the forward fix (a missing .mcp.json means no servers) and a cell covering the clash.
Refs #4851, #4896