Repository navigation
test(lifecycle): T-2 lanes c-f, a plugin's bin/ and a package's executables through every command from the registry and local sources - #5245
Merged
Conversation
…om the package registry The M-SOURCE bin spine now also publishes p-native-claude-bin to the world's package registry and declares it by registry id. The archive deploys whole to .agents/plugins at project scope under --trust-bin, and the same command chain proves the root stays byte-identical or goes with its declarations. Flips 8 T3 pkg-registry x bin obligations and pair|SRC=pkg-registry|PRIM=bin. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…e native-plugin source A local directory whose package can deploy bin/ is a Claude plugin directory: bin/ deploys only for a MARKETPLACE_PLUGIN package (exec_gate.plugin_bin_deployable, admission.plan_native_claude_plugin), and an eligible apm.yml selects an APM package (format_detection.NormalizationPlanner.plan). The 9 OP x local-path x bin cells map to their native-plugin twins, which the M-SOURCE bin spine witnesses. The mapping holds only while the U-BIN pin holds; a tripwire test pins the set and its lapse. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Closed
6 of 10 tasks
…ugh every command A new M-SOURCE kit spine declares p-kit by registry id with the executables gate off and drives it through install, lock, compile, audit --ci, update, uninstall, a reinstall and an orphan prune, observing every executable surface: keeping commands leave them byte-identical (converged ones earn I2), uninstall and prune remove them. It credits SK|<op>|pkg-registry|<prim> for hook, lsp and canvas, flipping 15 T3 obligations from baseline to required. The orphan prune keeps the LSP server registration (#5250): that cell is a strict known cell and the obligation is known-failing. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
6 of 10 tasks
…lock, compile, audit and approve A new M-SOURCE bundle spine installs the world's p-pack bundle with the executables gate off, keeps every executable surface byte-identical through lock, compile and audit --ci, then turns the gate on: the reinstall parks the executables under the bundle's exact-content key, apm approve decides them without writing a surface, and the next install deploys them again. Credits SB2|<op>|bundle|<prim>, flipping the last 9 non-bin T3 local-bundle obligations from baseline to required. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
6 of 10 tasks
…ell to required #5250 closed at 06:26 with its fix on main, so the strict known cell is dropped and the cell is required. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Daniel Meppiel (danielmeppiel)
marked this pull request as ready for review
November 24, 2026 08:27
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 24, 2026 08:27
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved gaps in U-BIN premise coverage, LSP lock-state removal assertions, and HOME write protection can allow regressions to pass undetected.
3 open issues
What changed in this PR
This test-only PR extends the M-SOURCE lifecycle coverage for #4096, checking executable deployment, preservation, approval, and removal across registry, marketplace, and local-bundle sources.
Changes:
- Extends plugin
bin/command sequences to three marketplace forms and the package registry. - Adds registry-package and local-bundle checks for hook, LSP, and canvas state.
- Adds the U-BIN-SRC mapping and regenerates coverage obligations, including required coverage for the fixed orphan-prune LSP behavior.
| File | Description |
|---|---|
tests/quality/lifecycle_obligations.json |
Records new required coverage and local-path bin mappings. |
tests/lifecycle/machines/test_m_source_bin.py |
Adds registry-kit and bundle lifecycle test entry points. |
tests/lifecycle/machines/_source_kit.py |
Checks registry executable preservation and removal. |
tests/lifecycle/machines/_source_bundle.py |
Checks bundle preservation and approval-driven deployment. |
tests/lifecycle/machines/_source_bin.py |
Extends bin coverage to marketplaces and the registry. |
tests/lifecycle/generator/witnesses.py |
Connects new lifecycle evidence to coverage obligations. |
tests/lifecycle/generator/test_generator_rules.py |
Tests source mappings and evidence attribution. |
tests/lifecycle/generator/rules.py |
Defines the guarded U-BIN-SRC equivalence mapping. |
Review effort: Balanced
…iew) - the kit and bundle spine tests assert the durable state their last step leaves - registration keeps the bench's forbidden HOME root and allows only the catalog registry and cache there - uninstall and prune must also drop the kit's LSP records from the lockfile Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
Lane T-2 of the lifecycle baseline (T3 family, #4096), folded into one test-only PR. It carries the T-2c, T-2d, T-2e and T-2f lanes, which were previously #5245, #5247, #5251 and #5255. It also contains T-2b (#5241) until that lands. No product code changes.
tests/lifecycle/machines/_source_bin.py) publishesp-native-claude-binto the world package registry and runs install, lock, compile,audit --ci, update, approve, uninstall, reinstall and orphan prune with the same oracles as T-2a.bin/is a Claude plugin directory, which is the corpus'snative-pluginsource.MARKETPLACE_PLUGIN(install/exec_gate.py::plugin_bin_deployable,claude_plugins/admission.py::plan_native_claude_plugin).apm.ymlis always anAPM_PACKAGE(models/format_detection.py::NormalizationPlanner.plan)._source_kit.py, testtest_source_kit_spine_credits_registry_executable_cells, runsp-kitby registry id through install, lock, compile,audit --ci,update --yes, uninstall, reinstall and prune._source_bundle.py, testtest_source_bundle_spine_credits_bundle_executable_cells. Lock, compile andaudit --cimust keep the bundle's executable surfaces byte-identical. With the gate on, the reinstall parks them under the exact-content key,apm approve <key>decides them, and the next install deploys them.Changes made while folding:
SK|prune|pkg-registry|lspis therefore dropped, and the cell is required.Baseline: 106 on main becomes 33 after this lands (73 obligations from
baselinetorequired; #5241's 30 are included).Issue and approved scope
Issue: Refs #4096
Human scope-approval comment: #4096 (comment) (lane T-2 corpus work, assigned by the QL VP).
Does this PR complete the issue, or what remains? Partial. After this, 33 baseline obligations remain in other lanes (the T-1 bin stack #5242/#5244, T-6e, T-7b) and the audit-none cells.
Type of change
Testing
Tested locally
All existing tests pass
Added tests for new functionality (if applicable)
python -m tests.lifecycle.generator --checkon the folded head:[+] generated lifecycle obligations are up to date.Lifecycle scratch run of
tests/lifecycle/machines/test_m_source_bin.pyplustests/lifecycle/generator: 45353792622 green on the restacked chain; 45356165999 is running on 1db3c15.Each lane's original PR carried its own red-first evidence (test(lifecycle): T-2 lanes c-f, a plugin's bin/ and a package's executables through every command from the registry and local sources #5245, test(lifecycle): T-2d, U-BIN-SRC maps a local path's bin/ cells to the native-plugin source #5247, test(lifecycle): T-2e, a registry package's hook, LSP and canvas through every command #5251, test(lifecycle): T-2f, a local bundle's hook, LSP and canvas through lock, compile, audit and approve #5255).
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.Spec conformance (OpenAPM v0.1)
N/A: no
req-XXXbehaviour changes.