Skip to content

Upstream v6.3.0 cherry-picks: bump preflight, no-subagent-dispatch clauses, Spec header, worktree guard (v7.62.0) - #83

Merged
SSFSKIM merged 4 commits into
mainfrom
upstream-v630-picks
Aug 22, 2026
Merged

SSFSKIM merged 4 commits into
mainfrom
upstream-v630-picks

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Triage of upstream obra/superpowers v6.3.0 (b36e0829, the only outstanding commit since the 2026-07-30 triage; merge-base unchanged at f268f7c).

Taken (adapted)

Item Source Adaptation
bump-version.sh preflight — verify every declared manifest is readable before writing any; no partial bumps upstream bump wiring JSON-only: dropped the yq/YAML layer (no YAML manifests here). New tests/version-bump/test-bump-version.sh verified 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.
"You Do Not Dispatch Subagents" clauses in executor + task-reviewer prompts T1 (evidence: 9/9 depth-2 spawns were worker-issued duplicate reviewers) Near-verbatim; same positions as upstream; "implementer"→fork's executor framing.
Plan header **Spec:** field + SDE step 1 reads the named spec SDD spec-travels-with-plan Trimmed to fork shape: the spec is the adjudication authority for findings/⚠️ items (fork keeps human adjudication — see declines).
Worktree removal refused → never --force; show status --porcelain -uall, ask commit/move/delete finishing +24 Compact paragraph + a Never bullet. Maps to a validated structural failure (refusal ⇒ files exist nowhere else).
Track guards: when in doubt take the heavier track; one-way ratchet (mid-flight complexity upgrades, never downgrades) T4 guards One bullet in the existing three-track section — the fork already has the three-path router upstream just built (convergent), so only the guards come over.

Declined (with reasons)

  • "Rulings, not stalls" (controller rules on plan conflicts itself, 4-stop-condition autonomy): collapses the fork's deliberate controlled/autonomous two-track split — autonomy lives in execplan, the controlled track keeps the human adjudicating.
  • Pre-flight scan-table ceremony ("one row per task pair… or the scan didn't happen"): enforcement machinery without a fork-observed failure; golden rule says no.
  • Batch-small-same-shape-tasks at dispatch: the fork solved task confetti upstream of the controller — v7.60.0's Task Right-Sizing cuts fewer, larger tasks at plan time; controller-side batching would blur task-boundary = review-boundary.
  • Five-round fix breaker: still declined (as in July); the v7.60.0 telemetry monitoring already watches ">2 fix rounds" as a reopen signal — revisit if it trips.
  • Bounded-wait / event-driven waiting, codex-tools.md corrections (T2/T3/T5): target using-superpowers/references/codex-tools.md and Codex-harness multi-agent V2 — mechanisms this fork removed.
  • Reviewer evidence-legibility paragraph: fork's reviewer prompt already bounds suite re-runs.
  • render-graphs.js ESM/Windows portability + test: portability for harnesses the fork doesn't target.
  • Devin/Hermes adapters, README harness table, upstream docs/specs/RELEASE-NOTES: not this fork's product.

Verification

  • tests/version-bump/test-bump-version.sh: GREEN new / RED pre-fix (partial-bump reproduced).
  • scripts/lint-shell.sh clean on both changed shell files.
  • tests/claude-code/test-sde-workspace.sh PASS; no test asserts on any edited skill text (checked).
  • Residual superpowers grep over changed files: clean.
  • Skill grafts are near-verbatim imports of upstream-evaluated text at matching positions; no fork-side behavioral eval run (flagged, not hidden).

…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).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/bump-version.sh Outdated
local path field fullpath
while IFS=$'\t' read -r path field; do
fullpath="$REPO_ROOT/$path"
[[ -f "$fullpath" ]] || continue

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +190 to +192
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +182 to +184
**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:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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
@SSFSKIM
SSFSKIM merged commit 63af9b8 into main Aug 22, 2026
@SSFSKIM
SSFSKIM deleted the upstream-v630-picks branch August 22, 2026 13:30
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
… 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.
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