Skip to content

Live close --pr and distill continuation post-merge #136

Description

@sameera

As a delivery lead, I want close and distill run post-merge on the scratch repo, so
that
the merged-PR gate, the shared distill worktree handoff, and the distillation PR are proven
live rather than assumed.

Acceptance Criteria

  • Given a merged PR carrying an analyze review, when close --pr runs, then a
    distill/<date>-<slug> branch exists on the scratch remote carrying the close record and
    the committed queue entry.
  • Given close has completed, when distill runs in that same worktree, then a
    distillation PR is open against the scratch trunk containing the concept deltas and the
    deletion of the queue entry it drained.
  • Given a PR that is not merged, when close --pr is invoked against it, then
    it exits non-zero with the merge-required diagnostic and creates no branch, worktree, or
    commit.
  • Given the chain has completed, when teardown runs, then no worktrees created by
    close or distill remain in the host checkout.
  • Given the run is finished, when the acceptance record is read, then it states a
    pass/fail verdict per stage and links every divergence from the injected-runner expectations
    to a filed issue or backlog stub (or records explicitly that there were none).

Notes

This story seals the acceptance record — it depends on STORY-132.02 (the analyze review the close
gate reads) and STORY-132.03 (a merged PR whose range has been independently verified) having
written their slots.

A clean run is a pass: recording explicitly that there were zero divergences satisfies the final
criterion. Fixing anything the dry-run surfaces is out of scope for this epic — each fix is sized
and scheduled separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pipelineOrchestration of the Nexus stages and human-decision gatesstoryUser story (created by nxs-gh-create-story)testingVitest unit/component tests and Playwright e2e

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions