Skip to content

feat(simulate): preview the multi-env hotfix cherry-pick chain #357

Description

@joshua-temple

The hotfix what-if action added in #355 drives the real hotfix.Finalizer, so it faithfully simulates the divergence onset and version allocation. It does not yet preview the multi-env cherry-pick chain that hotfix.Planner.PlanChain computes, because PlanChain calls git.IsAncestor directly with no injectable seam, so it cannot run without a git checkout.

Scope:

  • Add an ancestry seam to internal/hotfix (and internal/git as needed) so PlanChain can resolve ancestry through an injected reader, mirroring the record-only seams the simulator already uses for the Finalizer.
  • Drive PlanChain from the hotfix simulate action to preview the per-commit, per-env cherry-pick plan alongside the outcome diff.
  • Unit tests over a seeded chain; no git or network.

Follow-up to #312.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxDeveloper experiencesimulatorLocal pipeline simulator feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions