Repository navigation
fix(codex): parked bundles at user scope stay uncounted until approved; local plugin installs stay offline - #4434
Merged
Conversation
… approve and deny, scope parity Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…s not count it Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 17:25
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical test blockers remain: the Codex stand-in lacks a Windows launcher, the admission fixture omits frozen, and the lifecycle ledger still references obsolete test names.
3 open issues
What changed in this PR
This PR extends the parked native-plugin approval flow from #4275, correcting Codex install counts and rejecting frozen installs until executables are approved.
Changes:
- Excludes parked Codex bundles from installed-package counts and blocks frozen replay.
- Expands lifecycle coverage for approval, deployment, denial, persistence, and uninstall.
- Adds a hermetic Codex CLI stand-in and documents the user-visible behavior.
| File | Description |
|---|---|
tests/utils/codex_stand_in.py |
Adds a local Codex CLI stand-in for lifecycle tests. |
tests/unit/test_codex_native_admission.py |
Checks that parked admission returns the parking flag. |
tests/integration/test_approve_parked_native_plugin_lifecycle.py |
Expands Claude and Codex approval lifecycle coverage. |
src/apm_cli/install/template.py |
Excludes parked native bundles from install counts. |
src/apm_cli/codex_plugins/admission.py |
Marks parked bundles and rejects unapproved frozen replay. |
CHANGELOG.md |
Records the counting and frozen-install fixes. |
Review effort: Balanced
…allContext Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…ffline (#4432) The Codex app-server APM starts runs from a private, trusted launch directory whose project configuration turns plugins off for startup, so startup tasks do not sync the curated marketplace; requests that load a marketplace path still see plugins. The world Codex cell is required, the stand-in records any sync it would make, and the Codex journey asserts none happened. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… deny print Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
…unted until approved; local plugin installs stay offline Co-authored-by: Copilot App <[email protected]> # Conflicts: # tests/fixtures/lifecycle_bug_ledger.json # tests/lifecycle/world/test_world.py
This was referenced Nov 20, 2026
The private launch config is written 0600, every app-server start is pinned to the one offline launcher by a closed-world guard (marketplace-integrations-codex-offline-launch, with a MutationCase), the launcher inherits the caller's environment unchanged, and the journey asserts no launch directory remains after install. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
…4382 rule lists) 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
Pins the Codex native-bundle parking contract at user scope, and keeps a local native Codex plugin install at user scope offline.
[!]notice naming the package and the exactapm approve -g <id>command, and the summary does not count it as installed.apm install -g --frozenandapm audit --cifail and name the same command.apm install -g, registers the bundle with Codex. The lock, the Codex config and the ownership ledger agree.apm deny -gfollowed byapm install -gretires the bundle.apm uninstall -gremoves it, and approving the removed package then exits 1.tests/utils/codex_stand_in.pyis a hermetic Codex CLI stand-in, so the deploy step runs without a real Codex install. The Codex journey asserts that the install stays offline.Issue and approved scope
Issue: Fixes #4432
Fixes #4438 | Refs #4154
Human scope-approval comment: #4432 scope record (last comment on #4432); steward binding conditions for Codex parking at user scope (shared privately with the H lead), completing conditions 1-3 and 5 on top of #4275.
Does this PR complete the issue, or what remains? It completes #4432: the world Codex cell is required and passes offline. #4154 closed with #4275; this PR adds the remaining Codex parking proofs.
Type of change
Testing
tests/integration/test_approve_parked_native_plugin_lifecycle.py::test_claude_plugin_is_approved_by_the_printed_command[user]tests/integration/test_approve_parked_native_plugin_lifecycle.py::test_claude_plugin_is_approved_by_the_printed_command[project]tests/integration/test_approve_parked_native_plugin_lifecycle.py::test_codex_bundle_parks_until_the_printed_command_approves_ittests/integration/test_approve_parked_native_plugin_lifecycle.py::test_parked_codex_bundle_record_survives_and_uninstall_clears_ittests/unit/test_codex_native_admission.pytests/lifecycle/world/test_world.py::test_each_package_installs_through_the_real_cli[p-native-codex-user](required; offline; codex-cli 0.163.0 and 0.170.0)Commands run locally (all passed):
APM_E2E_TESTS=1 APM_BINARY_PATH=.venv/bin/apm uv run --extra dev pytest tests/integration/test_approve_parked_native_plugin_lifecycle.py tests/integration/test_approval_identity_lifecycle.py tests/unit/commands/test_approve_deny.py <codex admission tests> -n 8-> 1213 passedruff check/ruff format --checkoversrc/ tests/ scripts/lint_architecture_boundaries.py scripts/architecture_linter/ scripts/windows_native_symlink_probe_entry.py-> cleanscripts/check_complexity_ratchet.py --base-ref origin/main-> cleanscripts/lint_architecture_boundaries.py --root .-> cleanChangelog
## [Unreleased]inCHANGELOG.md.Spec conformance (OpenAPM v0.1)