Skip to content

test(lifecycle): T2 -- source and scope-lock machines, covering replay generator, scenario suites - #4227

Merged
Daniel Meppiel (danielmeppiel) merged 39 commits into
mainfrom
danielmeppiel-t2-lifecycle-integrator
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 39 commits into
mainfrom
danielmeppiel-t2-lifecycle-integrator

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

T2 of the 0.37 lifecycle test family, stacked on T1 (#4142) and the shared world (#4094). It adds:

  • the M-SOURCE and M-SCOPE-LOCK state machines;
  • a deterministic covering-replay obligation generator, with its checked-in obligation list (tests/quality/lifecycle_obligations.json) and generated rows;
  • seven scenario suites: history upgrade, ownership siblings, platform, failure phase, cache presence, graph/version and concurrency.

Every command runs through driver.run. I1-I9 are checked after every mutating step, and receipts come only from the oracles. Defects found on main are strict known cells naming neutral issues, never skips.

The obligation list lands as a ratchet:

  • required is exactly what a passing node witnesses at this head, and it cannot drop;
  • every other obligation is baseline, owned by the lane that must discharge it.

Head: 5a799dded.

Issue and approved scope

Fixes #4096
Fixes #4097
Fixes #4099
Fixes #4100
Fixes #4101
Fixes #4102
Fixes #4103
Fixes #4104
Fixes #4105
Fixes #4106

Human scope-approval comments: each issue carries a current apm-scope:v1 record by Daniel Meppiel (@danielmeppiel) (eligibility record-present, contact confirmed).

Does this PR complete the issues? Yes, as a ratchet. Baseline obligations stay listed with their owner lane (table below); they are not a landing condition.

Obligation ratchet (witnessed / total)

Lane Required (witnessed) Total
T-1 0 254
T-2 130 626
T-3 36 279
T-5 856 (+1 known-failing) 857
T-6a 0 201
T-6b 0 141
T-6c 0 28
T-6e 0 42
T-7b 0 63

T-1 and T-6x witnesses arrive with the #4142 receipts on main.

By family
Family Required Total
T1 156 387
T2 5 12
T3 132 375
T4 36 80
T5 37 57
pair 604 1527
refusal 43 43
rule 10 10

Totals: 2491 obligations, 1022 required, 1 known-failing (#4318), 1468 baseline; 427 mapped; 391 removed.

Definition, mapping and refusal rules (U8 as ruled)

SRC registry is split into three sources:

  • pkg-registry: a REST package registry delivering whole packages (experimental registries);
  • mcp-registry: an MCP registry server;
  • inline-mcp: a self-defined server, install --mcp NAME --url URL or -- <command>.

The rules sort shapes into three kinds:

  • Removal: a shape the CLI grammar cannot state.
  • Mapping: a shape that is the same command as another cell.
  • Refusal cell: a shape the CLI parses and then refuses. There is one per message class, with exit code and message pinned.
Rule Clause Kind Cells
U8 bundle-install from a non-bundle source removed 81
U8 install --mcp from a package source removed 72
U8 an MCP-server source for a non-MCP primitive removed 132
U8 a native plugin for canvas (canvas lives under .apm/extensions/) removed 10
U8 install of a local bundle -> the bundle-install cell mapped 9
U8 marketplace add of a source without a catalog -> `rule U8 marketplace-add-refuses-a-source-without-catalog` (exit 1, "No marketplace.json found in")
U8 uninstall of an MCP-registry name -> `rule U8 uninstall-refuses-a-registry-mcp-name` (exit 1, "was not found in apm.yml")
U8 uninstall of an inline MCP name -> `rule U8 uninstall-refuses-an-inline-mcp-name` (exit 1, "is an MCP server, not a package")
U8 uninstall of a local bundle -> `rule U8 uninstall-refuses-a-local-bundle` (exit 1, "is a local bundle. Bundles installed with")
U8 update with a local bundle -> `rule U8 update-leaves-a-local-bundle-untouched` (exit 0, "No APM dependencies"; strict known-failing on #4318: the message is untrue while a bundle is installed)
U8 prune with a local bundle -> `rule U8 prune-leaves-a-local-bundle-untouched` (exit 0, "Nothing to prune")
U-BIN bin/ at project scope (bin deploys only for a marketplace plugin at user scope with Claude) removed 1
U6 pack x SRC (pack takes no source) removed 90
U3 edited/clean without a lock; unknown provenance with a lock removed 5
U1, U5, U2, U10, E3 modifier refusals, pack -g, gate levels, compile render, file routing mapped 84 / 5 / 78 / 44 / 131

U-BIN is self-reinstating. tests/lifecycle/generator/bin_pin.py records the digest of plugin_bin_deployable's source tokens, and rules.U_BIN_PIN holds the approved value. If the predicate changes, the cell becomes must-cover again and --check fails. The closed-world pins of the bin/ writer and of unpack, the mutation cases and the 41 gate ids live with the gate tables in T3. The docs now say bin/ deploys only at user scope with the Claude target (approve, install --trust-bin, policy-schema, install-plugins).

Every removed cell, with its rule ids, is listed in the removed section of tests/quality/lifecycle_obligations.json. Every mapped cell, with maps_to and its rule chain, is listed in mapped.

tests/lifecycle/generator/test_generator_rules.py restates each removal and mapping clause from its text and source evidence, independently of rules.py. It checks both directions against the committed file.

The six refusal cells are witnessed by the generated source-refusals and local-bundle-refusals rows. M-SOURCE also declares p-skill and p-exec from the world package registry, and an inline MCP server.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass (one load-timing flake noted below)
  • Added tests for new functionality (if applicable)

Validation at 5a799dded:

  • Full lifecycle, quality ratchets, CI ratchet contracts and runner contract (APM_ALLOW_PROVISIONAL_BASELINES=0 pytest -n 4 tests/lifecycle tests/quality tests/unit/scripts/test_check_test_assertions.py tests/unit/scripts/test_check_exact_test_duplicates.py tests/unit/scripts/test_check_complexity_ratchet.py tests/integration/test_apm_lifecycle_runner_contract.py): 618 passed, 6 skipped, 10 xfailed, 1 failed.
  • Generator: python -m tests.lifecycle.generator --check reports [+] generated lifecycle obligations are up to date; pytest tests/lifecycle/generator: 25 passed.
  • Lint mirror:
    • ruff check and format: clean;
    • pylint R0801: clean;
    • scripts/lint-auth-signals.sh: clean;
    • lint_architecture_boundaries.py --root .: rc 0;
    • exact-duplicate ratchet: clean;
    • complexity ratchet: clean.
Node-set diff vs merge base (pytest --collect-only, whole tests/)

319 nodes added, 17 removed. Every removal is a rename or rewrite already approved in the stack; none is a deletion.

  • 10 renamed with the GATE machine move (Lifecycle test family: M-GATE machine in the family (T1 and T2 obligations) #4095, T1), old -> new:
    • tests/integration/test_generated_gate_state_machine.py::test_a_known_cell_does_not_excuse_an_unrelated_surface -> tests/lifecycle/machines/test_m_gate.py::test_a_known_cell_does_not_excuse_an_unrelated_surface
    • tests/integration/test_generated_gate_state_machine.py::test_gate_generated_sequences_keep_cross_cutting_laws[project] -> tests/lifecycle/machines/test_m_gate.py::test_gate_generated_sequences_keep_cross_cutting_laws[project]
    • tests/integration/test_generated_gate_state_machine.py::test_gate_generated_sequences_keep_cross_cutting_laws[user] -> tests/lifecycle/machines/test_m_gate.py::test_gate_generated_sequences_keep_cross_cutting_laws[user]
    • tests/integration/test_generated_gate_state_machine.py::test_gate_machine_kills_the_recorded_approval_mutant -> tests/lifecycle/machines/test_m_gate.py::test_gate_machine_kills_the_recorded_approval_mutant
    • tests/integration/test_generated_gate_state_machine.py::test_gate_mandatory_spine_covers_obligations[project] -> tests/lifecycle/machines/test_m_gate.py::test_gate_mandatory_spine_covers_obligations[project]
    • tests/integration/test_generated_gate_state_machine.py::test_gate_mandatory_spine_covers_obligations[user] -> tests/lifecycle/machines/test_m_gate.py::test_gate_mandatory_spine_covers_obligations[user]
    • tests/integration/test_generated_gate_state_machine.py::test_home_allowlist_admits_only_exact_ancestors -> tests/lifecycle/machines/test_m_gate.py::test_home_allowlist_admits_only_exact_ancestors
    • tests/integration/test_generated_gate_state_machine.py::test_narrowing_one_surface_keeps_another_approved_surface[deny-lsp] -> tests/lifecycle/machines/test_m_gate.py::test_narrowing_one_surface_keeps_another_approved_surface[deny-lsp]
    • tests/integration/test_generated_gate_state_machine.py::test_narrowing_one_surface_keeps_another_approved_surface[deny-plugin] -> tests/lifecycle/machines/test_m_gate.py::test_narrowing_one_surface_keeps_another_approved_surface[deny-plugin]
    • tests/integration/test_generated_gate_state_machine.py::test_narrowing_one_surface_keeps_another_approved_surface[revoke-lsp] -> tests/lifecycle/machines/test_m_gate.py::test_narrowing_one_surface_keeps_another_approved_surface[revoke-lsp]
  • 7 replaced when the per-test AST duplicate gate (test(quality): per-test AST duplicate gate, taxonomy placement and promise-link ratchets #4146) rewrote the duplicate checker's unit suite (16 new nodes in the same file):
    • tests/unit/scripts/test_check_exact_test_duplicates.py::test_crlf_and_lf_are_not_exact_duplicates
    • tests/unit/scripts/test_check_exact_test_duplicates.py::test_malformed_digest_fails_closed
    • tests/unit/scripts/test_check_exact_test_duplicates.py::test_near_duplicate_pair_passes
    • tests/unit/scripts/test_check_exact_test_duplicates.py::test_new_exact_pair_fails
    • tests/unit/scripts/test_check_exact_test_duplicates.py::test_reduction_requires_baseline_tightening
    • tests/unit/scripts/test_check_exact_test_duplicates.py::test_third_copy_exceeds_pair_baseline
    • tests/unit/scripts/test_check_exact_test_duplicates.py::test_update_refuses_existing_group_growth_without_writing

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md (internal line, with the PR number).
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…s; unpack refusal self-test (#4094)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@danielmeppiel Daniel Meppiel (danielmeppiel) added the full-integration Run the full integration suite (ci-integration.yml) on this PR before merge label Nov 20, 2026
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…y baseline

test_release_acceptance_scripts.py is a component module that checks the
release-acceptance output checks (P-INV-I6, P-INV-I9).
test_state_leak_detector.py is a component module that runs pytest in a
subprocess to reproduce cross-test state leaks; it joins the baseline as
a module that predates the gate.

Part of #4096

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Restate U3, U6 and U8 from their text and source evidence, independently
of the generator, and check them against the committed obligations file
both ways: every removal satisfies its rule and every raw candidate the
rule names is removed. Pin the U8 split by source clause (240 = 63
bundle-install, 63 mcp-install, 60 registry non-MCP, 45 marketplace add,
9 install of a local bundle) and that every removed and mapped cell names
its rules.

Part of #4099

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Main moved the cited lines in deployment_ledger.py, install/services.py
and uninstall/cli.py; point the rule evidence at the same code and
regenerate the obligations file (evidence and hash only).

Part of #4099

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Keep T2's lifecycle_obligations.json reader (per-id status) over the T1
overlay reader; remap T2 promise witnesses to tests/lifecycle/machines/test_m_gate.py.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Take the world side of every world conflict. Covering rows take a package
from git only when the world serves it and git accepts it (the LSP-only
p-lsp is refused, #4257), so the generated obligation set is unchanged.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Keep T2's covering-row witnesses where T1 lists the same promise
obligation as baseline or under another witness.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Classify the test modules main added since the taxonomy gate: e2e for the
registry archive limits module, component for the journey index, and
baseline entries (promise-exempt, misplaced) for modules that predate the gate.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active harness defects allow file-writing dry runs and unverified Claude deployments to earn receipts, while CLI option handling and newer-generator lock expectations are incorrect.

5 open issues
What changed in this PR

This draft extends APM's lifecycle test family on top of T1, adding generated replay coverage and shared infrastructure for checking durable state through the real CLI.

Changes:

  • Adds a shared model, driver, snapshots, hermetic world and oracle receipts.
  • Introduces covering replay rows and scenario coverage for cache state and historical upgrades.
  • Updates CI collection, nightly binary execution, test-quality checks and contributor documentation.
File Description
tests/​utils/​world_snapshot.py Re-exports the shared restore helper.
tests/​utils/​lifecycle_state.py Uses shared surface snapshots.
tests/​utils/​click_tree.py Adds CLI command resolution helpers.
tests/​utils/​apm_lifecycle_runner.py Checks output after every command.
tests/​unit/​test_state_leak_detector.py Adds component classification.
tests/​unit/​test_release_acceptance_scripts.py Adds classification and promise links.
tests/​unit/​scripts/​test_lifecycle_evidence.py Tests output laws and known failures.
tests/​quality/​test_quality_baselines.py Adapts duplicate-checker expectations.
tests/​quality/​test_generated_obligations.py Validates generated obligations and receipts.
tests/​quality/​test_gate_cell_obligations.py Updates relocated GATE imports.
tests/​quality/​test_ci_topology.py Includes lifecycle tests in collection checks.
tests/​quality/​taxonomy_inventory_plugin.py Records promises and process-spawning calls.
tests/​quality/​generated_obligations.json Initializes generated obligation tracking.
tests/​quality/​gate_cell_obligations.json Updates the documented witness path.
tests/​quality/​cli_docs_surface_expected.json Initializes CLI documentation exceptions.
tests/​lifecycle/​world/​shims.py Adds isolated executable stubs.
tests/​lifecycle/​world/​scopes.py Configures scope, policy and credential fixtures.
tests/​lifecycle/​world/​routes.py Adds scripted routes and registry proxy behavior.
tests/​lifecycle/​world/​revisions.py Supports reversible repository revisions.
tests/​lifecycle/​world/​registry.py Provides a deterministic local package registry.
tests/​lifecycle/​world/​packages.py Authors shared fixture packages.
tests/​lifecycle/​world/​fixtures.py Builds session templates and per-test clones.
tests/​lifecycle/​world/​contract.py Defines world and package interfaces.
tests/​lifecycle/​world/​clone.py Copies worlds and rewrites carried paths.
tests/​lifecycle/​world/​__init__.py Exposes world-building helpers.
tests/​lifecycle/​test_core_example.py Runs the core replay and approval mutant.
tests/​lifecycle/​snapshot.py Centralizes snapshots and in-place restoration.
tests/​lifecycle/​scenarios/​test_history_upgrade.py Checks prior-generator upgrades and newer-lock refusal.
tests/​lifecycle/​scenarios/​test_cache_presence.py Exercises cache states across install and audit.
tests/​lifecycle/​scenarios/​__init__.py Introduces the scenario package.
tests/​lifecycle/​replay/​test_covering_replay.py Runs generated rows and checks credited cells.
tests/​lifecycle/​replay/​rows/​generated_cover-15-refusals.yaml Covers prune, uninstall and update refusals.
tests/​lifecycle/​replay/​rows/​generated_cover-14-refusals.yaml Covers lock, marketplace, MCP and pack refusals.
tests/​lifecycle/​replay/​rows/​generated_cover-13-refusals.yaml Covers approval, audit, bundle and compile refusals.
tests/​lifecycle/​replay/​rows/​generated_cover-12-canvas-local-single-unapproved-mcp.yaml Covers approved canvas uninstall preview.
tests/​lifecycle/​replay/​rows/​generated_cover-11-canvas-local-multi-approve-mcp.yaml Covers multi-target canvas revocation.
tests/​lifecycle/​replay/​rows/​generated_cover-10-skill-local-single-approve-force.yaml Covers initial forced skill installation.
tests/​lifecycle/​replay/​rows/​generated_cover-09-skill-local-single-approve-update.yaml Covers initial installation with update enabled.
tests/​lifecycle/​replay/​rows/​generated_cover-08-exec-git-single-deny-mcp.yaml Covers packing with denied executables.
tests/​lifecycle/​replay/​rows/​generated_cover-07-skill-local-single-approve-lock.yaml Covers lock creation before deployment.
tests/​lifecycle/​replay/​rows/​generated_cover-06-exec-lsp-git-single-deny-mcp.yaml Covers denied LSP operations.
tests/​lifecycle/​replay/​rows/​generated_cover-05-exec-git-single-approve-mcp.yaml Covers executable revocation and removal previews.
tests/​lifecycle/​replay/​rows/​generated_cover-04-lsp-canvas-local-multi-unapproved-mcp.yaml Covers multi-target LSP and canvas gates.
tests/​lifecycle/​replay/​rows/​generated_cover-03-skill-exec-git-multi-unapproved-mcp.yaml Covers multi-target Git packages and modifiers.
tests/​lifecycle/​replay/​rows/​core_gate_row.yaml Defines the core deny-and-reconcile replay.
tests/​lifecycle/​receipts.py Records and merges oracle-owned receipts.
tests/​lifecycle/​model/​state.py Defines pure reference-state transitions.
tests/​lifecycle/​model/​expected.py Derives deployment, lock and exit expectations.
tests/​lifecycle/​model/​__init__.py Initializes the model package.
tests/​lifecycle/​machines/​test_m_gate.py Relocates GATE tests and expands refusal coverage.
tests/​lifecycle/​machines/​conftest.py Writes visited GATE cells per process.
tests/​lifecycle/​machines/​__init__.py Introduces the machine package.
tests/​lifecycle/​generator/​witnesses.py Maps machine and scenario evidence to obligations.
tests/​lifecycle/​generator/​space.py Enumerates and classifies obligation combinations.
tests/​lifecycle/​generator/​replay.py Adds source variants and replay crediting.
tests/​lifecycle/​generator/​factors.py Defines factors, modifiers and target selection.
tests/​lifecycle/​generator/​__main__.py Adds generation and drift-check commands.
tests/​lifecycle/​generator/​__init__.py Documents generator responsibilities.
tests/​lifecycle/​driver.py Runs engine or binary commands by scope.
tests/​lifecycle/​conftest.py Wires fixtures, receipts and output checks.
tests/​lifecycle/​__init__.py Initializes the lifecycle package.
tests/​integration/​test_apm_lifecycle_runner_contract.py Tests output-hook enforcement and negative controls.
tests/​integration/​conftest.py Removes the relocated GATE session hook.
tests/​fixtures/​output_mutants/​non_ascii_status_line.py Adds a non-ASCII output mutant.
tests/​fixtures/​gate_mutants/​skip_approval_check.py Updates the test-path documentation.
tests/​fixtures/​cli_surface_mutants/​renamed_frozen_flag.py Adds a CLI flag-renaming mutant.
scripts/​test_body_hash.py Adds normalized test-body hashing.
pyproject.toml Registers the promise marker.
docs/​src/​content/​docs/​reference/​cli/​uninstall.md Corrects the saved-target command example.
docs/​src/​content/​docs/​reference/​cli/​targets.md Clarifies planned subcommand names.
docs/​src/​content/​docs/​reference/​cli/​marketplace.md Documents offline browsing and package-set flags.
docs/​src/​content/​docs/​reference/​cli/​config.md Spells out MCP command examples.
docs/​src/​content/​docs/​reference/​cli/​audit.md Corrects the target configuration reference.
docs/​src/​content/​docs/​contributing/​integration-testing.md Documents lifecycle infrastructure and test-quality rules.
CHANGELOG.md Adds internal test-infrastructure entries.
apm.lock.yaml Refreshes test-instruction deployment hashes.
.github/​workflows/​gate-machine-nightly.yml Builds and tests the packaged binary nightly.
.github/​workflows/​ci.yml Includes lifecycle tests and additional quality checks.
.github/​instructions/​tests.instructions.md Documents test-corpus regression checks.
.apm/​instructions/​tests.instructions.md Updates the source test instructions.

Review effort: Balanced

Comment thread tests/lifecycle/driver.py Resolved
Comment thread tests/lifecycle/generator/replay.py Resolved
Comment thread tests/lifecycle/model/expected.py Resolved
Comment thread tests/utils/click_tree.py Resolved
…ew I9 repeats (#4227)

The failed-command check ignores directories created on the way to allowed
bookkeeping and the recovery staging a failed install announces. Known cells
accept the durable-files wording for #4159, #4162, #4164, #4168 and #4214.
New strict output cells: #4241 (empty-policy banner), #4219 (uninstall skill
lines), #4291 (pack --dry-run notes) and #4299 (parked MCP notice). Project
steps may write the world az stub's call log.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…and Click resolver (#4227)

- driver: a user-scope deps command takes --global after its subcommand.
- replay: every generated dry run is checked read-only (I5).
- model: a newer-generator lock predicts exit 1 for install and update,
  frozen or not, as M-SCOPE-LOCK pins.
- click_tree: group options before a subcommand are consumed with their
  values, so subcommand typos are reported and valid lines resolve.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…ped bundle install, refusal cells (#4227)

- SRC registry splits into pkg-registry (whole packages, experimental
  registries), mcp-registry and inline-mcp (install --mcp NAME --url or
  -- <command>). pkg-registry cells for every primitive are obligations.
- U8 removes only shapes the CLI grammar cannot state: bundle-install from a
  non-bundle source (81), install --mcp from a package source (72), an MCP
  server source for a non-MCP primitive (132).
- U8 maps: install x local-bundle to bundle-install (9); marketplace add of a
  source without a catalog (44) and uninstall of an MCP server (3 + 3) to
  three refusal rule cells, each with exit 1 and its message pinned and
  witnessed by the generated source-refusals row.
- M-SOURCE declares p-skill and p-exec from the world package registry and an
  inline MCP server, so their cells are witnessed.
- Drop the #4219 uninstall output cell the newer oracle no longer needs.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…-world pin (#4227)

bin/ deploys only for a marketplace plugin at user scope with a Claude target
that supports skills. The T-5 generator records rule U-BIN and lists the 41
gate removal cells for bin/ on every other path under `excluded`.

generator/bin_pin.py hashes the pinned elements: plugin_bin_deployable, the
callers of _deploy_bin_files and _deploy_plugin_bin, and the unpacker's
executable refusal. While the hash equals rules.U_BIN_PIN the cells stay
excluded. Otherwise they return as must-cover and --check fails. Mutation
cases prove the pin catches each widening: dropping the scope check, adding a
second bin/ writer, and letting unpack accept a bin executable.

Docs: approve, install --trust-bin, policy-schema and install-plugins say
bin/ deploys only at user scope with the Claude target.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…icate digest only (#4227)

Per the corrected split, the closed-world pins and mutation cases of the bin/
domain, and the 41 gate ids, belong to the gate tables (T3). The lifecycle
generator keeps U-BIN as a definition rule for its own cells: bin/ at project
scope is unreachable (exec_gate.py:508), so pair PRIM=bin x SCOPE=project is
removed. The package type, not SRC, makes a marketplace plugin, so SRC cells
stay. generator/bin_pin.py records only the digest of plugin_bin_deployable;
when it differs from U_BIN_PIN the cell is must-cover again and --check fails.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
…n bin/ deploy widens (#4107)

Lifted from #4227 @ 2ce5a26 (tests/lifecycle/generator/bin_pin.py and its
mutation cases) per the T lead's ownership correction.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…removal under U8 (#4227)

A local bundle writes no manifest entry. Each command the CLI parses and then
cannot apply to it is now one refusal cell, with exit code and message pinned
and witnessed by a generated local-bundle row:
- uninstall of the bundle: exit 1, "is a local bundle. Bundles installed with";
- update: exit 0, "No APM dependencies" (bundle untouched);
- prune: exit 0, "Nothing to prune" (bundle untouched).
lock, audit and approve-deny (deny writes apm.yml) act on it and stay
obligations. A native plugin carries no canvas primitive (canvas lives under
.apm/extensions/), so native-plugin x canvas is a U8 removal.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
apm update with only a local bundle exits 0 and says "No APM dependencies to
update", which is untrue while the bundle is installed. The generated row now
pins the current exit and message as a strict known cell. The step earns no
receipt, the obligation is known-failing on #4318, and the cell fails once
the output names the bundle.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Take main as canonical for the quality modules and the taxonomy baseline; keep
both CHANGELOG lines.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…U8 mapping out of mapped_cell (#4227)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…ed; #4160/#4219 owned by the output cell; duplicate #4241)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Take main for the driver, the Click resolver and the docs-surface test; keep
T2 witnesses in promise_obligations.json.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit e44dbee into main Nov 20, 2026
1 check passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-t2-lifecycle-integrator branch November 20, 2026 14:22
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Tests moved by main's split are carried to their new modules:
test_auth_phase3 -> test_auth_validation, drift advisory header ->
test_drift_pure_helpers.

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-integration Run the full integration suite (ci-integration.yml) on this PR before merge

Projects

None yet

2 participants