Repository navigation
Upstream v6.3.0 cherry-picks: bump preflight, no-subagent-dispatch clauses, Spec header, worktree guard (v7.62.0) - #83
Conversation
…d manifest before writing Cherry-picked from upstream v6.3.0 (b36e082), JSON-only: the yq/YAML manifest layer is dead weight here (no YAML manifests declared), so only preflight_manifests comes over. cmd_bump now verifies every declared manifest is readable before writing any; an unreadable manifest aborts with nothing touched instead of leaving a partial bump. tests/version-bump/test-bump-version.sh (adapted from upstream's, Hermes fixture replaced with a JSON one): happy path bumps both manifests; malformed manifest → bump fails with zero files changed. Verified RED against the pre-fix script (package.json got bumped before the abort).
…lan Spec header, worktree-removal guard, track ratchet Four grafts from upstream v6.3.0 (b36e082), adapted to fork positions: - executor-prompt.md + task-reviewer-prompt.md: 'You Do Not Dispatch Subagents' clauses (upstream T1, evidence 9/9 worker-spawned reviewers were duplicate seats of the controller's own review dispatch). - writing-plans: plan header gains a **Spec:** field; SDE step 1 reads the named spec as the authority the plan argues from. - finishing-a-development-branch: worktree removal refused → the files exist nowhere else; never --force on your own — show status, ask commit/move/delete. Matching Never bullet. - brainstorming: when in doubt between tracks take the heavier one; one-way ratchet — mid-flight complexity upgrades the track, never downgrades (upstream T4 guards; the three-path router itself already exists here as the three-track section).
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: adba6362cc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| local path field fullpath | ||
| while IFS=$'\t' read -r path field; do | ||
| fullpath="$REPO_ROOT/$path" | ||
| [[ -f "$fullpath" ]] || continue |
There was a problem hiding this comment.
Reject missing manifests during preflight
When any declared manifest is absent, this continue lets the bump proceed and modify every earlier existing manifest, after which the command merely reports SKIP (missing) and eventually exits nonzero. For example, with an existing package.json followed by a missing declared file, package.json is still changed, violating the new all-or-nothing guarantee and leaving version drift; preflight should fail before any write when a declared path is missing.
Useful? React with 👍 / 👎.
| Ask whether to commit them to the branch, move them into the main repo, | ||
| or delete them (unrecoverable); carry out the choice, then remove the | ||
| worktree. |
There was a problem hiding this comment.
Preserve files committed during discard cleanup
Under Option 4, if removal exposes dirty files and the human chooses the newly offered “commit them to the branch” resolution, the documented next step still force-deletes that branch with git branch -D. The commit therefore does not preserve those files and can discard the newly created commit despite the explicit preservation choice; either omit this choice for the discard path or stop the subsequent branch deletion.
Useful? React with 👍 / 👎.
| **If removal is refused** (`contains modified or untracked files`): the | ||
| worktree holds files that exist nowhere else. Never `--force` on your own | ||
| initiative — show your human partner what is at stake: |
There was a problem hiding this comment.
Capture the feature worktree before entering the main repo
For both callers of Step 6 (Options 1 and 4), Step 5 has already executed cd "$MAIN_ROOT"; Step 6 then recomputes GIT_DIR and WORKTREE_PATH from that main checkout and exits through the GIT_DIR == GIT_COMMON case. Consequently the feature worktree never reaches this newly added refusal handling, so dirty-worktree cleanup still cannot use the safeguard; retain the original feature-worktree path before changing directories.
Useful? React with 👍 / 👎.
…tep 6 captures worktree identity before cd; rescue-commit scoped off the discard path
… directory M7; 7.186.0) A SessionStart hook, smns-guide.sh, hands its payload to `sminos guide`, which on a machine enrolled at a desk hub prints who the session is (alias [short], project, machine), where that project comes from (its launch directory, which a cd does not change; the machine's own project; its own join), and the verbs that find and reach the org's other sessions, the CLI named by its absolute path. Nothing on an unenrolled machine, in an internal fork, or for a payload naming no session; it never migrates and never fails a start. The lines kept are those the evals showed move behavior. skills/sminos/SKILL.md keeps what a member acts on (who is here, speaking and addressing across the org, its lines and its project, driving another session through its bridge, spawning) at 3,694 tokens, from 7,541; references/setup.md takes the project and its mirror, enrollment, the daemon and the machine's policy. Board #83's desk content is folded in.
Triage of upstream
obra/superpowersv6.3.0 (b36e0829, the only outstanding commit since the 2026-07-30 triage; merge-base unchanged atf268f7c).Taken (adapted)
bump-version.shpreflight — verify every declared manifest is readable before writing any; no partial bumpstests/version-bump/test-bump-version.shverified RED against the pre-fix script (partial bump reproduced) and GREEN after. Dogfooded: the 7.62.0 bump in this PR ran through the preflight.**Spec:**field + SDE step 1 reads the named spec--force; showstatus --porcelain -uall, ask commit/move/deleteDeclined (with reasons)
execplan, the controlled track keeps the human adjudicating.using-superpowers/references/codex-tools.mdand Codex-harness multi-agent V2 — mechanisms this fork removed.Verification
tests/version-bump/test-bump-version.sh: GREEN new / RED pre-fix (partial-bump reproduced).scripts/lint-shell.shclean on both changed shell files.tests/claude-code/test-sde-workspace.shPASS; no test asserts on any edited skill text (checked).superpowersgrep over changed files: clean.