Skip to content

D313 — the refusal off main says the command makes its own branch, and the way from a worktree - #591

Merged
napkinstack-agent[bot] merged 3 commits into
mainfrom
d313-update-makes-its-branch
Nov 29, 2026
Merged

napkinstack-agent[bot] merged 3 commits into
mainfrom
d313-update-makes-its-branch

Conversation

@napkinstack-agent

Copy link
Copy Markdown
Contributor

Workstream

D313 — the update's refusal off main did not say it makes its own branch, nor the way from a worktree (#589). Reported by the consumer project's coordinator. Decided by the decider, for v0.35.5.

What it changes

  • project._start_from: one Action for the refusals of nstack update, nstack update --forge and nstack config off the default branch. It reads: git switch <default>, or, in a worktree beside the one that holds it, git switch --detach <default> (nstack update: an untracked file reads as 'modified', and a clean worktree is refused #261); and the command makes its own branch, so make none before.
  • INSTALL.md: the update makes its own branch.
  • Register row D313.

What a project receives

A person or an agent who made a branch, or a worktree, for the update first is told the way back and that the command makes its own branch. No behaviour changes.

Verification

  • Red first: the assertions in test_update_tree.py (detached HEAD elsewhere) and test_config.py (off main) failed on main.

  • A fresh read-only verifier ran on 8a0fd16 and found nothing blocking. It checked in scratch repositories that the Action is true for each of the three commands, each followed by a pass and its own branch:

    • from a worktree on a branch: git switch main fails there, and git switch --detach main passes;
    • with local main behind origin/main;
    • with main checked out nowhere.

    Fixed after its review, in 2636bac:

    • change_forge's guard was untested, before D313 and since: a test now refuses it off main, with no branch made;
    • the wording now reads "make none before";
    • INSTALL.md is aligned.
  • Mutants killed: --detach dropped, the wrong command named for config, and for the forge change; the forge guard removed.

  • uv run bash platform/tests/run.sh at 2636bac: Platform tests: OK.

DoD

  • Register row D313
  • Oracle green on the committed tree

🤖 Generated with Claude Code

napkinstack-agent Bot and others added 2 commits November 29, 2026 23:20
…d the way from a worktree

Downstream, the coordinator made a branch and a worktree for the update
first; the refusal said `git switch main`, which a worktree beside main's
cannot do. nstack update, update --forge and config now share one Action:
switch to the default branch, or detach at its tip in a worktree (#261),
and the command makes its own branch: none is made before.

Agent-Session: napkinstack-os-1e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s plainly (#589)

The verifier found change_forge's guard untested, before D313 and since: a
test now refuses it off main, with the way back and no branch made. "make
none before" replaces "none is made before"; INSTALL.md says the update
makes its own branch.

Agent-Session: napkinstack-os-1e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@napkinstack-agent
napkinstack-agent Bot requested a review from a team as a code owner November 29, 2026 22:44
Agent-Session: napkinstack-os-1e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@napkinstack-agent
napkinstack-agent Bot merged commit 65269a9 into main Nov 29, 2026
3 checks passed
@napkinstack-agent
napkinstack-agent Bot deleted the d313-update-makes-its-branch branch November 29, 2026 23:15
napkinstack-agent Bot added a commit that referenced this pull request Nov 30, 2026
…s formatter at the commit (#597)

D312 (#590), D313 (#591), D314 (#592), D315 (#596), D316 (#594).

Agent-Session: napkinstack-os-1e

Co-authored-by: napkinstack-agent[bot] <330339777+napkinstack-agent[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant