Repository navigation
fix(install): post-install scripts fire after MCP/LSP reconciliation - #4486
Merged
Merged
Conversation
apm install and apm update reconcile MCP/LSP services before firing post-install scripts, so a script sees the final lockfile and the command writes it once. The install-commit-order rule pins the order. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…4329 An install that registers a native Claude plugin and an MCP server is expected to write apm.lock.yaml once; the strict known cell tracks #4329. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 19:38
Co-authored-by: Copilot App <[email protected]>
Merged
5 of 14 tasks
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
…LSP reconciliation Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
Co-authored-by: Copilot App <[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.
Description
apm installandapm updatefirepost-installlifecycle scripts after MCP and LSP service reconciliation, so a script sees the finalapm.lock.yamland the command writes the lockfile once. The install-commit-order architecture rule (install_entry_and_commit) pins the order. Code by H-D (danielmeppiel-hd-4319-post-install@475c3a5e), carried as is; this vehicle adds only the ledger row and CHANGELOG line.Stacked on #4255 (base:
danielmeppiel-h2b-install-commit); the integrator folds it after #4255.Also carries two #4329 test commits (not fixed here; #4329's milestone depends on its failure-path cell): a strict known cell for the native Claude registration ordering and an I1 lock = disk pin for a native Claude install with MCP. Refs #4329.
Issue and approved scope
Issue: Fixes #4319
Human scope-approval comment: #4319 (comment)
Does this PR complete the issue, or what remains? Completes the 0.37 scope of #4319. Native Claude plugin registration ordering remains in #4329.
Type of change
Testing
Tested locally
All existing tests pass
Added tests for new functionality (if applicable)
Installed-CLI test:
tests/integration/test_lockfile_commit_point_lifecycle.py::test_post_install_script_sees_the_final_lockfile_written_once(install adds an MCP server with a trustedpost-installscript;count_lockfile_writesasserts one write, and the script's copy equals the final lockfile including the server).tests/integration/test_claude_native_hook_lifecycle.py: strict install: reconcile MCP/LSP before native plugin registration commits the lockfile #4329 cell plus I1 failure-path probe (lock = disk).Not run locally (host load; PM instruction); CI validates.
Changelog
## [Unreleased]inCHANGELOG.md.Spec conformance (OpenAPM v0.1)
N/A.