Repository navigation
train(lapse-w1): #4711 #4596 #4693 #4650 - #4725
Closed
Daniel Meppiel (danielmeppiel) wants to merge 110 commits into
Closed
Daniel Meppiel (danielmeppiel) wants to merge 110 commits into
Daniel Meppiel (danielmeppiel) wants to merge 110 commits into
Conversation
…ckfiles A second scope-lock spine drives a stale lockfile (the manifest and the lock disagree on the toggle package), an absent lockfile and the side-door commands (deny, install --mcp, a local bundle, marketplace list) through every lock state the lockfile spine leaves open. Each step runs I1-I9; admitted side doors also assert their own outcome. Lockfile cells now carry the context their step acted on and credit, anchored on LOCK, the pairs it implies. apm marketplace list creating ~/.apm/marketplaces.json is a strict known cell (#4600). Refs #4564 Refs #4097 Co-authored-by: Copilot App <[email protected]>
…owed The GATE matrix gains a user-scope spine (install --frozen at every gate level an approval store reaches, T2 FROZEN x SCOPE=user x GATE) with the user-scope copilot surfaces observed (Bench.surface_globs). Marketplace commands map onto rule U-MKT (Q&L ruling 2026-11-21): one rule cell witnessed at the allowed and revoked levels with every project byte unchanged; the org-policy level keeps its own cells, witnessed under the dependency deny. The allowed level also uninstalls and reinstalls p-lsp. Refs #4564 Refs #4095 Co-authored-by: Copilot App <[email protected]>
Refs #4564 Co-authored-by: Copilot App <[email protected]>
credits() is the one place that says which ids a machine receipt discharges (rule ids themselves, anchored cells only their anchor), and the witness test reads it. U-MKT evidence follows main's line moves. Refs #4564 Co-authored-by: Copilot App <[email protected]>
…record Per review on corpus train 2: outcome checks now run before a drift cell is credited. A resolving command must leave a readable lockfile whose rows match the manifest and that records each deployed declared skill; a local bundle install must record p-lsp's approval key and LSP type in apm_modules/.local-bundle-pending.json while its server stays parked. Refs #4564 Co-authored-by: Copilot App <[email protected]>
Per review on corpus train 2: the allowed and the revoked marketplace probes each hold their checked step; the rule cell's receipts are emitted only once both levels are present, so dropping either probe leaves the rule uncovered (negative control: umkt_ready per dropped level). Refs #4564 Co-authored-by: Copilot App <[email protected]>
…every operation
Discharges the T-6b pair obligations (DEPLOYED in {edited, unowned,
present-provenance-unknown} crossed with OP, modifiers, SRC, PRIM, GATE,
TGT and NET) with real-CLI oracle receipts in
tests/lifecycle/scenarios/test_ownership_siblings.py.
- The user's bytes are declared (Scenario.user_write) and must survive
(I1-X2); a closed gate that keeps them is exempt from I4 only when the
keep is announced and audit --ci detects it (I4-X2).
- Declared refusals earn credit only through EXPECTED_REFUSALS (exit code,
cause, the promise it upholds, its source); a refusal on any other pair,
or a declared pair that exits 0, fails the step
(tests/quality/test_scenario_refusal_credit.py negative controls).
- run(says=...) asserts announced outcomes and records them as evidence.
- Product failures are strict known cells: #4626 (edited hook, canvas and
LSP files overwritten silently), #4628 (a user's LSP entry taken over),
#4268 (refused install --mcp writes first), #4634 (local bundle reinstall
after a lost lockfile leaves MCP lock state the gates reject).
- TGT reads the declared target set before the step: narrowed drops at
least one declared target (a switch counts); widened adds and drops none.
T-6b obligations: 141 baseline -> 132 required, 6 known-failing, 3 baseline.
Refs #4564 #4565
Co-authored-by: Copilot App <[email protected]>
Two deterministic spines credit OP x PRIM x GATE for the side doors: apm install <local bundle> (a run-time packed p-bmix bundle with a skill, an instruction, a hook and an MCP server, plus the world's p-lsp bundle) and apm pack --dry-run over git dependencies, each at five gate levels (unapproved, denied before deploy, allowed, revoked after deploy, gate off). Every step runs I1-I9; bundle installs must leave exactly the per-bundle model set and record parked executables as pending; pack must ship exactly the dependency executables the gate deploys and never a managed MCP server. Refs #4564 Refs #4095 Co-authored-by: Copilot App <[email protected]>
Target history (ruling #3): install and every command after a declared target change, with real-CLI receipts crediting the scenario-lane pairs their assignments imply (CREDITS). U11 maps changed-TGT x FROZEN onto refusal|TGT=changed|FROZEN=on, witnessed by test_frozen_refuses_a_target_change. Strict known cells: #4636 (uninstall after a target change) and #4638 (frozen widened refusal leaves hook config). Refs #4564, #4565, #4100 Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…nerated) Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…check (#4570) Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
apm-spec-waiver: audit remediation text only; no OpenAPM-observable manifest, lockfile, resolver or policy semantics change (#4570) Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…4570) Review follow-up: select each entry through the uninstall selection owner as a shell-safe word, judge directness from the current apm.yml, prove through the orphan owner that the uninstall drops every denied dependency and that no survivor still reaches one, and never remove a required package; otherwise the advice is admin-only. Co-authored-by: Copilot App <[email protected]>
Rebased onto main 2de15af: the #4570 bug-ledger row moves to tests/fixtures/lifecycle_bug_ledger/bugs/4570.json (per-row ledger, #4583), and the two [Unreleased] bullets become one fragment (#4599). Co-authored-by: Copilot App <[email protected]>
…evidence (#4295) When no receipt exists and no locked render can be produced (source offline, private or deleted; checkout and cache gone), `apm uninstall --trust-lockfile` deletes a refused file only when its bytes equal the single hash apm.lock.yaml records for it under its owner, prints each deleted path, and keeps and names every other file without failing. It never overrides a differing receipt or render, a render lacking the path, conflicting or missing recorded hashes, unreadable receipt state, unreadable or symlinked files. One decision in DeploymentEvidence (lockfile_consentable) drives the refusal preview and the deletion, rechecked at removal. Without the flag the exit code and filesystem effects are unchanged; the refusal now marks each file as deletable or kept under the flag and offers the flag only when at least one file is deletable. Co-authored-by: copilot-swe-agent[bot] <[email protected]> Supersedes: #4603 Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
# Conflicts: # docs/src/content/docs/specs/openapm-v0.1.md
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 22, 2026 09:27
Co-authored-by: Copilot App <[email protected]>
The local-bundle hook row at present-provenance-unknown credits its pair and asserts the converged pair state; the obligation is required. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical bugs can misattribute root-authored files and skip native-to-Cursor retargeting, while changelog violations and a test guard that accepts failed collection add further blockers.
4 open issues
What changed in this PR
This integration train combines seven related PRs covering APM’s native plugin deployment, install ownership, registry replay, audit guidance, uninstall consent, and lifecycle coverage.
Changes:
- Deploys project-scope native plugins through shared Claude Code and GitHub Copilot ownership and settings handling.
- Fixes user-root deployment tracking, registry-backed marketplace replay, bundle rendering, and audit remedies; adds explicit lockfile-based uninstall consent.
- Updates regression tests, lifecycle evidence, architecture guards, documentation, and release notes.
| File | Description |
|---|---|
| tests/unit/test_plugin_exporter_logic.py | Tests duplicate-rendering selection. |
| tests/unit/test_deployment_materialization_receipts.py | Tests receipt-store requirements for consent. |
| tests/unit/integration/test_cleanup_helper.py | Tests matching-hash deletion consent. |
| tests/unit/install/test_services_before_native_registration.py | Updates shared registration mock. |
| tests/unit/install/test_registry_wiring.py | Tests registry version guidance. |
| tests/unit/install/test_pipeline_ownership_snapshot.py | Updates native reconciliation interception. |
| tests/unit/install/test_native_gate_retirement.py | Tests policy-driven native retirement. |
| tests/unit/install/test_claude_native_registration.py | Adapts shared registration tests. |
| tests/unit/install/test_claude_native_hooks.py | Tests native skill-selection boundaries. |
| tests/unit/install/test_claude_native_admission.py | Tests project-scope native admission. |
| tests/unit/install/test_architecture_invariants.py | Adjusts bundle-service size budget. |
| tests/unit/install/test_agent_plugin_deployment_boundary.py | Checks committed native destinations. |
| tests/unit/deps/test_lockfile_field_properties.py | Exercises native declaration round-tripping. |
| tests/unit/deps/test_lockfile_consumer_contract.py | Adds native declaration field coverage. |
| tests/unit/core/test_remediation_w4_phases_targets_catalog.py | Records native remediation proof coverage. |
| tests/unit/core/test_remediation_w4_frozen_policy_catalog.py | Links allowlist advice to journey evidence. |
| tests/unit/core/test_remediation_w3_plugins_runtime_catalog.py | Renames native settings remedy coverage. |
| tests/unit/core/test_remediation_w2_integration_catalog.py | Records uninstall consent proof. |
| tests/unit/copilot_plugins/_builders.py | Adds native layout test helpers. |
| tests/spec_conformance/test_marketplace_registry_replay_reqs.py | Tests registry replay evidence requirements. |
| tests/quality/test_promise_obligations.py | Checks scenario credits against collected tests. |
| tests/quality/test_generated_obligations.py | Adds marketplace-gate negative controls. |
| tests/quality/generated_obligations.json | Promotes the allowlist remedy witness. |
| tests/lifecycle/world/test_world.py | Updates native surfaces and trust steps. |
| tests/lifecycle/world/services.py | Adds namespaced MCP denial policy. |
| tests/lifecycle/security/test_gate_removal.py | Checks whole-plugin removal surfaces. |
| tests/lifecycle/security/gate_slices/native.py | Models native roots as removal units. |
| tests/lifecycle/oracles.py | Recognizes project-native ownership digests. |
| tests/lifecycle/model/state.py | Models the added MCP denial policy. |
| tests/lifecycle/machines/_kit.py | Adds scope-aware observations. |
| tests/lifecycle/machines/_gate_kit.py | Includes native roots in expected writes. |
| tests/lifecycle/journeys/goldens/J05/06.txt | Updates native frozen-replay output. |
| tests/lifecycle/journeys/goldens/E01/04.txt | Adds expected allowlist remedy. |
| tests/lifecycle/journeys/enterprise/E01-org-policy-rollout.yaml | Executes the remedy and rechecks audit. |
| tests/lifecycle/journeys/consumer/J05-marketplace-plugin.yaml | Expects committed native deployment. |
| tests/lifecycle/journeys/consumer/J02-team-onboarding.yaml | Removes a fixed scan-count expectation. |
| tests/lifecycle/generator/test_generator_rules.py | Supports multiple cells per witness ID. |
| tests/lifecycle/generator/factors.py | Refreshes a source-line citation. |
| tests/lifecycle/generator/emit.py | Assigns scenario refusal witnesses. |
| tests/lifecycle/generator/covering.py | Avoids duplicating scenario-covered refusals. |
| tests/integration/test_unmanaged_skill_preflight_matrix.py | Checks native deployment preserves loose skills. |
| tests/integration/test_shared_skill_preservation_lifecycle.py | Preserves split-route fixture coverage. |
| tests/integration/test_remediation_advice_lifecycle.py | Uses committed native settings remedies. |
| tests/integration/test_native_plugin_audit_lifecycle.py | Verifies native roots, catalogs, and settings. |
| tests/integration/test_mcp_portable_approval_lifecycle.py | Reads committed Copilot enablement. |
| tests/integration/test_marketplace_pack_consumer_chain_lifecycle.py | Keeps the fixture on the split route. |
| tests/integration/test_marketplace_hosted_catalog_auth_lifecycle.py | Preserves loose-skill fixture behavior. |
| tests/integration/test_lock_derived_expected_state_lifecycle.py | Retains split MCP/LSP replay coverage. |
| tests/integration/test_legacy_plugin_skill_declaration_lifecycle.py | Retains loose skill-filtering coverage. |
| tests/integration/test_frozen_replay_output_lifecycle.py | Keeps command replay on the split route. |
| tests/integration/test_export_patch_installed_packages_lifecycle.py | Moves split-plugin scenarios to Cursor. |
| tests/integration/test_claude_plugin_hook_approval_lifecycle.py | Tests per-file hook approval through Codex. |
| tests/integration/test_claude_plugin_flat_mcp_lifecycle.py | Preserves split MCP parsing coverage. |
| tests/integration/test_claude_native_hook_lifecycle.py | Updates shared native diagnostics. |
| tests/integration/test_carried_license_lifecycle.py | Preserves split-plugin license coverage. |
| tests/integration/test_bin_canvas_deny_diagnostics_lifecycle.py | Updates native deployment output assertion. |
| tests/integration/test_architecture_owner_rule_mutations.py | Updates native ownership mutations. |
| tests/integration/test_architecture_outcome_guards.py | Makes split-route fixtures explicit. |
| tests/integration/test_approve_parked_native_plugin_lifecycle.py | Checks whole-plugin activation at both scopes. |
| tests/fixtures/lifecycle_bug_ledger/bugs/4570.json | Records allowlist remedy regression evidence. |
| tests/fixtures/lifecycle_bug_ledger/bugs/3896.json | Records intact plugin installation evidence. |
| tests/fixtures/lifecycle_bug_ledger/bugs/3772.json | Records user-root ownership regression evidence. |
| tests/fixtures/lifecycle_bug_ledger/bugs/3686.json | Records bundle rendering regression evidence. |
| tests/conftest.py | Extends integrity-module test isolation. |
| src/apm_cli/policy/models.py | Carries rendered advice into SARIF results. |
| src/apm_cli/native_plugins/uninstall.py | Centralizes native removal reconciliation. |
| src/apm_cli/native_plugins/record.py | Extends native lock serialization and names. |
| src/apm_cli/native_plugins/layout.py | Protects committed plugin line endings. |
| src/apm_cli/native_plugins/carry.py | Preserves unevaluated native lock rows. |
| src/apm_cli/integration/mcp_config_view.py | Exposes the direct-dependency tracer. |
| src/apm_cli/integration/instruction_integrator.py | Exposes shared rule conversion. |
| src/apm_cli/install/template.py | Passes skill pairings and handles carried plugins. |
| src/apm_cli/install/registry_wiring.py | Improves missing-version registry guidance. |
| src/apm_cli/install/pipeline.py | Adopts root receipts and shares native activation. |
| src/apm_cli/install/phases/post_deps_local.py | Persists user-root deployment claims. |
| src/apm_cli/install/phases/lockfile.py | Records shared native ownership and carried claims. |
| src/apm_cli/install/package_resolution.py | Preserves registry-form manifest entries. |
| src/apm_cli/install/local_bundle_renderings.py | Converts packed rules and reports skipped renderings. |
| src/apm_cli/install/exec_gate.py | Includes native plugins in gate retirement. |
| src/apm_cli/install/drift.py | Updates user-root replay and native verification. |
| src/apm_cli/install/deployment_plan.py | Applies native harness and skill-selection rules. |
| src/apm_cli/install/context.py | Tracks rejected and carried native plugins. |
| src/apm_cli/deps/registry/resolver.py | Names the missing-registry configuration remedy. |
| src/apm_cli/deps/lockfile.py | Serializes native declaration metadata. |
| src/apm_cli/core/deployment_state.py | Houses deployment-row and bundle-hash validation. |
| src/apm_cli/copilot_plugins/constants.py | Identifies legacy registration vocabulary. |
| src/apm_cli/copilot_plugins/__init__.py | Exposes migration-oriented Copilot APIs. |
| src/apm_cli/commands/uninstall/engine.py | Preserves native routing and retires disallowed survivors. |
| src/apm_cli/commands/prune.py | Reconciles native state through the shared owner. |
| src/apm_cli/commands/install.py | Routes registry validation and native errors. |
| src/apm_cli/commands/deps/cli.py | Reports native plugins from the lockfile. |
| src/apm_cli/commands/audit.py | Prints catalog-provided next steps. |
| src/apm_cli/commands/approve.py | Recognizes Claude native plugins at both scopes. |
| scripts/architecture_linter/checks/install_entry_and_commit.py | Updates native activation ordering guards. |
| packages/apm-guide/.apm/skills/apm-usage/workflow.md | Documents committed native plugin loading. |
| packages/apm-guide/.apm/skills/apm-usage/governance.md | Updates native executable deployment guidance. |
| packages/apm-guide/.apm/skills/apm-usage/dependencies.md | Documents registry-backed marketplace replay. |
| docs/src/content/docs/troubleshooting/index.md | Updates native plugin troubleshooting. |
| docs/src/content/docs/reference/policy-schema.md | Updates native executable scope guidance. |
| docs/src/content/docs/reference/package-types.md | Describes native and split package routes. |
| docs/src/content/docs/reference/manifest-schema.md | Documents registry marketplace serialization. |
| docs/src/content/docs/reference/cli/pack.md | Explains rendering selection and native installation. |
| docs/src/content/docs/reference/cli/audit.md | Describes native fingerprint verification. |
| docs/src/content/docs/reference/cli/approve.md | Explains whole-plugin approval pins. |
| docs/src/content/docs/producer/write-primitives.md | Clarifies native hook handling. |
| docs/src/content/docs/producer/publish-to-a-marketplace.mdx | Distinguishes producer and installed catalogs. |
| docs/src/content/docs/producer/build-a-plugin.mdx | Explains package classification and native loading. |
| docs/src/content/docs/enterprise/enforce-in-ci.mdx | Shows actionable allowlist audit guidance. |
| docs/src/content/docs/consumer/installing-from-marketplaces.md | Documents native deployment and registry replay. |
| docs/src/content/docs/consumer/install-packages.md | Lists native files to commit. |
| docs/src/content/docs/consumer/install-mcp-servers.md | Explains servers inside native plugins. |
| docs/src/content/docs/consumer/approve-executables.mdx | Updates whole-plugin approval guidance. |
| docs/src/content/docs/concepts/how-apm-works.md | Adds native plugin commit guidance. |
| docs/public/specs/manifests/openapm-v0.1.requirements.yml | Describes the proposed uninstall consent exception. |
| CHANGELOG.md | Adds native, registry, and user-root release notes. |
| changelog.d/4693.changed.md | Records bundle rendering changes. |
| changelog.d/4650.added.md | Records uninstall consent support. |
| changelog.d/4596.fixed.md | Records actionable allowlist advice. |
| .github/workflows/merge-train.yml | Runs the scenario refusal-credit contract. |
| .github/workflows/main-architecture-ratchets.yml | Adds the refusal-credit contract on main. |
| .github/workflows/ci.yml | Adds the refusal-credit contract to CI. |
| .apm/architecture/owners/marketplace-plugins.json | Registers shared native and legacy migration ownership. |
| .apm/architecture/owners/install-deployment.json | Extends bundle rendering ownership. |
| .apm/architecture/owners/contracts-tooling.json | Registers allowlist remedy proof ownership. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 22, 2026
…idence for U11, U-MKT and every rule The train's line-number anchors were re-derived by AST: 88 anchors, four of which had already drifted (audit.py moved 10 lines; a docs page moved), the #4696 failure mode itself. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…cy-allowlist c Co-authored-by: Copilot App <[email protected]>
…ive (#3686) Co-authored-by: Copilot App <[email protected]> # Conflicts: # docs/src/content/docs/reference/cli/pack.md # src/apm_cli/install/local_bundle_paths.py # tests/lifecycle/generator/rules.py # tests/quality/lifecycle_obligations.json
… offline or de Co-authored-by: Copilot App <[email protected]>
… and CONFORMANCE Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
train/20261122-lapse-w1
branch
from
November 22, 2026 09:55
36fc07a to
8b259aa
Compare
7 of 14 tasks
…t succeeded pytest prints the node ids it could collect and still exits nonzero when another module fails to import; the guard now requires exit 0 and fails with the collection output tail. A regression test stubs a partial collection. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical uninstall issues can remove a package before failing or release ownership while leaving eligible files undeleted, alongside prompt-deduplication and unusable remediation-advice defects.
4 open issues
4 resolved since last review
Review effort: Balanced
Comment on lines
+537
to
+541
| outcome.retained_paths -= { | ||
| path | ||
| for path in outcome.retained_paths | ||
| if path in consent_kept or any(kept.startswith(f"{path}/") for kept in consent_kept) | ||
| } |
Comment on lines
+648
to
+649
| if not refused or trust_lockfile: | ||
| return frozenset(claim for claim, _ in refused) |
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 22, 2026
…fuse an edited file (#4570) Review follow-up on #4725: the graph-only proof could advise 'apm uninstall <pkg>' for a package with an edited deployed file, which uninstall's deployment-evidence preflight refuses. Check the deletions through DeploymentEvidence (the owner uninstall uses) and fall back to the admin-only advice; regression test included. Co-authored-by: Copilot App <[email protected]>
Collaborator
Author
5 of 14 tasks
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 22, 2026
Merges main (with #4752, which owns the per-member skill-directory fix) and folds the #4650 and #4725 review threads: - a receipt store no installation marker binds counts as unreadable - consented deletions are reported once, before any early exit - the consent exemption follows actual deletion verdicts; a path cleanup failed on (I/O) is never waived; ancestor lookup is O(1) - under consent a standalone tracked file replaced by a link is kept and named by the evidence owner, so uninstall finishes - the --trust-lockfile remedy names the packages; the lifecycle test runs the printed command Spec stays 0.1.76; CONFORMANCE regenerated. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 22, 2026
Merges main (with #4752, which owns the per-member skill-directory fix) and folds the #4650 and #4725 review threads: - a receipt store no installation marker binds counts as unreadable - consented deletions are reported once, before any early exit - the consent exemption follows actual deletion verdicts; a path cleanup failed on (I/O) is never waived; ancestor lookup is O(1) - under consent a standalone tracked file replaced by a link is kept and named by the evidence owner, so uninstall finishes - the --trust-lockfile remedy names the packages; the lifecycle test runs the printed command Spec stays 0.1.76; CONFORMANCE regenerated. 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
Lapse train W1 (LANDING-CONTROLLER Rev 2.6 section 4d). It folds the lifecycle and conformance serial chains into one integration branch so they land together in minute 1 of the next admin window, without N serial refolds. The train adds no new changes: it contains only conflict resolution and regenerated ledgers and CONFORMANCE.
Cars, in fold order (each green on its own, with 0 unresolved threads):
Dropped at the train head (attributed reds; each goes back to its owner as a serial single):
Conflict resolutions (no behaviour changes):
src/apm_cli/install/local_bundle_paths.py: kept both new functions (declared_bundle_exec_typesfrom main,superseded_bundle_renderingsfrom fix(pack): plugin bundles carry one rendering per primitive (#3686) #4693).docs/src/content/docs/reference/cli/pack.md: kept fix(pack): plugin bundles carry one rendering per primitive (#3686) #4693's one-rendering bullets and main's newerhooks.jsonbullet.tests/lifecycle/generator/rules.py: six Ev line anchors that drifted on main were re-anchored to the line that still holds their needle (audit.py 1441, 1460, 1498 and 1562; installing-from-marketplaces.md 124; services.py 1026). Thelifecycle_obligations.jsonevidence follows viapython -m tests.lifecycle.generator(--checkclean; test_generator_rules.py and test_architecture_invariants.py pass, 34).Regenerated on the train head:
tests.lifecycle.witnesses --write, thentests.spec_conformance.gen_statementafter a full spec_conformance collect (no diff), and the instruction lock hashes (no diff).Fixes #4709
Fixes #4570
Fixes #3686
Fixes #4295
Issue and approved scope
Issue: Fixes the issues above. Each car carries its own approved scope record, so the train adds no scope of its own.
Human scope-approval comment: each car's linked issue holds its apm-scope:v1 record; this train is the controller's lapse-train mechanism (Rev 2.6 s4d, Daniel 10:14).
Does this PR complete the issue, or what remains? It completes each car's issue. After the merge, every car PR is closed with a link to the train merge SHA.
Type of change
Testing
Train pre-flight (
liveness.py train): verdict OK at 8b259aa (0 behind main 899d17b; all 4 cars OPEN). Not run locally (lapse trains run the expensive suites once on the train head). Run on the head:gate, and oneci-integration.ymldispatch (Integration plus Release Validation). A red there is attributed and its car dropped within one tick. Local checks on the head:ruff checkandruff format --checkover src/ and tests/ are clean,check_complexity_ratchet.py --base-ref mainis clean, andtests.lifecycle.generator --checkis clean.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.Each car carries its own changelog fragment.
Spec conformance (OpenAPM v0.1)
CONFORMANCE.{md,json}regenerated viauv run --extra dev python -m tests.spec_conformance.gen_statementand committed (no diff after the folds).
The spec edit belongs to #4650 (0.1.76).
Co-authored-by trailers: every car's commits keep their authors, and each train merge commit names its car.