Skip to content

Stage dependency graph changes before publishing checkout state #44

Closed

Description

@LunaStev

Problem

Resolution mutates managed checkouts as it walks the graph. If a later dependency fails validation, earlier checkouts may already point at new commits while vex.lock remains unchanged. Interrupted clones can also leave an unusable final destination that requires manual removal.

The lockfile is only one part of the dependency transaction.

Proposed behavior

Resolve and validate a candidate graph in staging locations, then publish checkout and lockfile state only after the complete graph succeeds.

Acceptance criteria

  • Do not expose half-cloned repositories at final managed paths.
  • Keep the last locked graph usable after a failed multi-package update.
  • Define rollback behavior for checkout transitions that fail midway.
  • Coordinate filesystem publication with atomic lockfile work in Write vex.lock atomically #22 and project locking in Serialize concurrent dependency state mutations #23.
  • Preserve dirty user data and never reset it.
  • Add failure-injection tests for clone, fetch, checkout, manifest validation, cycle detection, and lockfile replacement.

Activity

  1. added
    technical debt
    dependencies
    stability
    on Sep 18, 2026
  2. self-assigned this
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciesstabilitytechnical debt

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions