Skip to content

Owner moves: one install entry and one commit point for every install path #4085

Closed

Description

Part of the 0.37 trust and integrity consistency hardening (owner moves).

Problem: the local-bundle and --mcp install paths write the lockfile outside run_install_pipeline; --dry-run previews with a second planner; some checks run after the lockfile and deployed files are committed (spec req-pl-002 requires them before any byte is written). InstallTransaction declares itself the completion and rollback owner but is not registered.

Scope:

  • install-entry-routing: every install entry (package, local bundle, --mcp, --dry-run) goes through one pipeline; dry-run derives its preview from the pipeline plan.
  • install-commit-order: every check completes before the lockfile and deployed files are committed; a failing check leaves no committed state.
  • Register InstallTransaction; pin the frozen pre-deploy check with a static guard.
  • Fix the existing test that asserts packages remain installed after a blocked install.

Done when:

  • Installed-CLI tests show identical dry-run and install decisions, and that a failing check leaves lockfile and deployed files unchanged (red before, green after).
  • Closed-world guards with mutation cases for entry routing and commit order (frozen rule inventory updated).
  • Bug-ledger rows added; CI lint chain green.

Activity

  1. danielmeppiel commented on Nov 20, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Route every install entry (package, local bundle, --mcp, --dry-run) through one pipeline, derive the dry-run preview from the pipeline plan, complete every check before the lockfile and deployed files are committed, register InstallTransaction, pin the frozen pre-deploy check with a static guard, and fix the test that asserts packages remain installed after a blocked install.
    Done when: Installed-CLI tests show identical dry-run and install decisions and that a failing check leaves lockfile and deployed files unchanged (red before, green after); closed-world guards for entry routing and commit order with isolating mutation cases in the frozen rule inventory; bug-ledger rows added; CI lint chain green.
    Out of scope: Frozen-flag ownership (#4012) and orphan removal ownership (#4011), which land in their own PRs; unpack (separate lane).
    Review contact: Daniel Meppiel (@danielmeppiel)

  2. added
    status/accepted
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

status/accepted

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions