Skip to content

Sync Cursor pstack 0.15.29 #234

Closed

Description

@ericlitman

Goal

Sync Open Pstack to Cursor pstack 0.15.29 (88d47514b82e7c44f00f2b2a72ff6dd12158038c), from the current sync point 99743e9 (0.15.25). The same PR fixes #46, because both change what setup-pstack does and share one setup live gate.

Rehearsal (2026-10-20, cursor/main 190d287)

scripts/upstream-audit.py and scripts/upstream-merge.py from main (9368993): 6 files verbatim, 3 clean merges, 3 needing review, 14 unmapped, exit 1.

  • Needing review: make-bot-ui/SKILL.md (upstream changed an excluded path), poteto-help/SKILL.md (2 conflict hunks), setup-pstack/SKILL.md (1 conflict hunk).
  • Unmapped: pstack/plugin.json, pstack/.cursor-plugin/plugin.json, 11 pstack/docs/guide/ files and pstack/docs/harness/claude-code.md.

Per-commit decisions

Upstream commit Decision
182f2ce (#637) Claude Code install from a generated tree Exclude, except README text that reaches README-UPSTREAM.md verbatim
0317eb8 (#700) brand with a type guard Adopt
a968159 (#702) every skill named after its folder Adopt. The port already complies. Its make-bot-ui hunk stays excluded.
1b80080 (#705) three gaps in upstream's Claude Code plugin Exclude. The fixes live in upstream's Claude Code tree.
019a6a2 (#704) docs refresh and docs-vs-tree check Adopt the README part. Exclude the guide and scripts/check-pstack-docs.mjs.
16541c6 (#692), bc14437 (#708) /ketchup fixes Adopt
4382e68 (#709) /create-formal-verification-skill Adapt: drop disable-model-invocation: true, because setup's new offer routes to it and the flag blocks the Skill tool on Claude Code
6b78e9f (#721) TLA+ default and fallback Adopt
7b353f7 (#716) /maintain-formal-verification-skill Adopt verbatim
f9be7aa (#715) setup offers formal verification Adapt (see conflicts)
75fabac (#712), 88d4751 (#729) /sharpen Adopt. /sharpen now rewrites the prompt and does not do the task.
0b8e952, 0148b78, d457567 (#710, #713, #724) version bumps and guide Exclude

Upstream's own Claude Code install stays out of the port. It runs grok-* and gpt-* roles on the session's Claude model, has no Codex, and maps Cursor names at runtime from a separate adapter file, which would be a second mapping layer on top of the port's own.

Conflicts

  • poteto-help/SKILL.md hunk 1 (Get set up): keep the port's install lines and setup sentence, and append upstream's sentence about the verification offers.
  • poteto-help/SKILL.md hunk 2 (harness paragraph): keep the port's paragraph. Record upstream's two paragraphs as not applied.
  • setup-pstack/SKILL.md: the port never had upstream's step 7, "Offer a verification skill" (upstream since 0.11.3). Keep the port's step 9. Add step 10 (offer a verification skill) and step 11 (offer a formal verification skill) from upstream's steps 7 and 8, recorded as an adaptation.
  • make-bot-ui: keep it absent. Extend the existing exclusion in UPSTREAM.md to cover a968159.

Steps

  1. git fetch cursor main. If git diff --quiet 88d4751 cursor/main -- pstack/ fails, audit against the new head and report the new counts.
  2. Run the audit and merge against 88d4751, apply the decisions and conflict resolutions above.
  3. Remove disable-model-invocation from create-formal-verification-skill, and add it to routed_model_skills in tests/skill-collision-repro.sh.
  4. Add both new skills to skills in .claude/skills/verify-open-pstack/features/registry.json.
  5. setup-pstack: on a rerun with a valid sheet and passing probes, steps 4/6/7 should take the sheet as their answers #46: on a rerun where the sheet loads, passes step 3, keeps its setting line, and the caller names no change, setup prints the kept roles and efforts, still probes, writes without asking when every probe passes, and prints the kept table. The new offers print one line each. A first run, an invalid sheet, a kept-predecessor proposal or a named change still asks. A failed probe stops without writing (setup-pstack/SKILL.md:71). The qualifying-rerun exception also covers the confirmation clauses at setup-pstack/SKILL.md:100 and :112.
  6. features/recipes.ts: every setup prompt declines both offers. first-run asserts no new .claude/skills/ or .agents/skills/ directory. Extend the existing keep-setting case for setup-pstack: on a rerun with a valid sheet and passing probes, steps 4/6/7 should take the sheet as their answers #46 instead of adding a case: a valid sheet, no answers, the sheet and the Codex mirror byte-identical, and no AskUserQuestion call.
  7. Docs: README.md (the two new skills, the /sharpen row, the version, and one sentence saying that Cursor's pstack now installs in Claude Code as pstack@cursor-plugins, with Claude models only and no Codex, so install only one of the two). docs/reference.md (the two new skills, /sharpen, the skill count, and one line saying Claude writer lanes need macOS, Linux or WSL2).
  8. UPSTREAM.md: the new sync point and version, the new exclusions and adaptations, a ledger entry for setup-pstack: on a rerun with a valid sheet and passing probes, steps 4/6/7 should take the sheet as their answers #46, and a refresh of "Incorporate a change" from this run (Write an agent-runnable upstream sync skill #106). NOTICE.md: a row for 0.15.26 to 0.15.29. CHANGES.md: the release section, which also covers the changes merged since 1.15.0.
  9. Set the version in both plugin manifests and .claude-plugin/marketplace.json.

Live gate

From the candidate head with --self-test, because the PR edits the verifier. Features, in both harnesses: setup (setup's behavior changes) and skill-invocation:create-formal-verification-skill as the one stand-in for every skill text change. project-skill comes with --self-test. About 20 sessions, with --wide.

Acceptance criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions