Repository navigation
Description
Goal
Import Cursor pstack 0.15.2 to 0.15.5 into the shared skill tree and release it as Open Pstack 1.5.0. Upstream content is the default. Keep the local Claude Code and Codex adaptations and the recorded exclusions. Deliver one PR with three commits, the same shape as PR #60 and PR #64. Closes #72. Tracked in Linear as PSTACK-3.
Decisions (defaults Eric can override in a comment before execution starts)
- First-run panel follows upstream: Opus max, GPT-5.6 Sol max, Grok 4.7 xhigh. Judgment and prose, hardest tasks and the How explainer move from Fable max to Opus max. Fable stays a supported, selectable family with its native agents.
- Bug-fix, perf-issue and hillclimb stay on
codex:gpt-5.6-sol@max, not upstream's Grok 4.7. This is the recorded local choice, and the existing static check enforces it. - Fold, don't merge, PR Allow setup with only assigned model providers #73. Only the setup change the three-model default forces is taken: ask about roles first, then ask efforts for and probe only the assigned families. Allow setup with only assigned model providers #73 is closed with credit after this lands, on Eric's OK.
Pins
- Base: open-pstack
mainatde67e6b40511814171e5e4c8ad7af3b79f07c9ee(Open Pstack 1.4.1). Ifmainhas moved, branch from currentmainand rerun the audit; the resolutions below still apply hunk by hunk. - Last imported upstream:
f8abeddd1862dc73704e3d719dd73df0d51b8c71(pstack 0.15.1). - Target:
12d587dfb20741cafc376c42c696c5f6e2a64487(pstack 0.15.5). Keep this pin even ifcursor/mainhas moved on. - Upstream commits in range:
f5bdd68#362 (0.15.2): operator-neutral wording, in-chat tick status.889ec4b#365: bug-fix/perf-issue/hillclimb move to Grok.5bf2b15#366: setup budget question.70b2dc8#414 (0.15.3): Opus 5.5 and Grok 4.7, three-model panel, code-ready rounds,children.tsv, prompt cuts, non-truncatinglog.sh.b42effe#416: upgrade-help wording.b0b9c7a#419 (0.15.4): 19 instruction cuts, Reflect quota removal.12d587d#422 (0.15.5): role-line reads, retired roles, owner and Babysit exceptions, plan-lane regex, audit-log runs.
Out of scope
- No new tests, test files, test documents, fixtures, verification frameworks, evidence templates, migration code,
grok-4.6compatibility row, new matrix column, runtime validator, model fallback, or timeout. Edit only the existing assertions named in commit 2. - Do not merge or fold in any open PR (Allow setup with only assigned model providers #73, feat(models): move Sol to gpt-6-sol and Grok to grok-4.7 #83, feat(pstack): support optional Sonnet Astra Luna and Terra families #55, fix(runner): let headless Grok writers run shell commands #81, fix(runner): pre-approve file edits for headless Grok writers #84, fix(runner): preserve Grok cancellation evidence and restrict read-only tools #79, docs(dispatch): note that Grok lanes need an unsandboxed Codex parent #82, Accept Grok XAI_API_KEY auth in poteto-mode preflight #75, fix(pstack): support Codex setup and current CLI output #59, fix(pstack): unblock headless Grok writers #48, fix(pstack): preload poteto-mode in Claude agent #50, Prevent runner startup from loading project configuration #26, Add Devin CLI workers for SWE-2 and SWE-1.6 #70, Add Cursor CLI external workers #74, Add agy as an external pstack-runner provider #31, docs(bugbot-triage): record declining a remedy without declining the premise #76, fix(orch): read live PR state when Graphite cache is stale #87, fix(runner): make Grok isolated-write lanes usable #92), except the Allow setup with only assigned model providers #73 setup order that decision 3 takes. The Grok headless-writer bugs (Grok isolated-write lanes cancel headless edit permissions #34, Fix Grok read-only cancellation and preserve runner failure evidence #78) already affect
mainand do not gate this sync. - Do not change
plugins/pstack/skills/poteto-mode/scripts/apart fromrunner/model-matrix.test.ts. That rules out the runner, watch-pr, orch,package.jsonand the lockfile. Runner fixtures that saygrok-4.6stay. - Not ported: the setup budget question, Sol 6 (Support GPT-6 Sol, GPT-6 Luna, and an exact Opus 5.5 pstack pin #85), optional families (Support Sonnet, GPT-6 Luna, and exact Claude model pins #54/feat(pstack): support optional Sonnet Astra Luna and Terra families #55), the Cursor manifest,
docs/guide/, and a Codex transcript path. - No inventory or baseline step beyond the live gate's record-and-restore box. The rollout is Roll out Open Pstack 1.5.0 to Claude Code and Codex on the Mac and studio2 #89.
Step 0: branch, audit, mechanical merge
git fetch origin
git remote get-url cursor >/dev/null 2>&1 || git remote add cursor https://github.com/cursor/plugins.git
git fetch cursor main
git switch -c sync/PSTACK-3-cursor-pstack-0.15.5 origin/main
audit=${TMPDIR:-/tmp}/pstack-0.15.5-audit.json
python3 scripts/upstream-audit.py --port $(git rev-parse HEAD) --upstream 12d587dfb20741cafc376c42c696c5f6e2a64487 > $audit
python3 scripts/upstream-merge.py $auditOn de67e6b this produces 45 changed upstream paths:
- 7 taken verbatim.
- 15 clean three-way merges.
- 20 files with 36 conflict hunks, marked
<<<<<<< port…>>>>>>> upstream-target. - 3 unmapped paths, which stay unported:
pstack/.cursor-plugin/plugin.json,pstack/docs/guide/01-setup.md,pstack/docs/guide/07-overnight.md.
Resolve every hunk from the port side and add only upstream's new behavior. Do not take an upstream side and re-translate it.
Substitutions for new upstream text
These are the port's existing translations (see CHANGES.md):
~/.cursor/rules/pstack-models.mdcor “the rule” → the current harness's pstack model sheetclaude-opus-5-5-max→claude:opus@max;gpt-5.6-sol-max→codex:gpt-5.6-sol@max;grok-4.7-xhigh-fast→grok:grok-4.7@xhighTask,subagent_type: generalPurpose,readonly,environment: cloud,run_in_background→ the port's provider-dispatch sentence (read-onlyorisolated-write)AskQuestion→AskUserQuestion- “arm a
/goal” → write the objective into the standing orders and todolist - one Cursor cloud agent per PR → one background subagent per PR in its own worktree
control-cli/control-uifrom cursor-team-kit → therunskill for CLIs and TUIs,verifyfor UIsgit show origin/main:pstack/...→ re-readskills/...from the installed plugin- terminal
/loopwith a sleep, or cloud-sleeper →/loopin dynamic mode agent-transcripts/and~/.cursor/projects/*/→~/.claude/projects/<encoded-cwd>/- “agent id” → session id; the program's agent list → the parent's background task list
deslopfrom cursor-team-kit → thedeslopskill- “opens the PR ready, never draft” → Opening a PR's readiness rule
- bare
git push --force-with-lease→ the captured-SHA lease in Autopilot-full step 2 and Shipping step 4 - “the repo's AGENTS.md files and rules” → the repo's instruction files (AGENTS.md, CLAUDE.md)
Two things upstream adds must never land. The first is the rejected-slug fallback (“If the Task tool rejects … family's default … closest valid slug”); AGENTS.md forbids a weaker-model fallback. The second is “passes its expected runtime” as a stuck test; AGENTS.md forbids an implicit timeout.
Commit 1: sync: port Cursor pstack 0.15.2-0.15.5 skill content
Keep every model default at its current port value in this commit; commit 2 changes the defaults. Paths below are under plugins/pstack/skills/ unless noted.
Keep the merge result with no edits:
README-UPSTREAM.md(repo root)how/references/explorer-prompt.mdinterrogate/references/{code-quality-review,reviewer-prompt,rubric}.md, including #419's two deleted What-to-Avoid bulletspoteto-mode/playbooks/{pause-safely,opening-a-pr}.mdshow-me-your-work/scripts/log.sh(mode 100755)blast-radius,figure-it-out,tdd,technical-writing,unslopprinciple-{guard-the-context-window,never-block-on-the-human,outcome-oriented-execution,prove-it-works,sequence-verifiable-units}reflect/references/{divergent,judgment,tooling}-reviewer.md
Clean merge that needs one edit: in poteto-mode/playbooks/babysit.md step 4, change “publishes it with git push --force-with-lease per playbooks/autopilot-full.md step 2” to “publishes it through the disarm and captured-SHA lease steps in playbooks/autopilot-full.md step 2”.
Conflicted files:
-
poteto-mode/scripts/check-plan.mjs: rungit checkout origin/main -- plugins/pstack/skills/poteto-mode/scripts/check-plan.mjs. ItsLANE_SENTENCEalready reads the configuredswarm workersrole. -
architect/SKILL.md: replace the hunk with one line:Take the runners from
architect runnersin the current harness's pstack model sheet, in place of Arena'sarena runners. If the sheet or that line is missing, useclaude:fable@max,codex:gpt-5.6-sol@max,grok:grok-4.6@xhigh,claude:opus@xhigh.Do not add the “Alias and rejected entries” sentence.
-
arena/SKILL.md,interrogate/SKILL.md,poteto-mode/playbooks/hillclimb.md,poteto-mode/playbooks/perf-issue.md: port side. Upstream changed only models, fallback text and Cursor wording there. -
how/SKILL.md: port side, with two wording changes. “your configured how-explorer descriptor” becomes “thehow explorerdescriptor”. Both occurrences of “your configured how-explainer descriptor” become “thehow explainerdescriptor”. -
why/SKILL.md: port side. “your configured why-investigators descriptor” and “your configured why-synthesizer descriptor” both become “thewhy investigators, synthesizerdescriptor”. Defaults stayinherit-parent. -
reflect/SKILL.md: port side. “your configured reflect-judgment choice”, “your configured reflect-tooling choice” and “your configured reflect-judgment descriptor” all become “thereflect tooling, judgment, divergent, synthesizerdescriptor”. Defaults stayinherit-parent. -
swarm/SKILL.md: port side for steps 3 and 4 and Phase B. Step 5 becomes:Give each worker its own writable output when it writes. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method (sample count, what one sample is, order). The worker records both in its result.
Keep the clean-merged Phase B ISSUES text and the Phase C drop, rerun-once and gap rules.
-
show-me-your-work/SKILL.md: keep the clean-merged run andstart-row paragraph, changing “such as its agent id” to “such as its session id”. Resolve the hunk to:At the end of the run, before handing back, check the log told the truth. Read this run's transcript under Claude Code's per-project transcripts directory at
~/.claude/projects/<encoded-cwd>/. Don't glob across~/.claude/projects/. That reads unrelated private chats. Walk this run's rows against what actually happened. Each stretch of them begins at one of this run'sstartrows, or at the first row if this run created the log, and ends at the nextstartrow of another run:Keep the clean-merged “Check that…” bullets and the supersede-only paragraph.
-
poteto-mode/SKILL.md:- Keep the port line that starts “About to
AskUserQuestion”. Append upstream's four sentences from “Under a full-autonomy grant, decide a call that the grant covers” through “still need the operator.” - Keep the port paragraph “Defaults for every delegation”. Insert this before its final
inherit-parentsentence: “Each code playbook's configured model comes from its line (feature, refactoring,bug-fix,perf-issue, orhillclimb), and the hardest changes readhardest tasks. Prose and judgment readjudgment and prose.” - Take upstream's Autopilot-full catalog line (“swarm-verifies each PR”). For the Autopilot-stack catalog line, keep the port line and change “the operator lands herself.” to “the operator lands.”
- Keep the port line that starts “About to
-
poteto-mode/playbooks/bug-fix.md:- Step 1 becomes:
- Reproduce it yourself on the matching surface via the driver skill (
runfor CLIs/TUIs,verifyfor UIs) (Non-negotiables), even when a debug or instrumentation protocol says to ask the user to reproduce. Ask the user only with a stated, specific reason the control surface cannot reach the target, and only after driving it as far as it goes. If it won't reproduce directly, synthesize the trigger, tighten conditions, or instrument until it fires.
- Reproduce it yourself on the matching surface via the driver skill (
- Step 2: port side.
- Step 3: port side without “Review the diff.”
- Delete the line “Investigation fans out
how+whyas parallel subagents.” and the blank line after it. - Reply line: port side (the local Sync Cursor pstack 0.14.3 verified multi-PR checklist #17 wording).
- Step 1 becomes:
-
poteto-mode/playbooks/feature.md: keep the clean step-2 cut. In step 4, keep the port text but remove “Review its diff yourself.” Keep “The delegate owns the diff directly and never waits on or launches a nested agent.” -
poteto-mode/playbooks/refactoring.md: step 5 is the port text without its final “Review the diff yourself.” Step 6 is the port's driver-skill text withoutOwn the verification yourself. Do not trust a delegate's "looks good" summary. -
poteto-mode/playbooks/shipping.md: port side for every step. In step 3, replace “Re-verify when the patch changed.” with:When the two patches differ only in tests, docs, or lint config, build what each lane ran. Build it twice at
<verdict-sha>and once at<current-head>. A difference is noise if the two builds at<verdict-sha>also show it, or if it is an embedded commit SHA. Judge each difference, not each file, and report each kind of noise with its files. If only noise differs, that lane's result stays valid. Set<landing-sha>to<current-head>, and run checks and a review of the change fresh at that head. Do not reuse a lane result from a dev server or from anything else with no build output. Rerun that lane. Re-verify anything else when the patch changed. -
poteto-mode/playbooks/autopilot-full.md: start from the port text.-
Step 1. “stay hers. She reviews and she clicks” becomes “stay with the operator. The operator reviews and clicks”. “When she asks” becomes “When the operator asks”. “on her explicit go” becomes “on the operator's explicit go”. Keep the standing-orders sentence.
-
Step 2.
- After “Keep
decisions.tsvuncommitted and return it with the reports.” add: “As soon as a subagent starts, the owner adds its retained handle (Agent task, background Bash task, or Codex agent or session ID) and its state to achildren.tsvkept the same way.” - “Before babysit, a self-contained PR” becomes “Before the code-ready report and babysit, whether or not trunk has drifted, a self-contained PR”. Keep every command and its order.
- Replace “It then runs the babysit loop to green (
playbooks/babysit.md) and owns the merge itself.” with:When the shipped code is final, after the slop-strip and
/no-comments, it reports the code-ready head SHA, and the SHA of each later push that changes the patch. Self-proof, CI, and the babysit loop (playbooks/babysit.md) then run in parallel with the swarm. The owner reports merge-ready with the head SHA when they finish, and owns the merge itself. Before a push that starts a round, run the pre-review checks that the repo's instruction files (AGENTS.md, CLAUDE.md) name for the touched paths, on the committed head. A hook pass is not proof. - Replace “The required rebase always precedes babysit and never waits for drift or conflicts.” with:
In fix rounds, the owner keeps that merge base. It rebases again only at merge prep (step 5), on a
git merge-treeconflict with trunk, or on a CI failure that comes from a change on trunk, each time through the disarm, captured-SHA, and lease steps above. Never force-push a shared branch.
- After “Keep
-
Step 4. Use upstream's step 4 text, with the heading “Swarm-verify every round before its merge.” Write its live lane as “(the
runskill for CLIs and TUIs,verifyfor UIs, or a named driver where neither fits)”. -
Step 5. Keep the port text. After “The owner merges only from a head freshly rebased onto trunk.” insert:
Merge prep never comes before a round's lanes start, and it ends with a rebase onto current trunk right before the merge. After the merge-prep rebase, the owner reports the new head SHA. CI must pass on that head before the merge, and the patch-id rule decides whether the round's verdict still holds.
Keep all the expected-head landing sentences. “wait for her click” becomes “wait for the operator's click”.
-
Step 6.
- After “granted only after verifier proof.” insert upstream's four sentences, from “If the operator's grant or standing orders cover approvals, that countersign is the approval.” through “The root never gives or bypasses an approval that the forge enforces.”
- Keep the port tick text: dynamic
/loop, installed-plugin re-read, retained handles, affirmative-failure stand-down. - Replace “Cancel through the retained handle before dispatching a replacement.” with:
Each tick also runs this stuck test over the parent's background task list and every owner's
children.tsv. Cancel a stuck lane through its retained handle. Whether or not the cancel succeeds, the root has the owner record it as stuck inchildren.tsvand, if its work is still needed, replace it. Each replacement that fails gets the same steps. The root takes both steps when the owner cannot. A stall never proves or drops the work. - After the retro sentence add: “End the tick only when no delegated work is left, even after the last merge.”
-
Step 7. “Her hold” becomes “The operator's hold”. “until she releases them” becomes “until the operator releases them”.
-
-
poteto-mode/playbooks/autopilot-stack.md: start from the port text.-
Intro. The last clause becomes “then hand the operator one linear stack to review and land.”
-
Step 1. Append “Owners also keep the
children.tsvof Autopilot-full step 2.” -
Step 2. Append “Probe all subagents and end the tick per Autopilot-full step 6.” Keep the port's installed-plugin re-read, dynamic
/loop, affirmative-failure and cancel-before-replace sentences. -
Step 3. “On her explicit go” becomes “On the operator's explicit go”. “On her stop” becomes “On the operator's stop”.
-
Step 4. Use upstream's “Verify each round.” text: the owner reports code-ready, then STACK-READY, and the root verifies each round per Autopilot-full step 4 with STACK-READY in place of merge-ready.
-
Step 7. Replace the sentences from “Compare the stable
git patch-id” through “goes back through step 4 before delivery.” with:Apply the patch-id rule in
playbooks/shipping.mdstep 3 at each verdict SHA, using each PR's recorded patch-base-to-head diff. Anything no longer valid goes back through step 4 before delivery.Keep “step 6's captured-SHA lease flow” and the mergeability/CI rerun sentence.
-
Steps 5, 6 and 8. Port side.
-
-
poteto-mode/playbooks/multi-phase-plan.md:- Keep the port lane sentences in the Verification paragraph and in Verify, live. Keep the port Arm-the-program block and the port Bugbot line.
- Tick prompt: keep the port text through “dispatch its replacement in the same tick.” Then replace the old status sentence with upstream's text, from “Then post a short status message to the operator in chat only when the audit found a tracked change” through “The row names the items reported, or none.”
- The rebase line becomes:
- Rebase each independent PR and stack root onto current trunk before the code-ready report and babysit. Rebase each unmerged stack child onto its parent's exact tip. Keep that merge base in fix rounds. Rebase again only at merge prep, on a
git merge-treeconflict with trunk, or on a CI failure that comes from a change on trunk. After its parent merges, use Shipping's explicit old-base-to-trunk rebase before the child's merge-ready report.
- Rebase each independent PR and stack root onto current trunk before the code-ready report and babysit. Rebase each unmerged stack child onto its parent's exact tip. Keep that merge base in fix rounds. Rebase again only at merge prep, on a
- The first two Verdict lines become:
- At the code-ready head SHA and at each later push that changes the patch, run the swarm per
skills/swarm/SKILL.md. One gates lane. The ten live lanes from the PR's Verify, live block. The perf lane from its Verify, perf block. Two or more audit lanes, each with its own focus, that read the diff and the receipts and distrust the PR body. The root audits the receipts in the merge-ready report before the verdict. - Clean only when every lane is
PASS. Findings go back to the owner, including a defect that a lane filed as a note. A new head gets a fresh swarm and a fresh verdict, except for results that stay valid under the patch ID rule inskills/poteto-mode/playbooks/shipping.md.
- At the code-ready head SHA and at each later push that changes the patch, run the swarm per
- Keep the port merge-rule placeholder line.
-
setup-pstack/SKILL.md: take the port side of all four hunks, so there is no budget, no.mdcfile and no AskQuestion. Then take #422's retired-role rule:- In step 2, replace “A duplicate or unknown role row is inconsistent state; report it and resolve it before probing.” with:
A duplicate role row is inconsistent state; report it and resolve it before probing. A row whose role is not in the step 7 role map, such as
how critics, is from a retired role. Drop it and list it at confirmation. - In step 3, “duplicate role, or unknown role is inconsistent state” becomes “or duplicate role is inconsistent state”.
- In step 7, append “and any retired-role rows dropped in step 2” to the first sentence.
- In step 2, replace “A duplicate or unknown role row is inconsistent state; report it and resolve it before probing.” with:
After commit 1, run the checks below. They must pass with the old defaults.
Commit 2: defaults: Opus/Sol/Grok 4.7 first-run panel; setup probes assigned families
poteto-mode/references/provider-dispatch.md:
- Keep the row order fable, sol, grok, opus and leave the sol row unchanged. Set the other rows to:
| fable | - | claude | fable | max | low medium high xhigh max | fable || grok | grok-4.7-xhigh-fast | grok | grok-4.7 | xhigh | low medium high xhigh max | - || opus | opus | claude | opus | max | low medium high xhigh max | opus |
- After “First-run requested efforts are the Default effort cell of each row.” add: “The first-run panel is Opus, Sol, and Grok, in that order. Fable stays selectable, but no first-run role uses it.”
- “pins the current CLI model
grok-4.6” becomes “pins the current CLI modelgrok-4.7”.
setup-pstack/SKILL.md. The three-model default forces this change, and it closes #72.
- Frontmatter description. “Verifies native and external Claude, Codex, and Grok lanes before writing the override sheet.” becomes “Verifies the assigned native and external lanes before writing the override sheet.” In the intro, “Choose one requested effort per matrix family.” becomes “Choose one requested effort per assigned matrix family.”
- Step 2. Move the step 6 paragraph that starts “After effort selection, ask whether to keep” to the end of step 2, reworded as:
Then ask whether to keep these role-to-family assignments or change named roles. Keeping them is the default. Apply only role changes the operator names; never offer a reset of a customized sheet to the first-run assignments. A changed role may use any model-matrix family,
inherit-parent, orauto. - Step 3. Replace “A family with no non-alias occurrence is unassigned; use its matrix Default effort as the proposed value and label it unassigned rather than calling it current.” with:
A family with no non-alias occurrence is unassigned: do not ask for its effort, check its CLI, or probe it. A family that a step 2 role change newly assigns takes its matrix Default effort as the proposed value.
- Step 4. The paragraph becomes:
Ask one effort question for each assigned family. Name each model, its current or proposed value, and the Selectable efforts from its matrix row. Empty input keeps that value. On a first run, state the assigned families' matrix defaults before asking. On a rerun, state the parsed values without offering to reset customized role lanes.
- Step 5. The heading becomes
### 5. Probe the requested pairs. Its first two sentences become “Probe only the selectedprovider:model@effortpair of each assigned family. Run one probe per family in the role map, even when two families share a provider.” Keep the four-row route table and the rest of the step. - Step 6.
- Append “, with the step 2 role changes applied” to the first-run bullet.
- In the rerun bullet, insert “, with the step 2 role changes applied,” after “normalized complete role map from step 2”.
- Delete the paragraph “Require the final role map to contain at least one descriptor from each matrix family. …” (both sentences).
- “a model other than the four matrix families” becomes “a model outside the model matrix”.
- Step 8. “only after all four probes pass” becomes “only after every requested pair passes”.
- Step 9. “all four chosen descriptors” becomes “every distinct chosen descriptor”.
- First-run sheet (the fenced block): keep the heading and preamble. The rows become:
feature, refactoring: grok:grok-4.7@xhigh
bug-fix: codex:gpt-5.6-sol@max
perf-issue: codex:gpt-5.6-sol@max
hillclimb: codex:gpt-5.6-sol@max
judgment and prose: claude:opus@max
hardest tasks: claude:opus@max
how explorer: grok:grok-4.7@xhigh
how explainer: claude:opus@max
why investigators, synthesizer: inherit-parent
reflect tooling, judgment, divergent, synthesizer: inherit-parent
arena runners: claude:opus@max, codex:gpt-5.6-sol@max, grok:grok-4.7@xhigh
arena cross-judge pool: claude:opus@max, codex:gpt-5.6-sol@max, grok:grok-4.7@xhigh
swarm workers: grok:grok-4.7@xhigh
architect runners: claude:opus@max, codex:gpt-5.6-sol@max, grok:grok-4.7@xhigh
interrogate reviewers: claude:opus@max, codex:gpt-5.6-sol@max, grok:grok-4.7@xhigh
Do not add an inherited-alias probe, a setup-time Architect minimum, panel-removal rules, a smoke-failure loop, or a test document; those come from #73 and are not taken.
Defaults elsewhere:
arena/SKILL.mdstep 3: “Otherwise default to one each onclaude:opus@max,codex:gpt-5.6-sol@max,grok:grok-4.7@xhigh.” Keep the cross-judge sentence (“otherwise from the runner defaults above”) so the Grok descriptor appears on exactly one line.architect/SKILL.md: the same three descriptors on its one runner line.interrogate/SKILL.md: “Reviewer A/B/C/D labels” becomes “Reviewer A/B/C labels”. The table is Aclaude:opus@max, Bcodex:gpt-5.6-sol@max, Cgrok:grok-4.7@xhigh; delete the Reviewer D row.how/SKILL.md: the explorer default becomesgrok:grok-4.7@xhighand both explainer defaults becomeclaude:opus@max.swarm/SKILL.md: the step 4 default becomesgrok:grok-4.7@xhigh.poteto-mode/playbooks/feature.mdstep 4 andrefactoring.mdstep 5:grok:grok-4.6@xhighbecomesgrok:grok-4.7@xhigh. Leave bug-fix, perf-issue and hillclimb oncodex:gpt-5.6-sol@max.poteto-mode/SKILL.md, Defaults paragraph: replace the sentence that starts “Upstream defaults use Grok 4.6 xhigh” with the text below. Use prose only, no descriptors, in this meta-file (see CHANGES.md).Defaults use Grok 4.7 xhigh for feature/refactoring, exploration, and swarm work; GPT-5.6 Sol max for bug fixes, performance work, and hillclimbing; Opus max for judgment, prose, explanation, and hardest tasks; and the three-model Opus, Sol, and Grok panel for model-diverse judgment.
poteto-mode/references/codex-tools.mdline 45: the example descriptors becomeclaude:opus@max,codex:gpt-5.6-sol@maxandgrok:grok-4.7@xhigh. The last sentence becomes “The default panel runs one model from each of three providers and contains no older GPT or Claude substitute.”
Existing tests. Edit only these:
poteto-mode/scripts/runner/model-matrix.test.ts:- Add
const FIRST_RUN_PANEL = ["opus", "sol", "grok"] as const;next toFAMILY_ORDER. - Change
defaultDescriptors(rows)to take a family list and returnfamilies.map(...)of each family's row as${provider}:${model}@${defaultEffort}. It should throw on a missing family. const quad = defaultDescriptors(rows)becomesconst panel = defaultDescriptors(rows, FIRST_RUN_PANEL), andexpectedPanel = panel.join(", ").["opus", "xhigh"]becomes["opus", "max"].- In
SETUP_SECTION_ORDER,"### 5. Probe the four requested pairs"becomes"### 5. Probe the requested pairs". - Change nothing else.
FAMILY_ORDERstays fable, sol, grok, opus.
- Add
tests/skill-collision-repro.sh:- Replace the awk block that builds
canon_quadfrom every matrix row withcanon_panel="$( { grep -m1 '^arena runners:' "$setup" || true; } | quad_of)". The|| truematters: the script runs underset -euo pipefail, and without it a missing row aborts the script before the named failure message prints. - Update the comment to say that setup-pstack's first-run
arena runnersrow is the default panel, and that the other panel rows and the arena, architect and interrogate defaults copy it verbatim. - Rename quad to panel in variable names, comments and messages. “could not read the canonical quad from $dispatch” becomes “… panel from $setup”, and “Reviewer A/B/C/D” becomes “Reviewer A/B/C”.
- Keep
dispatch=, because the sol-row check uses it. Change nothing else in the file.
- Replace the awk block that builds
Commit 3: release: sync Cursor pstack 0.15.5 as Open Pstack 1.5.0
- Version. Set
1.5.0in.claude-plugin/marketplace.json,plugins/pstack/.claude-plugin/plugin.jsonandplugins/pstack/.codex-plugin/plugin.json..agents/plugins/marketplace.jsonhas no version field; leave it alone. UPSTREAM.md.- Table: commit
12d587dfb20741cafc376c42c696c5f6e2a64487, upstream0.15.5, open-pstack1.5.0. - Sentence: “Open Pstack 1.5.0 imports this 0.15.5 sync.”
- The
git log/git diffranges start at12d587dfb20741cafc376c42c696c5f6e2a64487. - Exclusions: rewrite the
23a56e2bullet and add four more:- “The default-model hunks for
bug-fix,perf-issue, andhillclimbfrom23a56e2,889ec4b, and70b2dc8are not applied. Those frequent code-writing roles stay oncodex:gpt-5.6-sol@max.” - “
5bf2b15's setup budget question, its# budgetline, and its step down to a lower detected effort are not applied. Setup already asks one requested effort per assigned family, and the step-down would silently lower a requested effort.” - “
12d587d's rule that reruns a rejected configured entry on its family default or the closest valid slug is not applied. An unavailable model stays a named dropout perprovider-dispatch.md.” - “The expected-runtime column in
70b2dc8'schildren.tsvand its expected-runtime stuck test are not applied. A lane is stuck only on affirmative failure evidence.” - “The explicit Grok, Opus, and Sol defaults for the Why and Reflect roles are not applied. Those roles stay on
inherit-parentbecause the external runner omits the parent's MCP servers.”
- “The default-model hunks for
- Table: commit
CHANGES.md. Add a top section “## 1.5.0 syncs to Cursor pstack 0.15.5” with two short paragraphs:- The defaults: the trio panel; Opus max for judgment/prose, hardest tasks and the How explainer; Grok 4.7 xhigh for feature/refactoring, the How explorer and swarm; Sol max kept on bug-fix/perf-issue/hillclimb; Why and Reflect kept on
inherit-parent; Fable still in the matrix with its native agents. Setup asks about roles first, then asks efforts for and probes only assigned families (the ordering follows PR Allow setup with only assigned model providers #73 by @arjitj2). It drops and lists retired-role rows such ashow critics. - What was imported and what was not. Imported: the neutral wording, tick status only on change, code-ready rounds with 2+ audit lanes and one fix-forward, rebases at the code-ready report and at merge prep,
children.tsv, the owner Babysit exception, countersign-as-approval, Architect readingarchitect runners, Swarm SHA/method briefs, Shipping build-noise lane reuse, decision-trailstartrows and supersede-only corrections, the non-truncatinglog.sh, and the #419 cuts. Not applied: the five exclusions above, the Cursor manifest anddocs/guide/. Then: existing sheets are not rewritten; delete role lines and rerun setup to take the new defaults; agrok:grok-4.6row keeps running until setup asks for its replacement; with no sheet, the new defaults apply on update. - In the Maintenance paragraph, replace the sentences about the canonical default panel quad with: “The canonical default panel is the
arena runnersrow of the setup-pstack first-run sheet. It is copied into the other three panel rows and intoarena,architect, andinterrogate. Keep those copies grep-identical when models change. The static test reads the panel from that row, andmodel-matrix.test.tspins its families and checks each effort against the matrix.”
- The defaults: the trio panel; Opus max for judgment/prose, hardest tasks and the How explainer; Grok 4.7 xhigh for feature/refactoring, the How explorer and swarm; Sol max kept on bug-fix/perf-issue/hillclimb; Why and Reflect kept on
NOTICE.md. After the 0.15.1 row, add:|
plugins/pstack/skills/(0.15.2 to 0.15.5 changes: three-model defaults, code-ready rounds, owner authority, prompt cuts, decision-trail runs,show-me-your-work/scripts/log.sh),README-UPSTREAM.md| cursor/plugins/pstack @ 12d587d | (c) 2026 Lauren Tan | MIT | LICENSE |README.md.- “For the full four-model review” becomes “For the full three-model review”.
- “The current default group uses Fable, GPT-5.6 Sol, Grok 4.6, and Opus.” becomes “The default review panel uses Opus, GPT-5.6 Sol, and Grok 4.7, and setup probes only the models your roles use. Fable remains available.”
- After the rolling-alias paragraph, add: “A model sheet from an earlier release keeps its panel. To take the new defaults, delete those role lines and run setup again; setup fills missing roles from the defaults. A
grok:grok-4.6entry keeps running until the next setup run asks you to replace it.” - “one requested effort per model family” becomes “one requested effort per model family you assign”.
- The version line becomes Open Pstack 1.5.0, pstack 0.15.5, commit
12d587dfb20741cafc376c42c696c5f6e2a64487.
docs/reference.md.- Line 5: version 1.5.0, Cursor pstack v0.15.5, commit
12d587dfb20741cafc376c42c696c5f6e2a64487. - Line 89: “per frontier family” becomes “per assigned family”. The first-run panel sentence becomes “The first-run panel is Opus max, GPT-5.6 Sol max, and Grok 4.7 xhigh; Fable stays selectable with its native agents.” “instead of upstream's Fable default because Sol costs less for these frequent delegated code roles” becomes “instead of upstream's Grok 4.7 default”.
- Line 91: “fan out the frontier quad” becomes “fan out the configured panel”.
- Line 128: “four different models” becomes “several different models”.
- Line 196: “Provider dispatch runs the upstream three-model panel:
claude:opus@max,codex:gpt-5.6-sol@max,grok:grok-4.7@xhigh. Same-provider lanes stay native; external lanes use the bundled runner.” - Line 214: “Solo code defaults (upstream
23a56e2moved them to Fable;889ec4band70b2dc8move them to Grok 4.7). Open Pstack keepsbug-fix,perf-issue, andhillclimboncodex:gpt-5.6-sol@max.”
- Line 5: version 1.5.0, Cursor pstack v0.15.5, commit
Checks (after each commit, and before the PR leaves draft)
(cd plugins/pstack/skills/poteto-mode/scripts && bun install --frozen-lockfile && bun run test && bun run typecheck)
bun -e 'for (const path of [".claude-plugin/marketplace.json", ".agents/plugins/marketplace.json", "plugins/pstack/.claude-plugin/plugin.json", "plugins/pstack/.codex-plugin/plugin.json"]) JSON.parse(await Bun.file(path).text())'
PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh
claude plugin validate .
claude plugin validate plugins/pstack
git diff --check origin/main...HEAD
git grep -nE '^(<<<<<<<|>>>>>>>) ' -- plugins README-UPSTREAM.md # must print nothing
git diff origin/main...HEAD -- plugins/pstack | grep '^+' | grep -nE 'pstack-models\.mdc|~/\.cursor|AskQuestion|subagent_type|generalPurpose|cloud-sleeper|cursor-team-kit|control-(cli|ui)|git show origin/main|agent-transcripts|agent id|claude-opus-5-5|closest valid slug|expected runtime|arm a `/goal`' # must print nothingThe static test already pins the shipping and fork safeguards, the sol-row rule, the rolling aliases, principle visibility, model-invocable routed skills, make-bot-ui exclusion and version agreement. Make it pass. Never weaken a guard to make a merge pass.
Live gate (AGENTS.md; the PR stays draft until this is recorded)
Install the exact PR head in each harness.
-
Record, then restore. Before changing anything, record the Claude Code and Codex pstack versions, the
refunder[marketplaces.open-pstack]in~/.codex/config.toml, andshasum -a 256of~/.claude/pstack-models.md,~/.codex/pstack-models.mdand~/.codex/AGENTS.md, noting any missing file. After the checks, put every one back and confirm the hashes match. -
Claude Code. Check out the PR head in a worktree and start a fresh session with
claude --plugin-dir <worktree>/plugins/pstack, as PR release: sync Cursor pstack 0.15.1 as Open Pstack 1.4.1 #64 did. For C1 and C2, move~/.claude/pstack-models.mdaside if it exists and put it back afterward. You can tell the candidate by its behavior: the installed release proposes Fable and four lanes. If the installed release answers, runclaude plugin disable pstack@open-pstackfor the check and re-enable it afterward. -
Codex. Copy
~/.codex/config.tomland~/.codex/AGENTS.mdto*.bak-live-gate. In~/.codex/config.toml, change the recordedrefunder[marketplaces.open-pstack]to the PR branch name. Then runcodex plugin marketplace upgrade open-pstackandcodex plugin add pstack@open-pstack, and confirmdiff -rq ~/.codex/plugins/cache/open-pstack/pstack/1.5.0 <worktree>/plugins/pstackprints nothing. (codex plugin marketplace addonly adds sources; it does not re-point an existing one.)- After the checks, restore both backups, delete any
~/.codex/pstack-models.mdthis ticket created, and reruncodex plugin marketplace upgrade open-pstackandcodex plugin add pstack@open-pstackso Codex is back on the recorded ref and version. Roll out Open Pstack 1.5.0 to Claude Code and Codex on the Mac and studio2 #89 does the real move tov1.5.0. - Grok lanes need a Codex parent with network access (see PR docs(dispatch): note that Grok lanes need an unsandboxed Codex parent #82, for example
--sandbox danger-full-access). The executing agent starts that session itself, for examplecodex exec --sandbox danger-full-accesswith the check's answers in the prompt, and asks Eric only if a permission prompt blocks it. Record a sandbox dropout as environmental, not as a pass. - A probe that fails with
EPERMwhile writing the child's stdin is the pre-existing runner bug Fix runner subprocess I/O for Codex provider probes #94, not this sync. Stop and report it. On pro14 on 2026-09-30, a minimal Bun 1.4.0 child-stdin write passed both unsandboxed and undercodex sandbox.
- After the checks, restore both backups, delete any
Claude Code checks:
- C1. Run
/pstack:setup-pstackwith no sheet.- It proposes the 15-row first-run sheet above.
- It asks exactly three effort questions (Opus, Sol, Grok) and none for Fable.
- Probes pass for native
pstack-opus-max, Sol throughcodex exec, and Grokgrok-4.7through the runner. - Decline at confirmation.
~/.claude/pstack-models.mdis still absent afterward.
- C2. Run
/pstack:interrogateon a one-file diff in a scratch repo. Expect three reviewer lanes: native Opus, a Sol runner receipt, and a Grok runner receipt whosereportedModelstarts withgrok-4.7. There is no Fable lane. - C3. In a scratch repo, ask for “full autopilot for these two items: ; state the protocol and wait”. The statement describes code-ready rounds, a
children.tsvof handles and states with no expected runtime, the merge-prep rebase and the owner Babysit exception. Nothing is written.
Codex checks (against Eric's existing sheet):
-
X1. Setup reads
~/.codex/pstack-models.md. If the record shows it missing, seed it first: write the exact bytes between the<!-- pstack:models:begin -->and<!-- pstack:models:end -->lines (markers excluded) to that file. On pro14 it exists and matches the block. Then runpstack:setup-pstack.- It lists
how criticsas a dropped retired role. - It reports the
grok:grok-4.6rows as unmatched and asks for a replacement. - After you answer Grok family, it asks efforts only for the families the map uses, and its probes pass, including
grok:grok-4.7through the runner. - Decline at confirmation. Both hashes are unchanged afterward.
- It lists
-
X2. Repeat C3 from a Codex session on the candidate. It passes on the same terms.
Record each check in the PR template's Live evidence section with the fields AGENTS.md names (installed version, surface, action, observed result) plus the candidate commit.
Acceptance
- All 45 upstream paths are accounted for: 42 are resolved as above, the 3 unmapped paths stay unported, and no conflict markers remain.
- No added line under
plugins/pstackintroduces a Cursor primitive, a rejected-slug fallback or an expected-runtime stuck test. The grep above prints nothing. - Local behavior is intact:
tests/skill-collision-repro.shpasses with only the panel-derivation edit.check-plan.mjsis identical tomain.git diff --stat origin/main...HEAD -- plugins/pstack/skills/poteto-mode/scripts ':!*model-matrix.test.ts'is empty.
- The CI commands, both
claude plugin validateruns andgit diff --checkpass. The PR reports the test and assertion counts. - UPSTREAM.md, the three manifests, README.md, docs/reference.md, CHANGES.md and NOTICE.md agree on 1.5.0, 0.15.5 and
12d587d. - Live checks C1-C3, X1 and X2 are recorded in the PR template, and the PR stays draft until they are.
- Eric merges the reviewed head (or says go). Then
v1.5.0is tagged from the mergedmaincommit, and the release is published and read back.
Release and closeout
- Name the PR
release: sync Cursor pstack 0.15.5 as Open Pstack 1.5.0. Use.github/pull_request_template.mdfor the body, withCloses #<this issue>,Closes #72andLinear: PSTACK-3. - The PR merges only on Eric's go, after the live evidence is recorded. After merge:
git fetch origin && git tag -a v1.5.0 <merge-sha> -m 'Open Pstack 1.5.0' && git push origin v1.5.0gh release create v1.5.0 --repo ericlitman/open-pstack --title 'Open Pstack 1.5.0' --notes-file <file holding the CHANGES 1.5.0 section>- Confirm that
git ls-remote origin 'refs/tags/v1.5.0^{}'prints the merge SHA and thatgh release view v1.5.0 --repo ericlitman/open-pstackshows the release.
- Ask Eric before posting on anyone else's PR. With his OK:
- Close Allow setup with only assigned model providers #73 as superseded and thank @arjitj2 (the roles-first order is credited in CHANGES.md).
- Comment on feat(models): move Sol to gpt-6-sol and Grok to grok-4.7 #83 that its Grok 4.7 half landed here, and ask @rasmushjulskov to reduce it to the Sol-only change under Support GPT-6 Sol, GPT-6 Luna, and an exact Opus 5.5 pstack pin #85.
- Leave Support explicitly selected model-family subsets in setup-pstack #33 open, with a note that setup now probes only assigned families.
Notes
- Installed state (read on pro14 on 2026-09-30; studio2 not read). The 2026-09-24 version of this note was wrong for pro14, and the live gate's record supersedes it.
- Claude Code runs pstack@open-pstack 1.2.1 (
f466256) from the GitHub marketplace, last updated 2026-09-01. The legacy pstack@pstack-claude 0.9.12 is installed and disabled. - Codex tracks marketplace ref
mainand has 1.4.1 cached. ~/.claude/pstack-models.md,~/.codex/pstack-models.mdand the bounded block of~/.codex/AGENTS.mdare byte-identical (sha256e01bece8). They use all four families at xhigh,grok:grok-4.6, and a stalehow criticsrow.
- Claude Code runs pstack@open-pstack 1.2.1 (
- Why no migration code. The runner has no model matrix and does not validate Grok model names, and
grok modelslists grok-4.7 and grok-4.6. Oldgrok:grok-4.6sheets therefore keep running. Only setup validates against the matrix, and it already stops on an unmatched model and asks for an explicit replacement. That is the whole migration. - Other open PRs. Those that touch setup, the matrix or the panel skills (feat(pstack): support optional Sonnet Astra Luna and Terra families #55, fix(pstack): support Codex setup and current CLI output #59, Add Devin CLI workers for SWE-2 and SWE-1.6 #70, Add Cursor CLI external workers #74, fix(pstack): preload poteto-mode in Claude agent #50, Prevent runner startup from loading project configuration #26, Add agy as an external pstack-runner provider #31, fix(runner): make Grok isolated-write lanes usable #92) rebase after this lands. That is their authors' work, not part of this ticket.
- Precedent:
docs/plans/upstream-0.15.0.md, PR release: sync Cursor pstack 0.15.0 as Open Pstack 1.4.0 #60, issue Sync Cursor pstack 0.15.1 reply evidence rule #63, PR release: sync Cursor pstack 0.15.1 as Open Pstack 1.4.1 #64.
Activity
ericlitman commentedon Sep 24, 2026
Decision 1 confirmed by Eric: judgment and prose, hardest tasks, and the How explainer use the rolling alias
claude:opus@max, so the skills always pick up the latest Opus. Do not pin a version such asclaude-opus-5-5.ericlitman commentedon Sep 30, 2026
Re-verified on 2026-09-30 and edited in place. Tracked in Linear as PSTACK-3.
Still true. open-pstack
mainis stillde67e6band upstream pstack is still12d587d. Rerunning Step 0 reproduced 7 verbatim paths, 15 clean merges, 36 hunks in 20 files and 3 unmapped paths. The text anchors resolve atmain.grok modelslistsgrok-4.7as the default. External lanes pass the model straight to the runner, so agrok:grok-4.6row keeps running.Changed from the 2026-09-24 body.
mainwith 1.4.1 cached, and both model sheets exist and match the AGENTS.md block. The live gate now starts by recording that state and ends by restoring it. C1 and C2 move the Claude sheet aside, and the Codex steps use the recordedref.EPERM) as a stop-and-report case. It did not reproduce on pro14 with Bun 1.4.0.provider-dispatch.md.Astra review (gpt-6-astra, xhigh). Accepted:
<landing-sha>to<current-head>. Otherwise step 5's expected-head check refuses the merge.children.tsvhandle list drops "runner receipt path", which cannot cancel a lane.diff -rqof the Codex cache against the PR tree, not an existence check. The current 1.4.1 cache diffs clean againstmain.git ls-remote.Rejected:
show-me-your-work. That limit predates this sync, and this ticket excludes it.